Error in 2Checkout Payment plugin using MXN mexican peso currency Fixed

1

friends

I found a bug in the 2checkout.com payment plugin

the conversion of Mexican pesos MXN is not working.

case: a customer bought a product in my store with a Mexican peso price of 70.00 MXN.

When selecting your payment method, use 2checkout. when completing your order and be directed to the 2checkout portal. the amount in pesos it shows is Current Current (MXN): $ 1413.96

what is happening is that something is not right in the process of this plugin.

on the same page of payment I change the currency to USD and it shows Current Current (USD): $ 70.00 (this amount is generated in my original order using in shop script).

you can see the example I told you using my store, in this order

Status of your order

http://www.midialbum.com/my/order/54/b3632db45372b...

USE THIS CODE TO VIEW THE STATUS OF YOUR ORDER:

PIN: 8028

-----

the order uses Mexican pesos and 2checkout for payment, click on the link, use the PIN and see what happens when you enter to pay 2CO.

obviously do not make any payment.

I just set the example to see that the plugin is not doing something well using the MXN Mexican peso.


with the dollar currency there is no problem

2 comments

  • +1
    Mike Mike Webasyst December 20, 2017 14:58 #

    Will you please try to add line

    'currency_code'       => $order->currency,

    to file wa-plugins/payment/twocheckout/lib/twocheckoutPayment.class.php as shown below

    $form = array(
        'sid'                 => $this->sid,
        'total'               => number_format($order->total, 2, '.', ''),
        'cart_order_id'       => $order->id,
        'card_holder_name'    => $order->billing_address['name'],
        'street_address'      => $order->billing_address['street'],
        'city'                => $order->billing_address['city'],
        'state'               => $order->billing_address['region_name'],
        'zip'                 => $order->billing_address['zip'],
        'country'             => $order->billing_address['country_name'],
        'email'               => $order->contact_email,
        'ship_street_address' => $order->shipping_address['street'],
        'ship_city'           => $order->shipping_address['city'],
        'ship_state'          => $order->shipping_address['region_name'],
        'ship_zip'            => $order->shipping_address['zip'],
        'ship_country'        => $order->shipping_address['country_name'],
        'c_prod'              => "ShopScript5 order",
        'id_type'             => 2,
        'currency_code'       => $order->currency,
    );

    and let us know if this helps avoid the currency conversion error.

  • +1
    Unzion Records Unzion Records December 20, 2017 20:02 #

    Excelent!!!- Fixed!!!

    now runs ok this app 2co. I recommend.

    thanks MIKE.

    Add comment

    To add a comment please sign up or login