Get cookie for credit card payment
Introduction
For credit card payments (payWayCode=10001), the front-end page needs to obtain cookies and upload them when creating an order.
Usage Instructions
Overview
ACHRampRiskSDK is a JavaScript SDK designed to integrate risk management and security features, facilitating the use of risk data and cookies in web applications.
Download: Click here
Installation
Download the SDK file and add it to your project. You can place the achramp-risk-sdk.min.js
file in the js
folder of your project.
<script src="path/to/your/js/achramp-risk-sdk.min.js"></script>
Usage Instructions
Get channelCookie
You can call the getChannelCookie
method to retrieve the channelCookie:
ACHRampRiskSDK.getChannelCookie()
.then((channelCookie) => {
console.log("channelCookie:", channelCookie);
})
.catch((error) => {
console.error("Failed to get channelCookie:", error);
});
Get Cookie
You can retrieve cookies by calling the getCookie
method:
ACHRampRiskSDK.getCookie()
.then((cookie) => {
console.log("Cookie:", cookie);
})
.catch((error) => {
console.error("Failed to get Cookie:", error);
});
Updated about 2 months ago