kpay-adyen
v1.1.1
Published
kpay 3ds aisle
Readme
web 端接入 3DS 场景
1、获取 kpay-adyen API
import { createFromAction } from 'kpay-adyen';
import 'kpay-adyen/index.css';2、设置 3ds 弹窗配置
const configuration = {
// API环境 'test' | 'live' | 'live-us' | 'live-au' | 'live-apse' | 'live-in'
environment: "test",
// 客户端key
clientKey: "YOUR_CLIENT_KEY",
// 3ds 弹窗认证资源回调
onAdditionalDetails: (threeDSResult) => {},
// 页面 3ds 弹窗容器id
mount: '#adyen-container'
};3、设置 payInfo 数据,拉起 3ds 弹窗
/** const payInfo = {
* 'authorisationToken': '***',
* 'paymentData': '***',
* 'paymentMethodType': 'scheme',
* 'subtype': 'fingerprint',
* 'token: '***',
* 'type: 'threeDS2',
* 'url: null
*/ }
createFromAction(configuration, payInfo);