Antom, leading provider of tailored payment solutions

Integrate the SDK package for Web/WAP

Note: This page has been deprecated and is no longer maintained or updated. Visit https://docs.antom.com/ for the latest content.
This topic covers how to easily integrate the Web/WAP SDK package with npm and CDN methods. Before beginning the integration, ensure that you have completed the following environment preparations:
  • Install npm (Node Package Manager).
  • Properly handle compatibility issues: Provide corresponding polyfills for Internet Explorer and other old browser versions. We recommend that you use babel-preset-env to address browser compatibility issues when you build a project.
  • Use the following recommended browser versions:
  • For mobile browsers:
  • iOS 11 and later.
  • Android 5.0 and later.
  • For computer browsers, use the following recommended versions:
Edge
Lastest 2 versions
Firefox
Lastest 2 versions
Chrome
Lastest 2 versions
Safari
Lastest 2 versions
Opera
Lastest 2 versions
Electron
Lastest 2 versions

Use npm

Input the install command in the command line:
javascript
npm install @alipay/ams-checkout

Use CDN resources

Use the <script> tag in the HTML file:
markup
<script src="https://sdk.marmot-cloud.com/package/ams-checkout/1.47.1/dist/umd/ams-checkout.min.js"></script>