Getting started with in app purchases React Native (iOS)
In this video I’ll show and explain how to setup in app purchases in React Native for iOS.
To setup in app purchases there are a series of steps that need to happen before you import the library and get going:
– Sign banking and tax agreements
– Setup subscriptions/consumables (known as products) in app store connect
– Set bundle ID In Xcode and enable in app purchase capability
After this you can write the code as shown in this video. Remember when you do the actual requestPurchase/requestSubscription that you use a device!!! and not a simulator since you need to log in with an Apple account to confirm the purchase.
Remember when developing, you’ll be running in Sandbox mode so no money is involved when testing!
verifyReceipt using apple’s API on your own backend:
apple app store connect:
Xem thêm: https://bestvietnamvacations.com/category/giai-tri