createIntentCallback
Parameters
callback
Called when the customer confirms the payment or setup. Only used when presentWithIntentConfiguration is called for a deferred flow.
Parameters
callback
Called with the ConfirmationToken when the customer confirms the payment or setup. Use this for payment confirmation workflows where the SDK generates ConfirmationTokens and then continues to confirm the intent.
The callback should process the ConfirmationToken on the server and return a CreateIntentResult with the client secret.
Throws
if CreateIntentCallback is already set. Callbacks are mutually exclusive - only one should be configured.