#iRaySpace - BWML-subscription pending update
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
could you please provide a subscription id or request id?
๐ happy to help
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
req_QCkhRwvPkaEJE7
I am on test
sub_1L7z3kD3RIZCV3tuhQvIGAvX
Their billing cycle anchor is the same.
the original billing cycle anchor is
I'm taking a look right now
@brittle sierra Taking over here, can you confirm the issue please?
Would like to ask how pending updates work. I believe pending updates are the new values after payment is made.
Am I correct?
Seems that pending updates are applied even the invoice isn't paid on the subscription that I have updated
const updatedSubscription = await stripe.subscriptions.update(existingSubscription.id, {
payment_behavior: 'pending_if_incomplete',
proration_behavior: 'create_prorations',
items: [
{
id: existingSubscription.items.data[0].id,
quantity: existingSubscription.items.data[0].quantity,
price: newStripePrice?.id,
},
],
});
That's correct. I believe the issue here is that you're using collection_method: 'send_invoice'
Let me confirm
Okay. Thanks.
We have some clients who pay to us through our local payment system, that's why we need to use send_invoice.
To accommodate them
If it is not possible, will try another method.
Makes sense, confirming now!
Yep, seems like pending updates won't work with send_invoice subscriptions and instead are just silently applied
Thanks, I guess I have to find my own way.
I think, I need to make a custom payment intent on this one with the computed and will make a handler for the incoming payment intent with a metadata to create a prorated subscription (set as paid)
Why not instead just manually roll the subscription back if it remains unpaid?
How does it work?
Or manually calculate the update costs (https://stripe.com/docs/api/invoices/upcoming), create and send an invoice for that amount. Once paid, then update the subscription
Ohh okay, thanks.
You'd just do an update call on the subscription again, back to its old state
Good luck, np!