Error processing payment - Mercado Pago

  • Ulisses Serafim
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 2 months ago #155977 by Ulisses Serafim
Error processing payment - Mercado Pago was created by Ulisses Serafim
Hello Tuan,

I'm using the Mercado Pago payment plugin, and I noticed that the plugin is not sending the last two digits of cents... with this, the status update is denied when validating the payment.

example:
if 60.00 is successful
if 60,70 is denied

the update the problem is in these digits after the comma

Please Log in or Create an account to join the conversation.

  • Ulisses Serafim
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
1 year 2 months ago #156000 by Ulisses Serafim
Replied by Ulisses Serafim on topic Error processing payment - Mercado Pago
problem solved


in the os_mercadopago.php at line 70, I changed the format of the values:

// $item->unit_price = (int) $data;
$item->unit_price = round($data, 2);

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #156007 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Error processing payment - Mercado Pago
Great. Thanks Ulisses for sharing the solution. I'm sorry for being slow on resposne, we are having new year holiday hear now in our country and only come back to work from tomorrow

Regards,

Tuan

Please Log in or Create an account to join the conversation.