2.4.0-beta6
0.57.8
Android
When I try to use validateReceiptAndroid, I expected an object like this:
{
"kind": "androidpublisher#subscriptionPurchase",
"startTimeMillis": long,
"expiryTimeMillis": long,
"autoRenewing": boolean
}
validateReceiptAndroid always returns undefined
Real Device (Moto G5 Plus)
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);
Have you go over the readme?
Yes, I followed the steps of this post
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.
Closing this for now since this isn't actually a bug or anything.