[Solved] iOS11 Promoting Your In-App Purchases feature

Hi,
I was wondering which callback is actually called
when i click the promote item in app store.

Is “ProcessPurchase” callback called?

What should i do if i need to send payload to store with “InitiatePurchase”?
I usually call InitiatePurchase with two params(Product, Payload) in normal situation.

Thanks

I will look into this, and keep you updated.

Thanks!

If you initiate a transaction outside the Unity application, no callback will be generated or received. To initiate a purchase, the products would be set up within app store prior. Does this address your question?

Upon additional discussion here, ProcessPurchase will be called if you are using the new iOS Promotion feature that was added in IAP 1.13. So if you start a purchase on the App Store page, it will open your app and the normal IAP process will happen and ProcessPurchase will indeed be called. The instructions for supporting this feature are in the changelog:

Regarding the payload, that is only used for Google Play and not the Apple App Store.