Completing a next action for PaymentIntents created with one-off invoices

Invoices will generate PaymentIntents objects automatically and will indicate when the next action is needed. invoice.payment_action_required will be generated when the next action is needed, such as when 3D Secure is required, and the hosted_invoice_url returned in that event contains a button for the customer to complete the payment.

Additional information