Answers.Body: <p>At the moment there is no multi-currency support built into Commerce. </p>
  
  <p>Meaning, all prices in the system are stored in a single currency. This includes products, shipping, taxes, sales, discounts.</p>
  
  <p>We DO have a multi-currency payments feature that allows a customer to pay in another currency (so they are charged an expected amount and get no surprises with their banks own conversion ratio).</p>
  
  <p>The issue you are hitting above is that the price of the products is never converted. The items in the 'item bag' can only exist in the primary currency.</p>
  
  <p>Your best bet is to not send the item bag to the gateway and only have them charge the amount. You can do this with the setting: <code>sendCartInfoToGateways</code> <a href="https://craftcommerce.com/docs/configuration#sendcartinfotogateways" rel="nofollow noreferrer">https://craftcommerce.com/docs/configuration#sendcartinfotogateways</a></p>
  
  <p>If we were to try and get clever and convert the line items prices to the differing payment currency, the amount to be paid would work out to be different to the converted total, due to rounding.</p>
  
  <p>When we move to full multi-currency support, this issue would go away since the line items would be converted first (along with discounts etc), and the total would be a sum of those amounts.</p>
  
  <p>Hope that helps.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-04T06:38:15.437Z
Answers.Text: Thanks for the answer Luke. My payment gateway need the price of the each basket item price. Probably, for the partial refunds for line items. Does all other payment gateways not do this? I can't think any solution :( May be manually enter conversion ratio into plugin? Also when will be this full multi-currency support will be? Will it be in Craft 2?
Answers.UserDisplayName: orionlogic
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-04T04:53:44.567Z
Answers.LastActivityDate: 2018-07-04T04:53:44.567Z
Answers.UserDisplayName: Luke Holder
Body: <p>I am trying to implement multi currency to my payment gateway plugin.</p>
  
  <p>I need to get converted price of the line item. Each item from <em>Omnipay\Common\Item</em> has the price of non converted, main price of the item.</p>
  
  <p>This cause trouble because my payment gateway adds the line items and matches sum of all individual items to total sum of paid amount.</p>
  
Tags: <plugin-craftcommerce><omnipay>
Title: Need to access each item's converted price from payment gateway
ThreadText: # Need to access each item's converted price from payment gateway
  
  (Asked by: username_0 on 2018-07-01)
  
  I am trying to implement multi currency to my payment gateway plugin.
  
  I need to get converted price of the line item. Each item from *Omnipay\Common\Item* has the price of non converted, main price of the item.
  
  This cause trouble because my payment gateway adds the line items and matches sum of all individual items to total sum of paid amount.
  
  **Tags:** plugin-craftcommerce, omnipay
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-07-04. Score: 1
  
  At the moment there is no multi-currency support built into Commerce.
  
  Meaning, all prices in the system are stored in a single currency. This includes products, shipping, taxes, sales, discounts.
  
  We DO have a multi-currency payments feature that allows a customer to pay in another currency (so they are charged an expected amount and get no surprises with their banks own conversion ratio).
  
  The issue you are hitting above is that the price of the products is never converted. The items in the 'item bag' can only exist in the primary currency.
  
  Your best bet is to not send the item bag to the gateway and only have them charge the amount. You can do this with the setting: `sendCartInfoToGateways` <https://craftcommerce.com/docs/configuration#sendcartinfotogateways>
  
  If we were to try and get clever and convert the line items prices to the differing payment currency, the amount to be paid would work out to be different to the converted total, due to rounding.
  
  When we move to full multi-currency support, this issue would go away since the line items would be converted first (along with discounts etc), and the total would be a sum of those amounts.
  
  Hope that helps.
  
  > **Comments:**
  > **username_0**: Thanks for the answer username_1. My payment gateway need the price of the each basket item price. Probably, for the partial refunds for line items. Does all other payment gateways not do this? I can't think any solution :( May be manually enter conversion ratio into plugin? Also when will be this full multi-currency support will be? Will it be in Craft 2?  
  
  ---
  
  