#Shra_1

1 messages · Page 1 of 1 (latest)

fair knotBOT
void lake
#

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

mental frost
#

is it possible to revert it back to actual seats they had earlier, if the payment fails or customer exits out

void lake
#

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_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_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 use pending_invoice_item_interval.
Probably use create_prorations then you have some times to collect the payment, and decide to revert back if needed

mental frost
#

can i get to know if payment of successful in frontend ?

void lake
#

depends on which components you use on frontend

mental frost
#

but it is possible ?

void lake
#

Yes most of the case. ie. if you call confirmPayment on stripe.js, its response should indicate if the payment was successful