【发布时间】:2017-04-15 23:52:17
【问题描述】:
我想在我的 ios 应用程序中使用 Square Connect 作为支付网关。我对 Square Connect 网站的 Ios 应用程序 URL 方案 以及我的 Info.plist 中应该给出的内容感到困惑文件和我的代码。
我做过不同的类型
NSURL *const callbackURL = [NSURL URLWithString:@"your-url-scheme://myCallback"];
SCCMoney *const amount = [SCCMoney moneyWithAmountCents:100 currencyCode:@"USD" error:NULL];
[SCCAPIRequest setClientID:@"YOUR_CLIENT_ID"];
SCCAPIRequest *request = [
SCCAPIRequest requestWithCallbackURL:callbackURL
amount:amount
userInfoString:nil
merchantID:nil
notes:@"Coffee"
customerID:nil
supportedTenderTypes:SCCAPIRequestTenderTypeAll
clearsDefaultFees:NO
returnAutomaticallyAfterPayment:NO
error:&error
];
Ios app Url scheme如图片中和代码中callback url应该给出什么?
【问题讨论】:
标签: ios objective-c square-connect