在iphone应用程序中集成PayPal

在iphone应用程序中集成PayPal,iphone,paypal,Iphone,Paypal,我在iPhone应用程序中集成PayPal时遇到了一个问题 我得到了这个错误 开发者错误:您没有有效的PayPal发布的应用程序ID。有关详细信息,请访问www.x.com 我的代码中清楚地提到,我提供了有效的id号,当我运行此代码时,我在中注册iPhone应用程序时检索到了该id号 (void)viewDidLoad{ [super viewDidLoad]; [self.navigationItem setTitle:@"Order Now"]; self.navig

我在iPhone应用程序中集成PayPal时遇到了一个问题

我得到了这个错误

开发者错误:您没有有效的PayPal发布的应用程序ID。有关详细信息,请访问www.x.com

我的代码中清楚地提到,我提供了有效的id号,当我运行此代码时,我在中注册iPhone应用程序时检索到了该id号

(void)viewDidLoad{
    [super viewDidLoad];
    [self.navigationItem setTitle:@"Order Now"];
    self.navigationItem.hidesBackButton=NO;
    PayPal *paypal=[PayPal initializeWithAppID:@"81e6a3986bc10e03e7c4cb7f8856ad8f" forEnvironment:ENV_SANDBOX];UIButton *button1=[[PayPal getInstance]getPayButtonWithTarget:selfandAction:@selector(payWithPayPal)andButtonType:BUTTON_194x37 andButtonText:BUTTON_TEXT_PAY]; [self.view addSubview:button1];
}-(void)payWithPayPal{  PayPal *ppme=[PayPal getInstance]; PayPalPayment *payment=[[PayPal alloc]init]; payment.paymentCurrency=@"USD";
    payment.recipient=@"sa.gail.com";
    payment.paymentType=TYPE_GOODS;
    [ppme checkoutWithPayment:payment];
    [payment release];
}

在沙箱环境中对AppId使用
80W284485P519543T

可能是因为您(引用)“没有有效的贝宝发布的AppId”?似乎您需要自己的API密钥来运行此代码。只要读一下错误。