Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TVOS] First time after login retun error: Payment completed with error: Error Domain=ASDErrorDomain Code=825 "No transactions in response #2473

Open
vishalhyperspace opened this issue Jun 28, 2023 · 2 comments

Comments

@vishalhyperspace
Copy link

vishalhyperspace commented Jun 28, 2023

Description

The first time when i call requestSubscription method it prompts for Apple Id login and then failed with error and purchaseErrorListener lister method call with error but when I call requestSubscrioption Second time it works fine.

Expected Behavior

It should be open confirmation popup for payment and do success.

Environment:

-"react-native-iap": "^12.10.5"

  • react-native:
  • Platforms (iOS, Android, emulator, simulator, device): Apple TV (Real device)

To Reproduce
Steps to reproduce the behavior:

  1. Install a fresh app
  2. Request for subscription using requestSubscription({sku: sku}) method
  3. Signup for AppleId and it returns an error.

**Here is my code for request subscription: **

requestSubscription({sku: sku}).then(result => { console.log('Subscription rsult-', result); subscriptionReceiptValidate(result); }).catch(error => {console.log("Error==",error)});

Native Log:

[react-native-iap] Purchase Started
2023-06-28 12:54:56.113414+0530 TopCourt-tvOS[341:60954] <SKPaymentQueue: 0x283bb1030>: Payment completed with error: Error Domain=ASDErrorDomain Code=825 "No transactions in response" UserInfo={NSDebugDescription=No transactions in response}
[react-native-iap] Purchase Failed

PurchaseErrorListener method Log:

2023-06-28 12:54:56.122519+0530 TopCourt-tvOS[341:60967] [javascript] 'purchaseErrorListener=====', { message: 'An unknown error occurred',
  code: 'E_UNKNOWN',
  responseCode: '0',
  productId: 'tcgold_a600_1y',
  debugMessage: 'An unknown error occurred' }

Please help me to fix.

@usmanabid94
Copy link

check this link:
https://usmanabid477.medium.com/in-app-purchase-integration-in-react-native-app-96c0acd13649

@vishalhyperspace
Copy link
Author

@usmanabid94 Nope not getting a solution. I have used the same thing as described in the doc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants