-
Notifications
You must be signed in to change notification settings - Fork 170
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
Subscription upgrades getting automatically canceled immediately after purchasing #1107
Comments
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out! |
and we have enabled pub/sub also |
how are you configuring the SDK @chenna8464 ? Can you share some of the configure code? Without your API key of course 😄 |
this is the initialization of the SDK
and this is where the purchase is happening ` Package? product;
|
and we have the same ticket, this we raised long back and it closed saying that revcat fixed the issue |
@vegaro any update on this? |
@chenna8464 your code looks correct. In that other issue, the UI looks slightly different since it actually shows there was a product change. Without having the user id it's going to be hard to understand what happened. Do you mind sharing an app user id (or the url link to the user page in the dashboard) so we can look into the details of the purchase? You can send a message to support with more details at [email protected] if you prefer not to share here, and post the ticket number when you do. |
@vegaro user id |
Thanks @chenna8464 We have been looking into the receipts of those users and it looks like when we check the purchases with Google, they are already cancelled, with a system initiated cancellation. Is it possible you are purchasing using the wrong test card in the purchase screen? I was looking at [email protected] purchases and that one doesn't have a product change and when RevenueCat gets the purchase, Google indicates it's already canceled, which is odd. |
the plans expired/were cancelled because it has some time limit to expire,
but if you check the webhook that was sent for this user which has price 0.
and it happened for some other users, whose subscriptions expired/cancelled
it is happening In two cases only for android , iOS is working fine in all
cases
1. in the initial payment itself
2. while doing the upgrade
…On Mon, 1 Jul 2024 at 18:31, Cesar de la Vega ***@***.***> wrote:
Thanks @chenna8464 <https://github.com/chenna8464>
We have been looking into the receipts of those users and it looks like
when we check the purchases with Google, they are already cancelled, with a
system initiated cancellation. Is it possible you are purchasing using the
wrong test card in the purchase screen?
image.png (view on web)
<https://github.com/RevenueCat/purchases-flutter/assets/664544/7e1b140e-2769-4bae-9c0f-68425ecb8c55>
I was looking at ***@***.*** purchases and that one
doesn't have a product change and when RevenueCat gets the purchase, Google
indicates it's already canceled, which is odd.
—
Reply to this email directly, view it on GitHub
<#1107 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVI27N65ZF2GUCZFBNM2TUTZKFHLBAVCNFSM6AAAAABKBOBBYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBQGA4DGOJVGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@vegaro sent an email with the reply, but adding the same message here we are using the correct test cards for purchase, check this user [email protected] ( this user did the payment and the upgrade also worked but some users still getting the same error (BILLING ERROR)) the plans expired/were cancelled because it has some time limit to expire,
|
Hi @chenna8464 Been looking into this a bit more and we've realised that what you are seeing is expected for Indian subscriptions. We have a whole blogpost about it, but the tldr; is that India has laws that regulate auto renewing subscriptions that are over 5000 INR so Google immediately cancels this purchases, and sends a notification to our servers with a There's for sure some work to do in our dashboard to make this less confusing, so I will pass that feedback along and hopefully we can add more clarification for Indian subscriptions in our UI. |
Hi @vegaro , understood, now i changed the region to United States(US) to check the payment above 5000INR, by using https://developer.android.com/google/play/billing/test#play-billing-lab now this user have some issues after payment [email protected],
now the issue is. I received a webhook for $14 successfully, but for $134. |
Hi @chenna8464, The webhook for product changes is anticipated to have a $0 price. This is designed to simply notify you of the change. You will subsequently receive a renewal webhook with the updated subscription details, reflecting the correct pricing. For more information about product changes, please refer to our documentation here. |
Hi @vegaro , thanks for the update, and also have a small doubt,
will this be the same behaviour in production as well, when we do payments using real money not in sandbox? |
Hi @chenna8464, |
@vegaro have one more doubt, in the flow INITIAL PURCHASE -- $14 monthly free tail we got two INITIAL PURCHASE events [email protected], can you please check this user and give me some clarity on this. we are stuck on this flow to handle in our BE |
Hi @vegaro any update on this. we stuck on this, can you please give me some info on this |
Hi @chenna8464, |
Environment
flutter doctor
purchases-flutter
:6.29.4
till now we checked in sandbox mode with productions API's basically app was running in beta
Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
Describe the bug
initially, i made a monthly payment of $14 which had a free trial, and then after I made a yearly payment of $134. here the payment has gone through successfully but in the revenue cat, it is showing like below (see screenshot). and sometimes it's happening for initial payment as well.
the main issue is the payment is cancelled due to a billing error, and the webhook is sending the price as
0
Additional context
the code i am using for the upgrade is
if (oldProductId.isNotEmpty && Platform.isAndroid) { purchaserInfo = await Purchases.purchasePackage(product!, googleProductChangeInfo: GoogleProductChangeInfo(oldProductId, prorationMode: GoogleProrationMode.immediateAndChargeFullPrice)); } else { purchaserInfo = await Purchases.purchasePackage(product!); }
The text was updated successfully, but these errors were encountered: