ios - PayPal SDK : PayPal error: Could not find endpoint for live. 戴森

标签 ios objective-c paypal

我正在使用适用于 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/

相关文章:

iphone - 我的 UIView 上已经有渐变,插入新渐变时遇到问题

Paypal 按钮 JS 插件 : Testing in sandbox

ios - iOS 系统类中的 Xcode 6.2 解析问题

iphone - 比较两个数组的问题

objective-c - 在 iOS 上播放实时流中的视频,同时将流保存到磁盘

ios - managedObjectContext 无法识别的选择器发送到实例

iphone - 如何将 UIControl 添加到 UIScrollView contentView?

ios - 分组的 UITableView - 复制设置应用 TableView

PayPal 的自适应支付 API 和分期付款的链式支付

oauth - 是否可以使用 `Log In with PayPal` 代表用户发出 REST api 请求?