#eoghanobrien
1 messages · Page 1 of 1 (latest)
Is this a new subscription, or a change to an existing one?
A change to an existing one
To achieve that you can set proration_behavior=always_invoice in your subscription update request:
https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment
Hmm okay, looks like we're using the deprecated prorate: true/false field
In that case, with prorate: true are we actually doing proration_behavior: create_prorations?
Quite possibly, does prorate: true cause invoice items to be created but it doesn't actually create an invoice and send it off?
Exactly, it waits an hour
Oh as in it does create an invoice and that invoice finalizes after an hour? That would be closer to the always_invoice proration behavior
Ah, crap, so how would I invoice and charge immediately?
always_invoice should be the one that creates prorations and charges immediately https://stripe.com/docs/api/subscriptions/update#update_subscription-proration_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I think I phrased my other message confusingly. create_proations will immediately create invoice items about the proration, but those won't get charged until there is another invoice. always_invoice will create those items and then immediately create an invoice and use it to charge the user
okay, are you certain of that? or do I need to make a call to finalize or pay?
Hi, stepping in and taking a look here