Add Click to Pay to your page
ImportcreateClickToPayButton and point it at a container element. The SDK renders the Click to Pay button and manages the authentication flow entirely.
Charge the nonce on your server
Send the nonce ascard.nonceData.nonce on POST /payment/purchase, exactly as you would with a hosted-fields nonce:
POST /v1/payment/purchase with your private API key. The response is the standard PaymentResult shape.
Handling the result
If the charge returnsactionRequired, handle it with sdk.handleAction in the browser:
sdk.handleAction handles any out-of-band step — including 3DS challenges that Click to Pay networks may trigger — and resolves to the final PaymentResult.
Availability and prerequisites
Click to Pay availability depends on the cardholder’s issuer enrollment and your configured CyberSource connection. If the shopper has not enrolled their card with the Click to Pay scheme, the button will not appear for that shopper.

