onCreateIntent
Called with the ConfirmationToken when the customer confirms the payment or setup.
Return
CreateIntentResult.Success with client secret, or CreateIntentResult.Failure if an error occurred.
Parameters
confirmationToken
your implementation should:
Send the ConfirmationToken to your server
Create a PaymentIntent or SetupIntent using the server-side API
Return the client secret wrapped in CreateIntentResult.Success