-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
Acknowledge Purchase does not work for Android #1006
Comments
Could someone else share anything about this? I've not experienced this yet. |
Getting same error react-native-iap: 4.4.8
catch block executed most of the time
subscription is done
|
I'm experiencing the same issue. Purchase is done, I can see it in Publisher Console, but then it gets refunded. |
Has anyone found a solution for this? Have some very frustrated clients... |
Have you found the mystery behind this? |
Any update on this issue? |
+++++ |
Hi, I'm getting the same problem and also no clue about it Sentry is reporting: purchaseUpdateSubscription = purchaseUpdatedListener(async purchase => {
const receipt = purchase.transactionReceipt;
if (receipt) {
const platform = Platform.OS === "ios" ? "APP_STORE" : "PLAY_STORE";
const { result, error } = await saveSubscriptionToServer(
purchase,
platform
);
if (!error) {
console.log("subscription", result);
this.props.setSubscription(result);
try {
if (Platform.OS === "ios") {
finishTransactionIOS(purchase.transactionId);
} else if (Platform.OS === "android") {
acknowledgePurchaseAndroid(purchase.purchaseToken);
}
const ackResult = await finishTransaction(purchase);
console.log(ackResult);
} catch (ackErr) {
console.warn("ackErr", ackErr);
Sentry.captureException(ackErr);
}
}
this.setState({ receipt });
}
}); |
Hi, Although the purchase was completed, it was making a refund and I solved it with the following function.
|
Any updates on this? Billing is basically broken for android if you use |
I had the same problem trying to purchase a subscription with
and it works. If a put back |
This has been solved in 7.3.0. This thread is a bit old and doesn't reflect the newest changes. If the issue remains on |
I try to Acknowledge consumable products but it is not working. I'm getting
{"acknowledged":false}
response with receiptI tried two methods according to docs.
v:4.4.8
platform: android
device: real device
and
Errors:
But I can see purchase in my Google Play console and its accepted.
I'm testing my purchases with Google Test Account, and Android docs says:
https://developer.android.com/google/play/billing/billing_library_overview#test_acknowledging_purchase_with_license_testers
Test acknowledging purchase with license testers
For purchases made by license testers, the acknowledgement window is shorter. Instead of three days, purchases are refunded and revoked if they are not acknowledged within five minutes.
After 5 minutes my purchases there (actually I'm trying for 3-4 hours and all purchases there). There is no problem on Google Play side but some things are not consistent.
{"acknowledged":false}
worries meThe text was updated successfully, but these errors were encountered: