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.

An unknown or unexpected error has occured - react-native-iap

See original GitHub issue

Getting error after login to apple for in app purchase payment

Err. message - An unknown or unexpected error has occured. Please try again later.

Err.Code - E_UNKNOWN

First I am loading product via product id then calling for payment

async buyplan() { try { await RNIap.prepare(); const products = await RNIap.getProducts([${this.state.productid}]); await RNIap.buyProduct(this.state.productid).then(purchase => { Toast.show(“Payment Successfully Completed”); }).catch(err => { // Toast.show(“Payment Transaction Failed”); console.warn(err); alert(err.message); }) } catch (err) { console.warn(err); } }

simulator screen shot - iphone 6 - 2018-06-12 at 14 59 36

Please help me out from this. Thanks in advance.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:30 (13 by maintainers)

github_iconTop GitHub Comments

7reactions
hyochancommented, Jun 17, 2018

@immohdali Can’t help you more than that. I’ve look into your code remotely more than an hour yesterday and told you how to improve your code in slack. It was not a bug or anything but just your immature coding skill. You need to solve your problem yourself. I can answer to your question and guide your coding like I’ve done yesterday but I won’t edit your code anymore. I’ve done this kind of thing lots of time and I know that it isn’t healthy. Won’t comeback to this issue either. Also, please see the example project and compare with yours too.

1reaction
immohdalicommented, Jun 16, 2018

@dooboolab after 2 hours i will be at mac. if possible i will share you my mac control via TeamViewer. i hope you will be free

skype id - immohdali

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native "An unknown error occurred" by Apple review
I get no error when testing iap in ios but Apple Review gets "An unknown error occurred" when they try to call requestPurchase...
Read more >
requestPurchase return error "An unknown or unexpected ...
I have get error response in the catch An unknown or unexpected error has occurred . Please try again later. but payment successfully....
Read more >
Full Guide How to Handle StoreKit Errors – SKError iOS Apps
This error SKErrordomain 0 return usually happens when an unknown or unexpected error has occurred. Usually, there is no need to take any...
Read more >
Unknown error on getting products react-native-iap - Intecsols
I you are trying to implement react native iap purchase in React Native app without success and facing this error: error code: E_UNKNOWN....
Read more >
Error Handling - RevenueCat
Problem : Indicates a network error occurred during the operation. Resolution: Make sure the device has an internet connection and try again. If...
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