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

时间:2014-03-18 15:40:51

标签: ios objective-c paypal

我正在使用PayPal 2.0 SDK for Iphone。在“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已生效,调用此错误时会发生错误:

 [PayPalMobile preconnectWithEnvironment:PayPalEnvironmentNoNetwork];

非常感谢任何帮助,谢谢

1 个答案:

答案 0 :(得分:2)

戴夫来自PayPal。

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