我们已将IOS SDK(https://github.com/paypal/PayPal-iOS-SDK)实施到我们正在构建的Native IOS应用程序中 - 所有这些应用程序在初始测试(Sandbox和生产)期间都正常工作 - 支付10英镑的GBP工作没有问题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];
}
干杯
答案 0 :(得分:0)
戴夫来自PayPal。
请参阅the issue that you raised at our github repo中的回复。请随意回复,或者如果您愿意,可以在StackOverflow上进行回复。