PayPal error when initializing

萝らか妹 提交于 2019-12-12 12:09:19

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/9238266/paypal-error-when-initializing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!