This presentation allows you to understand how StoreKit should be integrated with your application, also gives pieces of information about the Receipt Validation and Status Update Notifications.
be purchased multiple times. • Non-Consumable: Non-consumables are purchased once and do not expire. • Auto-Renewable Subscriptions: Auto-renewable subscriptions to services or content are purchased once and renew automatically on a recurring basis until users decide to cancel. • Non-Renewing Subscriptions: Non-renewing subscriptions to services or content provide access over a limited duration, do not renew automatically, and can be purchased again. Types
a free trial to new subscribers of an auto-renewable subscription. Users are eligible for one introductory price within a subscription group. 2. Promotional Offer: You can offer a discounted or free period of service for auto-renewable using subscription offers. Limited- time, discounted subscription offers can be effective in winning back lapsed subscribers or retaining current subscribers. Offers
at launch, in application(_:didFinishLaunchingWithOptions:), to ensure that it persists during all launches of your app and receives all payment queue notifications.” - Apple StoreKit Integration
to fill the localized parts of your In-App Purchases before submitting for review. That enables you to present the different variations of the metadata as well.
record of the sale of the application and of any in-app purchases made from within the application. You can add receipt validation code to your application or backend to prevent unauthorized copies of your application from running. What is the Receipt?
Validation. Each receipt belongs to an environment. So, the validation must be performed through the related Base URL. • Sandbox POST https://sandbox.itunes.apple.com/verifyReceipt • Production POST https://buy.itunes.apple.com/verifyReceipt Environments
that’s pretty good. But, there are some of tricks to keep in mind while testing. If you do not get those of tricks, you may be confused ▶ What is the Sandbox Environment?
and keep the purchase records consistently. - … to secure your business logic. - … to serve your offers in more accurate way. Server-side Receipt Validation
backend. •Fill the Subscription Status URL field on the App Store Connect. (My Apps > Your App > Subscription Status URL > Save) Server-to-Server Notifications
renewal status. Check auto_renew_status_change_date_ms and auto_renew_status in the JSON response to know the date and time of the last status update and the current renewal status.
renew due to a billing issue. Check is_in_billing_retry_period to know the current retry status of the subscription, and grace_period_expires_date to know the new service expiration date if the subscription is in a billing grace period.