Subscription Upgrade Issue- Error: "Something went wrong on our end. Please try again." #2939
Unanswered
Nikhil-MathBud
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I am trying to implement an upgrade subscription plan in my app using CHARGE_PRORATED_PRICE. However, when I attempt to upgrade, the Google payment modal does not open. Instead, I get the following error message:
Error:- "Something went wrong on our end. Please try again."
When logging the error in the catch block, I see:- "Google is indicating that we have some issue connecting to payment."
Interestingly, if I use replacementModeAndroid: 3 //(WITHOUT_PRORATION), it works fine and deducts the full amount instead of a prorated price.
try {
await requestSubscription({
sku: productId,
purchaseTokenAndroid: oldPurchaseToken,
replacementModeAndroid:2, //CHARGE_PRORATED_PRICE
...(offerToken && {
subscriptionOffers: [{
sku: productId,
offerToken}],
}),
});
} catch (error) {
console.error("Error while requesting subscription:", error);
}
Environment:
Screenshots

Beta Was this translation helpful? Give feedback.
All reactions