question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Interrupt Purchases (terms & conditions acceptance) return E_UNKNOWN error

See original GitHub issue

I’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 image

Try a payment, once the Apple Agreement is displayed the error will be thrown

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:9
  • Comments:9

github_iconTop GitHub Comments

2reactions
HarshitMadhavcommented, Oct 26, 2021

I am facing this same issue as well.

1reaction
Great-hijackcommented, Dec 3, 2021

This issue blocks my app from passing the Apple review.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found