ios - PayPal - IOS SDK - 实时生产环境通信错误

标签 ios paypal

我们已将 IOS SDK ( https://github.com/paypal/PayPal-iOS-SDK ) 实现到我们正在构建的 native 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];
}

干杯

最佳答案

来自 PayPal 的 Dave。

请参阅我在 the issue that you raised at our github repo 中的回复.如果您愿意,请随意在那边或 StackOverflow 上轮流回应。

关于ios - PayPal - IOS SDK - 实时生产环境通信错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20247092/

相关文章:

ios - 如何从没有扩展名的文件加载图像到 UIImage

php - 多重条件下的重力形式支付

paypal - 拆分付款 paypal 的问题(自适应付款受到限制)

php - 缺少必填字段。 PHP Paypal REST API

android - 移动支付库转账问题

ios - 将变量放入 UIAlertView - Swift

objective-c - UITableView 具有来自服务器的多维数组数据

ios - -endEditing 与条件语句在关闭键盘时的性能

ios - 多个目标的 Assets 目录问题

ruby-on-rails - 如何使用 Paypal 自适应支付 SDK?