Submit the paymentBeta
Add a button to complete checkout.
Check if the session is ready
Before submitting the payment, make sure that all required data is present by checking canConfirm. If you’re missing data, you can see what’s missing by checking confirmationRequirements.
Render a pay button
Call confirm when the customer is ready to complete checkout, such as in response to clicking a pay button.