Open pkiler opened 2 months ago
I've chatted with support about this, they had no clue what is going on.
I used Intl
and react-native-localize to solve this:
import * as RNLocalize from 'react-native-localize';
export function normalizePrice(amount: number, currencyCode: string) {
const locale = RNLocalize.getLocales()[0].languageTag;
return new Intl.NumberFormat(locale, {
style: 'currency',
currency: currencyCode,
minimumFractionDigits: 2
}).format(amount);
}
usage:
normalizePrice(
product?.price?.amount as number,
product?.price?.currencyCode as string
)
Is anyone home? It's been 3 weeks since the issue was raised and the Intl method is prone to issues. You know we're paying (tons of) money for your product right? We expect support to be optimal at least.
I've opened a ticket through Adapty's dashboard Help but the operators had no clue about this and they didn't even tried to forward this to your technical team. 👎
Day 35 and noone from adapty team has replied. Terrible support.
Yes just a timeline or at least a response on this could be great 😕
@pkiler @efstathiosntonas hey, we sincerely apologize for the inconvenience
we're investigating the issue now and will update you as soon as we have more information
@vladd-g any update on this, it's been 1.5 months.....
@efstathiosntonas, sorry for the wait. We'll let you know as soon as it's resolved
@vladd-g any updates on this one? I hope you guys realize how IMPORTANT price formatting is for the buyers, right?
@efstathiosntonas expecting to release it within 2 weeks
Description
Currently, requesting paywall products that have prices with their 2nd decimal as
0
seems to truncate this decimal.Example response from
fetch/get-paywall-products
(callingAdapty.getPaywallProducts
):But calling
Adapty.makePurchase
opens the native purchase window, with the price displayed with its 2 decimals as expected:Currency in the screenshot is PEN, but might be a general issue with other currencies.
Version
2.10.1
What platforms are you seeing the problem on?
iOS
System info