#bumbzor_api

1 messages ¡ Page 1 of 1 (latest)

tiny forgeBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1359154306263286052

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

wide stratus
#

will Stripe allow the update of the payment method on a canceled subscription?

scenic grove
#

Have you tried to do this and encountered an error? What's the use case here? ie, why would you want to do that?

wide stratus
#

I have not tried it yet as I don't have an example sub. Here's a use case.
Custom purchases on December 1 2023, a yearly sub. He then cancels it before December 2024. We are now in April 2025, and the subscription is canceled and also his card is now expired. In our implementation, if we show him the update card functionality, will that actually work on Stripes end? Perhaps he wishes to "reactivate" his subscription. Think of a gym membership where you canceled it, your card expires but now you want to start again and reactivate.

#

This reactivation process is creating a new subscription in Stripe (in our code) but since the card is expired....

scenic grove
#

In our implementation, if we show him the update card functionality, will that actually work on Stripes end?
To what end? The subscription is cancelled, the payment method saved on it no longer matters.
Perhaps he wishes to "reactivate" his subscription.
To make sure we're on the same page, the existing cancelled subscription cannot be reactivated, you need to create a new subscription.

wide stratus
#

Yes we are creating a new one BUT if he updates the payment method on the existing one (the canceled one) then we have the card details to charge him for the new one?

scenic grove
#

You would just collect the card details on the customer (via setup intent) or directly on the new subscription

#

No, you cannot update the default_payment_method on a cancelled subscription

#

I wasn't sure, so i just tested this

#
{
    "error": {
        "doc_url": "https://stripe.com/docs/error-codes/invalid-canceled-subscription-fields",
        "message": "A canceled subscription can only update its cancellation_details.",
        "request_log_url": "https://dashboard.stripe.com/test/logs/req_123456?t=11111111",
        "type": "invalid_request_error"
    }
}
wide stratus
#

got it!

#

ok then let me ask this. When the user reactivates, we send a request to create a new subscription and we set default_payment_method and default_source to the same values/data that existed on the original subscription (the canceled one with. the expired card details). Will this request work, will the subscription be created with the same card info even if it's expired?

scenic grove
#

I think so, but its likely to have the payment declined due to expired card details. You can try it and then work on collecting new payment details after the decline if you like.

#

It might be better to use payment_behavior=default_incomplete and then collect the new payment details from the customer, but thats up to you if you want to try the existing card first