Payment gateway using defalt woocommerce currency and not the order currency
-
Hi Oscar,
My payment gateway is not making the transaction with the right currency.. for example I have a product with two prices: $20.000COP and $20USD (is not the same ammount) and even if user is making the purchase in USD currency and he is located in United States the payment gateway process the purchase in COP, in my example I only receive $20COP (this is nothing) when should be $20USD…
The gateway do accepts payments in differents currencies including USD..I assume gateway plugin works with the default woocommerce currency (‘currency’ => get_option(‘woocommerce_currency’)…
How can I change it to make it work correctly with your plugin?
Your plugin store the price of product (either COP or USD) in any custom variable?
I leave here some extract of payment gateway plugin code:
$paymentData = array( 'unsigned_field_names' => '', 'transaction_type' => 'authorization', 'payment_method' => 'card', 'transaction_uuid' => uniqid( $order->order_key ), 'signed_date_time' => gmdate("Y-m-d\TH:i:s\Z", strtotime( $order->order_date )), 'locale' => $currentLanguage, 'currency' => get_option('woocommerce_currency'), 'reference_number' => $order->id, 'amount' => $order->order_total, 'order_id' => $order->order_key, 'description' => trim($description, ', '), 'bill_to_email' => $order->billing_email, 'bill_to_surname' => $order->billing_last_name, 'bill_to_forename' => $order->billing_first_name, 'bill_to_address_city' => $order->billing_city, 'bill_to_address_line1' => $order->billing_address_1, 'bill_to_address_country' => $order->billing_country, 'bill_to_address_postal_code' => $order->billing_postcode, 'bill_to_phone' => $order->billing_phone, 'merchant_defined_data5' => $order->order_tax, );
Can you help to make it work ok?
- The topic ‘Payment gateway using defalt woocommerce currency and not the order currency’ is closed to new replies.