#chanlk

1 messages · Page 1 of 1 (latest)

round chasmBOT
green bluff
limber raft
#

like this?

green bluff
#

No you don't create a setup_intent, the resulting subscription will have a pending_setup_intent if it doesn't require immediate payments

limber raft
#

I just discovered that a PaymentIntent is automatically created one hour after the Invoice is generated. Is it possible to create a PaymentIntent immediately? I need to make a payment for the SubscriptionSchedule right away.

green bluff
#

You can listen to invoice.paid event and finalize it. A PaymentIntent will be created once an invoice is finalized and its amount is > 0

limber raft
#

I can provide a subscription ID (sub_1OOy1MKn5c1ZzBSkqhPa6aG7), but its Invoice status is 'draft', and the user has no payment information. Next, I want to complete the payment for this subscription. As a front-end developer, how should I go about completing the payment for this subscription?

green bluff
#

You need to ask your backend engineer to finalize the inovice, and send invoice->payment_intent->client_secret to frontend so that you can render the payment-element

limber raft
#

but the payment_intent is null

#

This brings us back to the initial question.

green bluff
#

is the invoice finalized?

limber raft
#

no, is draft

green bluff
#

As I said, you need to finalize it first