#Shra_1
1 messages · Page 1 of 1 (latest)
Hi, iirc If they didn't paid then the Invoice will remains open and the Sub will remain past_due. But you can try it in Test mode
is it possible to revert it back to actual seats they had earlier, if the payment fails or customer exits out
Um you would need to call the Update to revert it yourself. We don't have such an automatic-revert feature
If you want to charge for an upgrade immediately, pass
proration_behaviorasalways_invoiceto create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you passcreate_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually invoice the customer or usepending_invoice_item_interval.
Probably usecreate_prorationsthen you have some times to collect the payment, and decide to revert back if needed
can i get to know if payment of successful in frontend ?
depends on which components you use on frontend
but it is possible ?
Yes most of the case. ie. if you call confirmPayment on stripe.js, its response should indicate if the payment was successful