Difference between revisions of "Event.TRANSACTION"
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2012.2.2<br/> | + | <languages /> |
− | '''Value:''' transaction<br/> | + | '''<translate>Available since</translate>:''' Gideros 2012.2.2<br/> |
− | === | + | '''<translate>Value</translate>:''' transaction<br/> |
− | This event is dispatched when a transaction is updated. The event listener should process all successful transactions, unlock the functionality purchased by the user, and then finish the transaction by calling | + | '''<translate>Defined by</translate>:''' [[Special:MyLanguage/StoreKit|StoreKit]]<br/> |
− | === Parameters === | + | === <translate>Descriptio</translate>n === |
− | '''errorCode''': (number) error code if the request failed to execute and event.transaction.state is set to StoreKit.FAILED<br/> | + | <translate>This event is dispatched when a transaction is updated. The event listener should process all successful transactions, unlock the functionality purchased by the user, and then finish the transaction by calling [[Special:MyLanguage/StoreKit:finishTransaction|StoreKit:finishTransaction]] method.</translate> |
− | '''errorDescription''': (string) error description if the request failed to execute and event.transaction.state is set to StoreKit.FAILED<br/> | + | === <translate>Parameters</translate> === |
− | '''payment.productIdentifier''': (string) product identifier for this transaction<br/> | + | '''errorCode''': (number) <translate>error code if the request failed to execute and event.transaction.state is set to StoreKit.FAILED</translate><br/> |
− | '''payment.quantity''': (number) number of items the user wants to purchase<br/> | + | '''errorDescription''': (string) <translate>error description if the request failed to execute and event.transaction.state is set to StoreKit.FAILED</translate><br/> |
− | '''transaction.state''': (string) current state of the transaction<br/> | + | '''payment.productIdentifier''': (string) <translate>product identifier for this transaction</translate><br/> |
− | '''transaction.identifier''': (string) string that uniquely identifies a successful payment transaction<br/> | + | '''payment.quantity''': (number) <translate>number of items the user wants to purchase</translate><br/> |
− | '''transaction.receipt''': (string) signed receipt that records all information about a successful payment transaction<br/> | + | '''transaction.state''': (string) <translate>current state of the transaction</translate><br/> |
− | '''transaction.date''': (string) date the transaction was added to the App Store’s payment queue<br/> | + | '''transaction.identifier''': (string) <translate>string that uniquely identifies a successful payment transaction</translate><br/> |
− | '''originalTransaction.identifier''': (string) identifier of original transaction<br/> | + | '''transaction.receipt''': (string) <translate>signed receipt that records all information about a successful payment transaction</translate><br/> |
− | '''originalTransaction.date''': (string) date of the original transaction<br/> | + | '''transaction.date''': (string) <translate>date the transaction was added to the App Store’s payment queue</translate><br/> |
+ | '''originalTransaction.identifier''': (string) <translate>identifier of original transaction</translate><br/> | ||
+ | '''originalTransaction.date''': (string) <translate>date of the original transaction</translate><br/> |
Latest revision as of 09:58, 3 September 2018
Available since: Gideros 2012.2.2
Value: transaction
Defined by: StoreKit
Description
This event is dispatched when a transaction is updated. The event listener should process all successful transactions, unlock the functionality purchased by the user, and then finish the transaction by calling StoreKit:finishTransaction method.
Parameters
errorCode: (number) error code if the request failed to execute and event.transaction.state is set to StoreKit.FAILED
errorDescription: (string) error description if the request failed to execute and event.transaction.state is set to StoreKit.FAILED
payment.productIdentifier: (string) product identifier for this transaction
payment.quantity: (number) number of items the user wants to purchase
transaction.state: (string) current state of the transaction
transaction.identifier: (string) string that uniquely identifies a successful payment transaction
transaction.receipt: (string) signed receipt that records all information about a successful payment transaction
transaction.date: (string) date the transaction was added to the App Store’s payment queue
originalTransaction.identifier: (string) identifier of original transaction
originalTransaction.date: (string) date of the original transaction