WEB JS SDK / Get BindCardPayToken

Get BindCardPayToken

When the consumer clicks the confirmation button created by the merchant, call this function to get BindCardPayToken. Then, use this BindCardPayToken to call the Create Bind Credit Card API to complete the transaction.

ECPay.getBindCardPayToken(callBack(BindCardPayToken, errMsg))

callBack description

The callback function after getBindCardPayToken is completed. For example, if initialization fails, error message received by the callBack.

function (BindCardPayToken, errMsg){}

When run successfully, you can get the BindCardPayToken.

BindCardPayToken String

Valid for 30 minutes.

Example of how to use the getBindCardPayToken

ECPay.getBindCardPayToken( function (BindCardPayToken, errMsg) {
    if (errMsg != null)
    {
        ErrHandle(errMsg);
        return;
    };
});

Copyright © Green World FinTech Service Co., Ltd. All rights reserved.

綠界官方網站