简体   繁体   中英

PayPal error when initializing

I use paypal Mobile Payment Libraries for ios (iPhone 5.01 iOS) I cannot initialize PayPal in my application.

After

[PayPal initializeWithAppID:@"APP-80W284485P519543T" forEnvironment:ENV_SANDBOX];

I receive error:

2012-02-11 12:01:11.623 myapp[7281:707] Checking Error********************
2012-02-11 12:01:11.625 myapp[7281:707] Posting Error: 2147483647

And show alert with message: in title - Error, and Body Message : 500000

It occurs when is set any variables like CFBundleDisplayName in InfoPlist.strings (CFBundleDisplayName1 = "MyApp"; or CFBundleDisplayName = "MyApp"). When i remove this from InfoPlist.strings all work fine!

What is this mean?

It looks like PayPal is banning bundle ids which have translated app names.

I have had different CFBundleDisplayName in my Info.plist than in the translation files. This way the PayPal module did exactly the same as you. After running the app one time with this configuration I was not able to run the same bundle id in my test project (containing only the PayPal lib's example code) either anymore.

After I removed the translation and set the bundle id to a new one, the PayPal button started to work again.

I think this is a very serious issue at PayPal (for example some could ban bundle id's of ohers apps, even with live apps in the App Store!). I will contact them soon about this issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM