polar
polar copied to clipboard
docs: Add React component for per-country payout fees using CSV data
trafficstars
Description
We need to create a React component that displays the per-country border payout fees for merchants on Polar Docs, specifically under the payout fees section. The component should source its data from the following CSV file:
https://raw.githubusercontent.com/polarsource/polar/refs/heads/main/server/polar/transaction/fees/stripe/stripe_country_fees.csv
Requirements
- Parse the above Stripe country fees CSV (serve as an asset or an exported JSON).
- Render country-specific payout fees in a clear, accessible React component.
- Integrate this component into the docs at https://docs.polar.sh/merchant-of-record/fees.
- Ensure the data is up-to-date and matches the CSV structure.
- Document any assumptions or limitations.
Expected Outcome
- A new React component in the documentation site, showing the payout fees for each country based on the Stripe CSV.
- Clear presentation of border payout fees for all supported countries.
Additional Context
- This improves transparency and usability for merchants considering Polar as a merchant of record.