Interface ITransactionDataLayer
Regroups the transaction methods.
Namespace: UnityEngine.GameFoundation.DataAccessLayers
Syntax
public interface ITransactionDataLayer
Methods
MakeVirtualTransaction(String, ICollection<String>, Completer<VirtualTransactionExchangeData>)
Performs a purchase defined by a VirtualTransaction
specified by its key
.
Declaration
void MakeVirtualTransaction(string key, ICollection<string> itemIds, Completer<VirtualTransactionExchangeData> completer)
Parameters
Type | Name | Description |
---|---|---|
String | key | Identifier of a VirtualTransaction |
ICollection<String> | itemIds | The list of items to use in the transaction. |
Completer<VirtualTransactionExchangeData> | completer | The transaction result |
RedeemAppleIap(String, String, Completer<TransactionExchangeData>)
Validates a Receipt from a successful purchase on an Apple device and applies the payouts to the players account.
Declaration
void RedeemAppleIap(string key, string receipt, Completer<TransactionExchangeData> completer)
Parameters
Type | Name | Description |
---|---|---|
String | key | Identifier of a IAPTransaction |
String | receipt | Receipt data returned from the App Store as a result of a successful purchase. This should be base64 encoded |
Completer<TransactionExchangeData> | completer | The redeem result |
RedeemGoogleIap(String, String, String, Completer<TransactionExchangeData>)
Validates a Receipt from a successful purchase on a Google device and applies the payouts to the players account.
Declaration
void RedeemGoogleIap(string key, string purchaseData, string purchaseDataSignature, Completer<TransactionExchangeData> completer)
Parameters
Type | Name | Description |
---|---|---|
String | key | Identifier of a IAPTransaction |
String | purchaseData | A JSON encoded string returned from a successful in app billing purchase. |
String | purchaseDataSignature | A signature of the PurchaseData returned from a successful in app billing purchase |
Completer<TransactionExchangeData> | completer | The redeem result |