Hi, When the customer changes currency ( https://drupal.org/project/commerce_multicurrency) for example: changes the currency from USD to EUR and then clicks on checkout, then transferred to the payment 2checkout page, there is no currency rate conversion. The system treats the EUR same amount and number as USD.

I've asked support from 2checkout.com and they responded with the following:

While Drupal Commerce is indeed compatible with 2CO, unfortunately it does not appear that Drupal Multi Currency is compatible with our system. We must recommend that you contact the Drupal Commerce support team directly regarding their system's inherent currency support, since the Multi Currency module does not pass the proper parameters to 2CO

Any suggestions on how to make the 2checkout compatible with multi currency would be most appreciated :)

Comments

liliplanet’s picture

Gosh, still on a mission to try make 2checkout work with multi currency, have just received the following from 2checkout:

The place that we actually set the currency code for the sale, in our drupal commerce module is in this file: https://github.com/craigchristenson/drupal-commerce-2checkout/blob/maste...

in the function commerce_2checkout_purchase_parameters

using this line:

$currency_code = $wrapper->commerce_order_total->currency_code->value();

To integrate with the extension, you would need to get the currency information from the multi currency extension and set it at this point.

Make sure that the currency used is in this list, and that you are using the correct 3 digit currency code: https://www.2checkout.com/faq#what-currencies-does-2checkout-support

Please would most appreciate any guidance or support to make this work .. will pay for your time :)

jackbravo’s picture

Maybe a little late, but I have this pull request to the github project that makes possible currency conversions before sending the request:

https://github.com/craigchristenson/drupal-commerce-2checkout/pull/5/files

jackbravo’s picture

Status: Active » Needs review
Issue tags: +Needs manual testing
StatusFileSize
new3.35 KB

This is a patch against current dev version to solve this issue. Needs testing.