Interrupt Purchases (terms & conditions acceptance) return E_UNKNOWN error
See original GitHub issueI’m getting an E_UNKNOWN
error when I have my tester set to Interrupt purchase
purchaseErrorSubscription = purchaseErrorListener(
(error: PurchaseError) => {
console.log(error)
},
)
Version of react-native-iap
6.0.2
Version of react-native
0.64.0
Platforms you faced the error (IOS or Android or both?)
IOS
Expected behavior
Get the correct error.
I can see from index.ts
There is E_DEFERRED_PAYMENT',
and E_NOT_ENDED
maybe more adapted
Unless there is a better way to handle this case where the user needs to accept the agreement before pursuing his payement.
Actual behavior
I have a subscription product
I’m getting {"code": "E_UNKNOWN", "debugMessage": "An unknown error occurred", "message": "An unknown error occurred", "productId": "xxxxxxxx", "responseCode": "0"}
Tested environment (Emulator? Real Device?)
Real Device
Steps to reproduce the behavior
Go to Apple Connect -> Users and Access -> Testers then select a user and
Try a payment, once the Apple Agreement is displayed the error
will be thrown
Issue Analytics
- State:
- Created 2 years ago
- Reactions:9
- Comments:9
Top Results From Across the Web
How to detect when SKPaymentTransaction is interrupted?
I am following the steps for testing interrupted in-app purchases, ... even though it's just gearing up to show the Terms & Conditions...
Read more >interrupted purchase cannot be tes… | Apple Developer Forums
The problem is: our app cannot directly run debug, we usually run the app on device and choose 'attach process'. The StoreKit transaction...
Read more >[in_app_purchase] Getting error while completing ... - GitHub
I'm using the latest in_app_purchase plugin (0.3.4+8). According to documentation on iOS all error purchaseses need to be completed by ...
Read more >9 fixes for if your iTunes or App Store purchase could not be ...
Quick Tips; Unknown errors: Why you can't complete your purchase; Step 1. Review your Apple ID account details; Step 2.
Read more >Complete List of Credit Card Declined Codes in 2022 - Kinsta
Explore the full list of credit card declined codes and learn what they mean. Understanding them is crucial for any business owner.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am facing this same issue as well.
This issue blocks my app from passing the Apple review.