#taisklein

1 messages ยท Page 1 of 1 (latest)

split depotBOT
vapid cedar
#

Hi there. Let's chat in this thread

#

Give me a moment to catch up

crimson pilot
#

The subscription is already schedule to be canceled on 30th marth 2023

vapid cedar
#

Can you share the request ID where you tried to remove the discount?

crimson pilot
#

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

late sage
#

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?

crimson pilot
#

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:

late sage
#

Do you get a similar error if you remove the coupon with the full-screen/old version of the subscription editor?

crimson pilot
#

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

late sage
#

Ah got it

#

Let me try to reproduce this on my end

crimson pilot
#

Ok, thanks!! I also have another question for you from a different client when we solve this one

late sage
#

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

crimson pilot
#

Hmm, I see! I will try in a different computer with the old version of the subscription update on dashboard, wait

late sage
#

I don't think switching computers will help here. You'll likely see the same/new subscription editor on that computer too

crimson pilot
#

Yes, I saw it

#

what do you think I can do?

late sage
#

I'm checking in with a colleague on this right now. Happy to help with the other question in the meantime!

crimson pilot
#

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.

late sage
#

Oh? I see the coupon error message associated with the request ID you shared

crimson pilot
#

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

late sage
#

That request appears to be for the cancellation, not for the attempt to remove the coupon. Is that correct?

crimson pilot
crimson pilot
#

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

late sage
#

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

crimson pilot
#

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?

velvet turtle
crimson pilot
crimson pilot
velvet turtle
#

You can do (a) through the Dashboard, I believe, but (b) will need to be done via the API

crimson pilot
#

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

velvet turtle
#

Can you navigate to the Invoice view and see if this button is there?

crimson pilot
#

Yes!! wait

#

it says "change the invoice's status" or "disable automatically charge"

velvet turtle
#

Change invoice status to void in order to void the Invoice. Then recreate it with the customer and their current payment method

crimson pilot
#

I changed the status to null/void

#

How can I recreate it through the dashboard?

median lotus
#

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?

crimson pilot
#

It works!! Thank you