Hi,
I have found that the securetrading is not passing currency information from ubercart, SecureTrading takes the defaut the currency (GBP) ,
please find the below information the securetrading is sending from the merchant website to the payment gateway while making a purchase, In that there is no Currency information
.
$data = array(
'merchant' => variable_get('uc_securetrading_merchant', ''),
'merchantemail' => variable_get('uc_securetrading_merchantemail', variable_get('uc_store_email', '')),
'customeremail' => variable_get('uc_securetrading_customeremail', TRUE) ? 1 : 0,
'orderref' => $order->order_id,
'inputamount' => number_format($order->order_total, 2, '.', ''),
'email' => $order->primary_email,
'name' => $order->billing_first_name .' '. $order->billing_last_name,
'address' => $order->billing_street1,
'town' => $order->billing_city,
'county' => db_result(db_query("SELECT zone_name FROM {uc_zones} WHERE zone_id = %d", $order->billing_zone)),
'country' => $country,
'postcode' => $order->billing_postal_code,
'telephone' => $order->billing_phone,
'callbackurl' => variable_get('uc_securetrading_callbackref', '1'),
'failureurl' => variable_get('uc_securetrading_callbackref', '1'),
'formref' => variable_get('uc_securetrading_callbackref', '1'),
);
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | uc_securetrading-851890.patch | 848 bytes | ghazlewood |
Comments
Comment #1
STSupport commentedHi Thanair
Is mentioned in previous post can you please email support@securetrading.com and provide your SecureTrading site reference and we can look in to your issue.
Kind Regards
Mark Gennoe
SecureTrading Support
Comment #2
STSupport commentedHi Thanair
Further to this, without knowing your account and some examples of this issue we are unable to assist you.
In the array I would expect to see a field called currency with the value are passing as the currency, but you will need to ensure that your account with SecureTrading is enabled to process these currencies.
Kind Regards
Mark Gennoe
SecureTrading Support
Comment #3
ghazlewoodHi Thanair,
This looks like it was never a feature in the original 5.x code so it's more a feature request than a bug per se. The 6.x version of the module was a straight port from 5.x so there's currently no support for it out of the box but assuming that Ubercart and ST both use the same currency codes (that's a big if) it should be a case of just adding the field to the module with the correct reference. A patch should be fairly simple...
http://www.securetrading.com/support/currency-codes.html
Mark, I think that the issue is more related to this module that the use of ST specifically...
Comment #4
thanair commentedHi ghazlewood,
The securetrading module by default it supports[GBP - Britain (United Kingdom)] only,If any another currency type is used, we need to pass in the array. i have included a currency type "USD" in the below example:
In uc_securetrading.module file located in (sites/all/modules/uc_securetrading/)
example:
$data = array(
'merchant' => variable_get('uc_securetrading_merchant', ''),
'merchantemail' => variable_get('uc_securetrading_merchantemail', variable_get('uc_store_email', '')),
'customeremail' => variable_get('uc_securetrading_customeremail', TRUE) ? 1 : 0,
'orderref' => $order->order_id,
'currency' => USD,
'inputamount' => number_format($order->order_total, 2, '.', ''),
..........................
);
Comment #5
ghazlewoodHere's a really simple patch which applies the currency from ubercart if it's not the securetrading default of GBP.