#taisklein
1 messages ยท Page 1 of 1 (latest)
The subscription is already schedule to be canceled on 30th marth 2023
Can you share the request ID where you tried to remove the discount?
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_Y9LpdDg7dhRgna
But this requesId was generated when I clicked on the stripe dashboard button to update the subscription by removing the coupon. But the subscription had already been canceled, I don't know why the call was made again
Our code only schedules the subscription if the subscription status does not change and it is active and the subscription priceId changes (user has upgraded the plan) OR when the subscription status changes from something to active
The status of that subscription is still active. I see the request to cancel the subscription set the cancellation date for March 2023
Can you share the exact steps you took in the dashboard to try to remove the coupon?
Yes!
step one ^
step two (try it now the new version)
step three (remove the coupon)
step 4 (update subscription button)
and then I got this error message:
Do you get a similar error if you remove the coupon with the full-screen/old version of the subscription editor?
I will try it, just a moment please!
and the timestamp does not match to the logs I have of this function that makes the subscription schedule
I can't go back to the old version anymore
Ok, thanks!! I also have another question for you from a different client when we solve this one
Hm, I'm not able to reproduce this on my end. I can remove a coupon from an active subscription that has an end date in the future
Hmm, I see! I will try in a different computer with the old version of the subscription update on dashboard, wait
I don't think switching computers will help here. You'll likely see the same/new subscription editor on that computer too
I'm checking in with a colleague on this right now. Happy to help with the other question in the meantime!
Sorry, I saw here that the requestId I gave you was made due to another purchase by another user and not when I clicked the "update subscription" button in the walkthrough I sent you.
I might not get an update on the coupon issue immediately, so I recommend emailing our support team about this: https://support.stripe.com/?contact=true
Oh? I see the coupon error message associated with the request ID you shared
but even so, I can't remove the coupon, because that user's cancellation schedule call had already been made with the coupon and when I remove it through the dashboard, it says I can't make the call with coupon "". But it was not supposed to make the call again
this is the right requestId
req_vDHHpIGJGPXV2z
That request appears to be for the cancellation, not for the attempt to remove the coupon. Is that correct?
this was the subscription schedule before I try to remove the coupon through the dashboard
yes!
and this is the requestId with the empty coupon parameter: req_boc0gbzTPs3kcm
this is the code
We found our error here, sorry!! thank you for helping
Sorry, not sure I follow. I see the code to update the subscription includes both end_behavior to cancel the subscription, and includes a coupon. Since it includes the coupon, this is the reason why the cancellation call did not remove the coupon
You should still be able to remove the coupon when editing the subscription in the Dashboard though
This is the other issue I have mentioned
"Charge customer invoice: PaymentIntent Boleto cannot be updated or canceled when it has requires_action status. Please wait for payment instructions to expire or for your customer to complete payment. To pay this invoice, please update your payment method and try to charge again."
This user made the purchase of a subscription plan opting for the boleto payment option and then changed the payment method by adding a card through the customer portal.
he didn't pay the invoice for this month's boleto and it expired and he wants to be charged by the card, but he wasn't charged automatically. how to proceed?
I believe you will need to either (a) void the Invoice and create a new one, or (b) change default_payment_method on the Invoice object to the Payment Method ID associated with the Customer's card: https://stripe.com/docs/api/invoices/object#invoice_object-collection_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
This was a flaw in our code, which makes this call to schedule the cancellation and did it again, passing the coupon as empty, so it gave the problem through the dashboard, but it's not an error on your side.
Can I make this through the dashboard?
You can do (a) through the Dashboard, I believe, but (b) will need to be done via the API
Can you show me how to do it? I don't know how to void the Invoice
I can't through the dashboard
it says this "Charge customer invoice: PaymentIntent Boleto cannot be updated or canceled when it has requires_action status. Please wait for payment instructions to expire or for your customer to complete payment. To pay this invoice, please update your payment method and try to charge again."
And its already as "pattern method" the card method of this user
Can you navigate to the Invoice view and see if this button is there?
Yes!! wait
it says "change the invoice's status" or "disable automatically charge"
Change invoice status to void in order to void the Invoice. Then recreate it with the customer and their current payment method
Hi ๐ @velvet turtle had to step away for a bit. There are A LOT of screenshots here so it's hard to read. Can you tell me what you are trying to recreate?
It works!! Thank you