Skip to main content

Overview

One call collects the card securely, runs 3D Secure, and authorizes. It resolves once with the final result, so it is safe to call a single time per confirm.

confirmPayment(options)

billingDetails

Result and error handling

confirmPayment resolves with a typed status. Switch on result.status (the enum value), not on the wording of any message. Message text can be reworded in any release.

result.error

Every non-successful result carries result.error. It is also passed to the optional onError callback in the confirmPayment options. Branch on error.type; error.message is for your logs and can change between releases. Customer-facing text is always owned by the SDK and never repeats server or processor messages.

result.receipt

Returned on SUCCEEDED. Fields marked optional are present only when the processor returns them.