我正在使用适用于 Iphone 的 PayPal 2.0 SDK。在“PayPalEnvironmentSandbox”或“PayPalEnvironmentNoNetwork”,一切都很完美。
但是当更改为“PayPalEnvironmentProduction”时,我收到这个非常奇怪的错误,女巫我找不到任何有关其实际含义的文档..
PayPal SDK:PayPal 错误:找不到 live.dyson 的端点
我的代码:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
[PayPalMobile initializeWithClientIdsForEnvironments:@{PayPalEnvironmentProduction : kPayPalClientId}];
}
在“PayCalssVC”:
-(void)viewWillAppear:(BOOL)animated
{
[PayPalMobile preconnectWithEnvironment:PayPalEnvironmentNoNetwork];
}
-(void)payPressed
{
NSDecimalNumber *amount = [[NSDecimalNumber alloc] initWithString:[User getLoggedInUser].priceOfNewTone];
PayPalPayment *payMant = [[PayPalPayment alloc]init];
payMant.amount = amount;
payMant.intent = PayPalPaymentIntentSale;
payMant.currencyCode = @"ILS";
payMant.shortDescription = @"Song Distribution";
if (!payMant.processable) {
}
_payPalConfig.acceptCreditCards = self.acceptCreditCards;
PayPalPaymentViewController *paymentViewController = [[PayPalPaymentViewController alloc] initWithPayment:payMant
configuration:_payPalConfig
delegate:self];
[self presentViewController:paymentViewController animated:YES completion:nil];
}
我的 payClint ID 处于事件状态,调用此 ID 时会发生错误:
[PayPalMobile preconnectWithEnvironment:PayPalEnvironmentNoNetwork];
任何帮助将不胜感激,谢谢
最佳答案
这里是 PayPal 的 Dave。
@PiratM,该警告消息具有误导性,不应该出现。请忽略它。 (下次更新 SDK 后它将不会出现。)
关于ios - PayPal SDK : PayPal error: Could not find endpoint for live. 戴森,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22484138/