Alipay+ DocsAlipay+ Docs

loadAlipayPlus()

Use this API to load the Alipay+ Web/WAP SDK object.

Note: This API exists only in the alipayplus-sdk-acqp-web package.

Syntax

copy
loadAlipayPlus();

Arguments

N/A

Returns

Type

Description

AlipayPlus

The Alipay+ Web/WAP SDK object.

Sample

copy
import { loadAlipayPlus } from 'alipayplus-sdk-acqp-web';

loadAlipayPlus().then((AlipayPlus) => {
  const config = {
    acquirerId: 'acquirerId', // acquirer ID
    merchantId: 'merchantId', // merchant ID
    envType: 'SANDBOX', // Change to 'PROD' for the online.
    language: 'en_US',
  };
  const alipayPlus = AlipayPlus.create(config);
}, (error) => {
  // handle error
});