# localizedPrice doesn't contain currency

**URL:** <https://forums.solar2d.com/t/localizedprice-doesnt-contain-currency/316326>\
**Category:** Amazon IAP\
**Created:** [July 30, 2013, 12:29pm UTC](https://forums.solar2d.com/t/localizedprice-doesnt-contain-currency/316326 "2013-07-30T12:29:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ingemar](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/i/ba9def/32.png) [@ingemar](https://forums.solar2d.com/u/ingemar)\
**Post date:** [July 30, 2013, 12:29pm UTC](https://forums.solar2d.com/t/localizedprice-doesnt-contain-currency/316326/1 "2013-07-30T12:29:41Z")

</div>

Shouldn’t the localizedPrice also include the currency symbol/code (like USD 0.99 or $0.99)?&nbsp;

At the moment is only returns the number without currency.

---

<div class="post-metadata">

**Author:** ![MochiBits](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/73ab20/32.png) [@MochiBits](https://forums.solar2d.com/u/MochiBits)\
**Post date:** [July 30, 2013, 5:41pm UTC](https://forums.solar2d.com/t/localizedprice-doesnt-contain-currency/316326/2 "2013-07-30T17:41:33Z")

</div>

This is a problem with Amazon I believe. They don’t return the symbol.

---

<div class="post-metadata">

**Author:** ![tamkinp](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tamkinp](https://forums.solar2d.com/u/tamkinp)\
**Post date:** [July 31, 2013, 4:27pm UTC](https://forums.solar2d.com/t/localizedprice-doesnt-contain-currency/316326/3 "2013-07-31T16:27:02Z")

</div>

Hi ingemar,

While using the Amazon SDK Tester, localizedPrice will contain whatever value is in the ‘price’ field for that item in the&nbsp;amazon.sdktester.json file. The example provided in the Amazon documentation is a numeric field, but you can change this to a string with currency symbols and these will be passed through to the localizedPrice field.

After publishing with the Amazon Appstore this field should contain the local currency code as expected.

-Preston

---

<div class="post-metadata">

**Author:** ![MochiBits](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/73ab20/32.png) [@MochiBits](https://forums.solar2d.com/u/MochiBits)\
**Post date:** [July 31, 2013, 4:51pm UTC](https://forums.solar2d.com/t/localizedprice-doesnt-contain-currency/316326/4 "2013-07-31T16:51:56Z")

</div>

You’re right. For some reason I thought the live return price didn’t have the currency code. Maybe that’s google.

---

<div class="post-metadata">

**Author:** ![ingemar](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/i/ba9def/32.png) [@ingemar](https://forums.solar2d.com/u/ingemar)\
**Post date:** [August 1, 2013, 3:25am UTC](https://forums.solar2d.com/t/localizedprice-doesnt-contain-currency/316326/5 "2013-08-01T03:25:22Z")

</div>

@tamkinp

Thanks. Good to know. As long as the live version displays the currency symbol everything’s fine 🙂

Suggestion:

I used the download link in the Amazon IAP portal to get my JSON file. It would be a good idea if the price in the generated sample JSON file also included a currency. This would make the testing behave like the live version and wouldn’t require unnecessary manual editing of the file.

---

<div class="post-metadata">

**Author:** ![MochiBits](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/73ab20/32.png) [@MochiBits](https://forums.solar2d.com/u/MochiBits)\
**Post date:** [July 30, 2013, 5:41pm UTC](https://forums.solar2d.com/t/localizedprice-doesnt-contain-currency/316326/6 "2013-07-30T17:41:33Z")

</div>

This is a problem with Amazon I believe. They don’t return the symbol.

---

<div class="post-metadata">

**Author:** ![tamkinp](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tamkinp](https://forums.solar2d.com/u/tamkinp)\
**Post date:** [July 31, 2013, 4:27pm UTC](https://forums.solar2d.com/t/localizedprice-doesnt-contain-currency/316326/7 "2013-07-31T16:27:02Z")

</div>

Hi ingemar,

While using the Amazon SDK Tester, localizedPrice will contain whatever value is in the ‘price’ field for that item in the&nbsp;amazon.sdktester.json file. The example provided in the Amazon documentation is a numeric field, but you can change this to a string with currency symbols and these will be passed through to the localizedPrice field.

After publishing with the Amazon Appstore this field should contain the local currency code as expected.

-Preston

---

<div class="post-metadata">

**Author:** ![MochiBits](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/73ab20/32.png) [@MochiBits](https://forums.solar2d.com/u/MochiBits)\
**Post date:** [July 31, 2013, 4:51pm UTC](https://forums.solar2d.com/t/localizedprice-doesnt-contain-currency/316326/8 "2013-07-31T16:51:56Z")

</div>

You’re right. For some reason I thought the live return price didn’t have the currency code. Maybe that’s google.

---

<div class="post-metadata">

**Author:** ![ingemar](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/i/ba9def/32.png) [@ingemar](https://forums.solar2d.com/u/ingemar)\
**Post date:** [August 1, 2013, 3:25am UTC](https://forums.solar2d.com/t/localizedprice-doesnt-contain-currency/316326/9 "2013-08-01T03:25:22Z")

</div>

@tamkinp

Thanks. Good to know. As long as the live version displays the currency symbol everything’s fine 🙂

Suggestion:

I used the download link in the Amazon IAP portal to get my JSON file. It would be a good idea if the price in the generated sample JSON file also included a currency. This would make the testing behave like the live version and wouldn’t require unnecessary manual editing of the file.
