feat(payments): [Payment links] Add support for traditional chinese locale for payment links#6745
Merged
likhinbopanna merged 1 commit intomainfrom Dec 5, 2024
Merged
Conversation
2 tasks
10 tasks
sahkal
approved these changes
Dec 4, 2024
srujanchikke
approved these changes
Dec 5, 2024
Narayanbhat166
approved these changes
Dec 5, 2024
dgeee13
added a commit
that referenced
this pull request
Dec 6, 2024
…ocale for payment links (#6745)
14 tasks
dgeee13
added a commit
that referenced
this pull request
Dec 6, 2024
…ocale for payment links (#6745)
Merged
14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
SDK PR juspay/hyperswitch-web#822
Additional Changes
Motivation and Context
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
cargo +nightly fmt --allcargo clippy