@garethhallnz has been working on multicurrency support over at https://github.com/garethhallnz/commerce_dps

Comments

garethhallnz’s picture

Status: Active » Needs review
StatusFileSize
new1.51 KB

1) Bug fix, Dps to except multiple currencies. (NZD was hard coded)
2) Bug fix, JPY was not working as it does not have cents (DPS IU error)

garethhallnz’s picture

Just to let you know this is in production too.

xurizaemon’s picture

Issue summary: View changes
Status: Needs review » Fixed

Committed (with some modifications) in https://drupal.org/commitlog/commit/35798/895b2f78aaf99021bfd895ece1a752... - thanks Gareth!

For future users looking at multicurrency support - currently the gateway supports a set currency per payment method out of the box. If you want to switch currency at checkout you can either configure multiple Commerce DPS PxPay methods and adjust the activated method at checkout, or take advantage of #1848344: Allow alteration of transaction data before DPS redirect to do your own per-transaction switcharoo.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

xurizaemon’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new1.91 KB

Gareth - I spotted a better way we can handle this, which gives Commerce the ability to switch the currency at checkout based on the currency of the order total, and removes the need to special case JPY (since Commerce already handles that in its decimilization, provided we inform it of the currency).

  • xurizaemon committed 29ccc11 on 7.x-1.x
    Issue #1927650. Revisiting earlier fix; we can get currency from the...
xurizaemon’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.