Integrate the SDK package for Web/WAP
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:
Use npm
Input the install command in the command line:
copy
npm install @alipay/ams-checkout
Use CDN resources
Use the <script> tag in the HTML file:
copy
<script src="https://sdk.marmot-cloud.com/package/ams-checkout/1.43.0/dist/umd/ams-checkout.min.js"></script>