RevenueCat / RevenueCat/react-native-purchases

`priceString` from `PurchasesStoreProduct` have not currency sign in response of RC test store (web)

Open
#1,752 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
1.2k
Forks
117
Avg merge
14h 40m
Merged PRs (30d)
40

Description

As we can see from description for priceString prop:

https://github.com/RevenueCat/purchases-hybrid-common/blob/f22717e21893414654e93e31b410bcf606dbbe27/typescript/src/offerings.ts#L97-L101

priceString should return Formatted price of the item, including its currency sign, but for RC test store on web it returns currency code (not sign):

10 USD

but should be:

$10
  1. Environment
    1. Platform: web
    2. SDK version: 10.0.1
    3. React Native version: 0.81.5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the PurchasesStoreProduct priceString definition in purchases-hybrid-common/typescript/src/offerings.ts around lines 97-101, then trace the web RC test store implementation that produces the value. Verify the web response formats the price with a currency sign rather than a currency code, and add or run coverage for the reported 10 USD case.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
payments, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.