我正在尝试将 PayPal MPL 库集成到 iOS 应用程序中。我有一个像这样创建 PayPal 按钮的 UIViewController:
- (void)viewDidLoad
{
[PayPal initializeWithAppID:SANDBOX_API_KEY
forEnvironment:ENV_SANDBOX];
UIButton* paypalButton = [[PayPal getPayPalInst] getPayButtonWithTarget:self andAction:@selector(checkoutPayment) andButtonType:BUTTON_294x43];
[self.view addSubview:paypalButton];
[super viewDidLoad];
}
应用程序在打开 ViewController 后一秒钟左右向控制台打印以下错误消息。
Checking Error********************
Posting Error: 2147483647
DEVELOPER ERROR: This app isn’t using a supported version of the PayPal library.
我在 Google 上找不到有关此错误的任何信息,所以我来了。关于如何修复它的任何想法?
我正在使用xcode 4.5和iOS 6 beta进行测试,以及1_5_5_070_iPhone_DevelopersPackage版本的MPL库(网站上最新的)。
最佳答案
我还注意到你的 info.plist 中必须有“bundle display name” 没有它,您也会收到发布错误
关于ios - Paypal MPL iOS 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11895028/