iOS跳转支付宝付款码和扫一扫页面

 

iOS跳转支付宝付款码和扫一扫页面

// 是否支持支付宝
    NSURL * myURL_APP_A = [NSURL URLWithString:@"alipay://"];

    if ([[UIApplication sharedApplication] canOpenURL:myURL_APP_A]) {
        // 跳转付款码
        NSURL * url = [NSURL URLWithString:@"alipay://platformapi/startapp?saId=20000056"];
        [[UIApplication sharedApplication] openURL:url];
         // 跳转扫一扫
         NSURL * url2 = [NSURL URLWithString:@"alipay://platformapi/startapp?saId=10000007"];
         [[UIApplication sharedApplication] openURL:url2];
    }

 

转载于:https://www.cnblogs.com/GJ-ios/p/7479366.html

你可能感兴趣的:(iOS跳转支付宝付款码和扫一扫页面)