You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My current goal is to pass some data from SwiftyStoreKit.purchaseProduct to SwiftyStoreKit.completeTransactions. The data is not related to SwiftyStoreKit and StoreKit. This data is up-to-date during SwiftyStoreKit.purchaseProduct callback and may be out-of-date in SwiftyStoreKit.completeTransactions callback. The data is linked with concrete transaction.
What did you expect to happen
Possibility to somehow pass data from SwiftyStoreKit.purchaseProduct to SwiftyStoreKit.completeTransactions.
What happened instead
The problem is you allow to declare SwiftyStoreKit.completeTransactions once only and it is common for all callbacks.
The text was updated successfully, but these errors were encountered:
gerchicov-bp
changed the title
Transaction ID is hidden from programmer
Pass data from purchaseProduct to completeTransactions
Sep 12, 2017
@gerchicov-bp the purpose of completeTransactions is to register a transaction observer and finish any transactions that may have been completed after the app was closed (StoreKit alerts run on a separate process to your app).
It is not possible to pass data from SwiftyStoreKit.purchaseProduct to SwiftyStoreKit.completeTransactions by design.
What information do you need that is available in purchaseProduct but not in completeTransactions?
Platform
In app purchase type
Environment
Version
0.10.2
Related issues
#266
#185
Report
Issue summary
My current goal is to pass some data from
SwiftyStoreKit.purchaseProduct
toSwiftyStoreKit.completeTransactions
. The data is not related toSwiftyStoreKit
andStoreKit
. This data is up-to-date duringSwiftyStoreKit.purchaseProduct
callback and may be out-of-date inSwiftyStoreKit.completeTransactions
callback. The data is linked with concrete transaction.What did you expect to happen
Possibility to somehow pass data from
SwiftyStoreKit.purchaseProduct
toSwiftyStoreKit.completeTransactions
.What happened instead
The problem is you allow to declare
SwiftyStoreKit.completeTransactions
once only and it is common for all callbacks.The text was updated successfully, but these errors were encountered: