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

validateReceiptAndroid always returns undefined #393

Closed
ramondelmondo opened this issue Feb 5, 2019 · 4 comments
Closed

validateReceiptAndroid always returns undefined #393

ramondelmondo opened this issue Feb 5, 2019 · 4 comments
Labels
🤖 android Related to android 🙏 help wanted Extra attention is needed

Comments

@ramondelmondo
Copy link

Version of react-native-iap

2.4.0-beta6

Version of react-native

0.57.8

Platforms you faced the error (IOS or Android or both?)

Android

Expected behavior

When I try to use validateReceiptAndroid, I expected an object like this:
{
"kind": "androidpublisher#subscriptionPurchase",
"startTimeMillis": long,
"expiryTimeMillis": long,
"autoRenewing": boolean
}

Actual behavior

validateReceiptAndroid always returns undefined

Tested environment (Emulator? Real Device?)

Real Device (Moto G5 Plus)

Steps to reproduce the behavior

let accessToken = "460530446560-9ueadkhvjrh1rh93roaso56fnu49ir78.apps.googleusercontent.com"; (clientId OAuth 2.0 from google api)
const purchase = await RNIap.buySubscription(itemSubs[sku]);
let decodedReceipt = await RNIap.validateReceiptAndroid('com.ourPackage', purchase.productId, purchase.purchaseToken, accessToken, true);

@hyochan hyochan added 🙏 help wanted Extra attention is needed 🤖 android Related to android ❓ question Further information is requested labels Feb 6, 2019
@hyochan
Copy link
Member

hyochan commented Feb 6, 2019

Have you go over the readme?

@ramondelmondo
Copy link
Author

Yes, I followed the steps of this post

@hyochan
Copy link
Member

hyochan commented Mar 14, 2019

There is a nice post written in Korean about this. I'll try to translate this after the confirm made by the author. Hope you could use the google translation beforehand.

@hyochan hyochan added surprising 🏃🏻‍♀️ in progress Currently working on and removed ❓ question Further information is requested surprising labels Mar 14, 2019
@hyochan
Copy link
Member

hyochan commented Mar 14, 2019

Closing this for now since this isn't actually a bug or anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 android Related to android 🙏 help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants