offer code for auto-renew subscription

We would like to provide auto-renew subscription in our app and we have these questions:

  • when provide offer codes for auto-renewable subscriptions using presentCodeRedemptionSheet() to let the user enter redeem code
  1. is it ok we put the redeem code in clipboard so that user just need to paste to enter ?
  2. we should present a screen that let user to choose which duration to subscribe, so that we can provide proper redeem code for user to use in system redeem sheet (call out by presentCodeRedemptionSheet()), am I right ?
  3. if user apply the redeem code, the system redeem sheet will emit the resulting transaction as if purchase the corresponding subscription by in-app purchase, am I right ?

P.S. As we can't test redeem an offer code for an auto-renewable subscription in sandbox, so we don't know the exact flow of it and need to ask in forum.

@ATMooee, it sounds like you want control over the offer and want to provide the user the code directly in the app vs external distribution. I might recommend promotional offers instead, as this will allow you to directly control the offer in the app without the user needing to paste a code or anything like that. https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/subscriptions_and_offers/implementing_promotional_offers_in_your_app

We do first decide to use promotion offer, but that only for existing subscriber. But our offer need to provide for new subscriber too. So need to use offer code.

In fact, what we suppose to offer is 1. for new subscriber (exclude certain user group say group A users - note: they are new subscriber), will has free trial and then normal subscription price. 2. for group A users, if within promotion period, will has discounted subscription price, otherwise will treat as new subscriber that has free trial and then normal subscription price. Base on this offer requirement, we choose to use introductory offer + offer code. However, as offer code can't test in sandbox and so we are not sure what is the exact flow of it and our implementation idea is work. That's why ask here. We do think about fire DTS and ask our question there, but it requires a project ready to illustrate the issue which is not suitable for our question.

I found this Apple video and that answer my questions: https://developer.apple.com/videos/play/tech-talks/110150/

offer code for auto-renew subscription
 
 
Q