SDK with global exception #259
Closed
buuhvprojects
started this conversation in
General
Replies: 1 comment
-
|
I managed to solve it. For some reason, when I encapsulate the Mercadopago method the code works. But if I encapsulate my method that calls the paid market, it doesn't work. Code that worked try {
const response = await mercadopago.payment.findById(paymentId);
return response.response as unknown as MercadoPagoNamespace.Payment;
} catch (error) {
return null;
} |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the paid market SDK in version 1.5.16
The SDK is preventing my application from catching an error in case of exception because a global exception is occurring.
Please fix this.
Beta Was this translation helpful? Give feedback.
All reactions