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.
encPaymentData/callId (from the Visa DCF SDK). Pass that to your server to complete the charge.
Charge the payload on your server
Send it aspaymentMethod.click_to_pay on POST /payment/purchase:
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.

