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 Scan page in the Merchant-presented Mode Payment scenario, or on the Payment Code page in the User-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.
  • Display the acceptance-mark logos according to the following specifications:
    • Logo without background: Height fixed at 128px; width auto-adjusts to the logo. For example, image.pngimage.png
    • Logo with white background: Height fixed at 112px; width auto-adjusts to the logo. For example, image.pngimage.png

Method signature

copy
- (NSArray<MPPAcceptanceMarkLogo *> *)getAcceptanceMarkLogos:(PaymentScenario)scenario withRegion:(NSString *)region;

Request parameters

Name

Type

Length

Description

Required

scenario

NSString

/

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

NSString

/

The region where the MPP wants to get the logos.

It is recommended to specify the user's accurate region.

Note: If you do not specify this parameter, the SDK cannot determine the user's accurate region and falls back to inferring the location from the device's time zone.

O

Response parameters

Type

Length

Description

Required

NSArray<MPPAcceptanceMarkLogo *>

/

The logos that need to be displayed.

O

Sample

copy
NSArray<MPPAcceptanceMarkLogo *> *logos = [[MPPAlipayPlusClient shared] getAcceptanceMarkLogos:@"PAYMENT_SCENARIO_UPM" withRegion:@"PH"];