Parsing a PaymentExpanded is causing a parser error #314
Eduardo Rigamonte (erigamonte)
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys,
I’m developing a Checkout Pro integration, and when using the payment search method, I’m encountering a GSON parsing error. This happens because the Payment class maps the attribute PaymentExpanded > Gateway > Reference as an object, but the MercadoPago backend returns it as a string.
Example of the response:
As a temporary solution, I worked around the issue by overriding the PaymentClient and Payment classes, and changing the expanded attribute from:
from:
to:
Beta Was this translation helpful? Give feedback.
All reactions