minskylab / medusa-payment-mercadopago

A MedusaJS plugin for Mercado Pago, a payment platform in Latin America. It enables merchants to accept payments in their local currency.
MIT License
35 stars 8 forks source link

help to integrate mercadopago plugin #3

Closed ralexale closed 1 year ago

ralexale commented 1 year ago

hello i am trying to integrate the mercado pago plugin to the storefront but i have problems to get the checkout button, when i press the mercado pago option nothing happens and i get the following error

image

if someone could help me I would be very grateful because this is the only payment method for latin america.

Machi3mfl commented 1 year ago

@ralexale Have you been able to solve this? I have the same issue.

ralexale commented 1 year ago

@Machi3mfl yes in the folder @minskylab/medusa-payment-mercadopago/dist/services/mercadopago.js

go to the "createPayment" key and change the payer data in preferences

mercado pago1

also if it does not detect the .env you can pass them, make sure that the back_url is https otherwise MercadoPago will reject the transaction.

notification