#Gautam
1 messages · Page 1 of 1 (latest)
Hi
Yes, you can re-confirm it using the API, if you have the payment_method saved.
sub_1N81hGGXlQ7PG1unmse4C4GX -- this is subscription where one of the cycle has failed .. we set the re try schedule ..but that did not work
Hi, what do you mean by "that did not work" exactly?
once payment has failed in cycle (reason bank declined) then we sent the invoice to customer he paid with different card .. but again next month payment has failed then we realize and update the subscription with correct payment method .. and set the re try schedule after 5 days ( my understanding was during re try payment should processed with correct card) .. but I can not see re try
now -- how we trigger the payment for this month
I see the payment was triggered on the 15th this month
You can manually pay the Invoice too: https://stripe.com/docs/api/invoices/pay
Via API
if I will hit this
const invoice = await stripe.invoices.sendInvoice(
'in_1NWHxFGXlQ7PG1un0tpyyjnp'
);
what it will do .. it will retry payment if has not paid
No, that's different. This will send an Invoice email to the customer. But with pay method, Stripe will attempt to charge the customer immediately with the saved PM
const invoice = await stripe.invoices.pay(
'in_1NWHxFGXlQ7PG1un0tpyyjnp'
);
great !!
Yes.
Thanks
Happy to help!