【问题标题】:What should be give in URL Scheme and callback url in Square Connect在 Square Connect 中的 URL Scheme 和回调 url 中应该给出什么
【发布时间】: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


    【解决方案1】:

    您可以为您的应用程序选择 url 方案。如果您查看示例应用程序的info.plist,他们使用hellocharge。您需要选择一个用于您的应用程序。

    另请参阅Square Point of Sale iOS guide

    【讨论】:

    • 嗨,先生,我按照您所说的做了,但出现了一条警报“无法执行请求。确保 info.plist 的 LSApplicationqueriesSchemes 中包含“square-commerce-v1”。我包含了“square- info.plist 中的 LSApplicationqueriesSchemes 中的 commerce-v1" 为什么我得到这个?请帮帮我先生
    • 你能分享你的 info.plist 的内容吗?
    • 对不起,先生,我不能。先生,我怀疑 Square Connect 是否为 PayPal 等 IOS 应用程序提供支付网关(不是 POS) 我发现一些链接表明 Square 没有任何移动插件应用程序..这些是我找到的链接:docs.connect.squareup.com/articles/faq-ecommerce-cmssquareup.com/townsquare/payment-api
    • 如果您想使用 Square 进行无卡交易,您可以使用支付 API。
    • 客户要求包括方支付,可能是卡或交易,我们能否实现并将其包含在我的本机 iOS 应用程序中。你能提供我在网络浏览器中工作 Square 的链接..什么信息你需要 plist 来纠正它吗?我会提供给你..
    猜你喜欢
    • 2020-08-21
    • 2023-04-04
    • 1970-01-01
    • 2012-11-19
    • 2021-06-03
    • 2018-01-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多