This repository was archived by the owner on Jun 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 479
Incoming JSON request does not map to API request when trying to make a payment #299
Comments
Hi there, thanks for reporting this! We haven't seen this issue before. What other dependencies do you have in your project? Have you been able to reproduce this in the sample app? |
I'm integrating PayPal-Android-SDK into a large product (120M+ users). We have lots of modifications and lots of other SDK int that project. Our proguard config file is 900 lines long and I cannot guess which one is responsible for org.json.* obfuscation. |
Looks like you're missing a |
That will be great, thanks |
👍 This will be ready in the next release, coming shortly. |
Fixed in |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This affects:
all modes(Mock/Sandbox/Live)
all PayPal Android SDK releases distributed via maven,
all Android Version and Devices
From sandbox debug console:
"message": "Incoming JSON request does not map to API request",
"information_link": "https://developer.paypal.com/webapps/developer/docs/api/#MALFORMED_REQUEST",
"name": "MALFORMED_REQUEST",
"debug_id": "9a765ba5199cc"
When I looked into JSON request I noticed that the [] symbols (for start and end of array) are doubled like [[ ]].
To fix it add:
-keep class org.json.* { ; }
-keep interface org.json.* { ; }
-keep enum org.json.* { ; }
to your proguard configuration.
The text was updated successfully, but these errors were encountered: