我们已将 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/