cordova-plugin-purchase icon indicating copy to clipboard operation
cordova-plugin-purchase copied to clipboard

How to determine if an iOS Product is elegible for an Introductory Offer

Open mikkimichaelis opened this issue 1 year ago • 3 comments

Capacitor 5 CdvPurhase: ^13.6.0

The Product offers do not indicate elegibility (or even the existance of the offer) as they do for Android.

The only data I can find that refers to the Introductory Offer is in the undocumented Product.raw object.

Note, Introductory offers are working just fine and the purchase process works exactly as expected.

I just can't seem to understand the necessary hooks to provide a UI indicating elegibility for the Introductory Offer.

mikkimichaelis avatar Jul 31 '23 19:07 mikkimichaelis

@mikkimichaelis I know I am late, but this has to be determined using a backend service at your end. Once you determine the offer is applicable you can create a discount payload (additional data) and submit the request.

papiguy avatar Oct 06 '23 05:10 papiguy

Thank you so much for your response on this. I'm finally circling back around and will be focusing on resolving this issue in my code.

Do you have anything that can help me understand this backend service I need?

Thank you so much for your help!

mikkimichaelis avatar Oct 06 '23 14:10 mikkimichaelis

Just in case, using iaptic (https://iaptic.com) service will do this for you.

j3k0 avatar Oct 19 '23 13:10 j3k0