【问题标题】:PayPal - IOS SDK - Live production env communications errorPayPal - IOS SDK - 实时生产环境通信错误
【发布时间】:2013-12-13 08:49:37
【问题描述】:

我们已将 IOS SDK (https://github.com/paypal/PayPal-iOS-SDK) 实施到我们正在构建的本机 IOS 应用程序中 - 在初始测试期间一切正常(沙盒和生产) - 以英镑支付 10 便士在现场没有问题11月5日生产环境。

作为应用程序最终测试的一部分,今天再次检查了生产环境交易,尽管我们可以使用真实的 PayPal 帐户登录 - 付款失败并显示错误 -

  'Were sorry There was a problem communicating with the paypal servers.  Please try again.'  

没有似乎相关的日志错误,只有这些 -

 2013-11-27 15:51:32.528 GetPTFit[2181:60b] nested push animation can result in corrupted navigation bar
 2013-11-27 15:51:32.893 GetPTFit[2181:60b] Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted. 

奇怪 - 有没有人经历过类似的事情并且知道如何解决!?

如果有帮助,这是我的付款方式 -

- (IBAction)pay {

// Remove our last completed payment, just for demo purposes.
self.completedPayment = nil;

PayPalPayment *payment = [[PayPalPayment alloc] init];
payment.amount = [[NSDecimalNumber alloc] initWithString:self.shopObject.shopIPrice];
payment.currencyCode = @"GBP";
payment.shortDescription = self.shopObject.shopITitle;


if (!payment.processable) {
    // This particular payment will always be processable. If, for
    // example, the amount was negative or the shortDescription was
    // empty, this payment wouldn't be processable, and you'd want
    // to handle that here.
}

// Any customer identifier that you have will work here. Do NOT use a device- or
// hardware-based identifier.
NSString *customerId = @"GetPTFit";

// Set the environment:
// - For live charges, use PayPalEnvironmentProduction (default).
// - To use the PayPal sandbox, use PayPalEnvironmentSandbox.
// - For testing, use PayPalEnvironmentNoNetwork.



[PayPalPaymentViewController setEnvironment:PayPalEnvironmentProduction];

PayPalPaymentViewController *paymentViewController = [[PayPalPaymentViewController alloc] initWithClientId:kPayPalClientId
                                                                                             receiverEmail:kPayPalReceiverEmail
                                                                                                   payerId:customerId
                                                                                                   payment:payment
                                                                                               delegate:self];
paymentViewController.hideCreditCardButton = !self.acceptCreditCards;
// Setting the languageOrLocale property is optional.
//
// If you do not set languageOrLocale, then the PayPalPaymentViewController will present
// its user interface according to the device's current language setting.
//
// Setting languageOrLocale to a particular language (e.g., @"es" for Spanish) or
// locale (e.g., @"es_MX" for Mexican Spanish) forces the PayPalPaymentViewController
// to use that language/locale.
//
// For full details, including a list of available languages and locales, see PayPalPaymentViewController.h.
paymentViewController.languageOrLocale = @"en";

[self presentViewController:paymentViewController animated:YES completion:nil];
}

干杯

【问题讨论】:

    标签: ios paypal


    【解决方案1】:

    这里是来自 PayPal 的戴夫。

    请在the issue that you raised at our github repo 中查看我的回复。如果您愿意,请随时在此处轮流回复,或者在 StackOverflow 上回复。

    【讨论】:

    • 嗨戴夫 - 感谢您的评论 - 我刚刚更新了回购日志 - 我认为这可能是由于我们的测试帐户上的借记卡无效 - 在这种情况下,错误没有意义 -但它解释了这个问题 - 我今天测试了两次,都运行良好..
    猜你喜欢
    • 2013-02-23
    • 2012-11-23
    • 1970-01-01
    • 2015-02-13
    • 2016-02-17
    • 2014-07-22
    • 2021-07-04
    • 2018-08-21
    • 1970-01-01
    相关资源
    最近更新 更多