0
我想在我的iOS应用程序中使用方形连接作为支付网关。我很困惑Ios应用程序URL方案在方形连接网站以及在我的Info.plist文件和我的代码中。什么应该给在URL连接方案和回拨网址在Square Connect
我曾在不同类型进行
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应用网址方案给予如PIC和回调URL代码?
嗨,先生,我做了你所说的,但一个警报出现“不能执行请求。确保”square-commerce-v1“包含在info.plist中的LSApplicationqueriesSchemes中。”我包含“square-commerce-v1” info.plist中的LSApplicationqueriesSchemes为什么我得到这个?请帮我先生 –
你可以分享你的info.plist的内容吗? – tristansokol
对不起,先生我can't.Sir我有一个疑问也方形连接是有支付网关(未POS)的iOS应用如PayPal我发现,广场没有针对移动应用的任何插件一些链接.. 这些是我找到的链接: https://docs.connect.squareup.com/articles/faq-ecommerce-cms https://squareup.com/townsquare/payment-api –