PayPal error during initialization

I am using 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 get an error message:

 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 a warning with the message: in the title - Error and message body: 500000

This happens when any variables of type CFBundleDisplayName are set in InfoPlist.strings (CFBundleDisplayName1 = "MyApp" or CFBundleDisplayName = "MyApp"). When I remove this from InfoPlist.strings everything works fine!

What does it mean?

+4
source share
1 answer

It seems that PayPal prohibits the identifiers of packages that translated application names.

I had a different CFBundleDisplayName name in my Info.plist than in the translation files. Thus, the PayPal module did the same as you. After running the application once with this configuration, I could no longer run the same package identifier in my test project (containing only a sample PayPal code).

After I deleted the transfer and set the package ID to a new one, the PayPal button started working again.

I think this is a very serious problem in PayPal (for example, some may prohibit the set of ohers app identifiers, even with live apps in the App Store!). I will contact them shortly on this matter.

+6
source

Source: https://habr.com/ru/post/1395876/


All Articles