#elquick-subscription-update
1 messages · Page 1 of 1 (latest)
elquick-subscription-update
Hello! Can you provide more specific/actionable information like the exact call you are making, the PaymentIntent id pi_123, etc.
Sure, I'm on it!
Source:
API
POST /v1/subscriptions/sub_1Lyx2VDSGSYbnsrwcigGkHCZ
Request POST body:
{
"proration_behavior": "none",
"billing_cycle_anchor": "now",
"trial_end": "now"
}
Response body:
{
"error": {
"code": "subscription_payment_intent_requires_action",
"message": "Payment for this subscription requires additional user action before it can be completed successfully. Payment can be completed using the PaymentIntent associated with subscription.latest_invoice. Additional information is available here: https://stripe.com/docs/billing/subscriptions/overview#requires-action",
"request_log_url": "https://dashboard.stripe.com/acct_1Ksa2EDSGSYbnsrw/logs/req_Z9oAEOjTUY9rkk?t=1669789203",
"type": "card_error"
}
}
That request triggered the 3 events mentioned above
https://dashboard.stripe.com/logs/req_Z9oAEOjTUY9rkk that's the request. You're using an old API version and by default it tries to synchronously pay the invoice for the upgrade and rolls back if it fails
What you need to do is pass https://stripe.com/docs/api/subscriptions/update#update_subscription-payment_behavior
specifically you want payment_behavior: 'allow_incomplete' I think
Awesome! thank you so much, I going to try now.
@still current did that work?
yes! it's working now, I assume I have to change the confirmation flow in order to use latest_invoice instead of pending_setup_intent, right?
yes
perfect! thank you so much!