I’m trying to charge payment by USD currency by Square Up API and it is detecting amount as a cent but for CAD currency, it is detecting amount completely.
Like I put 100 in payment object and it detect complete 100 CAD dollar but in case of USD currency, it detects $0.1
API Link: https://developer.squareup.com/docs/payments-api/take-payments/card-payments
Documentation Link: https://developer.squareup.com/docs/build-basics/common-data-types/working-with-monetary-amounts
Note: I also wanted to pass the payment as cents for CAD currency.
Thanks.
Related
CAD currency not allowed contact merchant - global payments
Tried changing to USD it works but not working for CAD
Is there any configuration to enable?
Solved. You need to contact Globalpay account manager to enable CAD.
I know enough about programming to tinker a little, but MVC models are still baffling to me. I need a way to have the checkout total include the cost of taxes, but I do not want the product price to include the price of taxes. The tax amount already shows as a line item, but when I use the "tax incl" method it changes the product price and gives me a total that does include tax. On the other hand if I use the "tax excl" method, the product price is correct but the total does not include the tax. Example pictures attached PS version 1.7.3.2
[Tax excl image] https://i.stack.imgur.com/aYlsE.png
[Tax incl image] https://i.stack.imgur.com/NWIta.png
I did following and it works for me in prestashop 1.7.5.0:
To do so, we must edit the file:
themes/classic/templates/checkout/_partials/cart-summary-totals.tpl
and add this code where you want to show the total of the cart:
{$currency.iso_code}{$currency.sign}{$cart.totals.total.amount+$cart.subtotals.tax.amount}
I am working on a Prestashop project, where I am using AUD (Australian Dollar) as default currency, it works fine for AUD but when I try to convert it to USD or GBP then it gives me the error:
Unknown Payment Currency Code
I am using Eway as the payment gateway, and I have not worked with Prestashop before.
You need different eWAY Sandbox accounts for each currency. An eWay account is only linked to one currency.
Here is a related post on Wordpress forum
I can select a currency with a currency column but the value is always in USD, is it possible to change the currency iso code?
E.g. $39.99 this is in Canadian dollars but always appears 39.99 USD.
I see you can use text but then i am stuck with the $ symbol.
Right now i have had to use a regular expression to drop the $
What is happening is that the price you see is through your own IP address, but when you run your API you are calling the API on our American servers for you. The website registers our servers' US IP address and display their price in US dollars instead. Unfortunately, at this time, you cannot change the currency.
If you are using a Crawler, in the Advanced Options (by toggling the Simple button to Advanced), choose to crawl Locally instead, this will use your own IP address, and should therefore display the price in your desired currency.
Thanks,
Meg
Im trying to get an item page on market in certain currency, tried to add
Accept-Language: ru-RU\r\n
and
Accept-Language: ru-RU, ru\r\n
and
Accept-Language: ru, ru-RU;q=0.8\r\n
to header but steam ignores it and always gives a page with mixed rubles, euros and dollars.
Also, how can i get a page in xml format? ?format=xml and ?xml=1 dont work, tried with application/xml and */*
If someone still needs this:
http://steamcommunity.com/market/search/render/?start=0&count=10&l=english¤cy=5&q=&category_730_ItemSet%5B%5D=any&category_730_TournamentTeam%5B%5D=any&category_730_Weapon%5B%5D=tag_weapon_ak47&category_730_Exterior%5B%5D=tag_WearCategory0&category_730_Quality%5B%5D=tag_strange&appid=730
l param (Language): english, russian, french, etc.
count is how much results to display
start is starting result (start=10&count=10 is 2nd page with 10 results)
currency: 5 = ruble, 3 = USD. There are many others.
http://steamcommunity.com/market/listings/730/StatTrak%E2%84%A2%20AK-47%20%7C%20Blue%20Laminate%20%28Factory%20New%29/render?start=0&count=5¤cy=5&language=english
Recently Valve added market prices on inventory page when inspecting an item. The price is loaded through AJAX, and through inspecting network requests I found this:
http://steamcommunity.com/market/priceoverview/?country=US¤cy=3&appid=730&market_hash_name=AWP%20|%20Electric%20Hive%20(Factory%20New)
You can force currency with this (currency 3 is EUR), returns lowest price on market and median price, JSON format.
Sellers will always list items for sale in the native currency of
their Steam Wallet, and buyers will always see Community Market prices
expressed in the native currency of their Steam Wallet. For items
listed for sale in a different currency than the buyer's Steam Wallet
currency, we apply an exchange rate which we update daily.
- Community Market FAQ
Meaning, if you are looking at the market from a browser you are logged in on and you have funds in your wallet that are not in Rubles, you won't see Rubles.
You can, however, get around this. If you log out of the market and visit your URL, there are two parameters you can pass for force language and region changes.
For example, using the ever popular Supply Crate Key: http://steamcommunity.com/market/listings/440/Mann%20Co.%20Supply%20Crate%20Key?l=russian&cc=ru
Notice the l and cc parameters. The l is setting the language to Russian and the cc is setting the region to Russia.
Now, this doesn't appear to work on the entire page. The graph showing historical trends still appears to be in USD, even though the surrounding text is in Russian.
But, the individual listings of items did, in fact, change currencies.