I have created Auto renewable products and testing in sandbox environment. My question is I have purchased one product, and If I try to purchase same product with same Apple account it is showing alert as already purchased as expected but I could not able to fetch that transaction details as it is executing failed state in updated transactions. How I can get that purchased details (atleast original receiptID) as we get in Initial transaction.
How to fetch already purchased details of iOS IAP Auto Renewable product
2.1k views Asked by CKT At
3
There are 3 answers
0
Vikas Dadheech
On
You have to implement a mechanism of restoring the purchased products in your app.
For more info about what exactly is restoring purchased products: Restore Purchased Products
To get to the implementation part, you can follow this tutorial: In App Purchase tutorial
The later part of the tutorial will guide you through the implementaiton of restore purchase.
0
Kirish
On
By validating Receipts With the App Store you can able to find which products identifiers are already purchased. There are Cocoapods libraries you can use to find out the purchased products.
- SwiftyStoreKit
- DHAppleReceiptParser
- IAPValidation
I hope it will helps to you.
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in IPHONE
- How to control the volume of an iPhone programmatically in objective-c
- my website crash on safari The site sometimes crashes and I can't recover the crash
- Postal Framework crash in iPhone but runs successfully in simulator
- Xcode 15 building failure when using iphone 15 as simulator, using ios 17
- Images uploaded via Active Storage not displaying in Active Admin or on certain devices
- Any problem with creating provisioning profile with old Iphone?
- Does anyone know how to make iPad layout the same as iPhone's? Size wise the text and overall layout get's smaller when I run the app on the iPad
- Keyboard not appearing when connecting smart card reader to iPhones with type-c port. i.e. iPhone 15/ 15 pro
- Access the list of SIM mobile numbers installed in the iPhone
- Can we produce haptics and record from microphone the haptic sound at the same time on iOS?
- SwiftUI's localized string do not load from main bundle despite using the main bundle identifier (an xcode bug?)
- Cordova iOS only app upload through transport requires WKWatchKitApp
- Amazon s3 video is not played on Iphone
- build getting failed for ios xcode build -flutter app
- "Error when Importing 'mysdk' into iOS Demo App: dyld Library not loaded: @rpath/MQTTClient.framework/MQTTClient"
Related Questions in IN-APP-PURCHASE
- TypeError: _appStoreServerLibrary.SignedDataVerifier is not a constructor node js app-store-server-library
- macOS in-app purchases via dylib - is it possible? alternatives? suggestions?
- StoreKit 2: Custom purchase option isn't recorded
- ios sdk swift : Show in-app app update/install prompt
- purchase errors via 2accounts
- How to handle Apple subscription with serverside verification
- IOS IAP succeed but does not charge the user
- Can't add iOS sandbox test credit cards
- Cannot see free trial in Android/Play store using Flutter in_app_purchase
- Can an iOS app sell user created content with In-App Purchases?
- Flutter in_app_purchase multiple subscriptions
- iOS 17.4 Code=4097 "connection to service named com.apple.storekitd"
- Is there any way to handle promocode in flutter?
- How I can know if the user cancel the subscription from google play store using in_app_purchase Flutter?
- Unity IAP AppleOriginalTransactionID is empty
Related Questions in STOREKIT
- macOS in-app purchases via dylib - is it possible? alternatives? suggestions?
- StoreKit 2: Custom purchase option isn't recorded
- Unable to detect subscription expiration with StoreKit2
- Testing SKPaymentTransactionObserver with StoreKitConfiguration
- StoreKit StoreView restore purchase listener
- Can an iOS app sell user created content with In-App Purchases?
- iOS 17.4 Code=4097 "connection to service named com.apple.storekitd"
- paymentQueue FinishTransaction never gets called after in app purchase
- Handling Empty and Unknown Error Responses when Fetching Products from iTunes Store
- Apple deprecated verifyReceipt, how we check for receipt status now
- Apple StoreKit - Angular
- How to properly request a review for an app?
- Server side misses notifications due to an outage when client buy subscriptions - App Store Server Notifications
- StoreKit2 - handling declined pending transactions
- Install-validation postback is not received
Related Questions in AUTO-RENEWABLE
- Storekit environment shows [Environment: Xcode]
- Preventing Assignment of the Same In-App Purchase Subscription to Multiple User Accounts in an iOS App
- StoreKit configuration file and auto-renewable subscription validation?
- ios cancelling subscription after the user mapped in the app was deleted
- Testing In-app Purchases "Ask to buy" using StoreKit config file in Xcode StoreKit 2
- Is there is a limit for the number of the auto-renewable subscriptions for one subscription group?
- Proper way to check Auto Renewable subscription cancelation (From Apple support), turn off Auto Renewing and change subscription scheme
- How to create a subscription with a different start price?
- Apple In App Purchase, Interrupted purchase in sandbox
- SKProductsRequest returns not country specific prices for Auto-Renewable Subscriptions
- Testing grace period in auto renewal subscription in iOS
- How to create renewable subscription in Google play console
- how to handle in_app_purchase flutter auto renewed subscriptions
- Testing iOS subscriptions upgrade/downgrade on sandbox
- Swift How to handle Auto-renewable Subscription receipt and validation
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
There is two way to get user purchased transaction details:
To know more about difference between refreshing receipt & restore transaction in details, Please check:- SKReceiptRefreshRequest vs restoreCompletedTransactions
In Simply,
Question: How I can get that purchased details (atleast original receiptID) as we get in Initial transaction.
Answer: If you want to verify user with original receiptID every time each time than user SKReceiptRefreshRequest for validating user transaction.
Note: Anytime if you validating user with RestoreCompletedTransactions, Your transactionID will change. Find list of parameter that change while restoreTransaction: https://developer.apple.com/library/content/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html#//apple_ref/doc/uid/TP40010573-CH106-SW1