PayPal SDK:PayPal 错误:找不到 live.dyson 的端点

Posted

技术标签:

【中文标题】PayPal SDK:PayPal 错误:找不到 live.dyson 的端点【英文标题】:PayPal SDK: PayPal error: Could not find endpoint for live.dyson 【发布时间】:2014-04-24 09:58:32 【问题描述】:

我正在使用适用于 Iphone 的 PayPal 2.0 SDK。在“PayPalEnvironmentSandbox”或“PayPalEnvironmentNoNetwork”,一切都很完美。

但是当更改为“PayPalEnvironmentProduction”时,我收到了这个非常奇怪的错误,女巫我找不到任何关于它实际含义的纪录片..

我的代码:

- (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 是实时的,调用它时会出现错误:

 [PayPalMobile preconnectWithEnvironment:PayPalEnvironmentNoNetwork];

任何帮助将不胜感激,谢谢

【问题讨论】:

【参考方案1】:

这里是来自 PayPal 的戴夫。

@PiratM,该警告消息具有误导性,不应该出现。请忽略它。 (我们下次更新 SDK 后它不会出现。)

【讨论】:

以上是关于PayPal SDK:PayPal 错误:找不到 live.dyson 的端点的主要内容,如果未能解决你的问题,请参考以下文章

我在使用 paypal checkout-sdk 的沙盒中找不到交易历史记录

找不到资源:Paypal 验证(电子邮件、名字、姓氏)rails

销售数字商品时 Paypal 快递结帐错误

Node.js Paypal sdk:签证卡不起作用

Android Paypal 用户使用 sdk 登录

PayPal iOS SDK 示例应用