Alipay+ DocsAlipay+ Docs

AlipayPlus.create()

Use this API to create an instance of the Alipay+ Web/WAP SDK object.

Syntax

copy
AlipayPlus.create(config);

Arguments

Name

Type

Description

Required

config

IConfig

An object that includes the parameters for setting up the SDK.

M

Returns

Type

Description

AlipayPlus

An instance of the Alipay+ Web/WAP SDK object.

Sample

copy
const alipayPlus = AlipayPlus.create({
  acquirerId: 'acquirerId',
  merchantId: 'merchantId',
  language: 'en_US',
  envType: 'SANDBOX',
});