Alipay+ DocsAlipay+ Docs

isAlipayPlusSupportedRegion

The isAlipayPlusSupportedRegion API is used by the MPP app to check whether the user is in Alipay+ supported region.

Note: The API may return an incorrect result with the false value in the following conditions:

  • The API is called for the first time after the MPP app integrates the SDK.
  • The API is called for the first time after the MPP app clears the cache.

Method signature

copy
- (BOOL)isAlipayPlusSupportedRegion:(NSString *)region;

Request parameters

Name

Type

Length

Description

Required

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

BOOL

/

Specify whether the user is in Alipay+ supported region.

M

Sample

copy
BOOL isRegionSupported = [[MPPAlipayPlusClient shared] isAlipayPlusSupportedRegion:@"PH"];