Post

Replies

Boosts

Views

Activity

Is there any way I can get exact offer code used by customer from receipt?
We have implemented apple receipt verification using PHP which is working perfectly fine. Now, I am trying to fetch the exact promo code from the receipt data if used by the customer in-app. I can see offer name from latest_receipt_info[0].offer_code_ref_name. I have implemented the transaction history detail after creating the required JWT GET https://api.storekit.itunes.apple.com/inApps/v1/history/{originalTransactionId} I received the following details after decoding signedTransaction. [transactionId] => 270001159964727 [originalTransactionId] => 270001159964727 [webOrderLineItemId] => 270000507948216 [bundleId] => xxxx [productId] => xxxxx [subscriptionGroupIdentifier] => 20970033 [purchaseDate] => 1659593358000 [originalPurchaseDate] => 1659593358000 [expiresDate] => 1660198158000 [quantity] => 1 [type] => Auto-Renewable Subscription [inAppOwnershipType] => PURCHASED [signedDate] => 1659599990477 [offerType] => 3 [offerIdentifier] => PK_DEV2 [environment] => Production Main Problem: I was assuming to get the exact offer code used by the customer in the offer identifier field. which I am not getting. Is there any way I can get the exact offer code used by the customer from the receipt?
1
0
684
Aug ’22
Apple Subscription Offer Codes do not work when upgrading from Monthly to Yearly Subscriptions
After setting up auto-renewing subscriptions, I’ve hit a snag implementing Offer Codes in my iOS app. The following has been configured: 2 subscriptions(yearly and monthly) setup in App Store Connect under same the subscription group Both subscriptions are at the same level of service and include a 60-day trial period Created 1-year free offer codes under the yearly renewable subscription The offer code is for new, existing, and expired users Observed user experience: The user logs in to the app and subscribes to a monthly renewable subscription The user then navigates to https://apps.apple.com/redeem?ctx=offercodes&id=##########&code=CODE to redeem 1-year free offer Code is accepted and Apple ID authorization is prompted After authorizing the subscription an error is presented stating, “ This offer can’t be redeemed with your current subscription.” Is there something I missed in my configuration or a restriction I’m unaware of? Does the user have to redeem the offer before subscribing?
3
0
1.4k
Aug ’22