ios - 如何使用 Paypal 上线

标签 ios paypal

<分区>


想改进这个问题吗? 通过 editing this post 添加细节并澄清问题.

关闭 9 年前

我已经在沙盒中解决了 PayPal。但它在 LIVE 模式下没有变化。我已将沙盒 APP ID 和 CLIENT ID 更改为 LIVE。但是我在响应中得到了环境模拟。谁能帮我解决这个问题。

我已经设置了环境-> self.environment=PayPalEnvironmentProduction;

mean ->
{

 client =   
 {

    environment = mock;
    "Paypal" = "2.0.1";
    platform = iOS;
    "product_name" = "PayPal iOS SDK";
};
response =     {
    "create_time" = "2014-03-25T10:44:43Z";
    id = "PAY-6RV70583SB702805EKEYSZ6Y";
    intent = sale;
    state = approved;
};
"response_type" = payment;
}

请告诉我为什么环境没有从 mock 变为 live。

最佳答案

将环境从 PayPalEnvironmentSandbox 更改为 PayPalEnvironmentProduction,然后重试。您还需要使用 live 更改您的 ClientID。沙盒 ClientID 和 live ClientID 不同。

[PayPalPaymentViewController setEnvironment:PayPalEnvironmentSandbox]; // Sandbox mode

[PayPalPaymentViewController setEnvironment:PayPalEnvironmentProduction]; // Live mode

注意:对于在线模式,您需要真实的paypal账户进行交易

要获取Sandbox ClientIDlive ClientID,请查看下面的快照,


image 1
enter image description here

更多引用,请浏览PayPal iOS SDK README

关于ios - 如何使用 Paypal 上线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22626091/

上一篇:python - Paypal 批量付款 - Python - 访问被拒绝

下一篇:使用 scala 的 play 框架中的 PayPal 依赖项

相关文章:

ios - 2016-10-20T13 的日期格式 :01:47. 317

paypal - 使用 paypal api 进行交易操作

ios - 如何使用查询从 CouchBaseLite Mobile 中查找数据?

ios - 即使删除 CKSubscription 并读取它们后,CloudKit 也会发送多个推送通知

asp.net-web-api - Paypal :IPN 监听器未收到 IPN 消息

java - 在使用 PayPal 支付的 Gwt 项目中,我退出了页面,所以我失去了登录名

paypal - 在多卖家市场设置中跟踪 Paypal 付款

php - Ipn Paypal curl_setopt

ios - 如何解决 Xcode 10 beta 中的错误 "linker command failed with exit code 1 (use -v to see invocation) "?

c++ - 如何在 Swift for iOS 中使用 C++ 代码