hyperswitch
hyperswitch copied to clipboard
[FEATURE] add a mapping of countries in CountryAlpha2 enum to countries in human readable format for payout links
Problem Statement Display countries in human readable format in the dropdown for payout widget.
Details Payout component in SDK collects the required details for processing payouts. This widget has a form for selecting the recipient's address - fields like name, city, postal code and country is collected and sent to backend service. The fields to be collected are embedded in the payout link during initialization. Country for payout widget are always in CountryAlpha2 format as backend API requires it. However, it's not in a human readable format.
Task
Consume already existing Country
module for mapping the CountryAlpha2 enums to a human readable format for the payout widget.