Alipay+ DocsAlipay+ Docs

inquirePaymentOption()

Use this API to inquire whether the Alipay+ payment method is available and the related data about the Alipay+ payment method, such as the Alipay+ logo, brand name, and promotion information.

You can directly render the payment method page based on the data about the Alipay+ payment method. Alternatively, you can process the data about the Alipay+ payment method and append the processing result to the data about your existing payment methods, and then render the payment method page accordingly.

Syntax

copy
alipayPlus.inquirePaymentOption(params);

Arguments

Name

Type

Description

Required

params

IInquirePaymentOptionParams

An object that contains the parameters for querying the data about the Alipay+ payment method.

M

Returns

Type

Description

Promise<IPaymentOption>

The data about the Alipay+ payment method.

This parameter is returned if the inquiry is successful.

Errors

Type

Description

IErrorCode

The error code about the inquiry.

Sample

copy
alipayPlus.inquirePaymentOption({
  paymentCurrency: 'PHP',
}).then((paymentOption) => {
  console.log(paymentOption);
}, (error) => {
  // handle error
});