Alipay+ DocsAlipay+ Docs

processOrderWithPaymentResult

The processOrderWithPaymentResult API is used by the ACQP app to resolve a redirect URL to obtain the payment result returned by the MPP app. The payment result is then returned to the ACQP in the callback of the showPaymentSheet API.

Before calling the processOrderWithPaymentResult API, you need to call the canProcessOrderWithPaymentResult API to check if the redirect URL can be processed by the SDK.

Note: Currently, only the Alipay app returns the payment result in a redirect URL.

Method signature

copy
@Interface AlipayPlusClient:NSObject
- (void)processOrderWithPaymentResult:(NSURL *)resultUrl;
@end

Request parameters

Name

Type

Length

Description

Required

resultUrl

NSURL

/

The redirect URL that contains payment result information.

M

Response parameters

N/A

Sample

copy
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
    if ([[AlipayPlusClient shared] canProcessOrderWithPaymentResult:url]) {
        [[AlipayPlusClient shared] processOrderWithPaymentResult:url];
    }
    return YES;
}