【问题标题】:Phonegap(ios): can not return to site after paypal paymentPhonegap(ios):paypal付款后无法返回网站
【发布时间】:2014-04-23 17:02:06
【问题描述】:

我正在使用 phonegap 2.9 为 Android 和 iOS 开发一个应用程序。我已经使用应用内浏览器实现了贝宝付款流程,在 android 上一切正常,但在 iOS 中,付款完成后出现一个小问题,当它应该在成功页面上重定向时,它显示“加载错误”并且无法返回成功页面。

我没有为商家账户设置任何自动退货网址。我也尝试设置它,但在 iOS 上仍然存在同样的问题

相同的脚本在 Android 应用上运行良好

服务器上发送的数据是:

$config = array(
             'cmd' => '_xclick', 
             'business' => $seller['paypal_email'], 
             'return' => $success_url , 
             'undefined_quantity' => 0, 
             'item_name' => $item_list, 
             'item_number' => '#some number#', 
             'notify_url' => $notify_url, 
             'currency_code' => 'USD', 
             'amount' => $order_total,
             'no_shipping' => 1,
             'custom' => $order_id, 
             'cancel_return' => $failure_url
           );

【问题讨论】:

    标签: ios cordova paypal return


    【解决方案1】:

    2.0 PayPal Mobile SDK 有一个 PayPal Cordova 插件。不确定它是否能满足您的需求,但欢迎您查看。不过它需要 Phonegap 3.0 ...

    https://github.com/paypal/paypal-cordova-plugin

    【讨论】:

      【解决方案2】:

      解决了。实际上这是因为我的项目设置是为 Xcode 4 完成的,最近我将 XCode 更新为 5,所以出现了某种冲突。当我为 Xcode 5 重新配置我的项目时,问题自动解决了。

      【讨论】:

        猜你喜欢
        • 2015-10-17
        • 1970-01-01
        • 2016-10-12
        • 1970-01-01
        • 2012-01-01
        • 2011-02-08
        • 2012-10-11
        • 2010-12-03
        • 2016-11-16
        相关资源
        最近更新 更多