Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass data from purchaseProduct to completeTransactions #268

Closed
4 tasks done
gerchicov-bp opened this issue Sep 11, 2017 · 2 comments
Closed
4 tasks done

Pass data from purchaseProduct to completeTransactions #268

gerchicov-bp opened this issue Sep 11, 2017 · 2 comments

Comments

@gerchicov-bp
Copy link

gerchicov-bp commented Sep 11, 2017

Platform

  • iOS

In app purchase type

  • Auto-Renewable Subscription

Environment

  • Sandbox
  • Production

Version

0.10.2

Related issues

#266
#185

Report

Issue summary

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.

@gerchicov-bp gerchicov-bp changed the title Transaction ID is hidden from programmer Pass data from purchaseProduct to completeTransactions Sep 12, 2017
@bizz84
Copy link
Owner

bizz84 commented Oct 11, 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?

@bizz84
Copy link
Owner

bizz84 commented Dec 29, 2017

This issue was not updated in a while so I'm closing it.

@bizz84 bizz84 closed this as completed Dec 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants