Alipay+ DocsAlipay+ Docs

getAcceptanceMarkLogos

The getAcceptanceMarkLogos API is used by the MPP app to obtain the logos of acceptance marks that are supported by Alipay+ in the specific region. The MPP can then display the logos on the Payment Code page in the User-presented Mode Payment scenario or on the Scan page in the Merchant-presented Mode Payment scenario.

Note: The API may return an empty array when it is called for the first time after the MPP app integrates the SDK.

Method signature

copy
public List<MPPAcceptanceMarkLogo> getAcceptanceMarkLogos(Context context, String scenario, String region);

Request parameters

Name

Type

Length

Description

Required

context

Context

/

The context of the Android activity.

M

scenario

String

/

The payment scenario in which the MPP wants to display the logos. Only the following two values are valid:

  • PAYMENT_SCENARIO_UPM: User-presented Mode Payment scenario
  • PAYMENT_SCENARIO_MPM: Merchant-presented Mode Payment scenario

M

region

String

/

The region where the MPP wants to get the logos. It is recommended to pass in the region if the MPP can obtain the user's location accurately. Otherwise, there is no need to pass in the region, and the user's location can be obtained automatically by the SDK based on the cellular service provider and time zone.

O

Response parameters

Type

Length

Description

Required

List<MPPAcceptanceMarkLogo>

/

The logos that need to be displayed.

O

Sample

copy
List<MPPAcceptanceMarkLogo> logos = AlipayPlusClient.getInstance().getAcceptanceMarkLogos(context, "PAYMENT_SCENARIO_UPM", "PH");