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
- (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:
| M |
region | NSString | / | 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 time zone. | O |
Response parameters
Type | Length | Description | Required |
NSArray<MPPAcceptanceMarkLogo *> | / | The logos that need to be displayed. | O |
Sample
NSArray<MPPAcceptanceMarkLogo *> *logos = [[MPPAlipayPlusClient shared] getAcceptanceMarkLogos:@"PAYMENT_SCENARIO_UPM" withRegion:@"PH"];