feat: add traditional chinese locale #822
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
Add support for traditional chinese locale for payment links
Backend PR juspay/hyperswitch#6745
How did you test it?
(Need to run both hyperswitch-web and hyperswitch locally to test)
1. Update `allowed_domains` in business profile (Expand to see details)
2. Create a payment link with Accept-Language header as "zh-Hant"
cURL
curl --location --request POST 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_9ujhlj2TyCy27k37JtCmZZMbTLKVVebPRTtPcWE1okFjsngoqlZEaw4nQtX1zClT' \ --header 'Accept-Language: zh-Hant' \ --data-raw '{ "amount": 100, "currency": "USD", "payment_link": true, "connector": [ "novalnet" ], "session_expiry": 1000000, "return_url": "http://127.0.0.1:5500/src/pl_iframe.html", "payment_link_config": { "theme": "#14356f", "logo": "https://logosandtypes.com/wp-content/uploads/2020/08/zurich.svg", "seller_name": "Zurich Inc.", "show_card_form_by_default": false } }'
Response of /payments
3. Screenshots (Expand to see details)
Open the secure payment link (`secure_link` in API response) in an iframe for validating the functionality. For checking payment_link simply click on the payment_link (`payment_link` in API response)Screenshot for payment link
Screenshot for secured payment link
Checklist
npm run re:build