CardPayment Brick or initMercadoPago problem #34
-
initMercadoPago does not reload if I change the publicKey, for example I have several accounts from different MercadoPago countries, the buyer selects an initial currency and the CardPayment component is shown with the document types for that country, but if he then selects another currency from another country, the CardPayment component does not reload and continues showing me the same document types of the previous country, in the initMercadoPago method I am changing the publicKey when changing currency but it does not seem to work and it continues taking the publicKey of the previous currency. First selection: publicKey from an AR MercadoPago account: Changed currency and publicKey for CL MercadoPago account (not changing document types): Expected output if i change the publicKey and currency to CL MercadoPago account; |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
Hi @joxpulp, Thanks for reporting the situation and the work around you found! Regards, |
Beta Was this translation helpful? Give feedback.
-
@joxpulp hello! this issue was fixed in release 0.0.9: https://github.com/mercadopago/sdk-react/releases/tag/v0.0.9 |
Beta Was this translation helpful? Give feedback.
Hi @joxpulp,
Thanks for reporting the situation and the work around you found!
With your report we opened a bug and we're working at it.
When the solution is available, we will report here again
Regards,