问题描述
我将Paypal移动支付库用于ios (iPhone 5.01 iOS)我无法在应用程序中初始化PayPal.
I use paypal Mobile Payment Libraries for ios (iPhone 5.01 iOS)I cannot initialize PayPal in my application.
之后
[PayPal initializeWithAppID:@"APP-80W284485P519543T" forEnvironment:ENV_SANDBOX];
我收到错误消息:
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
并显示带有消息的警报:标题-错误,并且正文消息:500000
And show alert with message: in title - Error, and Body Message : 500000
在InfoPlist.strings中设置任何变量(如CFBundleDisplayName)(CFBundleDisplayName1 ="MyApp";或CFBundleDisplayName ="MyApp")时,会发生这种情况.当我从InfoPlist.strings中删除此文件时,一切正常!
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!
这是什么意思?
推荐答案
贝宝(PayPal)似乎禁止翻译了应用名称的捆绑包ID.
It looks like PayPal is banning bundle ids which have translated app names.
我的Info.plist中的译文与翻译文件中的CFBundleDisplayName有所不同.这样,PayPal模块的功能与您完全相同.使用这种配置运行应用程序一次后,我再也无法在测试项目中运行相同的包ID(仅包含PayPal lib的示例代码).
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.
我删除翻译并将包ID设置为新的包ID后,贝宝(PayPal)按钮再次开始工作.
After I removed the translation and set the bundle id to a new one, the PayPal button started to work again.
我认为这在PayPal上是一个非常严重的问题(例如,某些用户可能会禁止ohers应用程序的捆绑销售ID,即使是App Store中的实时应用程序也是如此!).关于这个问题,我会尽快与他们联系.
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.
这篇关于初始化时出现PayPal错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!