Guidelines for using the hosted checkout SDK functions

The core SDK functions are initialize, createPaymentMethod, and confirmIntent. These three functions have success and failure callbacks that are invoked according to their corresponding state. Success and failure callbacks are useful for logging and handling errors.

Callback functions

Callback function

Description

Success callback

(event) => { console.log("Successful callback"), }

Failure callback

(event) => { console.log("Failed callback"), }