prompt
stringlengths 83
247k
| response
stringlengths 121
36.1k
| metadata
stringlengths 314
42.3k
|
|---|---|---|
fix(payments): [Payment links] Add fix for payment link redirection url
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [X] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
Integ and Sbx payment link urls have **/api/** in their path, which currently gets ignored in the url when payment reaches terminal state
- e.g. url for integ/sbx - https://integ.hyperswitch.io/api/payment_link/merchant_1234/pay_1234?locale=en
- e.g. url for others (does not have /api/) - https://abc.dev.com/payment_link/merchant_1234/pay_1234?locale=en
After redirection to status screen
- e.g. url for integ/sbx becomes - https://integ.hyperswitch.io/payment_link/status/payment_link/merchant_1234/pay_1234?locale=en (payment_link gets duplicated twice, and /api/ is gone)
- e.g. path for others (does not have /api/) becomes - https://abc.dev.com/payment_link/status/merchant_1234/pay_1234?locale=en (as expected)
### Current behaviour:
Since /api/ gets ignored currently for integ and sbx, the payment link redirects to dashboard instead of the status screen after terminal state
(In integ)
https://github.com/user-attachments/assets/37669e7b-326e-4c81-83f5-b2fb1f838735
### Expected behaviour:
/api/ should not get ignored and payment link should redirect to status screen first, and then to return url after a timeout of 5 seconds
This PR preserves '/api' in path for integ and sbx envs
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Tested locally, by manipulating the local base url to have '/api/'
**curl to create payment link**
`curl --location --request POST 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_qHs2XY4dDiRol6e8BHPERtlaYvRlG3aRV6RRwHZUiWyGbBR2hzQA6MX3fkP45fZP' \
--data-raw '{
"amount": 100,
"currency": "USD",
"payment_link": true,
"session_expiry": 1000000,
"return_url": "https://google.com",
"payment_link_config": {
"theme": "#14356f",
"logo": "https://logosandtypes.com/wp-content/uploads/2020/08/zurich.svg",
"seller_name": "Zurich Inc."
}
}'`
https://github.com/user-attachments/assets/3ecdef5c-3b76-487f-8fff-d2afdc65618f
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [X] I formatted the code `cargo +nightly fmt --all`
- [X] I addressed lints thrown by `cargo clippy`
- [X] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js`
- `crates/router/src/core/payment_link/payment_link_initiate/secure_payment_link_initiator.js`
**Code Patterns Applied:**
- Extend existing types with new fields (1 changes)
- Add conditional logic for feature flags or filtering (2 changes)
|
{"pr_number": 7232, "pr_title": "fix(payments): [Payment links] Add fix for payment link redirection url", "merged_at": "2025-02-11T11:29:35Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"core_business": ["crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js", "crates/router/src/core/payment_link/payment_link_initiate/secure_payment_link_initiator.js"]}, "change_types": {"fields_added": 1, "conditionals_added": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
feat(events): Add payment reject audit events
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [X] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Pass along request_state to payment_core
Modify the UpdateTracker trait to accept request state
Modify the PaymentReject implementation of UpdateTracker to generate an event
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
Files changed
1. `crates/router/src/core/payments/operations/payment_reject.rs`
2. `crates/router/src/events/audit_events.rs`
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
Resolves #4669
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
This requires FRM related flows to be tested, and may not be tested locally.
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [X] I formatted the code `cargo +nightly fmt --all`
- [X] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments/operations/payment_reject.rs`
**2. Other**
- `crates/router/src/events/audit_events.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (3 changes)
**Detailed Identifier Changes:**
Commit 6b029ab1:
Files to modify:
**crates/router/src/core/payments/operations/payment_reject.rs**
Modify existing code
**crates/router/src/events/audit_events.rs**
Modify existing code
|
{"pr_number": 6465, "pr_title": "feat(events): Add payment reject audit events", "merged_at": "2024-11-12T07:18:54Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/operations/payment_reject.rs"], "other": ["crates/router/src/events/audit_events.rs"]}, "change_types": {"fields_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(connector): [JPMORGAN, PAYU, DIGITALVIRGO, BITPAY, HELCIM, PAYBOX] Replaced lazystatic macros with LazyLock
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
Replaced lazystatic macros with LazyLock
Lazy initialization means that the variable is not initalized at program startup, its initialized when used. This means the variable is created when used first not at a start of a program.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
## How did you test it?
Note: This change doesn't affect the API response.
```
curl --location 'http://localhost:8080/feature_matrix' \
--header 'api-key: dev_VgKvgCJh4w9wsuRjYrPdyWUbarwcp3a9d6zHLiJB5x0yTrGw6dzQwXZjULcV2qzO' \
--header 'Cookie: PHPSESSID=0b47db9d7de94c37b6b272087a9f2fa7'
```
Response :
```
{"connector_count":28,"connectors":[{"name":"BAMBORA","display_name":"Bambora","description":"Bambora is a leading online payment provider in Canada and United States.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","JCB","DinersClub"],"supported_countries":["CA","US"],"supported_currencies":["USD"]}],"supported_webhook_flows":[]},{"name":"BAMBORAAPAC","display_name":"Bambora Asia-Pacific","description":"Bambora Asia-Pacific, provides comprehensive payment solutions, offering merchants smart and smooth payment processing capabilities.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","DinersClub"],"supported_countries":["PS","JO","ZA","MH","VN","CD","PE","SN","BE","IL","NR","AG","CZ","MM","PG","JM","AT","SL","ZW","SI","TM","PA","GA","AE","CM","KR","ET","ES","GN","LU","GD","GY","LA","CR","MU","NE","AZ","RW","LI","PW","BH","MK","OM","TZ","US","MV","BB","ML","BO","KZ","NI","PY","CO","NZ","KN","TH","HU","TG","ME","SS","VE","UG","IN","LK","TL","MN","DO","FM","MY","PH","TT","ZM","LC","SE","BN","UY","NG","AD","NO","LV","HR","AM","MD","MG","BS","GH","MA","CY","TD","GR","DJ","TN","TJ","VA","KE","KM","LT","ST","SR","AL","PL","RS","CH","QA","VU","CA","LS","BJ","AU","CN","GM","ID","PK","PT","RO","SC","GG","BT","BY","GE","BD","BI","KW","NA","CL","IT","DZ","ER","FI","FJ","CG","AR","GW","HT","EC","KG","KH","KI","MC","SK","TV","NP","DE","BG","SM","SV","CV","MZ","UZ","LB","UA","MT","MW","HN","CF","JP","SG","BA","TO","WS","DM","DK","EE","EG","BZ","MR","MX","SA","SB","NL","SO","BW","LR","AO","CI","IE","BR","GB","GT","SZ","TR","IS","GQ","VC","FR"],"supported_currencies":["NPR","BOB","MOP","BDT","CNY","NAD","MYR","QAR","RWF","SEK","XOF","GEL","MWK","XAF","MAD","AUD","ZMW","IRR","MMK","MDL","FJD","JPY","HKD","CAD","AED","BND","KES","RSD","BWP","TWD","BRL","TZS","USD","SGD","LAK","ISK","LKR","IDR","GHS","SAR","EGP","INR","PHP","ZAR","HRK","NGN","NZD","RON","ILS","CHF","KZT","THB","VND","SCR","RUB","BGN","TRY","PEN","SLL","HUF","UYU","COP","CZK","EUR","KRW","DKK","IQD","KWD","NOK","UAH","GBP","MZN","PLN","MXN","UGX","PKR"]},{"payment_method":"card","payment_method_type":"debit","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","DinersClub"],"supported_countries":["HN","KZ","ZA","JO","AD","FM","KM","KH","SL","BE","GQ","BH","CA","LR","CM","LB","MH","GD","MX","KG","KR","PK","SA","SR","TD","TL","BJ","SN","SZ","BY","SV","NZ","DJ","WS","CI","BO","MC","GA","LV","PG","BD","HT","IN","GN","ML","FR","NL","BT","MW","AM","OM","SO","AG","QA","ET","SB","KE","CY","AZ","BI","NP","PY","PS","TO","DK","NO","EG","CN","BS","FI","MD","ME","TG","PH","AR","CR","AU","BR","HU","KW","SS","VC","DM","IT","LT","TV","TT","VA","GY","BG","GW","ES","SE","GB","CH","NE","CV","KN","MU","PE","BZ","EC","MA","AL","GG","MM","AE","ER","PT","PW","MT","PL","BA","IL","MK","SC","SI","LC","GE","IE","SK","GH","RS","TJ","EE","UA","UY","ZM","RO","AT","CL","LU","MZ","TM","UZ","TH","GR","GT","BB","DE","LS","CZ","ZW","PA","RW","MG","ST","DO","TR","NR","KI","CF","MV","DZ","JM","LI","UG","LA","SM","AO","MY","TZ","GM","LK","MN","NG","IS","SG","US","BW","CD","HR","CG","BN","NA","FJ","TN","VU","ID","VN","CO","VE","JP","MR","NI"],"supported_currencies":["BOB","LAK","TWD","TZS","XAF","XOF","AUD","NOK","HRK","TRY","BDT","KWD","UGX","SLL","ISK","JPY","USD","VND","MAD","MDL","PKR","HKD","SCR","MXN","CAD","IDR","HUF","RWF","KRW","THB","DKK","GBP","MWK","AED","FJD","ILS","IRR","RSD","KES","CNY","COP","PHP","PEN","UAH","INR","QAR","EUR","RUB","GEL","BRL","KZT","ZAR","BGN","BND","ZMW","MZN","SGD","MYR","UYU","NAD","EGP","LKR","SEK","GHS","NGN","PLN","RON","IQD","CZK","MMK","CHF","NPR","BWP","SAR","NZD","MOP"]}],"supported_webhook_flows":[]},{"name":"BILLWERK","display_name":"Billwerk","description":"Billwerk+ Pay is an acquirer independent payment gateway that's easy to setup with more than 50 recurring and non-recurring payment methods.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","AmericanExpress","Discover","JCB","UnionPay","DinersClub","Interac","CartesBancaires"],"supported_countries":["DE","FR","DK","SE"],"supported_currencies":["DKK","NOK"]},{"payment_method":"card","payment_method_type":"debit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","AmericanExpress","Discover","JCB","UnionPay","DinersClub","Interac","CartesBancaires"],"supported_countries":["DE","FR","SE","DK"],"supported_currencies":["DKK","NOK"]}],"supported_webhook_flows":[]},{"name":"BITPAY","display_name":"Bitpay","description":"BitPay is a cryptocurrency payment processor that enables businesses to accept Bitcoin and other digital currencies ","category":"alternative_payment_method","supported_payment_methods":[{"payment_method":"crypto","payment_method_type":"crypto_currency","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["NL","ES","HU","LU","EE","IT","SE","BG","FR","HR","BE","CZ","LV","LT","DK","US","FI","PT","IE","SI","GB","AT","PL","DE","RO","GR","CY","MT","CA","SK"],"supported_currencies":["GBP","NZD","EUR","AUD","CHF","USD","MXN","CAD"]}],"supported_webhook_flows":["payments"]},{"name":"COINBASE","display_name":"Coinbase","description":"Coinbase is a place for people and businesses to buy, sell, and manage crypto.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"crypto","payment_method_type":"crypto_currency","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["FR","ZA","IT","AU","BR","CA","NL","SG","US","DE","PT","GB","ES","VN","TR"],"supported_currencies":null}],"supported_webhook_flows":["payments","refunds"]},{"name":"DEUTSCHEBANK","display_name":"Deutsche Bank","description":"Deutsche Bank is a German multinational investment bank and financial services company ","category":"bank_acquirer","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"not_supported","supported_card_networks":["Visa","Mastercard"],"supported_countries":null,"supported_currencies":null},{"payment_method":"card","payment_method_type":"debit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"not_supported","supported_card_networks":["Visa","Mastercard"],"supported_countries":null,"supported_currencies":null},{"payment_method":"bank_debit","payment_method_type":"sepa","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":null,"supported_currencies":null}],"supported_webhook_flows":[]},{"name":"DIGITALVIRGO","display_name":"Digital Virgo","description":"Digital Virgo is an alternative payment provider specializing in carrier billing and mobile payments ","category":"alternative_payment_method","supported_payment_methods":[{"payment_method":"mobile_payment","payment_method_type":"direct_carrier_billing","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["BW","GN","FR","SN","GB","PL","MA","NG","BE","AR","ZA","MX","IT","ML","SD","SK","SA","IQ","SG","IE","MG","BR","AE","PS","AZ","RU","GA","LY","CG","KW","BH","TR","ID","GR","NL","CL","ES","QA","TN","DE","PT","JO","CH","GH","EG","OM","DZ","CM"],"supported_currencies":["TRY","PLN","MAD","BWP","GNF","CHF","MXN","ARS","ZAR","SAR","JOD","MGA","OMR","KWD","XAF","CLP","ILS","SDG","CDF","BRL","AZN","NGN","DZD","IDR","EGP","EUR","BHD","QAR","SGD","IQD","AED","GBP","TND","LYD","RUB","XOF","GHS"]}],"supported_webhook_flows":[]},{"name":"DLOCAL","display_name":"DLOCAL","description":"Dlocal is a cross-border payment processor enabling businesses to accept and send payments in emerging markets worldwide.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","JCB","DinersClub","UnionPay","Interac","CartesBancaires"],"supported_countries":["ZM","PY","CO","BR","UY","KE","DO","CR","EG","CL","MY","IN","TR","BO","CI","SN","JP","GT","PH","GH","MX","PK","RW","PA","TZ","EC","AR","HN","ID","SV","MA","PE","NI","TH","UG","VN","BD","CM","NG","ZA","SA","CN"],"supported_currencies":["NIO","BOB","TZS","PEN","CNY","ZAR","PKR","BDT","INR","JPY","PHP","VND","PYG","CLP","XOF","HNL","USD","GHS","XAF","COP","ZMW","KES","ARS","SAR","BRL","UYU","DOP","TRY","NGN","MXN","UGX","MYR","CRC","THB","MAD","EGP","IDR","RWF","GTQ"]},{"payment_method":"card","payment_method_type":"debit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","JCB","DinersClub","UnionPay","Interac","CartesBancaires"],"supported_countries":["EC","PY","DO","IN","ID","CL","PK","SN","CM","TH","EG","MY","NI","PA","UG","ZM","CN","SA","CO","SV","GT","NG","TZ","BO","MA","ZA","TR","CI","JP","GH","CR","UY","BD","VN","PH","PE","AR","RW","KE","HN","MX","BR"],"supported_currencies":["HNL","PEN","JPY","CLP","COP","USD","ZAR","VND","MYR","GHS","CRC","XOF","MAD","INR","EGP","PYG","BDT","BOB","UYU","ZMW","MXN","GTQ","TZS","CNY","DOP","NIO","BRL","XAF","PHP","SAR","IDR","PKR","UGX","NGN","RWF","ARS","KES","THB","TRY"]}],"supported_webhook_flows":[]},{"name":"FISERVEMEA","display_name":"Fiservemea","description":"Fiserv powers over 6+ million merchants and 10,000+ financial institutions enabling them to accept billions of payments a year.","category":"bank_acquirer","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","AmericanExpress","Discover","JCB","UnionPay","DinersClub","Interac","CartesBancaires"],"supported_countries":["DE","FR","AE","IT","NL","PL","GB","ES","ZA"],"supported_currencies":["SSP","DJF","SHP","KMF","QAR","EGP","COP","KES","LAK","MGA","MYR","SGD","ILS","GTQ","FJD","HNL","LYD","UAH","XOF","AZN","MRU","TMT","AUD","PKR","IRR","KYD","SDG","NZD","VUV","SAR","OMR","NAD","NOK","BWP","MVR","STN","BAM","KZT","SCR","MKD","EUR","KHR","JMD","SLE","SLL","MWK","BRL","NPR","MNT","SRD","DZD","RWF","WST","PLN","SYP","AOA","BOB","KGS","HTG","CHF","CUP","RUB","PAB","CVE","ALL","KPW","TRY","LSL","CAD","TWD","UYU","TND","VES","XAF","LKR","ZMW","BSD","MDL","ERN","SBD","TZS","TJS","MZN","CLP","VND","MOP","XPF","CNY","HRK","BBD","USD","DOP","PYG","LRD","BYN","PEN","MUR","SZL","GEL","PHP","SOS","INR","PGK","LBP","BDT","HKD","AED","UGX","CRC","ANG","MMK","AMD","BHD","AWG","RON","ZAR","SVC","BMD","JPY","XCD","BZD","SEK","UZS","YER","ZWL","IDR","TTD","ARS","RSD","BGN","CDF","GNF","GYD","BIF","KWD","FKP","GHS","HUF","IQD","THB","BND","MXN","ISK","KRW","NGN","TOP","DKK","GBP","JOD","CZK","GMD","ETB","MAD","NIO","AFN","BTN","GIP"]},{"payment_method":"card","payment_method_type":"debit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","AmericanExpress","Discover","JCB","UnionPay","DinersClub","Interac","CartesBancaires"],"supported_countries":["AE","IT","NL","GB","FR","ES","DE","PL","ZA"],"supported_currencies":["HUF","USD","SRD","SLL","KHR","GEL","NPR","PAB","LRD","TOP","WST","ALL","LSL","AED","AFN","BTN","BZD","MNT","MWK","KES","HRK","SVC","COP","SAR","JOD","BOB","SGD","BMD","LAK","SCR","MXN","VND","CDF","ETB","CRC","RSD","SZL","INR","BWP","CLP","FKP","IRR","LBP","MDL","ILS","SDG","BAM","STN","TMT","TND","BRL","KGS","MGA","TRY","TZS","JPY","VES","AWG","EUR","YER","NZD","PKR","ZAR","XPF","AOA","BND","ANG","KPW","ZWL","PGK","KMF","HTG","CNY","MYR","CZK","ZMW","CHF","KYD","KWD","HNL","GIP","BGN","MMK","SOS","NAD","GBP","GHS","CAD","MZN","NGN","MKD","TWD","BBD","CVE","AMD","GNF","GTQ","XAF","IDR","BDT","TTD","VUV","UYU","OMR","SHP","RON","ERN","PLN","MVR","QAR","AZN","BIF","GYD","SEK","LYD","RWF","BHD","JMD","MAD","UZS","PEN","MRU","UGX","BSD","BYN","MOP","CUP","PYG","TJS","ISK","RUB","AUD","FJD","DJF","SBD","NIO","EGP","ARS","KRW","SLE","MUR","SSP","XOF","PHP","THB","GMD","IQD","HKD","DOP","KZT","NOK","XCD","DZD","SYP","DKK","LKR","UAH"]}],"supported_webhook_flows":[]},{"name":"GOCARDLESS","display_name":"GoCardless","description":"GoCardless is a fintech company that specialises in bank payments including recurring payments.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"bank_debit","payment_method_type":"becs","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["AU"],"supported_currencies":["AUD"]},{"payment_method":"bank_debit","payment_method_type":"sepa","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["PL","NZ","AU","BE","RO","SK","SE","GB","NL","ZA","HU","IT","FI","DE","CY","CZ","DK","CH","BG","FR","IE","PT","NO","MT","LU","HR","AT","CA","SI","ES"],"supported_currencies":["AUD","GBP","EUR","NZD","CAD","DKK","SEK"]},{"payment_method":"bank_debit","payment_method_type":"ach","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["US"],"supported_currencies":["USD"]}],"supported_webhook_flows":["payments","refunds","mandates"]},{"name":"HELCIM","display_name":"Helcim","description":"Helcim is a payment processing company that offers transparent, affordable merchant services for businesses of all sizes","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["US","CA"],"supported_currencies":["USD","CAD"]},{"payment_method":"card","payment_method_type":"credit","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["US","CA"],"supported_currencies":["USD","CAD"]}],"supported_webhook_flows":[]},{"name":"IATAPAY","display_name":"Iatapay","description":"IATA Pay is a payment method for travellers to pay for air tickets purchased online by directly debiting their bank account.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"upi","payment_method_type":"upi_collect","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["IN"],"supported_currencies":["INR"]},{"payment_method":"upi","payment_method_type":"upi_intent","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["IN"],"supported_currencies":["INR"]},{"payment_method":"bank_redirect","payment_method_type":"ideal","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["NL"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"local_bank_redirect","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["BE","JO","CO","FR","IT","IE","EE","IN","MX","GH","PH","AU","GB","LU","VN","FI","ES","BR","AT","SG","DE","TH","LT","NL","LV","MY","HK","PT"],"supported_currencies":["THB","VND","HKD","PHP","EUR","INR","GBP","MXN","JOD","SGD","COP","MYR","BRL","AUD","GHS"]},{"payment_method":"real_time_payment","payment_method_type":"viet_qr","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["VN"],"supported_currencies":["VND"]},{"payment_method":"real_time_payment","payment_method_type":"duit_now","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["MY"],"supported_currencies":["MYR"]},{"payment_method":"real_time_payment","payment_method_type":"prompt_pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["TH"],"supported_currencies":["THB"]},{"payment_method":"real_time_payment","payment_method_type":"fps","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["GB"],"supported_currencies":["GBP"]}],"supported_webhook_flows":["payments","refunds"]},{"name":"JPMORGAN","display_name":"Jpmorgan","description":"J.P. Morgan is a global financial services firm and investment bank, offering banking, asset management, and payment processing solutions","category":"bank_acquirer","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic","manual"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","DinersClub","Discover","JCB","Mastercard","UnionPay","Visa"],"supported_countries":["LT","SK","MT","ES","CY","IE","IT","CZ","GR","US","LU","GB","RO","FR","NL","SI","DK","BE","BG","EE","HR","FI","LV","AT","HU","SE","CA","PT","DE","PL"],"supported_currencies":["VND","UGX","MGA","FJD","TOP","AOA","GTQ","YER","BGN","COP","UZS","GBP","SAR","EGP","QAR","PGK","CLP","JMD","SHP","PLN","LBP","TTD","MRU","SBD","HNL","KRW","GYD","KZT","NIO","LSL","BRL","IDR","PHP","GHS","GIP","MVR","TJS","SOS","GMD","CAD","LKR","GEL","CRC","LAK","KHR","DOP","PAB","CDF","BAM","ANG","PYG","BOB","JPY","EUR","THB","NOK","XPF","CZK","PKR","FKP","KES","CNY","MZN","CVE","NGN","TWD","AZN","RON","SLL","SZL","TZS","BYN","BIF","SGD","HRK","USD","MNT","LRD","MYR","HKD","KMF","AMD","NPR","ISK","ILS","MAD","SCR","DZD","DKK","BSD","DJF","INR","UAH","AED","UYU","MWK","VUV","ZAR","PEN","ZMW","STN","XOF","XCD","KYD","ETB","BTN","MOP","BND","MUR","NAD","BWP","RSD","CHF","AWG","BMD","MMK","BZD","TRY","MDL","XAF","SRD","SEK","AUD","ARS","BDT","HTG","BBD","MKD","ALL","AFN","HUF","RWF","NZD","WST","MXN"]},{"payment_method":"card","payment_method_type":"debit","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic","manual"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","DinersClub","Discover","JCB","Mastercard","UnionPay","Visa"],"supported_countries":["GR","SE","RO","EE","CZ","FI","NL","HR","IT","DK","CY","LU","HU","PL","GB","SK","DE","LV","SI","AT","ES","FR","BG","US","IE","CA","BE","LT","MT","PT"],"supported_currencies":["TWD","MWK","FKP","BWP","DKK","BZD","CDF","RON","LKR","SBD","THB","TTD","MKD","USD","ANG","AUD","VUV","DZD","SZL","BYN","MDL","GTQ","SLL","TOP","DOP","CAD","KRW","CZK","BIF","KZT","SCR","XAF","XPF","FJD","BOB","TZS","MUR","SHP","BSD","ISK","MVR","HTG","ETB","CNY","LSL","COP","UAH","UZS","SAR","ZAR","MOP","NAD","RWF","CRC","INR","SOS","AMD","WST","ZMW","AOA","BMD","CVE","HNL","MZN","QAR","MGA","BTN","STN","GBP","NZD","HUF","MMK","LBP","BBD","PAB","HKD","GEL","BRL","SRD","KMF","LRD","AFN","BAM","KYD","MYR","XCD","JPY","LAK","ALL","EUR","SGD","NOK","PGK","PEN","RSD","TRY","NIO","VND","PHP","CLP","MNT","IDR","AWG","HRK","GYD","TJS","MXN","BND","UGX","UYU","MRU","NPR","NGN","XOF","BDT","SEK","ILS","PKR","EGP","PLN","YER","GMD","KES","ARS","JMD","AZN","BGN","DJF","MAD","KHR","CHF","GIP","PYG","AED","GHS"]}],"supported_webhook_flows":[]},{"name":"MIFINITY","display_name":"MIFINITY","description":"Mifinity is a payment gateway empowering you to pay online, receive funds, and send money globally, the MiFinity eWallet supports super-low fees, offering infinite possibilities to do more of the things you love.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"wallet","payment_method_type":"mifinity","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic"],"supported_countries":["GF","MY","KI","FI","GR","TL","SG","BW","PL","BG","DK","LI","KZ","DM","KH","UY","PY","EE","CI","ER","MO","GP","MA","MC","KM","SH","GT","CU","RO","UZ","IM","PW","GQ","AE","GG","QA","DJ","UA","MQ","NC","BI","LT","FM","VU","AT","WS","TN","GE","PM","MT","VI","ME","GS","CX","VG","MH","SZ","BB","PF","KY","IN","BT","MS","SR","AO","EC","IL","ML","TO","GA","GN","LB","MD","BS","IT","HM","IE","NR","SX","MK","AR","KE","AI","RU","CO","BD","PH","GL","HR","NU","AS","BM","FK","CZ","GH","SJ","DZ","NE","BE","AG","CF","TT","VE","AM","CM","TF","MF","HK","BZ","GB","MV","MU","CW","LS","NZ","PK","BL","NA","JP","CR","HN","NO","FJ","TG","CL","PR","AL","CC","VA","IS","PA","MZ","PG","RW","SK","GU","MG","YT","ES","RS","PE","GY","SV","BF","SI","CK","NF","SC","NI","TK","FO","AX","TD","UG","KN","LK","BJ","DE","EG","LU","CH","ID","PS","ZM","LV","SE","MN","WF","LA","LC","SO","NL","MW","SA","SB","TM","AD","NG","SL","CA","GD","AU","TC","PN","TV","HT","BO","BA","MR","ZA","TW","SN","TH","CG","CN","CY","IO","JE","BN","AW","AZ","TR","ST","RE","GM","MX","JO","PT","VC","DO","VN","GW","KW","CV","MP","BR","GI","FR","BH","BQ","ET","KG","NP","OM","KR","EH","SM"],"supported_currencies":["NZD","PLN","ZAR","CAD","RUB","GBP","SEK","USD","UZS","CZK","DKK","INR","EUR","JPY","CNY","EGP","AUD","UYU","CHF","NOK"]}],"supported_webhook_flows":[]},{"name":"MOLLIE","display_name":"MOLLIE","description":"Mollie is a Developer-friendly processor providing simple and customizable payment solutions for businesses of all sizes.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","JCB","DinersClub","UnionPay","Interac","CartesBancaires"],"supported_countries":null,"supported_currencies":null},{"payment_method":"card","payment_method_type":"credit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","JCB","DinersClub","UnionPay","Interac","CartesBancaires"],"supported_countries":null,"supported_currencies":null},{"payment_method":"wallet","payment_method_type":"paypal","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"wallet","payment_method_type":"apple_pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"bank_debit","payment_method_type":"sepa","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"bank_redirect","payment_method_type":"eps","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["AT"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"sofort","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"bank_redirect","payment_method_type":"przelewy24","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["PL"],"supported_currencies":["EUR","PLN"]},{"payment_method":"bank_redirect","payment_method_type":"ideal","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["NL"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"bancontact_card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"bank_redirect","payment_method_type":"giropay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":null}],"supported_webhook_flows":[]},{"name":"NEXIXPAY","display_name":"Nexixpay","description":"Nexixpay is an Italian bank that specialises in payment systems such as Nexi Payments (formerly known as CartaSi).","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","JCB"],"supported_countries":["GB","DE","EE","SI","SE","GR","ES","IT","NL","US","FI","FR","HR","BE","AU","LU","CZ","BR","HU","MT","PL","RO","CY","SK","IE","DK","NO","CH","LV","LT","PT","AT","BG"],"supported_currencies":["DKK","KRW","TWD","COP","UAH","AZN","NOK","AED","RSD","HUF","JOD","THB","PLN","ZAR","HRK","BRL","TRY","AOA","QAR","VND","INR","KWD","RUB","MYR","CHF","USD","SGD","HKD","RON","MXN","GBP","CNY","PHP","ARS","CZK","KZT","AUD","BGN","EGP","BYN","SAR","SEK","CAD","EUR","JPY","NGN","BHD","CLP"]},{"payment_method":"card","payment_method_type":"credit","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","JCB"],"supported_countries":["CY","BG","PL","BE","GB","SI","CZ","IE","LV","ES","HU","MT","FI","GR","PT","NL","EE","RO","AT","LT","SE","FR","DK","CH","AU","HR","NO","BR","US","IT","LU","DE","SK"],"supported_currencies":["AOA","EUR","ARS","CAD","CHF","GBP","AUD","AED","UAH","HKD","CLP","JPY","INR","QAR","RON","SEK","BHD","KWD","RUB","THB","HUF","NGN","AZN","PLN","COP","MXN","BYN","MYR","ZAR","BRL","HRK","KZT","EGP","PHP","NOK","CZK","DKK","VND","SAR","CNY","JOD","USD","TRY","KRW","RSD","BGN","SGD","TWD"]}],"supported_webhook_flows":[]},{"name":"PAYBOX","display_name":"Paybox","description":"Paybox is a payment gateway that enables businesses to process online transactions securely ","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["FR"],"supported_currencies":["AUD","USD","CAD","EUR"]},{"payment_method":"card","payment_method_type":"credit","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["FR"],"supported_currencies":["EUR","AUD","CAD","USD"]}],"supported_webhook_flows":[]},{"name":"PAYU","display_name":"Payu","description":"PayU is a global fintech company providing online payment solutions, including card processing, UPI, wallets, and BNPL services across multiple markets ","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"not_supported","supported_card_networks":["Visa","Mastercard","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["AS","VE","RS","BB","DK","CD","EG","IS","CM","JO","MN","UY","CO","AI","DZ","TR","MA","TO","TM","JM","SR","RO","KG","RW","BR","UZ","PE","SB","BO","VU","ET","PF","IL","MD","SC","SV","CW","BN","KR","HU","BA","HN","PL","YE","MG","BH","GY","SE","TJ","WS","AW","GT","CR","BS","LS","LA","CA","AM","DJ","GH","BI","AO","HK","ID","PG","BV","CK","BG","GN","KM","CZ","GG","LI","AD","IQ","MY","OM","NG","UG","KW","BZ","LB","ZW","NA","SZ","KY","TT","BJ","TZ","VN","GI","MZ","JP","MV","FJ","MR","TN","FK","CV","HT","PY","SG","MW","AL","BY","TW","CL","AR","AU","GM","AE","KH","TH","LR","HR","NI","DO","CN","BW","ZA","GE","MK","SA","MX","AF","QA","AZ","KZ","PA","BM","ZM","MO","SH","SO"],"supported_currencies":["SOS","RSD","ZAR","CVE","AUD","GHS","KRW","AED","TMT","IQD","SEK","NZD","GEL","JOD","TZS","HNL","PYG","CHF","NIO","DJF","GYD","JMD","SRD","GIP","SZL","USD","HUF","THB","CZK","PEN","XPF","KHR","DKK","KZT","FKP","YER","HKD","BMD","UGX","KWD","SGD","XAF","GBP","ARS","RON","MNT","MWK","BHD","ZWL","LRD","XCD","ZMW","MGA","UYU","TOP","KMF","TWD","SCR","BAM","MVR","PLN","KYD","BBD","AOA","COP","ETB","WST","AWG","BRL","BIF","MXN","UZS","AMD","AZN","CDF","BSD","JPY","MDL","MYR","ANG","BOB","SVC","GMD","CLP","OMR","SBD","TRY","BGN","GNF","HTG","KGS","CNY","MAD","QAR","RWF","CAD","PGK","SHP","EUR","NAD","FJD","ISK","LAK","MKD","ILS","BYN","BZD","VND","TJS","SAR","TND","DZD","AFN","LBP","DOP","MZN","EGP","PAB","GTQ","TTD","VES","MOP","VUV","XOF","HRK","NGN","BWP","MRU","ALL","IDR","BND","NOK","LSL","CRC"]},{"payment_method":"card","payment_method_type":"debit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"not_supported","supported_card_networks":["Visa","Mastercard","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["SE","GG","BI","SA","LR","JM","SG","KW","AZ","SV","LA","BW","RO","AO","JP","TM","OM","MX","GN","KY","CO","IL","IS","VU","BG","HK","AR","SO","GT","BO","CK","MG","RS","JO","LB","RW","TW","AE","BY","CA","DZ","SR","VN","GY","MZ","CW","DJ","GI","BZ","BN","KZ","ET","CL","CZ","WS","BA","PE","MK","TN","CV","AW","CM","FJ","BV","GE","PA","MD","YE","CN","NG","GH","SC","TH","ZA","VE","UG","LS","MV","AD","TJ","ZM","NI","TR","MY","TO","BM","BH","HN","KG","MO","HU","PG","BR","TZ","TT","MW","AI","PY","LI","KR","DO","PF","GM","EG","AL","CD","HT","IQ","NA","MN","KH","UZ","HR","BJ","AM","SH","UY","ID","AS","DK","SB","AF","FK","MA","SZ","MR","BB","PL","CR","KM","BS","AU","ZW","QA"],"supported_currencies":["BND","FJD","PLN","VND","CNY","CLP","DZD","NGN","KRW","BBD","GTQ","SBD","MAD","PYG","CAD","GNF","JOD","BGN","ZAR","AFN","ARS","MDL","TMT","DOP","MGA","HRK","BIF","GMD","UYU","EUR","SOS","GIP","CRC","KGS","XCD","LBP","SGD","NZD","QAR","BOB","ISK","CDF","CZK","TRY","JPY","IDR","KMF","SAR","BAM","WST","RSD","KWD","AZN","BWP","ILS","PGK","TZS","NAD","RON","MWK","PEN","GHS","VUV","AED","UZS","ZMW","THB","ETB","DJF","VES","GBP","GYD","ZWL","KHR","SEK","RWF","EGP","HKD","IQD","MKD","COP","SVC","UGX","BYN","TOP","BRL","JMD","GEL","MNT","TJS","XOF","AUD","MYR","SHP","TND","HUF","MOP","NIO","BHD","KYD","AOA","SZL","AWG","MVR","XPF","LSL","LAK","XAF","CVE","BMD","HTG","NOK","MRU","BZD","KZT","ALL","OMR","AMD","ANG","CHF","DKK","SRD","USD","HNL","MZN","PAB","TTD","TWD","LRD","YER","MXN","BSD","SCR","FKP"]},{"payment_method":"wallet","payment_method_type":"google_pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["CN","GG","ZW","BY","GN","IS","CA","CO","IQ","LR","TT","TJ","BA","GH","HU","BI","VE","BN","AS","AL","GM","KZ","AU","DZ","TR","VN","BG","BV","SB","SV","LB","GY","SC","BH","SZ","KM","AD","ZA","MA","CR","NA","MY","PL","BS","UZ","TW","ZM","DO","ET","BB","HR","MK","NG","SA","PF","BR","JO","TM","AE","PY","SR","BO","QA","WS","MR","FK","AM","AR","MG","TZ","CZ","BM","KR","TN","BZ","HN","MD","TH","BJ","LA","PE","JM","MZ","AW","LI","SG","KW","GE","KG","RW","CK","IL","KH","YE","AF","GT","EG","AZ","CM","CV","RS","JP","CW","CD","GI","HK","FJ","NI","SO","UG","RO","LS","BW","VU","DK","AI","SE","AO","ID","MW","CL","HT","TO","DJ","UY","KY","OM","MN","PA","MX","PG","SH","MO","MV"],"supported_currencies":["BHD","CNY","GTQ","MKD","MXN","FJD","SAR","CVE","USD","AFN","MOP","EGP","CAD","LAK","THB","UYU","HNL","KZT","CZK","BMD","PLN","VUV","MVR","FKP","SCR","NGN","SEK","TMT","PAB","ETB","GNF","UZS","AZN","MNT","LBP","NAD","RON","NZD","IQD","PYG","TRY","GIP","MDL","SHP","XOF","BYN","GBP","COP","KHR","KYD","BZD","YER","EUR","AED","KGS","PEN","LSL","SZL","MRU","BGN","TOP","BND","CLP","JPY","ALL","GMD","AUD","XCD","PGK","KRW","ANG","BIF","CDF","SRD","TWD","XAF","XPF","KMF","AOA","ZWL","LRD","NOK","HKD","SOS","BBD","ZAR","HRK","DKK","VES","VND","SGD","MAD","ILS","DOP","QAR","ARS","OMR","BSD","JOD","BAM","IDR","GEL","RWF","HUF","GYD","NIO","BRL","TZS","MZN","TTD","DZD","ZMW","WST","KWD","TJS","DJF","CHF","AWG","ISK","SBD","CRC","SVC","AMD","HTG","JMD","MWK","RSD","UGX","MGA","TND","MYR","BOB","BWP","GHS"]},{"payment_method":"wallet","payment_method_type":"apple_pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":null,"supported_currencies":null}],"supported_webhook_flows":[]},{"name":"POWERTRANZ","display_name":"Powertranz","description":"Powertranz is a leading payment gateway serving the Caribbean and parts of Central America ","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard"],"supported_countries":["AE","AZ","BE","KG","KE","PR","CX","GB","KH","ID","GW","RO","TD","EH","TW","PW","BY","GU","VU","BL","NP","AM","SA","BI","VA","SM","UM","BQ","IN","GM","SH","AR","VC","AU","ME","MR","CF","NC","UA","KM","SG","YT","EG","GF","BM","MU","BG","HR","IO","BD","SS","TC","SB","SJ","AX","BA","JM","MG","NL","LT","PF","LI","MT","IQ","DZ","DE","FI","CR","SE","TN","TO","VN","RU","LS","MF","MP","LV","HT","RE","VI","AF","SZ","CA","FK","ZW","PM","FJ","MM","GH","TF","MD","AL","BZ","CH","IE","RS","SD","MQ","CG","TJ","TV","QA","AG","GE","HM","MK","OM","LU","PL","GD","GY","TT","SI","PE","MZ","CU","KW","BO","DM","ZA","PA","BB","BH","MX","CW","CY","US","GG","EE","NG","TR","CO","ET","SX","GQ","IL","CK","WF","LK","IS","DJ","BN","AW","JO","AS","KI","TG","ST","CN","MA","RW","SO","BT","ES","KZ","MO","ER","TM","NU","HU","CC","CD","YE","BW","SN","SK","AO","SR","KP","WS","CI","UG","UZ","MW","JE","PY","MN","AI","IR","KN","LA","BV","SY","LY","PH","CZ","GP","NE","GT","NF","CM","ZM","LR","CV","AQ","IT","KY","JP","KR","PG","TL","MH","NI","HN","VG","SL","GA","FR","NA","DK","PK","MS","SC","GN","AT","BS","EC","LC","BJ","IM","NZ","PN","CL","HK","PT","TH","UY","NR","PS","MV","GL","NO","BR","ML","SV","BF","GI","MY","VE","FM","TZ","MC","GR","LB","FO","DO"],"supported_currencies":["CRC","TTD","GTQ","BSD","HNL","BBD","USD","BMD","KYD","JMD"]},{"payment_method":"card","payment_method_type":"debit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard"],"supported_countries":["DO","AW","GD","PM","CL","CM","KZ","YT","LY","MZ","FJ","CY","PS","ID","FK","UG","PT","UM","HT","DM","GF","SC","CC","KE","IE","AX","IN","BD","NO","IQ","PY","AM","TH","BB","TD","PA","RW","MN","GG","VN","HU","MF","MH","GL","NR","TJ","AE","IL","LU","AR","US","TV","GR","VG","GQ","SL","TL","CZ","DJ","CR","EE","PF","CO","GU","KY","TM","WF","GE","TN","PG","BT","ME","NI","SE","PH","KW","SN","TZ","FO","IS","NU","GN","FR","SK","AQ","MK","BY","LV","LK","PE","GY","SO","JM","AG","LR","BF","KH","NC","SZ","MO","TG","WS","BR","BL","GW","MY","PK","BN","ZM","YE","CW","PR","AT","VU","KM","AI","SS","ER","BG","IR","GT","CV","GP","VE","DK","SY","EG","TT","CF","AO","TF","UA","NZ","CN","ST","BV","KR","LB","AL","RO","UY","PW","LI","DZ","SJ","MX","HR","JP","HM","SI","SM","MA","LC","EC","VA","LA","IO","JE","RU","VI","BI","BS","GB","KP","LT","BO","MQ","SA","ZW","SH","CH","AS","MG","AZ","BM","MC","KG","NE","RS","MP","RE","SG","CX","SD","LS","AF","CG","MV","MD","IM","TO","VC","CK","CU","BW","GI","GA","TR","ML","SB","NL","BQ","BZ","GH","FI","NG","MS","MR","NP","NA","SV","IT","SX","AU","BE","ES","CI","DE","TC","CA","JO","MW","MT","KI","PN","OM","HN","MM","EH","BA","CD","KN","SR","UZ","MU","TW","BH","PL","NF","HK","BJ","FM","ZA","QA","ET","GM"],"supported_currencies":["HNL","GTQ","CRC","TTD","JMD","BMD","USD","BBD","BSD","KYD"]}],"supported_webhook_flows":[]},{"name":"RAPYD","display_name":"Rapyd","description":"Rapyd is a fintech company that enables businesses to collect payments in local currencies across the globe ","category":"payment_gateway","supported_payment_methods":[{"payment_method":"wallet","payment_method_type":"google_pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["EC","CY","LV","MA","NZ","JO","PE","MY","PL","CN","PA","IL","SI","SV","PR","FI","LU","GL","NL","SE","SG","EG","CH","AZ","BA","IS","QA","DO","LT","SA","UA","HN","NC","UY","KW","OM","HR","DK","DE","FR","TW","GR","MC","BG","AM","EE","JE","BE","LA","MO","NO","PT","RS","CL","CR","AT","ES","GE","GT","CO","SM","CZ","GB","US","LI","VA","ZA","CA","MD","AU","KZ","TH","BY","IT","SK","HK","HU","JP","MX","IM","MT","ME","RO","MN","IE","VN"],"supported_currencies":["EUR","GBP","ISK","USD"]},{"payment_method":"wallet","payment_method_type":"apple_pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["AD","CZ","GU","CO","HK","FR","KZ","NZ","AT","BM","PT","SE","PE","IS","GB","ES","FI","HN","EE","ZA","IE","MX","UY","GT","NL","RS","ME","LT","BA","GR","GI","IL","GE","SI","CL","AS","RO","PY","DO","TW","SV","KG","MK","AE","GG","SM","CY","PA","KW","JP","MC","QA","BG","PL","TJ","MY","NI","DK","EC","FO","UA","MP","BE","AR","HU","IM","AM","BH","KY","DE","CR","AL","IT","LU","AZ","GL","LV","CA","TH","SG","SK","VI","MD","VN","HR","CH","MT","US","LI","BR","NO","AU","KH","MO","PR","MA"],"supported_currencies":["GBP","EUR","ISK","USD"]},{"payment_method":"card","payment_method_type":"credit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","Visa","JCB","DinersClub","UnionPay","Mastercard","Discover"],"supported_countries":["AF","AR","BH","CO","CY","NA","SX","CN","ID","GF","HM","IT","MT","DK","MG","SO","AU","AX","AT","DM","GB","CH","GA","GU","PY","PL","RS","SI","AZ","DE","TD","YT","AI","DJ","VA","BT","ET","MN","CX","ZM","AG","KN","CC","IM","KM","KY","BS","GW","CA","PR","MQ","SN","EG","EH","CM","NR","PH","LV","PA","IQ","SV","LY","VU","KZ","TN","AM","CF","GH","HU","NZ","PG","TR","KE","NI","AQ","SA","TV","ZA","SH","TH","PM","HR","ES","CR","HK","CD","SG","FJ","JM","NG","YE","LI","BY","PW","TF","SE","PT","NF","SK","GI","PN","GP","RU","OM","VC","TZ","BV","SJ","KH","MY","AE","GQ","FM","PE","QA","BW","SS","HN","MH","NO","BR","VI","IN","BG","TW","AS","KG","AL","LR","SL","TG","CK","GM","MA","PS","MX","ST","TJ","GG","BB","UG","UY","BZ","DZ","SC","NE","NP","RW","BQ","UM","WF","CL","IS","TT","AO","KR","UZ","GN","TM","NU","MR","IE","MW","GR","SM","JP","LS","IL","MK","VG","FI","BA","LK","JE","GT","JO","CU","CZ","LA","SB","SR","SD","TL","BE","IR","FK","NL","FR","MF","LC","AW","EC","KI","MU","US","MV","GY","GE","UA","ME","VE","WS","SZ","BI","EE","IO","LT","FO","BF","BL","CV","MP","PK","PF","SY","MM","KP","TO","KW","MZ","ML","ER","BD","GD","BJ","HT","BM","CW","CG","MO","ZW","NC","RE","GL","LU","MC","RO","MD","BO","LB","MS","VN","DO","TC","BN","CI"],"supported_currencies":["BOB","KWD","KES","BND","LAK","BWP","BRL","GEL","UYU","IDR","XOF","GBP","BDT","ZMW","MAD","NPR","PHP","HUF","FJD","EUR","LKR","INR","JPY","UGX","MOP","VND","RUB","DKK","CHF","IQD","ISK","MMK","NGN","XAF","TZS","EGP","MXN","THB","NAD","MYR","PKR","QAR","COP","NOK","RSD","CZK","ZAR","RWF","SCR","SGD","SAR","PLN","SLL","NZD","USD","IRR","MZN","KZT","CNY","ILS","KRW","BGN","TRY","RON","GHS","MWK","SEK","AUD","HKD","MDL","UAH","PEN","TWD","HRK","CAD","AED"]},{"payment_method":"card","payment_method_type":"debit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","Visa","JCB","DinersClub","UnionPay","Mastercard","Discover"],"supported_countries":["GF","GM","ZA","SN","NC","AR","CU","LC","TV","US","DO","GB","AZ","MD","LV","KI","SI","BR","DZ","GR","NZ","EC","PW","JM","MF","TC","SM","BL","TR","UY","MS","LK","NP","CF","VC","TF","NG","NE","MT","DJ","SC","CG","ML","CL","IR","NO","LR","DE","BT","CV","SY","BA","KY","AF","KH","MM","IO","TJ","AO","MY","SX","BD","KM","SA","JE","SK","AM","KE","RE","AT","CY","FK","MN","MW","SS","WF","ER","IN","IS","UG","VI","KW","WS","TO","UZ","HR","CO","ET","AW","MQ","HT","TL","BV","VG","BI","NU","IE","SE","PF","TG","PA","MH","CR","SG","ZW","NR","PH","MO","NI","NL","PY","BH","BZ","MK","RW","AL","SB","TZ","MU","GQ","SH","KZ","GY","TD","FR","GA","CK","BE","LS","CZ","OM","HK","KP","BN","BQ","CC","TM","CM","GT","AU","SR","RO","AG","FM","IQ","CN","MX","PS","VE","GH","CI","PR","SO","MG","DM","GG","JO","GN","LU","PL","BW","GU","KN","SZ","YE","MA","AS","ES","BJ","ID","RS","VU","HU","MP","MZ","ST","UA","FO","LT","QA","ZM","GE","AQ","RU","SD","DK","TH","BY","TW","JP","KR","NA","VN","EG","YT","GW","LY","PM","GP","PE","LI","CA","BF","LB","SL","AX","TN","GI","EH","CX","HM","CD","GL","KG","SJ","ME","CW","AE","SV","LA","MV","PG","PK","PN","NF","BG","FI","IT","GD","MC","UM","IL","CH","FJ","BB","MR","VA","HN","BM","EE","IM","BO","PT","AI","BS","TT"],"supported_currencies":["COP","CHF","MWK","HRK","HUF","SEK","UGX","SAR","KRW","KWD","MZN","AED","EGP","XOF","CZK","ISK","ILS","KES","MAD","NGN","FJD","NPR","LAK","GHS","BWP","RSD","IRR","THB","RUB","RWF","BRL","CAD","GEL","TRY","EUR","PEN","XAF","PHP","HKD","KZT","SLL","MDL","IQD","IDR","PKR","TZS","USD","UYU","BOB","NAD","LKR","BDT","BND","NZD","UAH","ZMW","GBP","MMK","RON","NOK","PLN","JPY","MOP","AUD","BGN","DKK","INR","MXN","QAR","TWD","CNY","VND","ZAR","SCR","MYR","SGD"]}],"supported_webhook_flows":["payments","refunds","disputes"]},{"name":"RAZORPAY","display_name":"RAZORPAY","description":"Razorpay helps you accept online payments from customers across Desktop, Mobile web, Android & iOS. Additionally by using Razorpay Payment Links, you can collect payments across multiple channels like SMS, Email, Whatsapp, Chatbots & Messenger.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"upi","payment_method_type":"upi_collect","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["IN"],"supported_currencies":["INR"]}],"supported_webhook_flows":["payments","refunds"]},{"name":"REDSYS","display_name":"Redsys","description":"Redsys is a Spanish payment gateway offering secure and innovative payment solutions for merchants and banks","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"three_ds":"supported","no_three_ds":"not_supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","JCB","DinersClub","UnionPay"],"supported_countries":["ES"],"supported_currencies":["AUD","CAD","CHF","SGD","EUR","ILS","PLN","DKK","HUF","BGN","INR","GBP","MYR","COP","SEK","THB","RUB","CZK","SAR","JPY","USD","PEN","ZAR","NOK","NZD","HRK"]},{"payment_method":"card","payment_method_type":"credit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"three_ds":"supported","no_three_ds":"not_supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","JCB","DinersClub","UnionPay"],"supported_countries":["ES"],"supported_currencies":["PLN","BGN","HRK","PEN","SEK","JPY","THB","INR","EUR","ILS","HUF","MYR","NOK","GBP","SAR","CAD","DKK","AUD","RUB","CHF","NZD","CZK","ZAR","SGD","USD","COP"]}],"supported_webhook_flows":[]},{"name":"SHIFT4","display_name":"Shift4","description":"Shift4 Payments, Inc. is an American payment processing company based in Allentown, Pennsylvania. ","category":"payment_gateway","supported_payment_methods":[{"payment_method":"bank_redirect","payment_method_type":"ideal","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["NL"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"sofort","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["IT","PL","NL","SE","FI","AT","GB","ES","DE","BE","FR","CH"],"supported_currencies":["EUR","CHF"]},{"payment_method":"bank_redirect","payment_method_type":"giropay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["DE"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"eps","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["AT"],"supported_currencies":["EUR"]},{"payment_method":"card","payment_method_type":"credit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard"],"supported_countries":["CI","AM","AR","MS","AG","BG","HR","MN","GD","JP","AO","CU","LV","NO","PL","UY","YT","PK","AD","LB","MU","VI","BM","PH","AU","BF","VE","TF","KZ","FI","TJ","TT","BD","LU","GB","FO","ZA","MC","VU","SG","SE","SH","GN","JM","WS","SA","LC","NA","MG","BA","EE","DJ","DE","KI","SO","CO","EH","GU","TR","HN","MA","MY","GY","BL","TH","MM","NF","HU","GG","HM","KN","QA","SR","DM","IT","BQ","MD","TW","BS","CM","AI","NC","PN","TO","CG","TD","IE","IM","MT","SY","PR","GW","GQ","NG","NR","AS","MV","IS","ME","BN","BZ","MR","FK","ID","PM","GF","GR","MH","RS","ER","SI","TZ","CV","BH","JO","ML","GA","KM","FR","DK","RW","EC","SC","AT","AX","MF","DO","BR","MX","CX","CZ","SJ","HK","AZ","MW","CR","LR","CK","ST","KR","NL","GT","CY","NE","SX","KG","SS","SK","LY","MK","CN","ZW","HT","WF","SB","NZ","UM","BB","PW","LA","LS","MZ","OM","SD","TN","FM","UZ","YE","GE","NI","JE","UA","ZM","IN","ES","AL","PE","LT","DZ","AQ","TL","IL","CA","PT","TV","SM","TC","US","PG","KH","FJ","MP","BJ","PS","CD","KY","PY","BV","MQ","VG","LI","MO","NU","GP","GM","PA","BI","BE","IO","TG","CC","VA","RE","AW","UG","IQ","ET","LK","SN","TM","BW","SL","BT","RO","IR","BY","VC","KP","VN","AF","CW","RU","CL","KE","BO","GH","SV","EG","GI","SZ","NP","GL","AE","PF","CH","KW","CF"],"supported_currencies":["BZD","UGX","GHS","SDG","XCD","SAR","XOF","MRU","BYN","LYD","BDT","MGA","AMD","ALL","BHD","BSD","COP","CVE","CZK","DKK","GTQ","RON","ARS","SVC","NGN","BOB","BGN","AED","MKD","QAR","SHP","KES","DJF","KYD","CAD","NZD","FKP","NPR","SZL","EUR","TZS","JMD","RSD","FJD","DOP","TRY","ZAR","GNF","BIF","MMK","SSP","JPY","UZS","NAD","HNL","LAK","RUB","AFN","BWP","GIP","IQD","CUP","HUF","LRD","BRL","PLN","ZWL","SLL","BAM","BMD","DZD","KWD","SCR","ANG","ERN","CDF","NOK","TWD","ILS","MWK","XPF","MAD","BBD","VND","SOS","MDL","LBP","LSL","UAH","TTD","TND","XAF","YER","ZMW","AZN","BND","KPW","HTG","OMR","SBD","THB","TOP","IDR","NIO","SRD","UYU","KRW","SYP","TJS","GMD","ETB","PHP","CRC","CLP","LKR","PKR","KZT","ISK","PEN","MVR","BTN","CHF","KMF","MUR","PAB","USD","KGS","AUD","PGK","GBP","AWG","CNY","HRK","IRR","EGP","MNT","MOP","AOA","PYG","JOD","GEL","TMT","VUV","RWF","HKD","MYR","MXN","SEK","WST","SGD","KHR","MZN","GYD","INR"]},{"payment_method":"card","payment_method_type":"debit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard"],"supported_countries":["AT","HN","MY","EC","CY","HU","PM","CC","KG","YE","IE","RO","BW","GQ","MH","MD","FM","LC","BB","CW","MV","MZ","PR","TM","VA","RE","BO","CX","SK","WF","PH","SH","TL","VE","ML","GU","MP","TW","CM","LR","TG","DJ","ZW","AO","BZ","AL","GE","MQ","NI","EH","PE","NZ","RS","TT","PW","AI","NL","FJ","RW","TR","UG","VI","CG","BH","BN","SD","IR","LK","CH","JP","SS","IT","DK","MX","SL","FR","ZM","QA","PA","MT","BM","GN","MR","VN","NR","AZ","LY","PF","CD","LT","BJ","FI","MF","CL","MW","SC","MC","KI","TV","UM","IN","KP","ST","SY","LI","BF","NG","AS","JM","UA","TD","OM","ID","IQ","RU","IO","MA","TO","PN","GB","UZ","AD","CI","VU","MS","SI","GW","HT","AG","NE","CU","VC","SZ","HR","CF","BG","HM","FO","IM","KE","KY","LB","BV","LA","CV","TZ","BE","DM","GL","DZ","GY","LS","SN","YT","MG","EE","ES","HK","ZA","BY","GR","KN","MO","TF","TN","NA","ME","DO","GI","BS","SV","SE","MK","DE","GM","MM","AR","AF","ET","EG","CR","GF","NO","SG","BI","CO","US","LU","PY","BA","CZ","LV","SA","WS","AM","BL","GG","TH","PS","BR","SR","NP","GD","VG","UY","FK","AU","KR","NC","BQ","SJ","KH","NF","NU","IL","CA","AW","PT","PK","SB","BT","MU","CN","KW","SM","CK","AX","PL","SX","SO","ER","GH","GA","TC","GT","BD","JE","PG","TJ","GP","IS","KM","AQ","KZ","MN","AE","JO"],"supported_currencies":["CRC","NAD","UAH","LKR","XCD","AMD","ISK","UZS","MWK","SSP","CUP","LRD","NOK","NIO","ANG","SOS","BAM","AZN","BMD","XAF","SBD","TZS","GIP","JMD","GHS","GBP","KES","EUR","MMK","BOB","BSD","KHR","LBP","LYD","TRY","GTQ","OMR","PYG","ILS","DZD","MKD","BHD","CDF","DJF","KWD","XOF","AOA","RSD","PHP","SZL","TOP","YER","KZT","MUR","PLN","JOD","PEN","QAR","FJD","TJS","TWD","ZMW","ARS","BYN","COP","USD","CHF","MZN","SHP","XPF","EGP","MOP","TND","BZD","MAD","KRW","BIF","PGK","AED","HKD","BWP","HRK","NZD","SEK","IQD","VUV","UYU","MDL","KGS","BRL","MYR","GNF","HUF","HNL","SLL","IDR","ALL","SVC","SRD","PKR","BND","UGX","RUB","CVE","GMD","SAR","WST","ZAR","CAD","SDG","LSL","AUD","MNT","TTD","DOP","LAK","VND","AWG","CZK","JPY","ETB","IRR","AFN","RON","CNY","GYD","ERN","INR","KYD","KMF","MGA","SGD","THB","ZWL","GEL","RWF","BGN","CLP","NPR","KPW","SYP","PAB","TMT","BBD","HTG","MVR","NGN","MXN","DKK","BDT","MRU","BTN","FKP","SCR"]}],"supported_webhook_flows":["payments"]},{"name":"SQUARE","display_name":"Square","description":"Square is the largest business technology platform serving all kinds of businesses.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","UnionPay","Interac","JCB"],"supported_countries":["GB","FR","US","IE","CA","JP","ES","AU"],"supported_currencies":["OMR","FKP","LAK","AED","NZD","PLN","SSP","BBD","BOB","NAD","QAR","AWG","HUF","CAD","MAD","MYR","PKR","VND","AFN","PAB","XOF","BMD","HNL","JPY","KHR","MVR","SLE","AUD","HTG","ISK","SGD","ARS","BAM","EGP","GYD","SDG","UYU","SLL","ERN","PEN","BWP","CUP","AOA","FJD","MDL","UAH","DZD","IDR","SCR","VUV","SRD","LBP","BTN","CNY","SEK","CVE","GTQ","DJF","GMD","BSD","MMK","MNT","BGN","SZL","ANG","UZS","RSD","XAF","XCD","HRK","USD","MZN","RWF","NIO","KMF","BND","CDF","KRW","ALL","YER","TTD","MXN","GHS","NPR","TRY","HKD","TZS","AMD","GIP","MGA","SYP","KZT","NGN","KES","GBP","INR","DKK","LKR","IQD","KGS","CZK","THB","KWD","TND","CRC","SVC","BDT","KPW","PYG","GNF","ETB","IRR","TJS","CLP","ZMW","BHD","BZD","JMD","RUB","SBD","LSL","UGX","WST","ILS","MUR","PGK","MKD","PHP","XPF","ZAR","SHP","JOD","LRD","MOP","TOP","EUR","SAR","MWK","NOK","AZN","DOP","BIF","GEL","KYD","SOS","COP","CHF","TMT","RON","LYD","TWD","BRL"]},{"payment_method":"card","payment_method_type":"credit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","UnionPay","Interac","JCB"],"supported_countries":["FR","ES","US","GB","AU","CA","IE","JP"],"supported_currencies":["NAD","VND","UGX","CLP","SHP","INR","BSD","AED","CUP","QAR","DKK","MOP","BDT","GIP","LSL","SOS","MZN","VUV","SCR","LAK","GHS","LKR","GNF","MNT","SBD","BZD","XAF","PHP","ZAR","CZK","MAD","HKD","GYD","MDL","BGN","MVR","AMD","PEN","LRD","KZT","BMD","CDF","TJS","GTQ","CAD","ALL","NIO","TWD","GMD","UYU","TRY","XOF","SAR","KGS","PAB","KMF","TTD","LYD","MYR","EUR","GBP","AZN","BTN","SVC","SLE","AUD","CHF","RSD","FKP","WST","HTG","ILS","ISK","PGK","TND","RUB","COP","MXN","SYP","DZD","KES","GEL","SDG","UAH","HUF","BHD","ERN","SLL","BAM","PKR","PLN","TMT","JMD","JPY","NGN","OMR","TOP","CVE","KWD","NZD","DJF","UZS","SEK","MKD","ZMW","XCD","RWF","LBP","KYD","CNY","ETB","KRW","SZL","AWG","YER","BOB","NOK","MUR","AFN","BIF","RON","NPR","KPW","SSP","USD","SRD","IQD","FJD","MWK","PYG","HRK","MMK","ARS","BND","IDR","JOD","BWP","CRC","BRL","SGD","HNL","KHR","ANG","TZS","IRR","THB","DOP","EGP","XPF","BBD","MGA","AOA"]}],"supported_webhook_flows":["payments","refunds"]},{"name":"TSYS","display_name":"Tsys","description":"TSYS, a Global Payments company, is the payment stack for the future, powered by unmatched expertise.","category":"bank_acquirer","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","AmericanExpress","Discover","JCB","UnionPay"],"supported_countries":["NA"],"supported_currencies":["SBD","AZN","RWF","BYN","BBD","HTG","IRR","NOK","SCR","TWD","PYG","NGN","BTN","CRC","SSP","AOA","MZN","MYR","AWG","FJD","YER","WST","USD","LRD","DJF","UGX","XPF","PEN","DZD","BMD","KRW","PGK","PHP","ETB","TMT","MKD","GTQ","CAD","SDG","XCD","DOP","KPW","KMF","ERN","TRY","UAH","CVE","MVR","CNY","HUF","SHP","ZWL","SEK","NAD","ANG","HRK","PKR","BSD","THB","BZD","KES","RUB","OMR","GMD","PAB","CLP","SOS","AED","ZMW","BIF","RSD","KHR","HKD","TJS","VUV","MRU","GYD","BGN","VES","CUP","IQD","MGA","TTD","UZS","SAR","TND","GEL","LYD","NIO","ISK","BOB","BHD","NPR","XOF","BWP","HNL","TOP","INR","MUR","MOP","VND","MAD","GHS","KGS","BDT","GIP","BND","CZK","JOD","KZT","LKR","CHF","EUR","GNF","JMD","NZD","AMD","QAR","SYP","SZL","STN","ILS","MDL","MWK","MMK","EGP","SLE","SGD","KYD","IDR","LBP","MNT","SVC","AUD","BRL","ALL","XAF","LSL","RON","PLN","UYU","ZAR","COP","TZS","LAK","CDF","MXN","ARS","SRD","KWD","FKP","JPY","GBP","BAM","AFN","DKK"]},{"payment_method":"card","payment_method_type":"credit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","AmericanExpress","Discover","JCB","UnionPay"],"supported_countries":["NA"],"supported_currencies":["NIO","DKK","GIP","BWP","CNY","MMK","CVE","NOK","SAR","CDF","XAF","ZWL","MUR","CZK","KMF","IDR","TOP","VUV","CHF","SDG","OMR","GHS","JOD","MDL","SEK","TJS","LRD","PEN","UAH","XPF","SYP","AWG","GEL","PGK","MGA","LKR","SOS","AFN","HTG","NZD","ZAR","FKP","LYD","ARS","BIF","GYD","MOP","RON","STN","QAR","BOB","CRC","HKD","COP","BND","UZS","KZT","TRY","MXN","CUP","SHP","SCR","LSL","RUB","KHR","DJF","VND","GBP","DZD","KRW","IQD","GMD","ETB","UYU","BGN","ERN","MKD","HUF","MVR","INR","SZL","AUD","MWK","KYD","GTQ","BHD","SGD","KGS","USD","ANG","GNF","ISK","NAD","KPW","TWD","BSD","FJD","WST","BMD","PAB","ILS","MZN","LBP","PKR","HRK","TTD","RSD","CAD","NGN","DOP","MNT","MRU","BAM","UGX","BZD","CLP","PYG","AED","RWF","SLE","SRD","BRL","XOF","IRR","NPR","EUR","HNL","LAK","SSP","XCD","VES","BDT","EGP","JMD","MAD","MYR","SVC","ZMW","BYN","AOA","TZS","PLN","ALL","TND","BTN","PHP","AZN","JPY","SBD","KWD","BBD","THB","AMD","KES","TMT","YER"]}],"supported_webhook_flows":[]},{"name":"VOLT","display_name":"VOLT","description":"Volt is a payment gateway operating in China, specializing in facilitating local bank transfers","category":"payment_gateway","supported_payment_methods":[{"payment_method":"bank_redirect","payment_method_type":"open_banking_uk","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["NL","EE","CZ","PL","GB","AT","HR","IT","FR","IE","DE","MT","SK","SE","LU","FI","CY","ES","GR","LV","PT","RO","BG","LT","AU","SI","NO","HU","BR","BE","DK"],"supported_currencies":["NOK","PLN","AUD","GBP","SEK","EUR","BRL","DKK"]}],"supported_webhook_flows":[]},{"name":"WORLDLINE","display_name":"Worldline","description":"Worldline, Europe's leading payment service provider","category":"payment_gateway","supported_payment_methods":[{"payment_method":"bank_redirect","payment_method_type":"ideal","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["NL"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"giropay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["DE"],"supported_currencies":["EUR"]},{"payment_method":"card","payment_method_type":"credit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","Discover","Mastercard","Visa"],"supported_countries":["NG","GA","IO","CX","SY","CI","US","MH","TJ","AE","LA","UA","GM","KE","NU","TC","MO","MU","AG","FK","FI","BD","HM","BT","CZ","BH","DE","VA","CG","PH","BB","PM","YE","SH","SC","BV","CL","NZ","TF","ZA","LK","PL","EH","GB","DK","GG","PW","HN","LT","AO","MG","GQ","GY","SO","AI","IQ","SJ","BA","IS","HR","TD","KN","RW","TO","UZ","RU","AD","BW","UG","EG","OM","SR","TH","BZ","KW","BL","BM","PR","AM","MN","TM","CN","IL","LR","KY","NO","BS","CW","KH","SD","GP","YT","NE","MQ","ER","BG","FM","BN","PG","PK","MW","MS","FJ","TT","JM","TR","NL","TN","VC","CH","CU","TW","SN","WS","EC","TZ","GD","VN","NF","SS","DZ","RS","CV","LY","KZ","SZ","GU","SG","KG","AX","DM","AL","IR","IN","ES","NP","PE","BO","AZ","WF","CF","TG","MY","CR","MV","LB","KP","CM","LS","CO","ET","SA","GI","DO","HT","AS","CD","KR","BJ","GF","SB","AQ","TV","PF","GN","VE","CC","EE","GW","IM","VI","LI","MP","GH","VU","PA","PT","MC","SK","PN","ZM","AW","BE","SV","LU","SL","GR","JP","BR","CK","DJ","GL","ID","MK","KI","GT","RO","NA","NI","AU","QA","PY","SX","MM","MD","IE","LV","KM","BY","JO","BQ","MT","SE","MA","TL","JE","ML","IT","ST","RE","CY","MX","AF","CA","MZ","PS","MR","UY","LC","UM","AT","ZW","AR","FO","NC","SI","HK","BF","BI","GE","VG","MF","HU","SM","ME","NR","FR"],"supported_currencies":["FJD","BGN","MYR","BTN","CDF","GTQ","LBP","JOD","AOA","SDG","NGN","SGD","SOS","BWP","USD","VND","SCR","KMF","PLN","CNY","XPF","NIO","MWK","DZD","WST","BDT","GNF","HUF","XOF","SAR","TRY","MDL","RWF","SHP","KZT","LAK","SYP","UAH","GMD","MUR","CUP","UYU","ZMW","KYD","HRK","AMD","ARS","HNL","BRL","BAM","SBD","RSD","ETB","TMT","XAF","HTG","KES","KHR","BBD","MMK","QAR","RUB","BIF","MRU","BZD","ZAR","GBP","MNT","MVR","CAD","IDR","KRW","ALL","TND","UZS","ZWL","CZK","SEK","JMD","YER","HKD","CLP","CRC","EGP","BND","KPW","TOP","MXN","SZL","ANG","EUR","GHS","MKD","NOK","PHP","BOB","ILS","AZN","ERN","AED","IQD","LSL","MGA","XCD","KGS","SSP","NZD","UGX","DJF","GIP","CHF","JPY","MZN","PEN","AFN","SLL","MOP","AUD","TTD","ISK","THB","NPR","DOP","INR","DKK","BSD","RON","IRR","MAD","CVE","LKR","NAD","OMR","GYD","PAB","PKR","SRD","TZS","TWD","TJS","FKP","LYD","PGK","BHD","KWD","AWG","BYN","SVC","GEL","BMD","VUV","PYG","COP","LRD"]},{"payment_method":"card","payment_method_type":"debit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","Discover","Mastercard","Visa"],"supported_countries":["VU","KG","FI","KN","ZM","GW","HM","GB","CA","MC","AU","ER","MH","RU","RW","ID","NE","US","AM","BD","CV","BH","TF","MY","KE","TH","BG","CN","ML","TM","TO","MZ","NR","CR","KP","BF","MS","MW","NP","NU","AQ","ME","DM","VI","DZ","MX","BE","SL","CG","BO","GE","SX","SA","MP","GM","GD","TN","TT","GN","VC","JE","MM","AF","HU","KR","AE","BR","TC","PK","BM","NI","CU","CI","LB","LY","TJ","DE","FO","GH","BS","VE","ES","LA","PN","CX","CC","PL","WS","GY","KI","NZ","MR","HK","ST","UG","GQ","BV","GI","GT","GU","AR","JP","SS","GG","TD","BN","SV","FM","KH","BB","MG","PM","EE","LK","BQ","NC","WF","PW","KM","EH","JM","PA","KZ","SK","LS","YE","LC","FJ","CW","PF","BY","NF","MD","AO","BT","CL","DK","HR","BA","BL","DO","IR","IE","AG","PT","GA","TR","JO","NL","BW","UY","GR","IS","MU","IT","MT","UZ","UM","ZA","LI","LT","PS","ET","LU","PH","SM","ZW","TV","AD","CH","SI","BI","EG","IL","VN","NA","PE","TG","SO","AL","OM","MN","PR","CF","MV","NO","RO","RS","AI","LV","SC","RE","SH","SY","DJ","MO","AT","VG","SZ","GP","IO","AS","FR","KY","CY","GF","IQ","QA","SD","FK","NG","AW","MK","MQ","TL","SN","SG","CZ","CO","SE","CD","MF","VA","SJ","HN","AZ","EC","AX","GL","BZ","BJ","KW","TZ","SR","LR","IM","PG","SB","PY","CM","HT","YT","CK","TW","MA","UA","IN"],"supported_currencies":["PEN","KZT","AMD","THB","DKK","HTG","ARS","LBP","RSD","OMR","NOK","HRK","GTQ","JOD","GIP","LKR","LRD","SEK","KHR","SZL","TWD","ALL","HNL","KWD","FJD","CNY","GBP","UZS","TZS","CDF","CVE","MKD","SYP","YER","PHP","HKD","SDG","CUP","LSL","NGN","TMT","XAF","AOA","AED","BDT","CZK","PAB","SSP","BOB","CRC","PYG","AUD","LAK","MZN","NAD","CLP","JMD","SAR","SRD","VND","NZD","BWP","ERN","IQD","XPF","BSD","BGN","TOP","BBD","EGP","LYD","CAD","SBD","TTD","XCD","ANG","UGX","MDL","AWG","NPR","UAH","BMD","TND","MRU","FKP","GEL","EUR","GHS","MGA","MWK","CHF","ETB","AFN","ZAR","PLN","IDR","ILS","SVC","MVR","SGD","ZWL","SHP","SLL","PKR","KES","BTN","XOF","KGS","SCR","GYD","BHD","BRL","MUR","USD","VUV","NIO","MMK","GMD","MOP","ZMW","PGK","MAD","JPY","BYN","COP","GNF","RUB","RWF","BIF","RON","KRW","AZN","BND","KYD","QAR","DOP","BAM","MYR","MNT","MXN","BZD","HUF","KMF","INR","KPW","UYU","WST","ISK","DZD","SOS","DJF","TJS","IRR","TRY"]}],"supported_webhook_flows":["payments"]},{"name":"ZSL","display_name":"ZSL","description":"Zsl is a payment gateway operating in China, specializing in facilitating local bank transfers","category":"payment_gateway","supported_payment_methods":[{"payment_method":"bank_transfer","payment_method_type":"local_bank_transfer","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic"],"supported_countries":["CN"],"supported_currencies":["CNY"]}],"supported_webhook_flows":[]}]}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/bitpay.rs`
- `crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs`
- `crates/hyperswitch_connectors/src/connectors/helcim.rs`
- ... and 3 more files
**Code Patterns Applied:**
- Extend existing types with new fields (53 changes)
**Detailed Identifier Changes:**
Commit fcbd863b:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/bitpay.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/helcim.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/jpmorgan.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/paybox.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/payu.rs**
Modify existing code
|
{"pr_number": 7524, "pr_title": "fix(connector): [JPMORGAN, PAYU, DIGITALVIRGO, BITPAY, HELCIM, PAYBOX] Replaced lazystatic macros with LazyLock", "merged_at": "2025-04-02T13:36:03Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/bitpay.rs", "crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs", "crates/hyperswitch_connectors/src/connectors/helcim.rs", "crates/hyperswitch_connectors/src/connectors/jpmorgan.rs", "crates/hyperswitch_connectors/src/connectors/paybox.rs", "crates/hyperswitch_connectors/src/connectors/payu.rs"]}, "change_types": {"fields_added": 53, "imports_added": 11}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(router): add pre-confirm payments eligibility api
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
**Payments Eligibility API**
This PR introduces the Payments Eligibility API, which is invoked by the SDK after the payment method data filled event. The API pre-processes the submitted payment method data to determine the appropriate next action and checks eligibility based on various parameters.
As part of this change, blocklist checks have been added to the eligibility flow to ensure that ineligible or restricted payment methods are identified early in the process.
<img width="843" height="1443" alt="image" src="https://github.com/user-attachments/assets/025e6255-6cb1-4376-8ae6-f39c2495d50d" />
### Additional Changes
- [x] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Tested Manually
1. Create a blocklist rule for a card_bin (424242)
CURL
```
curl --location '{{BASE_URL}}/blocklist' \
--header 'Content-Type: application/json' \
--header 'api-key: {{API_KEY}}' \
--data '{
"type": "card_bin",
"data": "424242"
}'
```
Response
```
{
"fingerprint_id": "424242",
"data_kind": "card_bin",
"created_at": "2025-10-09T13:52:38.914Z"
}
```
2. Call the Eligibility API with blocklisted bin to see next_action being Deny in the response
CURL
```
curl --location '{{BASE_URL}}/payments/{{PAYMENT_ID}}/eligibility' \
--header 'Content-Type: application/json' \
--header 'api-key: {{PUBLISHABLE_KEY}}' \
--data '{
"client_secret": "pay_UvTqxnVPNNChhe1vKk1W_secret_AF9avGOwxxvcwqHhmYv0",
"payment_method_type": "card",
"payment_method_data": {
"card": {
"card_number": "4242424242424242",
"card_exp_month": "01",
"card_exp_year": "2050",
"card_holder_name": "John Smith",
"card_cvc": "349",
"card_network": "Visa"
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "CA",
"zip": "94122",
"country": "US",
"first_name": "John",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
}
}
}'
```
Response
```
{
"payment_id": "pay_UvTqxnVPNNChhe1vKk1W",
"sdk_next_action": {
"next_action": {
"deny": {
"message": "Card number is blocklisted"
}
}
}
}
```
3. Call the Eligibility API with non-blocklisted bin to see next_action being Confirm in the response
CURL
```
curl --location '{{BASE_URL}}/payments/{{PAYMENT_ID}}/eligibility' \
--header 'Content-Type: application/json' \
--header 'api-key: {{PUBLISHABLE_KEY}}' \
--data '{
"client_secret": "pay_UvTqxnVPNNChhe1vKk1W_secret_AF9avGOwxxvcwqHhmYv0",
"payment_method_type": "card",
"payment_method_data": {
"card": {
"card_number": "411111111111111",
"card_exp_month": "01",
"card_exp_year": "2050",
"card_holder_name": "John Smith",
"card_cvc": "349",
"card_network": "Visa"
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "CA",
"zip": "94122",
"country": "US",
"first_name": "John",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
}
}
}'
```
Response
```
{
"payment_id": "pay_UvTqxnVPNNChhe1vKk1W",
"sdk_next_action": {
"next_action": "confirm"
}
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/events/payment.rs`
- `crates/api_models/src/payments.rs`
**2. Core Business Logic**
- `crates/router/src/core/blocklist/utils.rs`
- `crates/router/src/core/payments.rs`
**3. Type Definitions**
- `crates/router/src/types/api/payments.rs`
- `crates/router_env/src/logger/types.rs`
**4. Utils**
- `crates/router/src/routes/lock_utils.rs`
**5. Other**
- `api-reference/v1/openapi_spec_v1.json`
- `api-reference/v2/openapi_spec_v2.json`
- `crates/router/src/routes/app.rs`
- ... and 2 more files
**Code Patterns Applied:**
- Define new data structures (2 changes)
- Implement new functions (16 changes)
- Extend existing types with new fields (41 changes)
- Add conditional logic for feature flags or filtering (3 changes)
**Detailed Identifier Changes:**
Commit ecf702ab:
Files to modify:
**crates/api_models/src/events/payment.rs**
Add:
- function: private::get_api_event_type
- function: private::get_api_event_type
- impl: impl ApiEventMetric for payments::PaymentsEligibilityRequest
- impl: impl ApiEventMetric for payments::PaymentsEligibilityResponse
**crates/api_models/src/payments.rs**
Modify existing code
**crates/router/src/core/blocklist/utils.rs**
Add:
- function: pub::should_payment_be_blocked
**crates/router/src/core/payments.rs**
Add:
- function: private::from
- function: private::should_run
- function: private::execute_check
- function: private::transform
- function: private::new
- function: private::run_check
- function: pub::payments_submit_eligibility
- struct: private::BlockListCheck
- struct: pub::EligibilityHandler
- enum: pub::CheckResult
- trait: private::EligibilityCheck
- impl: impl From<CheckResult> for Option<api_models::payments::SdkNextAction>
- impl: impl EligibilityCheck for BlockListCheck
- impl: impl EligibilityHandler
**crates/router/src/routes/app.rs**
Modify existing code
**crates/router/src/routes/lock_utils.rs**
Modify existing code
**crates/router/src/routes/payments.rs**
Add:
- function: pub::payments_submit_eligibility
**crates/router/src/services/authentication.rs**
Add:
- function: private::get_client_secret
- impl: impl ClientSecretFetch for payments::PaymentsEligibilityRequest
**crates/router/src/types/api/payments.rs**
Modify existing code
**crates/router_env/src/logger/types.rs**
Modify existing code
|
{"pr_number": 9774, "pr_title": "feat(router): add pre-confirm payments eligibility api", "merged_at": "2025-10-16T07:16:20Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "card"]}, "hierarchy": {"api_models": ["crates/api_models/src/events/payment.rs", "crates/api_models/src/payments.rs"], "core_business": ["crates/router/src/core/blocklist/utils.rs", "crates/router/src/core/payments.rs"], "types": ["crates/router/src/types/api/payments.rs", "crates/router_env/src/logger/types.rs"], "utils": ["crates/router/src/routes/lock_utils.rs"], "other": ["api-reference/v1/openapi_spec_v1.json", "api-reference/v2/openapi_spec_v2.json", "crates/router/src/routes/app.rs", "crates/router/src/routes/payments.rs", "crates/router/src/services/authentication.rs"]}, "change_types": {"structs_added": 2, "functions_added": 16, "enums_added": 1, "fields_added": 41, "imports_added": 1, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(connector): [SHIFT4] Fix 3DS payments and api key
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
- Fixed 3DS payments for Shift4.
- Updated shift4 authentication to use the direct secret key from shift4 dashboard, removing the need for manual Base64 encoding.
- Updated error messages for unsupported flows like Void and Partial Captures.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
https://github.com/juspay/hyperswitch/issues/9479
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Cypress:
<img width="555" height="883" alt="image" src="https://github.com/user-attachments/assets/7dca5ff2-2ce7-4b7f-84cb-11a50c639508" />
Note: All card test cases are working as expected. Only 1 sofort test case is failing during redirection(which is unrelated to this PR)
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/shift4.rs`
**2. Tests**
- `cypress-tests/cypress/e2e/configs/Payment/Shift4.js`
**Code Patterns Applied:**
- Implement new functions (1 changes)
- Extend existing types with new fields (12 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 97fe0723:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/shift4.rs**
Remove:
- impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Shift4
Add:
- function: private::build_request
- impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Shift4
|
{"pr_number": 9480, "pr_title": "fix(connector): [SHIFT4] Fix 3DS payments and api key", "merged_at": "2025-09-24T14:07:54Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "card"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/shift4.rs"], "tests": ["cypress-tests/cypress/e2e/configs/Payment/Shift4.js"]}, "change_types": {"functions_added": 1, "fields_added": 12, "imports_added": 2, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(connector): [Recurly] Add record back support for recurly [V2]
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Add support for record back flow for recurly.
#### What is record back flow ?
After payment is retried by revenue recovery, we need to update the billing processor invoice.
#### Recurly flow
We record the transaction in recurly created by internal system. This transaction will automatically update the invoice status in recurly system.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
This can only be tested in local since the entire recovery flow is not complete. Tested locally by triggering the connector integration manually.
Here are the local testing logs :

## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/recurly.rs`
- `crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs`
- `crates/hyperswitch_connectors/src/default_implementations.rs`
**2. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Implement new functions (8 changes)
- Extend existing types with new fields (18 changes)
**Detailed Identifier Changes:**
Commit 2b70c945:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/recurly.rs**
Add:
- function: private::get_headers
- function: private::get_url
- function: private::get_content_type
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- impl: impl api::revenue_recovery::RevenueRecoveryRecordBack for Recurly
- impl: impl ConnectorIntegration<
RecoveryRecordBack,
RevenueRecoveryRecordBackRequest,
RevenueRecoveryRecordBackResponse,
> for Recurly
**crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs**
Add:
- function: private::try_from
- function: private::try_from
- struct: pub::RecurlyRecordbackResponse
- enum: pub::RecurlyRecordStatus
- impl: impl TryFrom<enums::AttemptStatus> for RecurlyRecordStatus
- impl: impl TryFrom<
ResponseRouterData<
RecoveryRecordBack,
RecurlyRecordbackResponse,
RevenueRecoveryRecordBackRequest,
RevenueRecoveryRecordBackResponse,
>,
> for RevenueRecoveryRecordBackRouterData
**crates/hyperswitch_connectors/src/default_implementations.rs**
Modify existing code
|
{"pr_number": 7544, "pr_title": "feat(connector): [Recurly] Add record back support for recurly [V2]", "merged_at": "2025-03-24T12:01:57Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/recurly.rs", "crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {"structs_added": 1, "functions_added": 8, "enums_added": 1, "fields_added": 18, "imports_added": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
chore: create indexes on required id columns for v2 application
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Since `id` column is introduced as varchar for a few major tracker tables in v2, index creation was missed in v2_compatible_migrations directory. This PR includes that.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
To improve DB query time.
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Ran diesel migrations
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Other**
- `v2_compatible_migrations/2025-10-07-131000_add_indexes_on_id_columns/down.sql`
- `v2_compatible_migrations/2025-10-07-131000_add_indexes_on_id_columns/up.sql`
|
{"pr_number": 9704, "pr_title": "chore: create indexes on required id columns for v2 application", "merged_at": "2025-10-08T15:44:43Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"other": ["v2_compatible_migrations/2025-10-07-131000_add_indexes_on_id_columns/down.sql", "v2_compatible_migrations/2025-10-07-131000_add_indexes_on_id_columns/up.sql"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
feat(users): Convert emails to lowercase from requests
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
This PR changes will convert emails from request to lowercase before performing any DB operations.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
Closes #6600.
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
```
curl --location 'http://localhost:8080/user/connect_account' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "[email protected]"
}'
```
This email in the about request will be inserted as `[email protected]` in DB.
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Type Definitions**
- `crates/router/src/types/domain/user.rs`
**Detailed Identifier Changes:**
Commit c04f81e3:
Files to modify:
**crates/router/src/types/domain/user.rs**
Modify existing code
|
{"pr_number": 6601, "pr_title": "feat(users): Convert emails to lowercase from requests", "merged_at": "2024-11-20T13:41:03Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"types": ["crates/router/src/types/domain/user.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
ci: introduce `cybersource` cypress test to run in parallel
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [x] CI/CD
## Description
<!-- Describe your changes in detail -->
Run Cybersource in parallel along with Stripe.
closes #6542
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
NA
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Let the CI check pass: https://github.com/juspay/hyperswitch/actions/runs/11794582778/job/32975411512?pr=6541
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `.github/workflows/cypress-tests-runner.yml`
**Code Patterns Applied:**
- Extend existing types with new fields (1 changes)
|
{"pr_number": 6541, "pr_title": "ci: introduce `cybersource` cypress test to run in parallel", "merged_at": "2024-11-14T11:52:04Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"tests": [".github/workflows/cypress-tests-runner.yml"]}, "change_types": {"fields_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
feat(core): Implement UCS kill switch for emergency fallback
# feat(core): Implement UCS enable/disable configuration for operational control
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
### Fixes #8644
## Description
<!-- Describe your changes in detail -->
This PR implements a **database-driven enable/disable configuration** for the Unified Connector Service (UCS) integration, providing operators with immediate control to enable or disable UCS without requiring code changes or deployments.
**Key Features Implemented:**
1. **Database Configuration**: UCS enabled state stored as `UCS_ENABLED` config
2. **Priority Check**: UCS enabled check happens before rollout percentage evaluation
3. **Immediate Effect**: Changes take effect without service restart
4. **Clear Error Handling**: Returns appropriate error when UCS is disabled
**Architecture:**
```
Payment Request → should_call_unified_connector_service() →
├── Check if UCS client exists
├── Check if UCS is enabled (NEW)
├── Check rollout percentage
└── Return decision (true/false)
```
**Key Technical Improvements:**
- **Added Enable Check**: `is_ucs_enabled()` function queries database config
- **Early Return Logic**: UCS enabled state evaluated before any other UCS conditions
- **Logging Support**: Errors logged when UCS enabled config fetch fails
- **Consistent Decision Flow**: UCS enabled config affects both regular and internal payment operations
**Files Modified:**
- `crates/router/src/consts.rs` - Added `UCS_ENABLED` constant
- `crates/router/src/core/payments/helpers.rs` - Added `is_ucs_enabled()` helper function
- `crates/router/src/core/unified_connector_service.rs` - Integrated UCS enabled check in decision flow
- `crates/router/src/core/payments.rs` - Updated fallback behavior for internal operations
**Important Caveat:**
- **Regular Payment Operations (`payments_operation_core`)**: When UCS is disabled, `should_call_unified_connector_service()` returns false and traditional connector flow is used
- **Internal Payment Operations (`internal_payments_operation_core`)**: Fallback to traditional connector flow has been removed - system now returns error when UCS is unavailable
- This ensures that internal operations have explicit failure handling rather than silent fallback
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
**Operational Safety Requirements:**
This change addresses critical operational needs for managing the UCS integration in production environments:
**Incident Response:**
- **Immediate Control**: During UCS outages, operators can disable it instantly
- **No Deployment Required**: Enable/disable via database update
- **Reduced MTTR**: Faster incident resolution without code changes
**Risk Management:**
- **Additional Safety Layer**: Complements existing percentage-based rollout
- **Granular Control**: Can disable UCS while keeping rollout config intact
- **Debugging Support**: Easily isolate UCS-related issues
**Implementation Benefits:**
- **Zero Downtime**: Configuration change without service restart
- **Audit Trail**: Database config changes are trackable
- **Simple Toggle**: Enable/disable UCS by changing config value
- **Testing Flexibility**: Easy A/B testing in production
**Use Cases:**
1. **Emergency Response**: Disable UCS during critical incidents
2. **Maintenance Windows**: Temporarily disable during UCS updates
3. **Performance Issues**: Quick disable if UCS causes latency
4. **Debugging**: Isolate issues to UCS vs traditional flow
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
### Manual Testing
#### **Test Scenario: UCS Enable/Disable Toggle Behavior**
**1. Default Behavior (UCS Not Configured/Disabled)**
- Make a payment request
- Verify traditional connector flow is used when config is not set
- Check logs confirm UCS integration is inactive
**2. Enable UCS**
```bash
curl --location 'http://localhost:8080/configs/UCS_ENABLED' \
--header 'Content-Type: application/json' \
--header 'api-key: test_admin' \
--header 'x-tenant-id: public' \
--data '{
"key": "UCS_ENABLED",
"value": "true"
}'
```
**3. Test with UCS Enabled**
- Make payment request and verify UCS is called based on rollout percentage
- Check logs for UCS activation based on rollout logic
*Sample Payment Request:*
```bash
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_test_key' \
--data '{
"amount": 2000,
"currency": "USD",
"confirm": true,
"capture_method": "automatic",
"payment_method": "card",
"payment_method_data": {
"card": {
"card_number": "4242424242424242",
"card_exp_month": "10",
"card_exp_year": "25",
"card_holder_name": "John Doe",
"card_cvc": "737"
}
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Francisco",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "John",
"last_name": "Doe"
}
}
}'
```
**4. Disable UCS**
```bash
curl --location 'http://localhost:8080/configs/UCS_ENABLED' \
--header 'Content-Type: application/json' \
--header 'api-key: test_admin' \
--header 'x-tenant-id: public' \
--data '{
"key": "UCS_ENABLED",
"value": "false"
}'
```
**5. Verify UCS is Disabled**
- Make another payment request (use same curl command from step 3)
- **Regular Payment Operations**: Verify traditional connector flow is used
- **Internal Payment Operations**: Verify operations return error (no fallback)
- Confirm system behavior with UCS disabled
**Additional Test Cases:**
**Test Invalid Config Value:**
```bash
curl --location 'http://localhost:8080/configs/UCS_ENABLED' \
--header 'Content-Type: application/json' \
--header 'api-key: test_admin' \
--header 'x-tenant-id: public' \
--data '{
"key": "UCS_ENABLED",
"value": "invalid_value"
}'
```
- Verify system defaults to UCS disabled
- Check error logs for parsing failure
**Retrieve Current UCS Status:**
```bash
curl --location 'http://localhost:8080/configs/UCS_ENABLED' \
--header 'api-key: test_admin' \
--header 'x-tenant-id: public'
```
- Verify response shows current UCS enabled state
**Expected Results:**
- UCS enable/disable takes immediate effect without service restart
- When disabled (`false`), `should_call_unified_connector_service()` returns false
- When enabled (`true`), normal UCS rollout logic applies
- Regular payment operations use traditional connector flow when UCS disabled
- Internal payment operations return error when UCS disabled (no fallback)
- Invalid/missing config defaults to UCS disabled for safety
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments.rs`
- `crates/router/src/core/payments/helpers.rs`
- `crates/router/src/core/unified_connector_service.rs`
**2. Other**
- `crates/router/src/consts.rs`
**Code Patterns Applied:**
- Implement new functions (2 changes)
- Add conditional logic for feature flags or filtering (2 changes)
**Detailed Identifier Changes:**
Commit 0c5bbad9:
Files to modify:
**crates/router/src/consts.rs**
Modify existing code
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/core/payments/helpers.rs**
Add:
- function: pub::is_ucs_enabled
**crates/router/src/core/unified_connector_service.rs**
Modify existing code
|
{"pr_number": 8651, "pr_title": "feat(core): Implement UCS kill switch for emergency fallback", "merged_at": "2025-07-22T09:00:55Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "connector", "card"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/unified_connector_service.rs"], "other": ["crates/router/src/consts.rs"]}, "change_types": {"functions_added": 2, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(payments): Add feature_metadata in the payments response for v2
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
Add feature_metadata in the payments response for revenue recovery in v2. Also added it in the open api spec
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
- Create a Org and MA and MCA in v2
- Create a payment in v2
```
curl --location 'http://localhost:8080/v2/payments/create-intent' \
--header 'api-key: dev_RvJ0UsrpfypkXccsGyytfee97LjWGSymDBIoR2K1zpxmUvaDScyXr9e4QH5cSUKc' \
--header 'Content-Type: application/json' \
--header 'x-profile-id: pro_xwf1Kn6sgcq34ih9HHPa' \
--header 'Authorization: api-key=dev_RvJ0UsrpfypkXccsGyytfee97LjWGSymDBIoR2K1zpxmUvaDScyXr9e4QH5cSUKc' \
--data-raw '{
"amount_details": {
"order_amount": 100,
"currency": "USD"
},
"capture_method": "manual",
"authentication_type": "no_three_ds",
"billing": {
"address": {
"first_name": "John",
"last_name": "Dough"
},
"email": "[email protected]"
},
"shipping": {
"address": {
"first_name": "John",
"last_name": "Dough",
"city": "Karwar",
"zip": "581301",
"state": "Karnataka"
},
"email": "[email protected]"
}
}'
```
- Confirm the payment
```
Request
curl --location 'http://localhost:8080/v2/payments/12345_pay_019813ec28f073d38d5fe2d117a0a660/confirm-intent' \
--header 'x-client-secret: cs_019813ec291571039181693bb212e6dd' \
--header 'x-profile-id: pro_xwf1Kn6sgcq34ih9HHPa' \
--header 'Authorization: api-key=dev_RvJ0UsrpfypkXccsGyytfee97LjWGSymDBIoR2K1zpxmUvaDScyXr9e4QH5cSUKc' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_RvJ0UsrpfypkXccsGyytfee97LjWGSymDBIoR2K1zpxmUvaDScyXr9e4QH5cSUKc' \
--data '{
"payment_method_data": {
"card": {
"card_number": "4242424242424242",
"card_exp_month": "01",
"card_exp_year": "25",
"card_holder_name": "John Doe",
"card_cvc": "100"
}
},
"payment_method_type": "card",
"payment_method_subtype": "credit"
}'
```
- Feature Metadata would be present
```
Response
{
"id": "12345_pay_019813ec28f073d38d5fe2d117a0a660",
"status": "failed",
"amount": {
"order_amount": 100,
"currency": "USD",
"shipping_cost": null,
"order_tax_amount": null,
"external_tax_calculation": "skip",
"surcharge_calculation": "skip",
"surcharge_amount": null,
"tax_on_surcharge": null,
"net_amount": 100,
"amount_to_capture": null,
"amount_capturable": 0,
"amount_captured": null
},
"customer_id": null,
"connector": "stripe",
"created": "2025-07-16T15:48:20.872Z",
"payment_method_data": {
"billing": null
},
"payment_method_type": "card",
"payment_method_subtype": "credit",
"connector_transaction_id": null,
"connector_reference_id": null,
"merchant_connector_id": "mca_to621nCh9AUHtzEEgQWp",
"browser_info": null,
"error": {
"code": "No error code",
"message": "No error message",
"unified_code": null,
"unified_message": null,
"network_advice_code": null,
"network_decline_code": null,
"network_error_message": null
},
"shipping": null,
"billing": null,
"attempts": null,
"connector_token_details": null,
"payment_method_id": null,
"next_action": null,
"return_url": "https://google.com/success",
"authentication_type": "no_three_ds",
"authentication_type_applied": "no_three_ds",
"is_iframe_redirection_enabled": null,
"merchant_reference_id": null,
"raw_connector_response": null,
"feature_metadata": null
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/lib.rs`
**3. Core Business Logic**
- `crates/router/src/core/payments/transformers.rs`
**4. Other**
- `api-reference/v2/openapi_spec_v2.json`
**Code Patterns Applied:**
- Extend existing types with new fields (7 changes)
**Detailed Identifier Changes:**
Commit dcf867d9:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/lib.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
|
{"pr_number": 8667, "pr_title": "feat(payments): Add feature_metadata in the payments response for v2", "merged_at": "2025-07-16T16:48:18Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "domain": ["crates/hyperswitch_domain_models/src/lib.rs"], "core_business": ["crates/router/src/core/payments/transformers.rs"], "other": ["api-reference/v2/openapi_spec_v2.json"]}, "change_types": {"fields_added": 7}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
ci(cypress): Add adaptive timeout configuration with retry mechanisms
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [x] CI/CD
## Description
- Added adaptive timeout scaling__ based on environment detection
- Implemented intelligent retry logic__ with environment-aware configuration
- Enhanced test reliability__ through dynamic timeout adjustments
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
Improved test stability__ in automated environments
Faster local development__ with optimized timeouts
Reduced flaky test failures__ through intelligent retry logic
Cleaner, more maintainable__ timeout configuration
Automatic adaptation__ to different execution environments
## How did you test it?
Ci cypress checks should pass without timeout error
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Utils**
- `cypress-tests/cypress/utils/RequestBodyUtils.js`
**2. Tests**
- `cypress-tests/cypress.config.js`
- `cypress-tests/cypress/support/redirectionHandler.js`
**Code Patterns Applied:**
- Extend existing types with new fields (9 changes)
- Add conditional logic for feature flags or filtering (6 changes)
|
{"pr_number": 8942, "pr_title": "ci(cypress): Add adaptive timeout configuration with retry mechanisms", "merged_at": "2025-09-16T12:33:04Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"utils": ["cypress-tests/cypress/utils/RequestBodyUtils.js"], "tests": ["cypress-tests/cypress.config.js", "cypress-tests/cypress/support/redirectionHandler.js"]}, "change_types": {"fields_added": 9, "conditionals_added": 6}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
feat(revenue_recovery): Add redis-based payment processor token tracking for revenue recovery
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
This module implements a **Redis-backed system** for managing and selecting the best **payment processor token** during **payment retries**.
It ensures:
- **Safe** token usage (no race conditions with locks) locked on connector customer level - if a payment has been scheduled then all other invoices for that customer will be in a queue.
- **Consistent** retry limit enforcement
---
## Why This Exists
In the **revenue recovery flow**, there is **no direct mapping between a customer and their payment methods**.
However, card networks enforce **retry limits** (daily and rolling 30-day) for **each merchant–customer card**.
Without tracking at this level, retries could breach these limits, leading to:
- Higher decline rates
- Potential network penalties
### The Solution
1. **Group multiple cards of a customer** under a single **`connector_customer_id`**.
2. **Store all payment processor tokens** for that connector customer in Redis.
3. Allow tokens to be:
- **Inserted** when a webhook is received
- **Retrieved** during the process tracker’s calculation flow to select the best retry candidate
This enables:
- Enforcement of **daily** and **30-day rolling thresholds**
- Compliance with **network-level** retry rules
- Token availability across flows without additional database lookups
---
## Redis Schema
| Key Pattern | Type | Purpose |
|-------------|--------|---------|
| `customer:{customer_id}:status` | String | Lock key storing the `payment_id` to prevent parallel updates |
| `customer:{customer_id}:tokens` | Hash | Maps `token_id` → `TokenStatus` JSON |
### Example `TokenStatus` JSON
```json
{
"token_id": "tok_abc123",
"error_code": "do_not_honor",
"network": "visa",
"added_by_payment_id": "pay_xyz789",
"retry_history": {
"2025-08-01": 1,
"2025-08-02": 2
}
}
```
## Flow
### **Step 1 – Acquire Lock**
- Create a lock key:
`customer:{customer_id}:status` → value = `payment_id`
- Purpose: Prevent parallel processes from working on the same customer
- If the lock is already present:
- Exit early with message: *"Customer is already locked by another process."*
---
### **Step 2– Fetch Existing Tokens**
- Retrieve all payment processor tokens from
`customer:{customer_id}:tokens`
- These tokens are then evaluated for retry eligibility
---
### **Step 3 – Check Retry Limits**
For each token:
- Count retries in the **last 30 days**
- Check if daily or rolling 30-day limit is exceeded
- If limit exceeded → give a wait time for those tokens
- Calculate **wait time** before the token can be retried again
---
### **Step 4 – Decider Logic (Upcoming)**
- For all eligible tokens:
1. Determine the ** schedule time** for the psp tokens
2. Select the token with the **earliest schedule time**
---
### **Step 5 – Update Retry State**
- After Transaction Executed
- Increment **today’s retry count** for the selected token
- Persist the updated `TokenStatus` back to Redis
---
### **Step 6 – Release Lock**
- Delete `customer:{customer_id}:status` lock key
- Allow the next payment flow to proceed
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
-- Curl
### Payment Processor curl
```
curl --location 'http://localhost:8080/v2/connector-accounts' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-merchant-id: {{}}' \
--header 'x-profile-id: {{}}' \
--header 'Authorization: admin-api-key=test_admin' \
--header 'api-key: {{}}' \
--data '
{
"connector_type": "payment_processor",
"connector_name": "worldpayvantiv",
"connector_account_details": {
"auth_type": "SignatureKey",
"api_key": "u83996941026920501",
"key1": "010193081",
"api_secret": "qRfXV7aPcvkX6Fr"
},
"payment_methods_enabled": [
{
"payment_method_type": "card",
"payment_method_subtypes": [
{
"payment_method_subtype": "credit",
"payment_experience": null,
"card_networks": [
"Visa",
"Mastercard"
],
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": -1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_subtype": "debit",
"payment_experience": null,
"card_networks": [
"Visa",
"Mastercard"
],
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": -1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
}
],
"frm_configs": null,
"connector_webhook_details": {
"merchant_secret": ""
},
"metadata": {
"report_group": "Hello",
"merchant_config_currency": "USD"
},
"profile_id": "pro_6BnIGqGPytQ3vwObbAw6"
}'
```
### Billing Processor curl
```
curl --location 'http://localhost:8080/v2/connector-accounts' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-merchant-id: {{}}' \
--header 'x-profile-id: {{}}' \
--header 'Authorization: admin-api-key=test_admin' \
--header 'api-key: {{}}' \
--data '{
"connector_type": "billing_processor",
"connector_name": "custombilling",
"connector_account_details": {
"auth_type": "NoKey"
},
"feature_metadata" : {
"revenue_recovery" : {
"max_retry_count" : 9,
"billing_connector_retry_threshold" : 0,
"billing_account_reference" :{
"{{connector_mca_id}}" : "{{connector_mca_id}}"
},
"switch_payment_method_config" : {
"retry_threshold" : 0,
"time_threshold_after_creation": 0
}
}
},
"profile_id": "pro_6BnIGqGPytQ3vwObbAw6"
}'
```
### Api
```
curl --location 'http://localhost:8080/v2/payments/recovery' \
--header 'Authorization: api-key=dev_qHo39mf1hdLbY7GW7FOr89FaoCM1NQOdwPddWguUDI3RnsjQKPzG71uZIkuULDQu' \
--header 'x-profile-id: pro_xsbw9tuM9f6whrwaZKC2' \
--header 'x-merchant-id: cloth_seller_2px3Q1TUxtGOvO3Yzm0S' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_qHo39mf1hdLbY7GW7FOr89FaoCM1NQOdwPddWguUDI3RnsjQKPzG71uZIkuULDQu' \
--data '{
"amount_details": {
"order_amount": 2250,
"currency": "USD"
},
"merchant_reference_id": "1234567891",
"connector_transaction_id": "43255654",
"connector_customer_id": "526755",
"error": {
"code": "110",
"message": "Insufficient Funds"
},
"billing": {
"address": {
"state": "CA",
"country": "US"
}
},
"payment_method_type": "card",
"payment_method_sub_type": "credit",
"payment_method_data": {
"primary_processor_payment_method_token": "2541911049890008",
"additional_payment_method_info": {
"card_exp_month": "12",
"card_exp_year": "25",
"last_four_digits": 1997,
"card_network": "VISA",
"card_issuer": "Wells Fargo NA",
"card_type": "credit"
}
},
"billing_started_at": "2024-05-29T08:10:58Z",
"transaction_created_at": "2024-05-29T08:10:58Z",
"attempt_status": "failure",
"action": "schedule_failed_payment",
"billing_merchant_connector_id": "mca_6y5xtQUL2tgnHbjS7Bai",
"payment_merchant_connector_id": "mca_OWLpnzoAxkhT1eZVJ3Q3"
}'
```
### Output
The payment processor token details is getting stored in redis.
<img width="1081" height="131" alt="Screenshot 2025-08-22 at 1 05 58 PM" src="https://github.com/user-attachments/assets/c99f54e3-9845-438c-b129-e661db08cc08" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/payments.rs`
- `crates/hyperswitch_domain_models/src/revenue_recovery.rs`
- `crates/hyperswitch_domain_models/src/router_response_types/revenue_recovery.rs`
**2. Core Business Logic**
- `crates/router/src/core/errors.rs`
- `crates/router/src/core/payments/transformers.rs`
- `crates/router/src/core/revenue_recovery/api.rs`
- ... and 2 more files
**3. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs`
- `crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs`
- `crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs`
**4. Type Definitions**
- `crates/router/src/types/storage.rs`
- `crates/router/src/types/storage/revenue_recovery.rs`
- `crates/router/src/types/storage/revenue_recovery_redis_operation.rs`
**5. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**6. Configuration Files**
- `config/config.example.toml`
- `config/deployments/env_specific.toml`
- `config/deployments/production.toml`
- ... and 3 more files
**7. Other**
- `crates/router/src/workflows/revenue_recovery.rs`
- `proto/recovery_decider.proto`
**Code Patterns Applied:**
- Define new data structures (8 changes)
- Implement new functions (24 changes)
- Extend existing types with new fields (218 changes)
- Add conditional logic for feature flags or filtering (2 changes)
- Modify database queries (2 changes)
**Detailed Identifier Changes:**
Commit 0b59b908:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payments.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/revenue_recovery.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_response_types/revenue_recovery.rs**
Modify existing code
**crates/router/src/core/errors.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/core/revenue_recovery/api.rs**
Modify existing code
**crates/router/src/core/revenue_recovery/transformers.rs**
Modify existing code
**crates/router/src/core/webhooks/recovery_incoming.rs**
Modify existing code
**crates/router/src/types/storage.rs**
Add:
- mod: pub::revenue_recovery_redis_operation
**crates/router/src/types/storage/revenue_recovery.rs**
Add:
- function: pub::get_network_config
- struct: pub::RetryLimitsConfig
- struct: pub::NetworkRetryConfig
- impl: impl RetryLimitsConfig
**crates/router/src/types/storage/revenue_recovery_redis_operation.rs**
Add:
- function: pub::lock_connector_customer_status
- function: pub::unlock_connector_customer_status
- function: pub::get_connector_customer_payment_processor_tokens
- function: pub::update_or_add_connector_customer_payment_processor_tokens
- function: pub::get_current_date
- function: pub::normalize_retry_window
- function: pub::get_tokens_with_retry_metadata
- function: private::calculate_total_30_day_retries
- function: private::calculate_wait_hours
- function: pub::payment_processor_token_retry_info
- function: pub::upsert_payment_processor_token
- function: pub::update_payment_processor_token_error_code_from_process_tracker
- function: pub::update_payment_processor_token_schedule_time
- function: pub::get_payment_processor_token_with_schedule_time
- function: pub::get_token_with_max_retry_remaining
- function: pub::are_all_tokens_hard_declined
- struct: pub::PaymentProcessorTokenDetails
- struct: pub::PaymentProcessorTokenStatus
- struct: pub::TokenRetryInfo
- struct: pub::PaymentProcessorTokenWithRetryInfo
- struct: pub::RedisTokenManager
- impl: impl RedisTokenManager
**crates/router/src/workflows/revenue_recovery.rs**
Add:
- function: pub::get_token_with_schedule_time_based_on_retry_alogrithm_type
- function: pub::get_best_psp_token_available_for_smart_retry
- function: pub::calculate_smart_retry_time
- function: private::process_token_for_retry
- function: pub::call_decider_for_payment_processor_tokens_select_closet_time
- function: pub::check_hard_decline
- struct: pub::ScheduledToken
|
{"pr_number": 8846, "pr_title": "feat(revenue_recovery): Add redis-based payment processor token tracking for revenue recovery", "merged_at": "2025-08-25T09:44:24Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/payments.rs", "crates/hyperswitch_domain_models/src/revenue_recovery.rs", "crates/hyperswitch_domain_models/src/router_response_types/revenue_recovery.rs"], "core_business": ["crates/router/src/core/errors.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/revenue_recovery/api.rs", "crates/router/src/core/revenue_recovery/transformers.rs", "crates/router/src/core/webhooks/recovery_incoming.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs", "crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs", "crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs"], "types": ["crates/router/src/types/storage.rs", "crates/router/src/types/storage/revenue_recovery.rs", "crates/router/src/types/storage/revenue_recovery_redis_operation.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/env_specific.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"], "other": ["crates/router/src/workflows/revenue_recovery.rs", "proto/recovery_decider.proto"]}, "change_types": {"structs_added": 8, "functions_added": 24, "fields_added": 218, "imports_added": 26, "conditionals_added": 2, "database_queries": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(connector): [Worldpay] add root CA certificate
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
This PR adds below changes for the Worldpay connector
1. Add a root CA certificate for Worldpay's request client
2. Add a new AuthType for Worldpay - MultiAuthType
3. Use `MultiAuthType` in wasm crate for Worldpay
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
4. `crates/router/src/configs`
5. `loadtest/config`
-->
## Motivation and Context
This fixes the self signed certificate not trusted errors for Worldpay in production.
## How did you test it?
Cannot be tested in non prod env.
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/connector_configs/toml/development.toml`
- `crates/connector_configs/toml/production.toml`
- `crates/connector_configs/toml/sandbox.toml`
- ... and 2 more files
**Code Patterns Applied:**
- Extend existing types with new fields (5 changes)
**Detailed Identifier Changes:**
Commit 1eea8335:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/worldpay.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs**
Modify existing code
|
{"pr_number": 8205, "pr_title": "fix(connector): [Worldpay] add root CA certificate", "merged_at": "2025-06-02T11:44:49Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"connectors": ["crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml", "crates/hyperswitch_connectors/src/connectors/worldpay.rs", "crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs"]}, "change_types": {"fields_added": 5}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(revenue_recovery): add support to fetch data and update additional token data in redis
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
This PR introduces two new API:-
1) To get data from Redis for monitoring purpose **v2/recovery/data-backfill/redis-data/:id?key_type=Status**
2) To update additional token data(error code, hard decline flag and schedule at fields) **v2/recovery/data-backfill/update-token**
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
cURL to get redis data (token type:- Tokens)
```
curl --location 'http://localhost:8080/v2/recovery/data-backfill/redis-data/10010?key_type=Tokens' \
--header 'Authorization: admin-api-key=test_admin'
```
Test case 1 (token is present)
Response:-
```
{
"exists": true,
"ttl_seconds": 3887994,
"data": {
"2401559361951038": "{\"payment_processor_token_details\":{\"payment_processor_token\":\"2401559361951038\",\"expiry_month\":\"02\",\"expiry_year\":\"27\",\"card_issuer\":\"Plus Credit Union\",\"last_four_digits\":null,\"card_network\":null,\"card_type\":\"card\"},\"inserted_by_attempt_id\":\"12345_att_0199517c62647b9090c328ed1b28ebf6\",\"error_code\":\"12\",\"daily_retry_history\":{},\"scheduled_at\":null,\"is_hard_decline\":false}"
}
}
```
Test case 2 (token is not present)
```
{
"error": {
"type": "invalid_request",
"message": "Redis data not found for connector customer id:- '100101'",
"code": "IR_37"
}
}
Router log:-
<img width="1353" height="758" alt="Screenshot 2025-09-29 at 19 32 47" src="https://github.com/user-attachments/assets/89198cc1-70ce-4ac4-9b20-4d53e7260754" />
```
cURL to get redis data (token type:- Status)
```
curl --location 'http://localhost:8080/v2/recovery/data-backfill/redis-data/100101?key_type=Status' \
--header 'Authorization: admin-api-key=test_admin'
```
Test case 3 (status is not present)
```
{
"error": {
"type": "invalid_request",
"message": "Redis data not found for connector customer id:- '100101'",
"code": "IR_37"
}
}
```
cURL to update redis data
```
curl --location --request PUT 'http://localhost:8080/v2/recovery/data-backfill/update-token' \
--header 'Content-Type: application/json' \
--header 'Authorization: admin-api-key=test_admin' \
--data '{
"connector_customer_id": "57984238498234763874917211",
"payment_processor_token": "2541911049890008",
"scheduled_at": "2025-09-29T08:45:53.692126Z",
"is_hard_decline": false,
"error_code": "-1"
}
'
```
Test case 4 (token is present)
```
{
"updated": true,
"message": "Successfully updated token '0008' for connector customer '10010'. Updated fields: scheduled_at: 2025-09-29T08:45:53.692126Z, is_hard_decline: false, error_code: -1"
}
```
Test case 5 (token is not present)
```
{
"error": {
"type": "invalid_request",
"message": "Token '0008' not found for connector customer id:- '100101'",
"code": "IR_37"
}
}
```
<img width="1359" height="689" alt="Screenshot 2025-09-29 at 19 34 29" src="https://github.com/user-attachments/assets/675442da-0ac1-44fd-b3ab-a4ce921370fe" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/revenue_recovery_data_backfill.rs`
**2. Core Business Logic**
- `crates/router/src/core/revenue_recovery_data_backfill.rs`
**3. Type Definitions**
- `crates/router/src/types/storage/revenue_recovery_redis_operation.rs`
- `crates/router_env/src/logger/types.rs`
**4. Utils**
- `crates/router/src/routes/lock_utils.rs`
**5. Other**
- `crates/redis_interface/src/commands.rs`
- `crates/router/src/routes.rs`
- `crates/router/src/routes/app.rs`
- ... and 2 more files
**Code Patterns Applied:**
- Define new data structures (4 changes)
- Implement new functions (10 changes)
- Extend existing types with new fields (32 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit af159867:
Files to modify:
**crates/api_models/src/revenue_recovery_data_backfill.rs**
Add:
- function: private::get_api_event_type
- function: private::get_api_event_type
- function: private::get_api_event_type
- function: private::deserialize
- struct: pub::GetRedisDataQuery
- struct: pub::RedisDataResponse
- struct: pub::UpdateTokenStatusRequest
- struct: pub::UpdateTokenStatusResponse
- enum: pub::RedisKeyType
- enum: pub::ScheduledAtUpdate
- impl: impl ApiEventMetric for RedisDataResponse
- impl: impl ApiEventMetric for UpdateTokenStatusRequest
- impl: impl ApiEventMetric for UpdateTokenStatusResponse
- impl: impl Deserialize<'de> for ScheduledAtUpdate
**crates/redis_interface/src/commands.rs**
Add:
- function: pub::get_ttl
**crates/router/src/core/revenue_recovery_data_backfill.rs**
Add:
- function: pub::get_redis_data
- function: pub::redis_update_additional_details_for_revenue_recovery
**crates/router/src/routes.rs**
Add:
- mod: pub::revenue_recovery_redis
**crates/router/src/routes/app.rs**
Modify existing code
**crates/router/src/routes/lock_utils.rs**
Modify existing code
**crates/router/src/routes/revenue_recovery_data_backfill.rs**
Add:
- function: pub::update_revenue_recovery_additional_redis_data
**crates/router/src/routes/revenue_recovery_redis.rs**
Add:
- function: pub::get_revenue_recovery_redis_data
**crates/router/src/types/storage/revenue_recovery_redis_operation.rs**
Add:
- function: pub::get_redis_key_data_raw
**crates/router_env/src/logger/types.rs**
Modify existing code
|
{"pr_number": 9611, "pr_title": "feat(revenue_recovery): add support to fetch data and update additional token data in redis", "merged_at": "2025-10-01T15:38:04Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "user"]}, "hierarchy": {"api_models": ["crates/api_models/src/revenue_recovery_data_backfill.rs"], "core_business": ["crates/router/src/core/revenue_recovery_data_backfill.rs"], "types": ["crates/router/src/types/storage/revenue_recovery_redis_operation.rs", "crates/router_env/src/logger/types.rs"], "utils": ["crates/router/src/routes/lock_utils.rs"], "other": ["crates/redis_interface/src/commands.rs", "crates/router/src/routes.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/revenue_recovery_data_backfill.rs", "crates/router/src/routes/revenue_recovery_redis.rs"]}, "change_types": {"structs_added": 4, "functions_added": 10, "enums_added": 2, "fields_added": 32, "imports_added": 9, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
ci(cypress): Add Tsys,Square cypress test
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [x] CI/CD
## Description
Add Tsys, Square connector to cypress test suits.
## How did you test it?
<img width="502" alt="Screenshot 2025-07-03 at 3 30 26 PM" src="https://github.com/user-attachments/assets/95fb08b1-bccb-45f1-816e-f39da4e473fe" />
<img width="462" alt="Screenshot 2025-07-03 at 4 06 24 PM" src="https://github.com/user-attachments/assets/c165ee63-75d3-43f1-9e37-b77dfd3cd935" />
Both connector having issue. Need code fix
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **connector_integration** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/configs/Payment/Square.js`
- `cypress-tests/cypress/e2e/configs/Payment/Tsys.js`
- `cypress-tests/cypress/e2e/configs/Payment/Utils.js`
**Code Patterns Applied:**
- Extend existing types with new fields (1074 changes)
|
{"pr_number": 8543, "pr_title": "ci(cypress): Add Tsys,Square cypress test", "merged_at": "2025-07-07T11:16:07Z", "intent": {"feature_type": "connector_integration", "action": "add_feature", "entities": ["user", "connector"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/configs/Payment/Square.js", "cypress-tests/cypress/e2e/configs/Payment/Tsys.js", "cypress-tests/cypress/e2e/configs/Payment/Utils.js"]}, "change_types": {"fields_added": 1074}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
chore: address Rust 1.84.0 clippy lints
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
This PR addresses the clippy lints occurring due to new rust version 1.84.0
Majorly addresses `unnecessary_map_or` clippy lint - https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
CI checks should pass as this PR addresses clippy lints.
1. ran `just clippy` with new rust version (1.84.0)

2. ran `just clippy_v2` with new rust version (1.84.0)

## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/query/address.rs`
**2. Core Business Logic**
- `crates/router/src/core/admin.rs`
- `crates/router/src/core/blocklist/transformers.rs`
- `crates/router/src/core/customers.rs`
- ... and 15 more files
**3. External Connector Integration**
- `crates/hyperswitch_connectors/src/utils.rs`
- `crates/router/src/connector/authorizedotnet/transformers.rs`
- `crates/router/src/connector/bankofamerica/transformers.rs`
- ... and 4 more files
**4. Type Definitions**
- `crates/euclid/src/backend/vir_interpreter/types.rs`
**5. Utils**
- `crates/router/src/utils/user/dashboard_metadata.rs`
**6. Configuration Files**
- `crates/euclid_wasm/Cargo.toml`
**7. Other**
- `Cargo.lock`
- `crates/euclid/src/dssa/graph.rs`
- `crates/router/src/db/dashboard_metadata.rs`
- ... and 4 more files
**Code Patterns Applied:**
- Implement new functions (25 changes)
- Extend existing types with new fields (23 changes)
- Add conditional logic for feature flags or filtering (3 changes)
- Modify database queries (2 changes)
**Detailed Identifier Changes:**
Commit 4664d4bc:
Files to modify:
**crates/diesel_models/src/query/address.rs**
Modify existing code
**crates/euclid/src/backend/vir_interpreter/types.rs**
Modify existing code
**crates/euclid/src/dssa/graph.rs**
Modify existing code
**crates/hyperswitch_connectors/src/utils.rs**
Modify existing code
**crates/router/src/connector/authorizedotnet/transformers.rs**
Modify existing code
**crates/router/src/connector/bankofamerica/transformers.rs**
Modify existing code
**crates/router/src/connector/cybersource/transformers.rs**
Modify existing code
**crates/router/src/connector/noon/transformers.rs**
Modify existing code
**crates/router/src/connector/utils.rs**
Modify existing code
**crates/router/src/connector/wellsfargo/transformers.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/core/blocklist/transformers.rs**
Modify existing code
**crates/router/src/core/customers.rs**
Modify existing code
**crates/router/src/core/fraud_check.rs**
Modify existing code
**crates/router/src/core/fraud_check/flows/checkout_flow.rs**
Modify existing code
**crates/router/src/core/fraud_check/flows/record_return.rs**
Modify existing code
**crates/router/src/core/fraud_check/flows/sale_flow.rs**
Modify existing code
**crates/router/src/core/fraud_check/flows/transaction_flow.rs**
Modify existing code
**crates/router/src/core/payment_methods/cards.rs**
Modify existing code
**crates/router/src/core/payment_methods/utils.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_create.rs**
Modify existing code
**crates/router/src/core/payments/routing.rs**
Modify existing code
**crates/router/src/core/payouts/helpers.rs**
Modify existing code
**crates/router/src/core/refunds.rs**
Modify existing code
**crates/router/src/core/relay/utils.rs**
Modify existing code
**crates/router/src/core/routing/helpers.rs**
Modify existing code
**crates/router/src/core/utils.rs**
Modify existing code
**crates/router/src/core/webhooks/utils.rs**
Modify existing code
**crates/router/src/db/dashboard_metadata.rs**
Modify existing code
**crates/router/src/db/refund.rs**
Modify existing code
**crates/router/src/services/authentication/blacklist.rs**
Modify existing code
**crates/router/src/services/pm_auth.rs**
Modify existing code
**crates/router/src/utils/user/dashboard_metadata.rs**
Modify existing code
**crates/storage_impl/src/redis/kv_store.rs**
Modify existing code
|
{"pr_number": 7021, "pr_title": "chore: address Rust 1.84.0 clippy lints", "merged_at": "2025-01-15T13:17:35Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"database": ["crates/diesel_models/src/query/address.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/blocklist/transformers.rs", "crates/router/src/core/customers.rs", "crates/router/src/core/fraud_check.rs", "crates/router/src/core/fraud_check/flows/checkout_flow.rs", "crates/router/src/core/fraud_check/flows/record_return.rs", "crates/router/src/core/fraud_check/flows/sale_flow.rs", "crates/router/src/core/fraud_check/flows/transaction_flow.rs", "crates/router/src/core/payment_methods/cards.rs", "crates/router/src/core/payment_methods/utils.rs", "crates/router/src/core/payments/operations/payment_create.rs", "crates/router/src/core/payments/routing.rs", "crates/router/src/core/payouts/helpers.rs", "crates/router/src/core/refunds.rs", "crates/router/src/core/relay/utils.rs", "crates/router/src/core/routing/helpers.rs", "crates/router/src/core/utils.rs", "crates/router/src/core/webhooks/utils.rs"], "connectors": ["crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/connector/authorizedotnet/transformers.rs", "crates/router/src/connector/bankofamerica/transformers.rs", "crates/router/src/connector/cybersource/transformers.rs", "crates/router/src/connector/noon/transformers.rs", "crates/router/src/connector/utils.rs", "crates/router/src/connector/wellsfargo/transformers.rs"], "types": ["crates/euclid/src/backend/vir_interpreter/types.rs"], "utils": ["crates/router/src/utils/user/dashboard_metadata.rs"], "config": ["crates/euclid_wasm/Cargo.toml"], "other": ["Cargo.lock", "crates/euclid/src/dssa/graph.rs", "crates/router/src/db/dashboard_metadata.rs", "crates/router/src/db/refund.rs", "crates/router/src/services/authentication/blacklist.rs", "crates/router/src/services/pm_auth.rs", "crates/storage_impl/src/redis/kv_store.rs"]}, "change_types": {"functions_added": 25, "fields_added": 23, "conditionals_added": 3, "database_queries": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(payment_link): add validation for return_url during payment link creation
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
This PR adds a validation for `return_url` when creating payment links. Return URL must be a required parameter as payment links is client side facing and needs to be redirected to an end URL post payment completion.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
This PR fixes a bug in the payment links flow which allowed creating payment links without validating presence of `return_url`. This allows merchants to be careful of payment link integration.
## How did you test it?
<details>
<summary>1. Create a payment link without return_url in the payments create request</summary>
cURL
curl --location --request POST 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_ddmeaxUlgRPHkcqtmZZm5nGMRhejMxXijYCnsp070Oqn2y4lrfUNBCb9UmedwgMt' \
--data-raw '{"customer_id":"cus_ttQVCva9zDC2q8jfJaiy","profile_id":"pro_510ieWUUX4pc0bUWmBW3","customer_acceptance":{"acceptance_type":"online","accepted_at":"1963-05-03T04:07:52.723Z","online":{"ip_address":"127.0.0.1","user_agent":"amet irure esse"}},"amount":10,"currency":"EUR","payment_link":true,"capture_method":"automatic","billing":{"address":{"line1":"1467","line2":"Harrison Street","line3":"Harrison Street","city":"San Fransico","state":"CA","zip":"94122","country":"HK","first_name":"John","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"}}'
Response
{
"error": {
"type": "invalid_request",
"message": "return_url must be sent while creating a payment link",
"code": "IR_06"
}
}
</details>
<details>
<summary>2. Create a payment link with return_url in the payments create request</summary>
cURL
curl --location --request POST 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_ddmeaxUlgRPHkcqtmZZm5nGMRhejMxXijYCnsp070Oqn2y4lrfUNBCb9UmedwgMt' \
--data-raw '{"customer_id":"cus_ttQVCva9zDC2q8jfJaiy","profile_id":"pro_510ieWUUX4pc0bUWmBW3","customer_acceptance":{"acceptance_type":"online","accepted_at":"1963-05-03T04:07:52.723Z","online":{"ip_address":"127.0.0.1","user_agent":"amet irure esse"}},"amount":10,"currency":"EUR","payment_link":true,"capture_method":"automatic","billing":{"address":{"line1":"1467","line2":"Harrison Street","line3":"Harrison Street","city":"San Fransico","state":"CA","zip":"94122","country":"HK","first_name":"John","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"return_url":"https://example.com"}'
Response
{"payment_id":"pay_jqWIxxAzZ55ObDFPUi3u","merchant_id":"merchant_1744368926","status":"requires_payment_method","amount":10,"net_amount":10,"shipping_cost":null,"amount_capturable":10,"amount_received":null,"connector":null,"client_secret":"pay_jqWIxxAzZ55ObDFPUi3u_secret_R696m3FdANBfOlBHs7e3","created":"2025-04-11T15:32:20.593Z","currency":"EUR","customer_id":"cus_ttQVCva9zDC2q8jfJaiy","customer":{"id":"cus_ttQVCva9zDC2q8jfJaiy","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":null,"payment_method_data":null,"payment_token":null,"shipping":null,"billing":{"address":{"city":"San Fransico","country":"HK","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":"CA","first_name":"John","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.com/","authentication_type":null,"statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"cus_ttQVCva9zDC2q8jfJaiy","created_at":1744385540,"expires":1744389140,"secret":"epk_4687716462814249b8cad4ebb30c18a3"},"manual_retry_allowed":null,"connector_transaction_id":null,"frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":null,"payment_link":{"link":"http://localhost:8080/payment_link/merchant_1744368926/pay_jqWIxxAzZ55ObDFPUi3u?locale=en","secure_link":null,"payment_link_id":"plink_2tsEloeZ8SeUXyOQfRsu"},"profile_id":"pro_510ieWUUX4pc0bUWmBW3","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":null,"incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-04-11T15:47:20.588Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-04-11T15:32:20.612Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":null,"force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null}
</details>
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments/helpers.rs`
- `crates/router/src/core/payments/operations/payment_create.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (3 changes)
- Add conditional logic for feature flags or filtering (2 changes)
**Detailed Identifier Changes:**
Commit 81eaf396:
Files to modify:
**crates/router/src/core/payments/helpers.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_create.rs**
Modify existing code
|
{"pr_number": 7802, "pr_title": "fix(payment_link): add validation for return_url during payment link creation", "merged_at": "2025-04-12T15:04:20Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/operations/payment_create.rs"]}, "change_types": {"fields_added": 3, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
refactor: [CYBERSOURCE, BANKOFAMERICA, WELLSFARGO] Move code to crate hyperswitch_connectors
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Move cybersource, bankofamerica, wellsfargo code to crate hyperswitch_connectors.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
https://github.com/juspay/hyperswitch/issues/6585
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
Moved the connector tot he hyperswitch crate (No logical Changes)
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/types.rs`
**2. Core Business Logic**
- `crates/router/src/core/payments/connector_integration_v2_impls.rs`
- `crates/router/src/core/payments/flows.rs`
**3. External Connector Integration**
- `crates/hyperswitch_connectors/Cargo.toml`
- `crates/hyperswitch_connectors/src/connectors.rs`
- `crates/router/src/connector/bankofamerica.rs`
- ... and 11 more files
**4. Other**
- `Cargo.lock`
- `crates/router/src/consts.rs`
**Code Patterns Applied:**
- Implement new functions (103 changes)
- Extend existing types with new fields (525 changes)
- Add conditional logic for feature flags or filtering (14 changes)
**Detailed Identifier Changes:**
Commit be018963:
Files to modify:
**crates/hyperswitch_connectors/src/connectors.rs**
Add:
- mod: pub::bankofamerica
- mod: pub::cybersource
- mod: pub::wellsfargo
**crates/hyperswitch_connectors/src/constants.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations_v2.rs**
Modify existing code
**crates/hyperswitch_connectors/src/types.rs**
Modify existing code
**crates/hyperswitch_connectors/src/utils.rs**
Add:
- function: private::get_optional_network_transaction_id
- function: private::get_optional_email
- function: private::get_email
- function: private::get_payment_method_type
- function: private::get_currency
- function: private::get_amount
- function: private::get_minor_amount
- function: private::get_webhook_url
- function: private::get_router_return_url
- function: private::get_browser_info
- function: private::get_complete_authorize_url
- function: private::get_redirect_response_payload
- function: private::get_transfer_id
- function: private::get_customer_details
- function: private::get_vendor_details
- function: private::get_payout_type
- function: private::get_connector_mandate_id
- function: private::get_original_payment_amount
- function: private::get_original_payment_currency
- function: private::get_card_expiry_year_2_digit
- function: private::get_card_issuer
- function: private::get_card_expiry_month_year_2_digit_with_delimiter
- function: private::get_expiry_date_as_yyyymm
- function: private::get_expiry_date_as_mmyyyy
- function: private::get_expiry_year_4_digit
- function: private::get_expiry_date_as_yymm
- function: private::get_expiry_month_as_i8
- function: private::get_expiry_year_as_i32
- function: private::get_expiry_date_as_mmyy
- function: private::get_expiry_year_as_4_digit_i32
- function: private::get_cardholder_name
- function: private::get_card_issuer
- function: private::get_expiry_year_4_digit
- trait: pub::PayoutsData
- trait: pub::RevokeMandateRequestData
- trait: pub::RecurringMandateData
- trait: pub::NetworkTokenData
- impl: impl PayoutsData for hyperswitch_domain_models::router_request_types::PayoutsData
- impl: impl RevokeMandateRequestData for MandateRevokeRequestData
- impl: impl RecurringMandateData for RecurringMandatePaymentData
- impl: impl CardData for api_models::payouts::CardPayout
- impl: impl NetworkTokenData for payment_method_data::NetworkTokenData
**crates/hyperswitch_domain_models/src/types.rs**
Modify existing code
**crates/router/src/connector.rs**
Remove:
- mod: pub::bankofamerica
- mod: pub::cybersource
- mod: pub::wellsfargo
**crates/router/src/consts.rs**
Modify existing code
**crates/router/src/core/payments/connector_integration_v2_impls.rs**
Modify existing code
**crates/router/src/core/payments/flows.rs**
Modify existing code
|
{"pr_number": 6908, "pr_title": "refactor: [CYBERSOURCE, BANKOFAMERICA, WELLSFARGO] Move code to crate hyperswitch_connectors", "merged_at": "2025-01-22T18:23:12Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/types.rs"], "core_business": ["crates/router/src/core/payments/connector_integration_v2_impls.rs", "crates/router/src/core/payments/flows.rs"], "connectors": ["crates/hyperswitch_connectors/Cargo.toml", "crates/hyperswitch_connectors/src/connectors.rs", "crates/router/src/connector/bankofamerica.rs", "crates/router/src/connector/bankofamerica/transformers.rs", "crates/router/src/connector/cybersource.rs", "crates/router/src/connector/cybersource/transformers.rs", "crates/router/src/connector/wellsfargo.rs", "crates/router/src/connector/wellsfargo/transformers.rs", "crates/hyperswitch_connectors/src/constants.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/hyperswitch_connectors/src/types.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/connector.rs"], "other": ["Cargo.lock", "crates/router/src/consts.rs"]}, "change_types": {"functions_added": 103, "fields_added": 525, "imports_added": 36, "conditionals_added": 14}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(chat): append request id to headers for chat request
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
Propagation request-id to chat service for consistency.
Propagate chat session id as well in request
Add count metric for chat api
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
Closes #8679
## How did you test it?
Tested locally, x-request-id is getting populated correctly
```
curl --location 'http://localhost:8080/chat/ai/data' \
--header 'x-feature: integ-custom' \
--header 'x-chat-session-id: chat-ssdfasdsf' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer JWT' \
--data '{
"message": "success rate"
}'
```
<img width="1316" height="855" alt="image" src="https://github.com/user-attachments/assets/4b99e80c-5906-472d-a017-d9c5c8257d7a" />
AI service logs
<img width="1110" height="398" alt="image" src="https://github.com/user-attachments/assets/427f41be-ee48-4e94-b5b8-d6141b6f6400" />
<img width="1092" height="249" alt="image" src="https://github.com/user-attachments/assets/da479ff3-65db-4cec-8af7-a947ab807954" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/chat.rs`
**2. Utils**
- `crates/common_utils/src/consts.rs`
**3. Other**
- `crates/router/src/routes/chat.rs`
- `crates/router/src/routes/metrics.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (1 changes)
- Add conditional logic for feature flags or filtering (2 changes)
**Detailed Identifier Changes:**
Commit 3113d2b5:
Files to modify:
**crates/common_utils/src/consts.rs**
Modify existing code
**crates/router/src/core/chat.rs**
Modify existing code
**crates/router/src/routes/chat.rs**
Modify existing code
**crates/router/src/routes/metrics.rs**
Modify existing code
|
{"pr_number": 8680, "pr_title": "fix(chat): append request id to headers for chat request", "merged_at": "2025-07-25T07:27:38Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "session"]}, "hierarchy": {"core_business": ["crates/router/src/core/chat.rs"], "utils": ["crates/common_utils/src/consts.rs"], "other": ["crates/router/src/routes/chat.rs", "crates/router/src/routes/metrics.rs"]}, "change_types": {"fields_added": 1, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(users): Add email domain based restriction for dashboard entry APIs
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
There will be a mapping of email domain and auth methods.
This PR will restrict users to enter into the dashboard based on the email domain.
### Additional Changes
- [x] This PR modifies the API contract
- [x] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
Closes #6939.
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
1. Create user auth method with email domain
```bash
curl --location 'http://localhost:8080/user/auth' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMjAxYTJlZWQtNGE0ZC00MjZlLTg1N2ItMjNhM2ZjZTk5NTMzIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNjk3NjIzMjI0Iiwicm9sZV9pZCI6Im1lcmNoYW50X2FkbWluIiwiZXhwIjoxNjk3Nzk2MDI3LCJvcmdfaWQiOiJvcmdfVzJ2NmtPZ2lMSWx3YnFoaVh4VUIifQ.HnkHHWboPt82-VlvE5GVCjTJ1sA82-dMbUxeYNl-mxk' \
--header 'Content-Type: application/json' \
--header 'api-key: ••••••' \
--data '{
"owner_id": "test",
"owner_type": "organization",
"auth_method": {
"auth_type": "password",
"private_config": {
"base_url": "url",
"client_id": "client_id",
"client_secret": "client_secret"
},
"public_config": {
"name": "okta"
}
},
"allow_signup": true,
"email_domain": "gmail.com"
}'
```
Response will be 200 OK.
2. Update user auth method
1. Auth Method
```bash
curl --location --request PUT 'http://localhost:8080/user/auth' \
--header 'Content-Type: application/json' \
--header 'api-key: test_admin' \
--header 'Cookie: Cookie_1=value' \
--data '{
"auth_method": {
"id": "799596e6-e6ba-405c-b5cf-70fd510409dc",
"auth_method": {
"auth_type": "open_id_connect",
"private_config": {
"base_url": "base url",
"client_id": "client id",
"client_secret": "client secret"
},
"public_config": {
"name": "okta"
}
}
}
}
'
```
Response will be 200 OK.
2. Email Domain
```bash
curl --location --request PUT 'http://localhost:8080/user/auth' \
--header 'Content-Type: application/json' \
--header 'api-key: test_admin' \
--header 'Cookie: Cookie_1=value' \
--data '{
"email_domain": {
"owner_id": "test",
"email_domain": "juspay.com"
}
}'
```
Response will be 200 OK.
All the following APIs will restrict the users based on the email domain and the corresponding auth method
1. Signin - Password
2. Signup - Password
3. Connect Account - MagicLink
4. Forgot Password - Password
5. Send Verification Email - MagicLink
6. SSO Signin - OpenIdConnect
7. Terminate Auth Select - Selected auth method
If the auth method list for email domain is empty of consists of the above auth method, the request will be continued, or else the api will be stopped.
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/user.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/query/user_authentication_method.rs`
- `crates/diesel_models/src/schema.rs`
- `crates/diesel_models/src/schema_v2.rs`
- ... and 1 more files
**3. Core Business Logic**
- `crates/router/src/core/errors/user.rs`
- `crates/router/src/core/user.rs`
**4. Type Definitions**
- `crates/router/src/types/domain/user.rs`
- `crates/router/src/types/domain/user/user_authentication_method.rs`
**5. Utils**
- `crates/router/src/utils/user.rs`
**6. Other**
- `crates/router/src/db/kafka_store.rs`
- `crates/router/src/db/user_authentication_method.rs`
- `migrations/2024-12-11-092624_add-email-domain-in-auth-methods/down.sql`
- ... and 1 more files
**Code Patterns Applied:**
- Implement new functions (7 changes)
- Extend existing types with new fields (30 changes)
- Add conditional logic for feature flags or filtering (1 changes)
- Modify database queries (3 changes)
**Detailed Identifier Changes:**
Commit 227c274e:
Files to modify:
**crates/api_models/src/user.rs**
Remove:
- struct: pub::UpdateUserAuthenticationMethodRequest
Add:
- enum: pub::UpdateUserAuthenticationMethodRequest
**crates/diesel_models/src/query/user_authentication_method.rs**
Add:
- function: pub::list_user_authentication_methods_for_email_domain
**crates/diesel_models/src/schema.rs**
Modify existing code
**crates/diesel_models/src/schema_v2.rs**
Modify existing code
**crates/diesel_models/src/user_authentication_method.rs**
Modify existing code
**crates/router/src/core/errors/user.rs**
Modify existing code
**crates/router/src/core/user.rs**
Modify existing code
**crates/router/src/db/kafka_store.rs**
Add:
- function: private::list_user_authentication_methods_for_email_domain
**crates/router/src/db/user_authentication_method.rs**
Add:
- function: private::list_user_authentication_methods_for_email_domain
- function: private::list_user_authentication_methods_for_email_domain
**crates/router/src/types/domain/user.rs**
Add:
- function: pub::extract_domain
**crates/router/src/types/domain/user/user_authentication_method.rs**
Modify existing code
**crates/router/src/utils/user.rs**
Add:
- function: pub::validate_email_domain_auth_type_using_db
|
{"pr_number": 6940, "pr_title": "feat(users): Add email domain based restriction for dashboard entry APIs", "merged_at": "2024-12-30T07:37:08Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"api_models": ["crates/api_models/src/user.rs"], "database": ["crates/diesel_models/src/query/user_authentication_method.rs", "crates/diesel_models/src/schema.rs", "crates/diesel_models/src/schema_v2.rs", "crates/diesel_models/src/user_authentication_method.rs"], "core_business": ["crates/router/src/core/errors/user.rs", "crates/router/src/core/user.rs"], "types": ["crates/router/src/types/domain/user.rs", "crates/router/src/types/domain/user/user_authentication_method.rs"], "utils": ["crates/router/src/utils/user.rs"], "other": ["crates/router/src/db/kafka_store.rs", "crates/router/src/db/user_authentication_method.rs", "migrations/2024-12-11-092624_add-email-domain-in-auth-methods/down.sql", "migrations/2024-12-11-092624_add-email-domain-in-auth-methods/up.sql"]}, "change_types": {"functions_added": 7, "enums_added": 1, "fields_added": 30, "imports_added": 3, "conditionals_added": 1, "database_queries": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(connector): [Moneris] add template code
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
- Template Code for addition of new connector Moneris
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
No testing required
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments/connector_integration_v2_impls.rs`
- `crates/router/src/core/payments/flows.rs`
**2. External Connector Integration**
- `crates/common_enums/src/connector_enums.rs`
- `crates/hyperswitch_connectors/src/connectors.rs`
- `crates/hyperswitch_connectors/src/connectors/moneris.rs`
- ... and 9 more files
**3. Type Definitions**
- `crates/router/src/types/api.rs`
- `crates/router/src/types/transformers.rs`
**4. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**5. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 3 more files
**Code Patterns Applied:**
- Define new data structures (10 changes)
- Implement new functions (78 changes)
- Extend existing types with new fields (153 changes)
**Detailed Identifier Changes:**
Commit b09905ec:
Files to modify:
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors.rs**
Add:
- mod: pub::moneris
**crates/hyperswitch_connectors/src/connectors/moneris.rs**
Add:
- function: pub::new
- function: private::build_headers
- function: private::id
- function: private::get_currency_unit
- function: private::common_get_content_type
- function: private::base_url
- function: private::get_auth_header
- function: private::build_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::get_request_body
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::get_request_body
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::get_request_body
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_webhook_object_reference_id
- function: private::get_webhook_event_type
- function: private::get_webhook_resource_object
- struct: pub::Moneris
- impl: impl Moneris
- impl: impl api::Payment for Moneris
- impl: impl api::PaymentSession for Moneris
- impl: impl api::ConnectorAccessToken for Moneris
- impl: impl api::MandateSetup for Moneris
- impl: impl api::PaymentAuthorize for Moneris
- impl: impl api::PaymentSync for Moneris
- impl: impl api::PaymentCapture for Moneris
- impl: impl api::PaymentVoid for Moneris
- impl: impl api::Refund for Moneris
- impl: impl api::RefundExecute for Moneris
- impl: impl api::RefundSync for Moneris
- impl: impl api::PaymentToken for Moneris
- impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Moneris
- impl: impl ConnectorCommonExt<Flow, Request, Response> for Moneris
- impl: impl ConnectorCommon for Moneris
- impl: impl ConnectorValidation for Moneris
- impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Moneris
- impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Moneris
- impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Moneris
- impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Moneris
- impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Moneris
- impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Moneris
- impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Moneris
- impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Moneris
- impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Moneris
- impl: impl webhooks::IncomingWebhook for Moneris
- impl: impl ConnectorSpecifications for Moneris
- mod: pub::transformers
**crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs**
Add:
- function: private::from
- function: private::try_from
- function: private::try_from
- function: private::from
- function: private::try_from
- function: private::try_from
- function: private::from
- function: private::try_from
- function: private::try_from
- struct: pub::MonerisRouterData
- struct: pub::MonerisPaymentsRequest
- struct: pub::MonerisCard
- struct: pub::MonerisAuthType
- struct: pub::MonerisPaymentsResponse
- struct: pub::MonerisRefundRequest
- struct: pub::RefundResponse
- struct: pub::MonerisErrorResponse
- enum: pub::MonerisPaymentStatus
- enum: pub::RefundStatus
- impl: impl From<(StringMinorUnit, T)> for MonerisRouterData<T>
- impl: impl TryFrom<&MonerisRouterData<&PaymentsAuthorizeRouterData>> for MonerisPaymentsRequest
- impl: impl TryFrom<&ConnectorAuthType> for MonerisAuthType
- impl: impl From<MonerisPaymentStatus> for common_enums::AttemptStatus
- impl: impl TryFrom<ResponseRouterData<F, MonerisPaymentsResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData>
- impl: impl TryFrom<&MonerisRouterData<&RefundsRouterData<F>>> for MonerisRefundRequest
- impl: impl From<RefundStatus> for enums::RefundStatus
- impl: impl TryFrom<RefundsResponseRouterData<Execute, RefundResponse>> for RefundsRouterData<Execute>
- impl: impl TryFrom<RefundsResponseRouterData<RSync, RefundResponse>> for RefundsRouterData<RSync>
**crates/hyperswitch_connectors/src/default_implementations.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations_v2.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/configs.rs**
Modify existing code
**crates/router/src/connector.rs**
Modify existing code
**crates/router/src/core/payments/connector_integration_v2_impls.rs**
Modify existing code
**crates/router/src/core/payments/flows.rs**
Modify existing code
**crates/router/src/types/api.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
**crates/router/tests/connectors/main.rs**
Add:
- mod: private::moneris
**crates/router/tests/connectors/moneris.rs**
Add:
- function: private::get_data
- function: private::get_auth_token
- function: private::get_name
- function: private::get_default_payment_info
- function: private::payment_method_details
- function: private::should_only_authorize_payment
- function: private::should_capture_authorized_payment
- function: private::should_partially_capture_authorized_payment
- function: private::should_sync_authorized_payment
- function: private::should_void_authorized_payment
- function: private::should_refund_manually_captured_payment
- function: private::should_partially_refund_manually_captured_payment
- function: private::should_sync_manually_captured_refund
- function: private::should_make_payment
- function: private::should_sync_auto_captured_payment
- function: private::should_refund_auto_captured_payment
- function: private::should_partially_refund_succeeded_payment
- function: private::should_refund_succeeded_payment_multiple_times
- function: private::should_sync_refund
- function: private::should_fail_payment_for_incorrect_cvc
- function: private::should_fail_payment_for_invalid_exp_month
- function: private::should_fail_payment_for_incorrect_expiry_year
- function: private::should_fail_void_payment_for_auto_capture
- function: private::should_fail_capture_for_invalid_payment
- function: private::should_fail_for_refund_amount_higher_than_payment_amount
- struct: private::MonerisTest
- impl: impl ConnectorActions for MonerisTest
- impl: impl utils::Connector for MonerisTest
**crates/test_utils/src/connector_auth.rs**
Modify existing code
|
{"pr_number": 7216, "pr_title": "feat(connector): [Moneris] add template code", "merged_at": "2025-02-13T10:29:15Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/connector_integration_v2_impls.rs", "crates/router/src/core/payments/flows.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/hyperswitch_connectors/src/connectors.rs", "crates/hyperswitch_connectors/src/connectors/moneris.rs", "crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/router/src/connector.rs", "crates/router/tests/connectors/main.rs", "crates/router/tests/connectors/moneris.rs", "crates/router/tests/connectors/sample_auth.toml", "crates/test_utils/src/connector_auth.rs", "scripts/add_connector.sh"], "types": ["crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml", "crates/hyperswitch_interfaces/src/configs.rs"]}, "change_types": {"structs_added": 10, "functions_added": 78, "enums_added": 2, "fields_added": 153, "imports_added": 20}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(connector): [Novalnet] read and send scheme_tid for NTI flows
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
This PR enables reading NTI from Novalnet's payments response. And also updates the integration for raw card + NTI flow.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
Allows HS consumers using Novalnet to persist `network_transaction_id` and also to process payments using raw card + NTI flow.
## How did you test it?
<details>
<summary>1. Process card CIT</summary>
cURL
curl --location --request POST 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_1hbJaLcnNC7iqUQD89rKd2Wg8dNRSi5Zq0lJboT8jIKY3YsopGxJQIjrHfT18oYp' \
--data-raw '{"amount":4500,"currency":"EUR","confirm":true,"profile_id":"pro_VWVhP8nTOe47wWOSGJGw","capture_method":"automatic","authentication_type":"three_ds","setup_future_usage":"off_session","connector":["novalnet"],"customer_id":"agnostic_test_customer","return_url":"https://google.com","payment_method":"card","payment_method_data":{"card":{"card_number":"4111111111111111","card_exp_month":"03","card_exp_year":"2030","card_cvc":"737"},"billing":{"address":{"line1":"1467","line2":"Harrison Street","line3":"Harrison Street","city":"San Fransico","zip":"94122","country":"IT","first_name":"joseph","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"}},"billing":{"address":{"line1":"1467","line2":"Harrison Street","line3":"Harrison Street","city":"San Fransico","zip":"94122","country":"IT","first_name":"joseph","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"shipping":{"address":{"line1":"1467","line2":"Harrison Street","line3":"Harrison Street","city":"San Fransico","state":"California","zip":"94122","country":"IT"},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"metadata":{"udf1":"value1","new_customer":"true","login_date":"2019-09-10T10:11:12Z"},"browser_info":{"user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","language":"en-US","color_depth":32,"screen_height":1117,"screen_width":1728,"time_zone":-330,"java_enabled":true,"java_script_enabled":true,"ip_address":"127.0.0.1"},"customer_acceptance":{"acceptance_type":"online","accepted_at":"1963-05-03T04:07:52.723Z","online":{"ip_address":"127.0.0.1","user_agent":"amet irure esse"}},"session_expiry":2890}'
Response
{"payment_id":"pay_KwXxBKx1TiKHH6ZwmraE","merchant_id":"merchant_1757581123","status":"requires_customer_action","amount":4500,"net_amount":4500,"shipping_cost":null,"amount_capturable":4500,"amount_received":null,"connector":"novalnet","client_secret":"pay_KwXxBKx1TiKHH6ZwmraE_secret_aD0Pn7be1ZSGjqcdLetk","created":"2025-09-11T10:33:16.809Z","currency":"EUR","customer_id":"agnostic_test_customer","customer":{"id":"agnostic_test_customer","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":"off_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1111","card_type":"CREDIT","card_network":"Visa","card_issuer":"JP Morgan","card_issuing_country":"INDIA","card_isin":"411111","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"2030","card_holder_name":"joseph Doe","payment_checks":null,"authentication_data":null},"billing":{"address":{"city":"San Fransico","country":"IT","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":null,"first_name":"joseph","last_name":"Doe","origin_zip":null},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"}},"payment_token":null,"shipping":{"address":{"city":"San Fransico","country":"IT","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":"California","first_name":null,"last_name":null,"origin_zip":null},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"billing":{"address":{"city":"San Fransico","country":"IT","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":null,"first_name":"joseph","last_name":"Doe","origin_zip":null},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://google.com/","authentication_type":"three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":{"type":"redirect_to_url","redirect_to_url":"http://localhost:8080/payments/redirect/pay_KwXxBKx1TiKHH6ZwmraE/merchant_1757581123/pay_KwXxBKx1TiKHH6ZwmraE_1"},"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"agnostic_test_customer","created_at":1757586796,"expires":1757590396,"secret":"epk_54deae69cfe8474597ee97bcf2a20f68"},"manual_retry_allowed":null,"connector_transaction_id":null,"frm_message":null,"metadata":{"udf1":"value1","login_date":"2019-09-10T10:11:12Z","new_customer":"true"},"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":null,"payment_link":null,"profile_id":"pro_VWVhP8nTOe47wWOSGJGw","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_DsZfA2bQdRFuYYticYjC","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-09-11T11:21:26.809Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_channel":null,"payment_method_id":"pm_Ehu3SdGRlE6KNvErguGv","network_transaction_id":null,"payment_method_status":"inactive","updated":"2025-09-11T10:33:17.987Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null,"enable_overcapture":null,"is_overcapture_enabled":null,"network_details":null}
Open and complete 3DS payment
cURL (payments retrieve)
curl --location --request GET 'http://localhost:8080/payments/pay_KwXxBKx1TiKHH6ZwmraE?force_sync=true' \
--header 'Accept: application/json' \
--header 'api-key: dev_1hbJaLcnNC7iqUQD89rKd2Wg8dNRSi5Zq0lJboT8jIKY3YsopGxJQIjrHfT18oYp'
Response (must contain `network_transaction_id`)
{"payment_id":"pay_KwXxBKx1TiKHH6ZwmraE","merchant_id":"merchant_1757581123","status":"succeeded","amount":4500,"net_amount":4500,"shipping_cost":null,"amount_capturable":0,"amount_received":4500,"connector":"novalnet","client_secret":"pay_KwXxBKx1TiKHH6ZwmraE_secret_aD0Pn7be1ZSGjqcdLetk","created":"2025-09-11T10:33:16.809Z","currency":"EUR","customer_id":"agnostic_test_customer","customer":{"id":"agnostic_test_customer","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":"off_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1111","card_type":"CREDIT","card_network":"Visa","card_issuer":"JP Morgan","card_issuing_country":"INDIA","card_isin":"411111","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"2030","card_holder_name":"joseph Doe","payment_checks":null,"authentication_data":null},"billing":{"address":{"city":"San Fransico","country":"IT","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":null,"first_name":"joseph","last_name":"Doe","origin_zip":null},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"}},"payment_token":null,"shipping":{"address":{"city":"San Fransico","country":"IT","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":"California","first_name":null,"last_name":null,"origin_zip":null},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"billing":{"address":{"city":"San Fransico","country":"IT","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":null,"first_name":"joseph","last_name":"Doe","origin_zip":null},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://google.com/","authentication_type":"three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"15236300041213946","frm_message":null,"metadata":{"udf1":"value1","login_date":"2019-09-10T10:11:12Z","new_customer":"true"},"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"15236300041213946","payment_link":null,"profile_id":"pro_VWVhP8nTOe47wWOSGJGw","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_DsZfA2bQdRFuYYticYjC","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-09-11T11:21:26.809Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_channel":null,"payment_method_id":"pm_Ehu3SdGRlE6KNvErguGv","network_transaction_id":"3623011723898289702365","payment_method_status":"active","updated":"2025-09-11T10:33:35.522Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null,"enable_overcapture":null,"is_overcapture_enabled":null,"network_details":null}
</details>
<details>
<summary>2. Process txn using NTI flow</summary>
Pre-requisites
1. `is_connector_agnostic_mit_enabled` is enabled in profile
2. Stored payment method entry only has raw card details + NTI (no PSP token)
<img width="1684" height="204" alt="Screenshot 2025-09-11 at 4 25 31 PM" src="https://github.com/user-attachments/assets/6296cc9e-1765-471c-9c08-a644f56afce7" />
cURL
curl --location --request POST 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_1hbJaLcnNC7iqUQD89rKd2Wg8dNRSi5Zq0lJboT8jIKY3YsopGxJQIjrHfT18oYp' \
--data '{"amount":1000,"currency":"EUR","confirm":true,"capture_on":"2022-09-10T10:11:12Z","customer_id":"agnostic_test_customer","description":"Its my first payment request","return_url":"https://hyperswitch.io","off_session":true,"recurring_details":{"type":"payment_method_id","data":"pm_Ehu3SdGRlE6KNvErguGv"}}'
Response
{"payment_id":"pay_zkCwmnk8BmiLH0LeUqOb","merchant_id":"merchant_1757581123","status":"succeeded","amount":1000,"net_amount":1000,"shipping_cost":null,"amount_capturable":0,"amount_received":1000,"connector":"novalnet","client_secret":"pay_zkCwmnk8BmiLH0LeUqOb_secret_XNve5qlQwoHPZuKjWo6K","created":"2025-09-11T10:57:18.973Z","currency":"EUR","customer_id":"agnostic_test_customer","customer":{"id":"agnostic_test_customer","name":null,"email":null,"phone":null,"phone_country_code":null},"description":"Its my first payment request","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":true,"capture_on":null,"capture_method":null,"payment_method":"card","payment_method_data":{"card":{"last4":"1111","card_type":"CREDIT","card_network":"Visa","card_issuer":"JP Morgan","card_issuing_country":"INDIA","card_isin":"411111","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"2030","card_holder_name":"joseph Doe","payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://hyperswitch.io/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"agnostic_test_customer","created_at":1757588238,"expires":1757591838,"secret":"epk_2df49937a64b445a93b27ed3e8cc323c"},"manual_retry_allowed":false,"connector_transaction_id":"15236300042606240","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"15236300042606240","payment_link":null,"profile_id":"pro_VWVhP8nTOe47wWOSGJGw","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_DsZfA2bQdRFuYYticYjC","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-09-11T11:12:18.972Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":"pm_Ehu3SdGRlE6KNvErguGv","network_transaction_id":"1595759806994174449514","payment_method_status":"active","updated":"2025-09-11T10:57:22.956Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"saved_card","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null,"enable_overcapture":null,"is_overcapture_enabled":null,"network_details":null}
</details>
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (5 changes)
**Detailed Identifier Changes:**
Commit 3f1b6867:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs**
Modify existing code
|
{"pr_number": 9337, "pr_title": "feat(connector): [Novalnet] read and send scheme_tid for NTI flows", "merged_at": "2025-09-16T12:08:30Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs"]}, "change_types": {"fields_added": 5}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(config): remove open-router configuration from docker compose toml
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
This PR removes the open-router configuration from docker_compose.toml
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Since this is just a docker config change and cypress was failing due to this, ensuring CI check pass for cypress should suffice
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Configuration Files**
- `config/docker_compose.toml`
|
{"pr_number": 7885, "pr_title": "fix(config): remove open-router configuration from docker compose toml", "merged_at": "2025-04-25T07:11:05Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"config": ["config/docker_compose.toml"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
feat(router): Add payments get-intent API for v2
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
Added `get-intent` API for payments
### Additional Changes
- [x] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
Closes #6395
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
1a. Request
```
curl --location 'http://localhost:8080/v2/payments/12345_pay_0192b3a0145173519abaa04d4b939558/get-intent' \
--header 'Content-Type: application/json' \
--header 'X-Profile-Id: pro_wcilqiS8axGFvpzfO9pw' \
--header 'api-key: dev_D3bTAROAIoP4nlqsaQXLzXoLdZznkpWQ3l4mzMRJEAP7V46pSnZucJM2zQiVwG0J'
```
1b. Response
```json
{
"id": "12345_pay_0192b3a0145173519abaa04d4b939558",
"amount_details": {
"order_amount": {
"Value": 100
},
"currency": "USD",
"shipping_cost": null,
"order_tax_amount": null,
"skip_external_tax_calculation": "Skip",
"skip_surcharge_calculation": "Skip",
"surcharge_amount": null,
"tax_on_surcharge": null
},
"client_secret": "12345_pay_0192b3a0145173519abaa04d4b939558_secret_0192b3a0145173519abaa05c07ec3e61",
"merchant_reference_id": null,
"routing_algorithm_id": null,
"capture_method": "automatic",
"authentication_type": "no_three_ds",
"billing": null,
"shipping": null,
"customer_id": null,
"customer_present": "Present",
"description": null,
"return_url": null,
"setup_future_usage": "on_session",
"apply_mit_exemption": "Skip",
"statement_descriptor": null,
"order_details": null,
"allowed_payment_method_types": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": null,
"payment_link_enabled": "Skip",
"payment_link_config": null,
"request_incremental_authorization": "default",
"expires_on": "2024-10-22T10:02:45.618Z",
"frm_metadata": null,
"request_external_three_ds_authentication": "Skip"
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/events/payment.rs`
- `crates/api_models/src/payments.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/router_flow_types/payments.rs`
**3. Core Business Logic**
- `crates/router/src/core/payments.rs`
- `crates/router/src/core/payments/operations.rs`
- `crates/router/src/core/payments/operations/payment_get_intent.rs`
- ... and 1 more files
**4. Type Definitions**
- `crates/router/src/types/api/payments.rs`
- `crates/router_env/src/logger/types.rs`
**5. Utils**
- `crates/router/src/routes/lock_utils.rs`
**6. Other**
- `api-reference-v2/api-reference/payments/payments--get-intent.mdx`
- `api-reference-v2/mint.json`
- `api-reference-v2/openapi_spec.json`
- ... and 5 more files
**Code Patterns Applied:**
- Define new data structures (5 changes)
- Implement new functions (18 changes)
- Extend existing types with new fields (51 changes)
**Detailed Identifier Changes:**
Commit c5146085:
Files to modify:
**crates/api_models/src/events/payment.rs**
Remove:
- impl: impl ApiEventMetric for PaymentsCreateIntentResponse
Add:
- function: private::get_api_event_type
- impl: impl ApiEventMetric for PaymentsGetIntentRequest
- impl: impl ApiEventMetric for PaymentsIntentResponse
**crates/api_models/src/payments.rs**
Remove:
- struct: pub::PaymentsCreateIntentResponse
Add:
- struct: pub::PaymentsGetIntentRequest
- struct: pub::PaymentsIntentResponse
**crates/hyperswitch_domain_models/src/router_flow_types/payments.rs**
Remove:
- struct: pub::CreateIntent
Add:
- struct: pub::PaymentCreateIntent
- struct: pub::PaymentGetIntent
**crates/openapi/src/openapi_v2.rs**
Modify existing code
**crates/openapi/src/routes/payments.rs**
Add:
- function: pub::payments_get_intent
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/core/payments/operations.rs**
Remove:
- mod: pub::payment_confirm_intent
Add:
- mod: pub::payment_confirm_intent
- mod: pub::payment_get_intent
**crates/router/src/core/payments/operations/payment_get_intent.rs**
Add:
- function: private::to_validate_request
- function: private::to_get_tracker
- function: private::to_domain
- function: private::to_update_tracker
- function: private::to_validate_request
- function: private::to_get_tracker
- function: private::to_domain
- function: private::to_update_tracker
- function: private::get_trackers
- function: private::update_trackers
- function: private::validate_request
- function: private::get_customer_details
- function: private::make_pm_data
- function: private::get_connector
- function: private::guard_payment_against_blocklist
- struct: pub::PaymentGetIntent
- impl: impl Operation<F, PaymentsGetIntentRequest> for &PaymentGetIntent
- impl: impl Operation<F, PaymentsGetIntentRequest> for PaymentGetIntent
- impl: impl GetTracker<F, payments::PaymentIntentData<F>, PaymentsGetIntentRequest> for PaymentGetIntent
- impl: impl UpdateTracker<F, payments::PaymentIntentData<F>, PaymentsGetIntentRequest> for PaymentGetIntent
- impl: impl ValidateRequest<F, PaymentsGetIntentRequest, payments::PaymentIntentData<F>> for PaymentGetIntent
- impl: impl Domain<F, PaymentsGetIntentRequest, payments::PaymentIntentData<F>> for PaymentGetIntent
**crates/router/src/core/payments/transformers.rs**
Remove:
- impl: impl ToResponse<F, D, Op> for api::PaymentsCreateIntentResponse
Add:
- impl: impl ToResponse<F, D, Op> for api::PaymentsIntentResponse
**crates/router/src/routes/app.rs**
Modify existing code
**crates/router/src/routes/lock_utils.rs**
Modify existing code
**crates/router/src/routes/payments.rs**
Add:
- function: pub::payments_get_intent
**crates/router/src/services/api.rs**
Remove:
- impl: impl Authenticate for api_models::payments::PaymentsCreateIntentRequest
**crates/router/src/types/api/payments.rs**
Modify existing code
**crates/router_env/src/logger/types.rs**
Modify existing code
|
{"pr_number": 6396, "pr_title": "feat(router): Add payments get-intent API for v2", "merged_at": "2024-10-30T16:28:52Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/events/payment.rs", "crates/api_models/src/payments.rs"], "domain": ["crates/hyperswitch_domain_models/src/router_flow_types/payments.rs"], "core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/operations.rs", "crates/router/src/core/payments/operations/payment_get_intent.rs", "crates/router/src/core/payments/transformers.rs"], "types": ["crates/router/src/types/api/payments.rs", "crates/router_env/src/logger/types.rs"], "utils": ["crates/router/src/routes/lock_utils.rs"], "other": ["api-reference-v2/api-reference/payments/payments--get-intent.mdx", "api-reference-v2/mint.json", "api-reference-v2/openapi_spec.json", "crates/openapi/src/openapi_v2.rs", "crates/openapi/src/routes/payments.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/payments.rs", "crates/router/src/services/api.rs"]}, "change_types": {"structs_added": 5, "functions_added": 18, "fields_added": 51, "imports_added": 9}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
chore: Update readme with juspay's vision, product offering, architecture diagram, setup steps and output
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [X] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Update readme with vision, product offering, architecture diagram, setup steps and output
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Other**
- `README.md`
- `docs/imgs/features.png`
- `docs/imgs/hyperswitch-architecture-v1.png`
- ... and 1 more files
|
{"pr_number": 7024, "pr_title": "chore: Update readme with juspay's vision, product offering, architecture diagram, setup steps and output", "merged_at": "2025-01-17T11:28:54Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"other": ["README.md", "docs/imgs/features.png", "docs/imgs/hyperswitch-architecture-v1.png", "docs/imgs/non-functional-features.png"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
ci(cypress): fix paypal cypress
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
Renamed the spec file
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
Paypal and other connectors should pass
## How did you test it?
<img width="659" height="975" alt="image" src="https://github.com/user-attachments/assets/79dc939f-3bbe-4d6a-854d-4c4eb4b0e441" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/spec/Payment/00029-IncrementalAuth.cy.js`
- `cypress-tests/cypress/e2e/spec/Payment/00028-DynamicFields.cy.js`
|
{"pr_number": 9786, "pr_title": "ci(cypress): fix paypal cypress", "merged_at": "2025-10-10T11:30:11Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "connector"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/spec/Payment/00029-IncrementalAuth.cy.js", "cypress-tests/cypress/e2e/spec/Payment/00028-DynamicFields.cy.js"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
feat(connector): add coingate, paystack connector specifications
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
Closes this [issue](https://github.com/juspay/hyperswitch/issues/7995)
## Description
<!-- Describe your changes in detail -->
Added coingate, paystack connector specifications
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Postman Test
Request:
```
curl --location 'http://localhost:8080/feature_matrix' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: ***'
```
Response:
```
{
"connector_count": 2,
"connectors": [
{
"name": "COINGATE",
"display_name": "Coingate",
"description": "CoinGate's online payment solution makes it easy for businesses to accept Bitcoin, Ethereum, stablecoins and other cryptocurrencies for payments on any website.",
"category": "alternative_payment_method",
"supported_payment_methods": [
{
"payment_method": "crypto",
"payment_method_type": "crypto_currency",
"payment_method_type_display_name": "Crypto",
"mandates": "not_supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"sequential_automatic"
],
"supported_countries": [
"POL",
"CRI",
"ARG",
"FRA",
"DEU",
"HKG",
"SVN",
"ESP",
"SRB",
"ISR",
"MLT",
"JPN",
"CHL",
"UKR",
"ALB",
"LUX",
"ITA",
"HUN",
"IRL",
"KOR",
"CHE",
"CZE",
"FIN",
"AUS",
"COL",
"SVK",
"HRV",
"LCA",
"EGY",
"GRC",
"MDA",
"CYP",
"PER",
"GRD",
"LVA",
"PRT",
"ROU",
"DNK",
"QAT",
"AND",
"NLD",
"LTU",
"SGP",
"SAU",
"AUT",
"BRA",
"NZL",
"ISL",
"NOR",
"BGR",
"MEX",
"BEL",
"BIH",
"DOM",
"GBR",
"SWE",
"EST",
"IND",
"SLV"
],
"supported_currencies": [
"GBP",
"EUR",
"USD"
]
}
],
"supported_webhook_flows": [
"payments"
]
},
{
"name": "PAYSTACK",
"display_name": "Paystack",
"description": "Paystack is a Nigerian financial technology company that provides online and offline payment solutions to businesses across Africa.",
"category": "payment_gateway",
"supported_payment_methods": [
{
"payment_method": "bank_redirect",
"payment_method_type": "eft",
"payment_method_type_display_name": "EFT",
"mandates": "not_supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"sequential_automatic"
],
"supported_countries": [
"ZAF",
"CIV",
"NGA",
"KEN",
"GHA"
],
"supported_currencies": [
"GHS",
"USD",
"KES",
"NGN",
"ZAR"
]
}
],
"supported_webhook_flows": [
"payments",
"refunds"
]
}
]
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/coingate.rs`
- `crates/hyperswitch_connectors/src/connectors/paystack.rs`
**2. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**3. Configuration Files**
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- `config/development.toml`
- ... and 1 more files
**Code Patterns Applied:**
- Implement new functions (6 changes)
- Extend existing types with new fields (12 changes)
**Detailed Identifier Changes:**
Commit 6aeaf04e:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/coingate.rs**
Remove:
- function: private::validate_connector_against_payment_request
- impl: impl ConnectorValidation for Coingate
- impl: impl ConnectorSpecifications for Coingate
Add:
- function: private::get_connector_about
- function: private::get_supported_payment_methods
- function: private::get_supported_webhook_flows
- impl: impl ConnectorValidation for Coingate
- impl: impl ConnectorSpecifications for Coingate
**crates/hyperswitch_connectors/src/connectors/paystack.rs**
Remove:
- impl: impl ConnectorSpecifications for Paystack
Add:
- function: private::get_connector_about
- function: private::get_supported_payment_methods
- function: private::get_supported_webhook_flows
- impl: impl ConnectorSpecifications for Paystack
|
{"pr_number": 7996, "pr_title": "feat(connector): add coingate, paystack connector specifications", "merged_at": "2025-05-15T11:57:04Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "refund", "connector"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/coingate.rs", "crates/hyperswitch_connectors/src/connectors/paystack.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {"functions_added": 6, "fields_added": 12, "imports_added": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(connector): [PAYSTACK] Template PR
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Paystack template PR.
Follow the steps outlined in the add_connector.md file. Execute the script provided in the markdown file, then run the following commands:
cargo clippy
cargo +nightly fmt --all
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/admin.rs`
- `crates/router/src/core/payments/connector_integration_v2_impls.rs`
- `crates/router/src/core/payments/flows.rs`
**2. External Connector Integration**
- `crates/common_enums/src/connector_enums.rs`
- `crates/connector_configs/src/connector.rs`
- `crates/hyperswitch_connectors/src/connectors.rs`
- ... and 10 more files
**3. Type Definitions**
- `crates/router/src/types/api.rs`
- `crates/router/src/types/transformers.rs`
**4. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**5. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 3 more files
**6. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
**Code Patterns Applied:**
- Define new data structures (10 changes)
- Implement new functions (78 changes)
- Extend existing types with new fields (154 changes)
**Detailed Identifier Changes:**
Commit 5965d0f8:
Files to modify:
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/connector_configs/src/connector.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors.rs**
Add:
- mod: pub::paystack
**crates/hyperswitch_connectors/src/connectors/paystack.rs**
Add:
- function: pub::new
- function: private::build_headers
- function: private::id
- function: private::get_currency_unit
- function: private::common_get_content_type
- function: private::base_url
- function: private::get_auth_header
- function: private::build_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::get_request_body
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::get_request_body
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::get_request_body
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_webhook_object_reference_id
- function: private::get_webhook_event_type
- function: private::get_webhook_resource_object
- struct: pub::Paystack
- impl: impl Paystack
- impl: impl api::Payment for Paystack
- impl: impl api::PaymentSession for Paystack
- impl: impl api::ConnectorAccessToken for Paystack
- impl: impl api::MandateSetup for Paystack
- impl: impl api::PaymentAuthorize for Paystack
- impl: impl api::PaymentSync for Paystack
- impl: impl api::PaymentCapture for Paystack
- impl: impl api::PaymentVoid for Paystack
- impl: impl api::Refund for Paystack
- impl: impl api::RefundExecute for Paystack
- impl: impl api::RefundSync for Paystack
- impl: impl api::PaymentToken for Paystack
- impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Paystack
- impl: impl ConnectorCommonExt<Flow, Request, Response> for Paystack
- impl: impl ConnectorCommon for Paystack
- impl: impl ConnectorValidation for Paystack
- impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Paystack
- impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Paystack
- impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Paystack
- impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Paystack
- impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Paystack
- impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Paystack
- impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Paystack
- impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Paystack
- impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Paystack
- impl: impl webhooks::IncomingWebhook for Paystack
- impl: impl ConnectorSpecifications for Paystack
- mod: pub::transformers
**crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs**
Add:
- function: private::from
- function: private::try_from
- function: private::try_from
- function: private::from
- function: private::try_from
- function: private::try_from
- function: private::from
- function: private::try_from
- function: private::try_from
- struct: pub::PaystackRouterData
- struct: pub::PaystackPaymentsRequest
- struct: pub::PaystackCard
- struct: pub::PaystackAuthType
- struct: pub::PaystackPaymentsResponse
- struct: pub::PaystackRefundRequest
- struct: pub::RefundResponse
- struct: pub::PaystackErrorResponse
- enum: pub::PaystackPaymentStatus
- enum: pub::RefundStatus
- impl: impl From<(StringMinorUnit, T)> for PaystackRouterData<T>
- impl: impl TryFrom<&PaystackRouterData<&PaymentsAuthorizeRouterData>> for PaystackPaymentsRequest
- impl: impl TryFrom<&ConnectorAuthType> for PaystackAuthType
- impl: impl From<PaystackPaymentStatus> for common_enums::AttemptStatus
- impl: impl TryFrom<ResponseRouterData<F, PaystackPaymentsResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData>
- impl: impl TryFrom<&PaystackRouterData<&RefundsRouterData<F>>> for PaystackRefundRequest
- impl: impl From<RefundStatus> for enums::RefundStatus
- impl: impl TryFrom<RefundsResponseRouterData<Execute, RefundResponse>> for RefundsRouterData<Execute>
- impl: impl TryFrom<RefundsResponseRouterData<RSync, RefundResponse>> for RefundsRouterData<RSync>
**crates/hyperswitch_connectors/src/default_implementations.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations_v2.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/configs.rs**
Modify existing code
**crates/router/src/connector.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/core/payments/connector_integration_v2_impls.rs**
Modify existing code
**crates/router/src/core/payments/flows.rs**
Modify existing code
**crates/router/src/types/api.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
**crates/router/tests/connectors/main.rs**
Add:
- mod: private::paystack
**crates/router/tests/connectors/paystack.rs**
Add:
- function: private::get_data
- function: private::get_auth_token
- function: private::get_name
- function: private::get_default_payment_info
- function: private::payment_method_details
- function: private::should_only_authorize_payment
- function: private::should_capture_authorized_payment
- function: private::should_partially_capture_authorized_payment
- function: private::should_sync_authorized_payment
- function: private::should_void_authorized_payment
- function: private::should_refund_manually_captured_payment
- function: private::should_partially_refund_manually_captured_payment
- function: private::should_sync_manually_captured_refund
- function: private::should_make_payment
- function: private::should_sync_auto_captured_payment
- function: private::should_refund_auto_captured_payment
- function: private::should_partially_refund_succeeded_payment
- function: private::should_refund_succeeded_payment_multiple_times
- function: private::should_sync_refund
- function: private::should_fail_payment_for_incorrect_cvc
- function: private::should_fail_payment_for_invalid_exp_month
- function: private::should_fail_payment_for_incorrect_expiry_year
- function: private::should_fail_void_payment_for_auto_capture
- function: private::should_fail_capture_for_invalid_payment
- function: private::should_fail_for_refund_amount_higher_than_payment_amount
- struct: private::PaystackTest
- impl: impl ConnectorActions for PaystackTest
- impl: impl utils::Connector for PaystackTest
**crates/test_utils/src/connector_auth.rs**
Modify existing code
|
{"pr_number": 7285, "pr_title": "feat(connector): [PAYSTACK] Template PR", "merged_at": "2025-02-27T09:26:22Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/payments/connector_integration_v2_impls.rs", "crates/router/src/core/payments/flows.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/connector_configs/src/connector.rs", "crates/hyperswitch_connectors/src/connectors.rs", "crates/hyperswitch_connectors/src/connectors/paystack.rs", "crates/hyperswitch_connectors/src/connectors/paystack/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/router/src/connector.rs", "crates/router/tests/connectors/main.rs", "crates/router/tests/connectors/paystack.rs", "crates/router/tests/connectors/sample_auth.toml", "crates/test_utils/src/connector_auth.rs", "scripts/add_connector.sh"], "types": ["crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml", "crates/hyperswitch_interfaces/src/configs.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {"structs_added": 10, "functions_added": 78, "enums_added": 2, "fields_added": 154, "imports_added": 20}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
ci(cypress): fix paypal failures
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [x] CI/CD
## Description
<!-- Describe your changes in detail -->
<img width="861" alt="image" src="https://github.com/user-attachments/assets/d85ea702-cd5d-444b-86bd-1f5f50363d40" />
connector throws above error when using VISA card. Replacing that with MasterCard fixes it:
<img width="1206" alt="image" src="https://github.com/user-attachments/assets/de44fa13-695b-4198-ba82-d603a9bafbe1" />
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
paypal ci is failing.
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
`CYPRESS_CONNECTOR=paypal npm run cypress:payments`

## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `npm run format`
- [x] I addressed lints thrown by `npm run lint`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/configs/Payment/Paypal.js`
**Code Patterns Applied:**
- Extend existing types with new fields (2 changes)
|
{"pr_number": 7491, "pr_title": "ci(cypress): fix paypal failures", "merged_at": "2025-03-12T08:00:38Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/configs/Payment/Paypal.js"]}, "change_types": {"fields_added": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
revert: fix(connector): [noon] address `next_action_url` being `null` for cards in 3ds payment
Reverts juspay/hyperswitch#7856
|
To implement this **unknown** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/noon.rs`
- `crates/hyperswitch_connectors/src/connectors/noon/transformers.rs`
**Code Patterns Applied:**
- Define new data structures (2 changes)
- Implement new functions (1 changes)
- Extend existing types with new fields (31 changes)
**Detailed Identifier Changes:**
Commit 4038b527:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/noon.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/noon/transformers.rs**
Add:
- function: private::try_from
- struct: pub::NoonPaypalResponse
- struct: pub::NoonPaypalResponseResult
- enum: pub::NoonAuthPaymentResponse
- impl: impl TryFrom<ResponseRouterData<F, NoonPaypalResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData>
|
{"pr_number": 7860, "pr_title": "revert: fix(connector): [noon] address `next_action_url` being `null` for cards in 3ds payment", "merged_at": "2025-04-21T14:52:28Z", "intent": {"feature_type": "unknown", "action": "unknown", "entities": []}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/noon.rs", "crates/hyperswitch_connectors/src/connectors/noon/transformers.rs"]}, "change_types": {"structs_added": 2, "functions_added": 1, "enums_added": 1, "fields_added": 31}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(payments): add support for connector testing (Adyen)
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
This PR adds support for connector testing data in payment requests, specifically for Adyen connector. It allows merchants to send testing values via `connector_metadata` to simulate different scenarios in the sandbox environment.
The implementation includes:
1. Added a new structure `AdyenConnectorMetadata` and `AdyenTestingData` in the API models
2. Modified the Adyen connector payment flows (both CIT and MIT) across different payment methods to accept and process the testing data
The holder_name in testing data will override card_holder_name in the connector's payment request, allowing merchants to test specific scenarios without affecting their production implementation.
### Additional Changes
- [x] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
## Motivation and Context
Connectors like Adyen provide special values for certain fields that can be used to simulate different error scenarios in their sandbox environments. These special values help merchants test error handling without requiring them to modify their actual implementation.
For example, sending a specific holder name value like "CARD_EXPIRED" can simulate a card expiration error from Adyen.
This feature enables merchants to test various error scenarios in a systematic way through HyperSwitch API without changing their integration code.
## How did you test it?
<details>
<summary>1. Simulate Adyen's CARD_EXPIRED error through testing data in connector_metadata for CIT</summary>
cURL
curl --location --request POST 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_UEgACZ01bXHeFIrvN93I7h3sWWs4V0LTiJwPQRdI9OQzV4lZcVzLQ1mnfAprp5nx' \
--data-raw '{"amount":10,"currency":"EUR","confirm":true,"profile_id":"pro_HPqNgWlKGAgwQms0jwIF","capture_method":"automatic","capture_on":"2022-09-10T10:11:12Z","authentication_type":"three_ds","setup_future_usage":"off_session","connector":["adyen"],"customer_id":"cus_xPhu4Ugm5fIPkjIUQNaH","email":"[email protected]","return_url":"https://google.com","payment_method":"card","payment_method_type":"debit","payment_method_data":{"card":{"card_number":"4111111111111111","card_exp_month":"03","card_exp_year":"2030","card_holder_name":"Test User","card_cvc":"737"}},"billing":{"address":{"line1":"1467","line2":"Harrison Street","line3":"Harrison Street","city":"San Fransico","state":"California","zip":"94122","country":"IT","first_name":"joseph","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"browser_info":{"user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","language":"en-US","color_depth":32,"screen_height":1117,"screen_width":1728,"time_zone":-330,"java_enabled":true,"java_script_enabled":true,"ip_address":"127.0.0.1"},"customer_acceptance":{"acceptance_type":"online","accepted_at":"1963-05-03T04:07:52.723Z","online":{"ip_address":"127.0.0.1","user_agent":"amet irure esse"}},"connector_metadata":{"adyen":{"testing":{"holder_name":"CARD_EXPIRED x This is my error message"}}},"session_expiry":60}'
Expectations
1. Payment fails with the specified string in testing data's holder name
2. Testing data's holder name takes precedence over the value passed in payment_method_data card_holder_name
Response
{"payment_id":"pay_YAtEbtMJOeLlpgy6Qo1q","merchant_id":"merchant_1745378456","status":"failed","amount":10,"net_amount":10,"shipping_cost":null,"amount_capturable":0,"amount_received":null,"connector":"adyen","client_secret":"pay_YAtEbtMJOeLlpgy6Qo1q_secret_wDnisrGKMPVJ1yITYAgB","created":"2025-04-23T04:31:43.728Z","currency":"EUR","customer_id":"cus_xPhu4Ugm5fIPkjIUQNaH","customer":{"id":"cus_xPhu4Ugm5fIPkjIUQNaH","name":"John Doe","email":"[email protected]","phone":"999999999","phone_country_code":"+65"},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":"off_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1111","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"411111","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"2030","card_holder_name":"Test User","payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":"San Fransico","country":"IT","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":"California","first_name":"joseph","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"order_details":null,"email":"[email protected]","name":"John Doe","phone":"999999999","return_url":"https://google.com/","authentication_type":"three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":"6","error_message":"Expired Card","unified_code":"UE_9000","unified_message":"Something went wrong","payment_experience":null,"payment_method_type":"debit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"cus_xPhu4Ugm5fIPkjIUQNaH","created_at":1745382703,"expires":1745386303,"secret":"epk_deacab31d1e6413291eada3764b2986c"},"manual_retry_allowed":true,"connector_transaction_id":"LW79V9ZRB72FMNT5","frm_message":null,"metadata":null,"connector_metadata":{"apple_pay":null,"airwallex":null,"noon":null,"braintree":null,"adyen":{"testing":{"holder_name":"CARD_EXPIRED x This is my error message"}}},"feature_metadata":null,"reference_id":null,"payment_link":null,"profile_id":"pro_HPqNgWlKGAgwQms0jwIF","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_OSy4xc1t36A2rIA8IJcn","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-04-23T04:32:43.728Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-04-23T04:31:45.103Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":"This is my error message"}
</details>
<details>
<summary>2. Simulate Adyen's CARD_EXPIRED error through testing data in connector_metadata for MIT<summary>
cURL (for creating mandates)
curl --location --request POST 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_UEgACZ01bXHeFIrvN93I7h3sWWs4V0LTiJwPQRdI9OQzV4lZcVzLQ1mnfAprp5nx' \
--data-raw '{"amount":10,"currency":"EUR","confirm":true,"profile_id":"pro_HPqNgWlKGAgwQms0jwIF","capture_method":"automatic","capture_on":"2022-09-10T10:11:12Z","authentication_type":"three_ds","setup_future_usage":"off_session","connector":["adyen"],"customer_id":"cus_xPhu4Ugm5fIPkjIUQNaH","email":"[email protected]","return_url":"https://google.com","payment_method":"card","payment_method_type":"debit","payment_method_data":{"card":{"card_number":"4111111111111111","card_exp_month":"03","card_exp_year":"2030","card_holder_name":"Test User","card_cvc":"737"}},"billing":{"address":{"line1":"1467","line2":"Harrison Street","line3":"Harrison Street","city":"San Fransico","state":"California","zip":"94122","country":"IT","first_name":"joseph","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"browser_info":{"user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","language":"en-US","color_depth":32,"screen_height":1117,"screen_width":1728,"time_zone":-330,"java_enabled":true,"java_script_enabled":true,"ip_address":"127.0.0.1"},"customer_acceptance":{"acceptance_type":"online","accepted_at":"1963-05-03T04:07:52.723Z","online":{"ip_address":"127.0.0.1","user_agent":"amet irure esse"}},"session_expiry":60}'
Expectations
1. Payment succeeds
2. payment_method_id is retrieved
Response
{"payment_id":"pay_Bc8m48deiQPthw9eNKB2","merchant_id":"merchant_1745378456","status":"succeeded","amount":10,"net_amount":10,"shipping_cost":null,"amount_capturable":0,"amount_received":10,"connector":"adyen","client_secret":"pay_Bc8m48deiQPthw9eNKB2_secret_x78ITiMF1X73mI6bc4st","created":"2025-04-23T04:35:53.717Z","currency":"EUR","customer_id":"cus_xPhu4Ugm5fIPkjIUQNaH","customer":{"id":"cus_xPhu4Ugm5fIPkjIUQNaH","name":"John Doe","email":"[email protected]","phone":"999999999","phone_country_code":"+65"},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":"off_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1111","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"411111","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"2030","card_holder_name":"Test User","payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":"San Fransico","country":"IT","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":"California","first_name":"joseph","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"order_details":null,"email":"[email protected]","name":"John Doe","phone":"999999999","return_url":"https://google.com/","authentication_type":"three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"debit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"cus_xPhu4Ugm5fIPkjIUQNaH","created_at":1745382953,"expires":1745386553,"secret":"epk_ee929d43a2f3400d84b614ba30219d53"},"manual_retry_allowed":false,"connector_transaction_id":"D2XCLCJRGB9VWM75","frm_message":null,"metadata":null,"connector_metadata":{"apple_pay":null,"airwallex":null,"noon":null,"braintree":null,"adyen":{"testing":{"holder_name":null}}},"feature_metadata":null,"reference_id":"pay_Bc8m48deiQPthw9eNKB2_1","payment_link":null,"profile_id":"pro_HPqNgWlKGAgwQms0jwIF","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_OSy4xc1t36A2rIA8IJcn","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-04-23T04:36:53.717Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_method_id":"pm_EJSd2QoapABA7TLpNrjp","payment_method_status":"active","updated":"2025-04-23T04:35:55.388Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":"LQR35D9R636NHJ65","card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null}
cURL (Simulating error in MIT)
curl --location --request POST 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_UEgACZ01bXHeFIrvN93I7h3sWWs4V0LTiJwPQRdI9OQzV4lZcVzLQ1mnfAprp5nx' \
--data-raw '{"amount":6500,"currency":"EUR","confirm":true,"capture_method":"automatic","capture_on":"2022-09-10T10:11:12Z","customer_id":"cus_xPhu4Ugm5fIPkjIUQNaH","email":"[email protected]","name":"John Doe","phone":"999999999","profile_id":"pro_HPqNgWlKGAgwQms0jwIF","phone_country_code":"+65","description":"Its my first payment request","return_url":"https://hyperswitch.io","off_session":true,"recurring_details":{"type":"payment_method_id","data":"pm_EJSd2QoapABA7TLpNrjp"},"connector":["adyen"],"statement_descriptor_name":"joseph","statement_descriptor_suffix":"JS","metadata":{"udf1":"value1","new_customer":"true","login_date":"2019-09-10T10:11:12Z"},"browser_info":{"ip_address":"129.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","language":"en-US","color_depth":32,"screen_height":1117,"screen_width":1728,"time_zone":-330,"java_enabled":true,"java_script_enabled":true},"connector_metadata":{"adyen":{"testing":{"holder_name":"CARD_EXPIRED x MIT error message"}}}}'
Expectations
1. MIT payment fails with the specified error in testing data's holder name field
Response
{"payment_id":"pay_fRuTbjd8yFPgBk9NHn1U","merchant_id":"merchant_1745378456","status":"failed","amount":6500,"net_amount":6500,"shipping_cost":null,"amount_capturable":0,"amount_received":null,"connector":"adyen","client_secret":"pay_fRuTbjd8yFPgBk9NHn1U_secret_AZm2NYex5skj3qtRYmiy","created":"2025-04-23T04:37:46.301Z","currency":"EUR","customer_id":"cus_xPhu4Ugm5fIPkjIUQNaH","customer":{"id":"cus_xPhu4Ugm5fIPkjIUQNaH","name":"John Doe","email":"[email protected]","phone":"999999999","phone_country_code":"+65"},"description":"Its my first payment request","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":true,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1111","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"411111","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"2030","card_holder_name":"Test User","payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":"[email protected]","name":"John Doe","phone":"999999999","return_url":"https://hyperswitch.io/","authentication_type":"no_three_ds","statement_descriptor_name":"joseph","statement_descriptor_suffix":"JS","next_action":null,"cancellation_reason":null,"error_code":"6","error_message":"Expired Card","unified_code":"UE_9000","unified_message":"Something went wrong","payment_experience":null,"payment_method_type":"debit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"cus_xPhu4Ugm5fIPkjIUQNaH","created_at":1745383066,"expires":1745386666,"secret":"epk_99ac0c08e6d843ae9d15e6f280822f2f"},"manual_retry_allowed":true,"connector_transaction_id":"JKS4HVG55L4VWM75","frm_message":null,"metadata":{"udf1":"value1","login_date":"2019-09-10T10:11:12Z","new_customer":"true"},"connector_metadata":{"apple_pay":null,"airwallex":null,"noon":null,"braintree":null,"adyen":{"testing":{"holder_name":"CARD_EXPIRED x MIT error message"}}},"feature_metadata":null,"reference_id":null,"payment_link":null,"profile_id":"pro_HPqNgWlKGAgwQms0jwIF","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_OSy4xc1t36A2rIA8IJcn","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-04-23T04:52:46.301Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"129.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_method_id":"pm_EJSd2QoapABA7TLpNrjp","payment_method_status":"active","updated":"2025-04-23T04:37:47.572Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":"LQR35D9R636NHJ65","card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":"MIT error message"}
</details>
<details>
<summary>Automated cypress tests for Adyen (Ideal bank redirection fails as expected)</summary>

</details>
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **payment** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/router_request_types.rs`
**3. Core Business Logic**
- `crates/router/src/core/payments/transformers.rs`
**4. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs`
- `crates/hyperswitch_connectors/src/utils.rs`
- `crates/router/src/types/api/verify_connector.rs`
- ... and 1 more files
**5. Type Definitions**
- `crates/router/src/types.rs`
**6. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
- `crates/openapi/src/openapi.rs`
- ... and 1 more files
**Code Patterns Applied:**
- Define new data structures (3 changes)
- Implement new functions (3 changes)
- Extend existing types with new fields (32 changes)
**Detailed Identifier Changes:**
Commit f1bb4a09:
Files to modify:
**crates/api_models/src/payments.rs**
Add:
- struct: pub::AdyenConnectorMetadata
- struct: pub::AdyenTestingData
**crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs**
Add:
- function: private::try_from
- struct: pub::AdyenTestingData
- impl: impl TryFrom<common_utils::pii::SecretSerdeValue> for AdyenTestingData
**crates/hyperswitch_connectors/src/utils.rs**
Add:
- function: private::get_connector_testing_data
**crates/hyperswitch_domain_models/src/router_request_types.rs**
Modify existing code
**crates/openapi/src/openapi.rs**
Modify existing code
**crates/openapi/src/openapi_v2.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/types.rs**
Modify existing code
**crates/router/src/types/api/verify_connector.rs**
Modify existing code
**crates/router/tests/connectors/utils.rs**
Modify existing code
|
{"pr_number": 7874, "pr_title": "feat(payments): add support for connector testing (Adyen)", "merged_at": "2025-04-24T15:31:10Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "domain": ["crates/hyperswitch_domain_models/src/router_request_types.rs"], "core_business": ["crates/router/src/core/payments/transformers.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/types/api/verify_connector.rs", "crates/router/tests/connectors/utils.rs"], "types": ["crates/router/src/types.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/openapi/src/openapi.rs", "crates/openapi/src/openapi_v2.rs"]}, "change_types": {"structs_added": 3, "functions_added": 3, "fields_added": 32}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(core): add payment_id as query param in merchant return url
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
hotfix pr for https://github.com/juspay/hyperswitch/pull/6665
Currently in payment link after redirection in case of non 3ds, we return to merchant url with following query params
- payment id, status
But for non 3ds we return to merchant url with following query params
- status , client secret, manual_retry_allowed
Inorder to have consistency across all return response to merchant adding payment_id to 3ds/redirection like bank redirects response url.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Create 3ds transaction upon returning to merchant url redirection url should have payment id .
<img width="1501" alt="Screenshot 2024-11-26 at 6 37 03 PM" src="https://github.com/user-attachments/assets/685e6545-8ed8-4865-989d-81eeeac191ea">
Create 3ds failure transaction it should have the payment id in the response
<img width="1534" alt="Screenshot 2024-11-26 at 6 41 52 PM" src="https://github.com/user-attachments/assets/04a82a40-64ca-4063-a381-a1763f3e6cdc">
Create any other redirection payment method scenarios.- tested this locally with online banking fpx for fiuu.
```
{
"amount": 1000,
"currency": "MYR",
"amount_to_capture": 1000,
"confirm": false,
"payment_link" : true,
// "profile_id" : "{{profile_id}}",
"capture_method": "automatic",
"payment_method": "bank_redirect",
"payment_method_type": "online_banking_fpx",
"return_url": "https://google.com",
"payment_method_data": {
"bank_redirect": {
"online_banking_fpx": {
"issuer": "bank_islam"
}
}
}
}
```
<img width="1385" alt="Screenshot 2024-11-26 at 6 44 05 PM" src="https://github.com/user-attachments/assets/c19c9ead-8c19-4dea-9a69-10cfb925524b">
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments/helpers.rs`
**Detailed Identifier Changes:**
Commit 50cdb955:
Files to modify:
**crates/router/src/core/payments/helpers.rs**
Modify existing code
|
{"pr_number": 6669, "pr_title": "fix(core): add payment_id as query param in merchant return url", "merged_at": "2024-11-27T06:52:16Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/helpers.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
ci(cypress): Added Fiserv Connector Test
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [x] CI/CD
## Description
1.Enhanced Fiserv Connector in cypress for Comprehensive Testing
2.Fixed the Fallback scenarios for mandates:
- When Hyperswitch attempts to process a payment as "off_session" (saved card payment without customer present), some connectors like Fiserv don't fully support this flow and fall back to "on_session" processing
- When this fallback occurs, the CVC value becomes required but was previously not included in the confirmation request
- This code checks if there was a fallback to "on_session" processing and ensures the CVC value from the original card data is properly included in the saved card confirmation
```
if (globalState.get("actualSetupFutureUsage") === "on_session" &&
reqData.payment_method_data?.card?.card_cvc) {
saveCardConfirmBody.card_cvc = reqData.payment_method_data.card.card_cvc;
}
```
## Motivation and Context
These enhancements improve test coverage and reliability for the Fiserv connector, ensuring that all payment flows are properly tested and verified.
## How did you test it?
<img width="570" alt="Screenshot 2025-05-29 at 1 24 28 PM" src="https://github.com/user-attachments/assets/89ab460f-c350-4581-ba39-079a435bf469" />
Note: Few testcases are failing due to 3ds is not supported and its silently falling back to no_three_ds. This needs to be fixed in the code
|
To implement this **payment** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/configs/Payment/Fiserv.js`
- `cypress-tests/cypress/e2e/configs/Payment/Utils.js`
- `cypress-tests/cypress/support/commands.js`
**Code Patterns Applied:**
- Extend existing types with new fields (639 changes)
- Add conditional logic for feature flags or filtering (1 changes)
|
{"pr_number": 8171, "pr_title": "ci(cypress): Added Fiserv Connector Test", "merged_at": "2025-06-03T07:34:40Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "user"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/configs/Payment/Fiserv.js", "cypress-tests/cypress/e2e/configs/Payment/Utils.js", "cypress-tests/cypress/support/commands.js"]}, "change_types": {"fields_added": 639, "conditionals_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
fix(connector): [DATATRANS] Add new payment status
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
For connector Datatrans add new payment status: ChallengeOngoing and ChallengeRequired
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
https://github.com/juspay/hyperswitch/issues/7328
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Payments Create:
Request:
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_pzCQPy1Bguc8j2kV8DQeqQJHIqJQJCjF5kLyDVep1qhmsjAPfl6GUbb10RId0cr8' \
--data-raw '{
"amount": 1000,
"currency": "GBP",
"amount_to_capture": 1000,
"confirm": true,
"capture_method": "manual",
"authentication_type": "no_three_ds",
"payment_method": "card",
"payment_method_type": "credit",
"email": "[email protected]",
"payment_method_data": {
"card": {
"card_number": "5404000000000001",
"card_exp_month": "06",
"card_exp_year": "25",
"card_holder_name": "joseph Doe",
"card_cvc": "123"
},
"billing": {
"email": "[email protected]"
}
}
}'
```
Response:
```
{
"payment_id": "pay_o5DC6PfvFD102tR0jAkC",
"merchant_id": "merchant_1740052235",
"status": "requires_capture",
"amount": 1000,
"net_amount": 1000,
"shipping_cost": null,
"amount_capturable": 1000,
"amount_received": null,
"connector": "datatrans",
"client_secret": "pay_o5DC6PfvFD102tR0jAkC_secret_aIwxbFdYcRA5QEzSwRH0",
"created": "2025-02-20T12:54:31.835Z",
"currency": "GBP",
"customer_id": null,
"customer": {
"id": null,
"name": null,
"email": "[email protected]",
"phone": null,
"phone_country_code": null
},
"description": null,
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": null,
"off_session": null,
"capture_on": null,
"capture_method": "manual",
"payment_method": "card",
"payment_method_data": {
"card": {
"last4": "0001",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "540400",
"card_extended_bin": null,
"card_exp_month": "06",
"card_exp_year": "25",
"card_holder_name": "joseph Doe",
"payment_checks": null,
"authentication_data": null
},
"billing": {
"address": null,
"phone": null,
"email": "[email protected]"
}
},
"payment_token": null,
"shipping": null,
"billing": null,
"order_details": null,
"email": null,
"name": null,
"phone": null,
"return_url": null,
"authentication_type": "no_three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": null,
"manual_retry_allowed": false,
"connector_transaction_id": "250220135432771618",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": null,
"reference_id": null,
"payment_link": null,
"profile_id": "pro_u7haQkBn6S4w6TXz8EJH",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_2NXjPxtjXhySNn9Ui8bD",
"incremental_authorization_allowed": null,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-02-20T13:09:31.834Z",
"fingerprint": null,
"browser_info": null,
"payment_method_id": null,
"payment_method_status": null,
"updated": "2025-02-20T12:54:33.029Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": null,
"capture_before": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null,
"card_discovery": "manual"
}
```
Payments Intent:
Request:
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_pzCQPy1Bguc8j2kV8DQeqQJHIqJQJCjF5kLyDVep1qhmsjAPfl6GUbb10RId0cr8' \
--data '{
"amount": 0,
"currency": "GBP",
"confirm": false,
"setup_future_usage": "off_session",
"customer_id": "tester1799"
}'
```
Response:
```
{
"payment_id": "pay_mLh13MuvuHd60YDrzoRJ",
"merchant_id": "merchant_1740052235",
"status": "requires_payment_method",
"amount": 0,
"net_amount": 0,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": null,
"connector": null,
"client_secret": "pay_mLh13MuvuHd60YDrzoRJ_secret_vG7S4ysL0mc0jQunux4v",
"created": "2025-02-20T12:55:01.990Z",
"currency": "GBP",
"customer_id": "tester1799",
"customer": {
"id": "tester1799",
"name": null,
"email": null,
"phone": null,
"phone_country_code": null
},
"description": null,
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": "off_session",
"off_session": null,
"capture_on": null,
"capture_method": null,
"payment_method": null,
"payment_method_data": null,
"payment_token": null,
"shipping": null,
"billing": null,
"order_details": null,
"email": null,
"name": null,
"phone": null,
"return_url": null,
"authentication_type": null,
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": null,
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "tester1799",
"created_at": 1740056101,
"expires": 1740059701,
"secret": "epk_5f5f55938a5e4d4aa926cf0ebdfaac0a"
},
"manual_retry_allowed": null,
"connector_transaction_id": null,
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": null,
"reference_id": null,
"payment_link": null,
"profile_id": "pro_u7haQkBn6S4w6TXz8EJH",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": null,
"incremental_authorization_allowed": null,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-02-20T13:10:01.990Z",
"fingerprint": null,
"browser_info": null,
"payment_method_id": null,
"payment_method_status": null,
"updated": "2025-02-20T12:55:02.018Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": null,
"capture_before": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null,
"card_discovery": null
}
```
Payments Confirm(Creating Mandate):
Request:
```
curl --location 'http://localhost:8080/payments/pay_FW8L70XM5ECVgz0V0M4U/confirm' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_pzCQPy1Bguc8j2kV8DQeqQJHIqJQJCjF5kLyDVep1qhmsjAPfl6GUbb10RId0cr8' \
--data-raw '{
"payment_method": "card",
"payment_method_type": "credit",
"customer_acceptance": {
"acceptance_type": "offline"
},
"capture_method": "automatic",
"authentication_type": "no_three_ds",
"payment_method_data": {
"card": {
"card_number": "5404000000000001",
"card_exp_month": "06",
"card_exp_year": "25",
"card_holder_name": "joseph Doe",
"card_cvc": "123"
},
"billing": {
"email": "[email protected]"
}
}
}'
```
Response:
```
{
"payment_id": "pay_mLh13MuvuHd60YDrzoRJ",
"merchant_id": "merchant_1740052235",
"status": "requires_customer_action",
"amount": 0,
"net_amount": 0,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": null,
"connector": "datatrans",
"client_secret": "pay_mLh13MuvuHd60YDrzoRJ_secret_vG7S4ysL0mc0jQunux4v",
"created": "2025-02-20T12:55:01.990Z",
"currency": "GBP",
"customer_id": "tester1799",
"customer": {
"id": "tester1799",
"name": null,
"email": null,
"phone": null,
"phone_country_code": null
},
"description": null,
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": "off_session",
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": "card",
"payment_method_data": {
"card": {
"last4": "0001",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "540400",
"card_extended_bin": null,
"card_exp_month": "06",
"card_exp_year": "25",
"card_holder_name": "joseph Doe",
"payment_checks": null,
"authentication_data": null
},
"billing": {
"address": null,
"phone": null,
"email": "[email protected]"
}
},
"payment_token": null,
"shipping": null,
"billing": null,
"order_details": null,
"email": null,
"name": null,
"phone": null,
"return_url": null,
"authentication_type": "no_three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": {
"type": "redirect_to_url",
"redirect_to_url": "http://localhost:8080/payments/redirect/pay_mLh13MuvuHd60YDrzoRJ/merchant_1740052235/pay_mLh13MuvuHd60YDrzoRJ_1"
},
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": null,
"manual_retry_allowed": null,
"connector_transaction_id": "250220135517601774",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": null,
"reference_id": null,
"payment_link": null,
"profile_id": "pro_u7haQkBn6S4w6TXz8EJH",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_2NXjPxtjXhySNn9Ui8bD",
"incremental_authorization_allowed": null,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-02-20T13:10:01.990Z",
"fingerprint": null,
"browser_info": {
"os_type": null,
"language": null,
"time_zone": null,
"ip_address": "::1",
"os_version": null,
"user_agent": null,
"color_depth": null,
"device_model": null,
"java_enabled": null,
"screen_width": null,
"accept_header": null,
"screen_height": null,
"accept_language": "en",
"java_script_enabled": null
},
"payment_method_id": "pm_wnpldY3cjI1hNd9eCdvV",
"payment_method_status": "inactive",
"updated": "2025-02-20T12:55:17.804Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": null,
"capture_before": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null,
"card_discovery": "manual"
}
```
Note: Non-3DS transaction will redirect if we pass off_session https://docs.datatrans.ch/docs/tokenization
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs`
**Detailed Identifier Changes:**
Commit 2b74a94e:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs**
Modify existing code
|
{"pr_number": 7327, "pr_title": "fix(connector): [DATATRANS] Add new payment status", "merged_at": "2025-02-20T17:43:47Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix: Payments redirects for v2
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
This PR fixes payment redirects in v2. This was due to the field merchant_connector_details set as todo!()
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
- Make 3DS payment
```
curl --location 'http://localhost:8080/v2/payments' \
--header 'Content-Type: application/json' \
--header 'x-profile-id: pro_295oknnkIU8LhiO6RTCy' \
--header 'Authorization: api-key=dev_8OKnwsVtu4ZIxxgqDfVQwnQrUfdORX3Ivo9i8Yxp0rB3mEZxiv9UZchQimjPgNnx' \
--data-raw '{
"amount_details": {
"currency": "USD",
"order_amount": 6540
},
"authentication_type": "three_ds",
"payment_method_data": {
"card": {
"card_cvc": "123",
"card_exp_month": "10",
"card_exp_year": "25",
"card_holder_name": "joseph Doe",
"card_number": "4242424242424242"
}
},
"payment_method_subtype": "credit",
"payment_method_type": "card"
}'
```
Response
```
{
"id": "12345_pay_01978cfda5fa7c12b1ba298cca0470c2",
"status": "requires_customer_action",
"amount": {
"order_amount": 6540,
"currency": "USD",
"shipping_cost": null,
"order_tax_amount": null,
"external_tax_calculation": "skip",
"surcharge_calculation": "skip",
"surcharge_amount": null,
"tax_on_surcharge": null,
"net_amount": 6540,
"amount_to_capture": null,
"amount_capturable": 0,
"amount_captured": null
},
"customer_id": null,
"connector": "stripe",
"created": "2025-06-20T10:58:42.813Z",
"payment_method_data": {
"billing": null
},
"payment_method_type": "card",
"payment_method_subtype": "credit",
"connector_transaction_id": "pi_3Rc2edD5R7gDAGff01vwkClL",
"connector_reference_id": null,
"merchant_connector_id": "mca_0GI0dABwex0qdnwlUelt",
"browser_info": null,
"error": null,
"shipping": null,
"billing": null,
"attempts": null,
"connector_token_details": {
"token": "pm_1Rc2edD5R7gDAGffEOosatGV",
"connector_token_request_reference_id": "eDuVwDClp0zQPbbkLZ"
},
"payment_method_id": null,
"next_action": {
"type": "redirect_to_url",
"redirect_to_url": "http://localhost:8080/v2/payments/12345_pay_01978cfda5fa7c12b1ba298cca0470c2/start-redirection?publishable_key=pk_dev_4499ca4660714d6b83b379218164187a&profile_id=pro_295oknnkIU8LhiO6RTCy"
},
"return_url": "https://google.com/success",
"authentication_type": "three_ds",
"authentication_type_applied": "three_ds",
"is_iframe_redirection_enabled": null,
"merchant_reference_id": null
}
```
Redirect to URL
- Payments Sync
```
curl --location 'http://localhost:8080/v2/payments/12345_pay_01978cfda5fa7c12b1ba298cca0470c2?force_sync=true' \
--header 'x-profile-id: pro_295oknnkIU8LhiO6RTCy' \
--header 'Authorization: api-key=dev_8OKnwsVtu4ZIxxgqDfVQwnQrUfdORX3Ivo9i8Yxp0rB3mEZxiv9UZchQimjPgNnx' \
--data ''
```
Response
```
{
"id": "12345_pay_01978cfda5fa7c12b1ba298cca0470c2",
"status": "succeeded",
"amount": {
"order_amount": 6540,
"currency": "USD",
"shipping_cost": null,
"order_tax_amount": null,
"external_tax_calculation": "skip",
"surcharge_calculation": "skip",
"surcharge_amount": null,
"tax_on_surcharge": null,
"net_amount": 6540,
"amount_to_capture": null,
"amount_capturable": 0,
"amount_captured": 6540
},
"customer_id": null,
"connector": "stripe",
"created": "2025-06-20T10:58:42.813Z",
"payment_method_data": {
"billing": null
},
"payment_method_type": "card",
"payment_method_subtype": "credit",
"connector_transaction_id": "pi_3Rc2edD5R7gDAGff01vwkClL",
"connector_reference_id": null,
"merchant_connector_id": "mca_0GI0dABwex0qdnwlUelt",
"browser_info": null,
"error": null,
"shipping": null,
"billing": null,
"attempts": null,
"connector_token_details": {
"token": "pm_1Rc2edD5R7gDAGffEOosatGV",
"connector_token_request_reference_id": "eDuVwDClp0zQPbbkLZ"
},
"payment_method_id": null,
"next_action": null,
"return_url": "https://google.com/success",
"authentication_type": "three_ds",
"authentication_type_applied": null,
"is_iframe_redirection_enabled": null,
"merchant_reference_id": null
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (1 changes)
**Detailed Identifier Changes:**
Commit 7338a8db:
Files to modify:
**crates/router/src/core/payments.rs**
Modify existing code
|
{"pr_number": 8405, "pr_title": "fix: Payments redirects for v2", "merged_at": "2025-06-23T08:03:51Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments.rs"]}, "change_types": {"fields_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
refactor(db_interfaces): move db interfaces in router to domain_models
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [X] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Moving db interfaces in router crate to hyperswitch_domain_models and its implementation is added in storage_impl
**Refactored Interfaces**
1. MerchantAccount
2. MerchantConnectorAccount
3. MerchantKeyStore
4. BusinessProfile
5. Configs
Also, moving the execute_connector_processing step and call_connector_api methods to a common place so that any module outside the router can use them.
ApiClient interfaces related to the above methods are also moved to the common place.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
6. `crates/router/src/configs`
7. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
<details>
<summary>1. Create Merchant Account</summary>
Request
```
curl --location 'http://localhost:8080/accounts' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-feature: router-custom' \
--header 'api-key: test_admin' \
--data-raw '{
"merchant_id": "merchant_1760452145",
"locker_id": "m0010",
"merchant_name": "NewAge Retailer",
"merchant_details": {
"primary_contact_person": "John Test",
"primary_email": "[email protected]",
"primary_phone": "sunt laborum",
"secondary_contact_person": "John Test2",
"secondary_email": "[email protected]",
"secondary_phone": "cillum do dolor id",
"website": "www.example.com",
"about_business": "Online Retail with a wide selection of organic products for North America",
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US"
}
},
"return_url": "https://google.com/success",
"webhook_details": {
"webhook_version": "1.0.1",
"webhook_username": "ekart_retail",
"webhook_password": "password_ekart@123",
"payment_created_enabled": true,
"payment_succeeded_enabled": true,
"payment_failed_enabled": true
},
"sub_merchants_enabled": false,
"metadata": {
"city": "NY",
"unit": "245"
},
"primary_business_details": [
{
"country": "US",
"business": "default"
}
]
}'
```
Response
```
{
"merchant_id": "merchant_1760452142",
"merchant_name": "NewAge Retailer",
"return_url": "https://google.com/success",
"enable_payment_response_hash": true,
"payment_response_hash_key": "C4BEr00aRi8ZG5THEm5hIIf6wAiyAHRwLPbBdYiQBClNKSbtgKuCf2O5KIqxAeKy",
"redirect_to_merchant_with_http_post": false,
"merchant_details": {
"primary_contact_person": "John Test",
"primary_phone": "sunt laborum",
"primary_email": "[email protected]",
"secondary_contact_person": "John Test2",
"secondary_phone": "cillum do dolor id",
"secondary_email": "[email protected]",
"website": "www.example.com",
"about_business": "Online Retail with a wide selection of organic products for North America",
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": null,
"last_name": null,
"origin_zip": null
},
"merchant_tax_registration_id": null
},
"webhook_details": {
"webhook_version": "1.0.1",
"webhook_username": "ekart_retail",
"webhook_password": "password_ekart@123",
"webhook_url": null,
"payment_created_enabled": true,
"payment_succeeded_enabled": true,
"payment_failed_enabled": true,
"payment_statuses_enabled": null,
"refund_statuses_enabled": null,
"payout_statuses_enabled": null
},
"payout_routing_algorithm": null,
"sub_merchants_enabled": false,
"parent_merchant_id": null,
"publishable_key": "pk_dev_27ea422063504df398d10a1ad2b8edb1",
"metadata": {
"city": "NY",
"unit": "245",
"compatible_connector": null
},
"locker_id": "m0010",
"primary_business_details": [
{
"country": "US",
"business": "default"
}
],
"frm_routing_algorithm": null,
"organization_id": "org_VPWZ7pkb7Q9QdAAlGRFG",
"is_recon_enabled": false,
"default_profile": "pro_aqpcBpkEsWmbW7urhj3u",
"recon_status": "not_requested",
"pm_collect_link_config": null,
"product_type": "orchestration",
"merchant_account_type": "standard"
}
```
</details>
<details>
<summary>2. Get Merchant Account</summary>
Request
```
curl --location 'http://localhost:8080/accounts/merchant_1760452142' \
--header 'Accept: application/json' \
--header 'api-key: test_admin'
```
Response
```
{
"merchant_id": "merchant_1760452142",
"merchant_name": "NewAge Retailer",
"return_url": "https://google.com/success",
"enable_payment_response_hash": true,
"payment_response_hash_key": "C4BEr00aRi8ZG5THEm5hIIf6wAiyAHRwLPbBdYiQBClNKSbtgKuCf2O5KIqxAeKy",
"redirect_to_merchant_with_http_post": false,
"merchant_details": {
"primary_contact_person": "John Test",
"primary_phone": "sunt laborum",
"primary_email": "[email protected]",
"secondary_contact_person": "John Test2",
"secondary_phone": "cillum do dolor id",
"secondary_email": "[email protected]",
"website": "www.example.com",
"about_business": "Online Retail with a wide selection of organic products for North America",
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": null,
"last_name": null,
"origin_zip": null
},
"merchant_tax_registration_id": null
},
"webhook_details": {
"webhook_version": "1.0.1",
"webhook_username": "ekart_retail",
"webhook_password": "password_ekart@123",
"webhook_url": null,
"payment_created_enabled": true,
"payment_succeeded_enabled": true,
"payment_failed_enabled": true,
"payment_statuses_enabled": null,
"refund_statuses_enabled": null,
"payout_statuses_enabled": null
},
"payout_routing_algorithm": null,
"sub_merchants_enabled": false,
"parent_merchant_id": null,
"publishable_key": "pk_dev_27ea422063504df398d10a1ad2b8edb1",
"metadata": {
"city": "NY",
"unit": "245",
"compatible_connector": null
},
"locker_id": "m0010",
"primary_business_details": [
{
"country": "US",
"business": "default"
}
],
"frm_routing_algorithm": null,
"organization_id": "org_VPWZ7pkb7Q9QdAAlGRFG",
"is_recon_enabled": false,
"default_profile": "pro_aqpcBpkEsWmbW7urhj3u",
"recon_status": "not_requested",
"pm_collect_link_config": null,
"product_type": "orchestration",
"merchant_account_type": "standard"
}
```
</details>
<details>
<summary>3. Create API Key</summary>
Request
```
curl --location 'http://localhost:8080/api_keys/merchant_1760452142' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: test_admin' \
--data '{
"name": "API Key 1",
"description": null,
"expiration": "2038-01-19T03:14:08.000Z"
}'
```
Response
```
{
"key_id": "dev_SdqNZ9oFQ8GkmlbEc53u",
"merchant_id": "merchant_1760452142",
"name": "API Key 1",
"description": null,
"api_key": "dev_l07YdEWSpJNNn1xrMQNNUTYTpywyXsDaSjhOHdLT9W9Gnp77txyULaqGs7CcKHUm",
"created": "2025-10-14T14:29:51.575Z",
"expiration": "2038-01-19T03:14:08.000Z"
}
```
</details>
<details>
<summary>4. Create Payment Processor</summary>
Request
```
curl --location 'http://localhost:8080/account/merchant_1760452142/connectors' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-feature: router-custom-dbd' \
--header 'x-tenant-id: zurich' \
--header 'api-key: dev_l07YdEWSpJNNn1xrMQNNUTYTpywyXsDaSjhOHdLT9W9Gnp77txyULaqGs7CcKHUm' \
--data '{
"connector_type": "payment_processor",
"connector_name": "stripe",
"business_country": "US",
"business_label": "default",
"connector_label": "first_stripe",
"connector_account_details": {
"auth_type": "HeaderKey",
"api_key": "api_key"
},
"test_mode": false,
"disabled": false,
"payment_methods_enabled": [
{
"payment_method": "card",
"payment_method_types": [
{
"payment_method_type": "credit",
"card_networks": [
"Visa",
"Mastercard"
],
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "debit",
"card_networks": [
"Visa",
"Mastercard"
],
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
},
{
"payment_method": "pay_later",
"payment_method_types": [
{
"payment_method_type": "klarna",
"payment_experience": "redirect_to_url",
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "affirm",
"payment_experience": "redirect_to_url",
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "afterpay_clearpay",
"payment_experience": "redirect_to_url",
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
}
],
"metadata": {
"city": "NY",
"unit": "245"
}
}'
```
Response
```
{
"connector_type": "payment_processor",
"connector_name": "stripe",
"connector_label": "first_stripe",
"merchant_connector_id": "mca_Av1WjnKXRmzmBivmVUpo",
"profile_id": "pro_aqpcBpkEsWmbW7urhj3u",
"connector_account_details": {
"auth_type": "HeaderKey",
"api_key": "sk*******************************************************************************************************hm"
},
"payment_methods_enabled": [
{
"payment_method": "card",
"payment_method_types": [
{
"payment_method_type": "credit",
"payment_experience": null,
"card_networks": [
"Visa",
"Mastercard"
],
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "debit",
"payment_experience": null,
"card_networks": [
"Visa",
"Mastercard"
],
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
},
{
"payment_method": "pay_later",
"payment_method_types": [
{
"payment_method_type": "klarna",
"payment_experience": "redirect_to_url",
"card_networks": null,
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "affirm",
"payment_experience": "redirect_to_url",
"card_networks": null,
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "afterpay_clearpay",
"payment_experience": "redirect_to_url",
"card_networks": null,
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
}
],
"connector_webhook_details": null,
"metadata": {
"city": "NY",
"unit": "245"
},
"test_mode": false,
"disabled": false,
"frm_configs": null,
"business_country": "US",
"business_label": "default",
"business_sub_label": null,
"applepay_verified_domains": null,
"pm_auth_config": null,
"status": "active",
"additional_merchant_data": null,
"connector_wallets_details": null
}
```
</details>
<details>
<summary>5. Create Business Processor</summary>
Request
```
curl --location 'http://localhost:8080/account/merchant_1760452142/connectors' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_l07YdEWSpJNNn1xrMQNNUTYTpywyXsDaSjhOHdLT9W9Gnp77txyULaqGs7CcKHUm' \
--header 'X-profile-id: pro_aqpcBpkEsWmbW7urhj3u' \
--data '{
"connector_type": "billing_processor",
"connector_name": "chargebee",
"connector_account_details": {
"auth_type": "HeaderKey",
"api_key": "api_eky",
"site": ""
},
"profile_id": "pro_aqpcBpkEsWmbW7urhj3u",
"connector_webhook_details": {
"merchant_secret": "hyperswitch",
"additional_secret": "hyperswitch"
},
"metadata": {
"site": "juspay-hyperswitch-subs-test"
}
}'
```
Response
```
{
"connector_type": "billing_processor",
"connector_name": "chargebee",
"connector_label": "chargebee_US_default",
"merchant_connector_id": "mca_TsRlKr73leWEWUeDGy4G",
"profile_id": "pro_aqpcBpkEsWmbW7urhj3u",
"connector_account_details": {
"auth_type": "HeaderKey",
"api_key": "te**********************************ws"
},
"payment_methods_enabled": null,
"connector_webhook_details": {
"merchant_secret": "hyperswitch",
"additional_secret": "hyperswitch"
},
"metadata": {
"site": "juspay-hyperswitch-subs-test"
},
"test_mode": null,
"disabled": false,
"frm_configs": null,
"business_country": null,
"business_label": null,
"business_sub_label": null,
"applepay_verified_domains": null,
"pm_auth_config": null,
"status": "active",
"additional_merchant_data": null,
"connector_wallets_details": null
}
```
</details>
<details>
<summary>6. Create and Confirm payment</summary>
Request
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-merchant-id: merchant_1760452142' \
--header 'x-profile-id: pro_aqpcBpkEsWmbW7urhj3u' \
--header 'x-internal-api-key: test_internal_api_key' \
--header 'api-key: dev_l07YdEWSpJNNn1xrMQNNUTYTpywyXsDaSjhOHdLT9W9Gnp77txyULaqGs7CcKHUm' \
--data-raw '{
"amount": 6540,
"currency": "USD",
"confirm": true,
"capture_method": "automatic",
"capture_on": "2022-09-10T10:11:12Z",
"amount_to_capture": 6540,
"customer_id": "StripeCustomer",
"email": "[email protected]",
"name": "John Doe",
"phone": "999999999",
"profile_id": "pro_aqpcBpkEsWmbW7urhj3u",
"phone_country_code": "+1",
"description": "Its my first payment request",
"authentication_type": "no_three_ds",
"return_url": "https://google.com",
"payment_method": "card",
"payment_method_type": "credit",
"setup_future_usage": "off_session",
"payment_method_data": {
"card": {
"card_number": "4111111111111111",
"card_exp_month": "03",
"card_exp_year": "2030",
"card_holder_name": "CLBRW dffdg",
"card_cvc": "737"
}
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
},
"shipping": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
},
"customer_acceptance": {
"acceptance_type": "offline",
"accepted_at": "1963-05-03T04:07:52.723Z",
"online": {
"ip_address": "125.0.0.1",
"user_agent": "amet irure esse"
}
},
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
}
}'
```
Response
```
{
"payment_id": "pay_TjhGRipyNSZqhltKYLkz",
"merchant_id": "merchant_1760452142",
"status": "succeeded",
"amount": 6540,
"net_amount": 6540,
"shipping_cost": null,
"amount_capturable": 6540,
"amount_received": 6540,
"connector": "stripe",
"client_secret": "pay_TjhGRipyNSZqhltKYLkz_secret_ceoKmmGZqs8Q16Gc8phV",
"created": "2025-10-14T14:31:55.404Z",
"currency": "USD",
"customer_id": "StripeCustomer",
"customer": {
"id": "StripeCustomer",
"name": "John Doe",
"email": "[email protected]",
"phone": "999999999",
"phone_country_code": "+1"
},
"description": "Its my first payment request",
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": "off_session",
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": "card",
"payment_method_data": {
"card": {
"last4": "1111",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "411111",
"card_extended_bin": null,
"card_exp_month": "03",
"card_exp_year": "2030",
"card_holder_name": "CLBRW dffdg",
"payment_checks": {
"cvc_check": "pass",
"address_line1_check": "pass",
"address_postal_code_check": "pass"
},
"authentication_data": null
},
"billing": null
},
"payment_token": null,
"shipping": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "joseph",
"last_name": "Doe",
"origin_zip": null
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": null
},
"billing": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "joseph",
"last_name": "Doe",
"origin_zip": null
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": null
},
"order_details": null,
"email": "[email protected]",
"name": "John Doe",
"phone": "999999999",
"return_url": "https://google.com/",
"authentication_type": "no_three_ds",
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "StripeCustomer",
"created_at": 1760452315,
"expires": 1760455915,
"secret": "epk_712bc4570e124ef38153a8d47c20b02c"
},
"manual_retry_allowed": null,
"connector_transaction_id": "pi_3SI9GaD5R7gDAGff1Zdc3UmP",
"frm_message": null,
"metadata": {
"udf1": "value1",
"login_date": "2019-09-10T10:11:12Z",
"new_customer": "true"
},
"connector_metadata": null,
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": null,
"gateway_system": "direct"
},
"reference_id": "pi_3SI9GaD5R7gDAGff1Zdc3UmP",
"payment_link": null,
"profile_id": "pro_aqpcBpkEsWmbW7urhj3u",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_Av1WjnKXRmzmBivmVUpo",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-10-14T14:46:55.404Z",
"fingerprint": null,
"browser_info": null,
"payment_channel": null,
"payment_method_id": "pm_VJGCTA64M7N2khHAPv5i",
"network_transaction_id": "976910110049114",
"payment_method_status": "active",
"updated": "2025-10-14T14:31:57.861Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": false,
"request_extended_authorization": null,
"capture_before": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": "pm_1SI9GaD5R7gDAGffLWYS2yu2",
"card_discovery": "manual",
"force_3ds_challenge": false,
"force_3ds_challenge_trigger": false,
"issuer_error_code": null,
"issuer_error_message": null,
"is_iframe_redirection_enabled": null,
"whole_connector_response": null,
"enable_partial_authorization": null,
"enable_overcapture": null,
"is_overcapture_enabled": false,
"network_details": null,
"is_stored_credential": null,
"mit_category": null
}
```
</details>
<details>
<summary>7. Retrieve Payment</summary>
Request
```
curl --location 'http://localhost:8080/payments/pay_TjhGRipyNSZqhltKYLkz' \
--header 'Accept: application/json' \
--header 'x-feature: router-custom-dbd' \
--header 'x-merchant-id: merchant_1760452142' \
--header 'x-profile-id: pro_aqpcBpkEsWmbW7urhj3u' \
--header 'x-internal-api-key: test_internal_api_key'
```
Response
```
{
"payment_id": "pay_TjhGRipyNSZqhltKYLkz",
"merchant_id": "merchant_1760452142",
"status": "succeeded",
"amount": 6540,
"net_amount": 6540,
"shipping_cost": null,
"amount_capturable": 6540,
"amount_received": 6540,
"connector": "stripe",
"client_secret": "pay_TjhGRipyNSZqhltKYLkz_secret_ceoKmmGZqs8Q16Gc8phV",
"created": "2025-10-14T14:31:55.404Z",
"currency": "USD",
"customer_id": "StripeCustomer",
"customer": {
"id": "StripeCustomer",
"name": "John Doe",
"email": "[email protected]",
"phone": "999999999",
"phone_country_code": "+1"
},
"description": "Its my first payment request",
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": "off_session",
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": "card",
"payment_method_data": {
"card": {
"last4": "1111",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "411111",
"card_extended_bin": null,
"card_exp_month": "03",
"card_exp_year": "2030",
"card_holder_name": "CLBRW dffdg",
"payment_checks": {
"cvc_check": "pass",
"address_line1_check": "pass",
"address_postal_code_check": "pass"
},
"authentication_data": null
},
"billing": null
},
"payment_token": null,
"shipping": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "joseph",
"last_name": "Doe",
"origin_zip": null
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": null
},
"billing": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "joseph",
"last_name": "Doe",
"origin_zip": null
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": null
},
"order_details": null,
"email": "[email protected]",
"name": "John Doe",
"phone": "999999999",
"return_url": "https://google.com/",
"authentication_type": "no_three_ds",
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": null,
"manual_retry_allowed": null,
"connector_transaction_id": "pi_3SI9GaD5R7gDAGff1Zdc3UmP",
"frm_message": null,
"metadata": {
"udf1": "value1",
"login_date": "2019-09-10T10:11:12Z",
"new_customer": "true"
},
"connector_metadata": null,
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": null,
"gateway_system": "direct"
},
"reference_id": "pi_3SI9GaD5R7gDAGff1Zdc3UmP",
"payment_link": null,
"profile_id": "pro_aqpcBpkEsWmbW7urhj3u",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_Av1WjnKXRmzmBivmVUpo",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-10-14T14:46:55.404Z",
"fingerprint": null,
"browser_info": null,
"payment_channel": null,
"payment_method_id": "pm_VJGCTA64M7N2khHAPv5i",
"network_transaction_id": "976910110049114",
"payment_method_status": "active",
"updated": "2025-10-14T14:31:57.861Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": false,
"request_extended_authorization": null,
"capture_before": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null,
"card_discovery": "manual",
"force_3ds_challenge": false,
"force_3ds_challenge_trigger": false,
"issuer_error_code": null,
"issuer_error_message": null,
"is_iframe_redirection_enabled": null,
"whole_connector_response": null,
"enable_partial_authorization": null,
"enable_overcapture": null,
"is_overcapture_enabled": false,
"network_details": null,
"is_stored_credential": null,
"mit_category": null
}
```
</details>
<details>
<summary>8. Create Merchant Config</summary>
Request
```
curl --location 'http://localhost:8080/accounts/merchant_1760452142/kv' \
--header 'Content-Type: application/json' \
--header 'api-key: test_admin' \
--data '{
"kv_enabled": true
}'
```
Response
```
{
"merchant_id": "merchant_1760452142",
"kv_enabled": true
}
```
</details>
<details>
<summary>9. Create and confirm Payment</summary>
Request
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-merchant-id: merchant_1760452142' \
--header 'x-profile-id: pro_aqpcBpkEsWmbW7urhj3u' \
--header 'x-internal-api-key: test_internal_api_key' \
--header 'api-key: dev_l07YdEWSpJNNn1xrMQNNUTYTpywyXsDaSjhOHdLT9W9Gnp77txyULaqGs7CcKHUm' \
--data-raw '{
"amount": 6540,
"currency": "USD",
"confirm": true,
"capture_method": "automatic",
"capture_on": "2022-09-10T10:11:12Z",
"amount_to_capture": 6540,
"customer_id": "StripeCustomer",
"email": "[email protected]",
"name": "John Doe",
"phone": "999999999",
"profile_id": "pro_aqpcBpkEsWmbW7urhj3u",
"phone_country_code": "+1",
"description": "Its my first payment request",
"authentication_type": "no_three_ds",
"return_url": "https://google.com",
"payment_method": "card",
"payment_method_type": "credit",
"setup_future_usage": "off_session",
"payment_method_data": {
"card": {
"card_number": "4111111111111111",
"card_exp_month": "03",
"card_exp_year": "2030",
"card_holder_name": "CLBRW dffdg",
"card_cvc": "737"
}
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
},
"shipping": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
},
"customer_acceptance": {
"acceptance_type": "offline",
"accepted_at": "1963-05-03T04:07:52.723Z",
"online": {
"ip_address": "125.0.0.1",
"user_agent": "amet irure esse"
}
},
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
}
}'
```
Response
```
{
"payment_id": "pay_qzQpzYj7HWFFlwjbh0i0",
"merchant_id": "merchant_1760452142",
"status": "succeeded",
"amount": 6540,
"net_amount": 6540,
"shipping_cost": null,
"amount_capturable": 6540,
"amount_received": 6540,
"connector": "stripe",
"client_secret": "pay_qzQpzYj7HWFFlwjbh0i0_secret_wvTZmGEuNsbSNq1o6Zg7",
"created": "2025-10-14T14:34:21.144Z",
"currency": "USD",
"customer_id": "StripeCustomer",
"customer": {
"id": "StripeCustomer",
"name": "John Doe",
"email": "[email protected]",
"phone": "999999999",
"phone_country_code": "+1"
},
"description": "Its my first payment request",
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": "off_session",
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": "card",
"payment_method_data": {
"card": {
"last4": "1111",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "411111",
"card_extended_bin": null,
"card_exp_month": "03",
"card_exp_year": "2030",
"card_holder_name": "CLBRW dffdg",
"payment_checks": {
"address_line1_check": "pass",
"address_postal_code_check": "pass",
"cvc_check": "pass"
},
"authentication_data": null
},
"billing": null
},
"payment_token": null,
"shipping": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "joseph",
"last_name": "Doe",
"origin_zip": null
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": null
},
"billing": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "joseph",
"last_name": "Doe",
"origin_zip": null
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": null
},
"order_details": null,
"email": "[email protected]",
"name": "John Doe",
"phone": "999999999",
"return_url": "https://google.com/",
"authentication_type": "no_three_ds",
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": null,
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "StripeCustomer",
"created_at": 1760452461,
"expires": 1760456061,
"secret": "epk_df38281d7f9549399dcebf922f5458ca"
},
"manual_retry_allowed": null,
"connector_transaction_id": "pi_3SI9IvD5R7gDAGff1xF9xRzJ",
"frm_message": null,
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
},
"connector_metadata": null,
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": null,
"gateway_system": "direct"
},
"reference_id": "pi_3SI9IvD5R7gDAGff1xF9xRzJ",
"payment_link": null,
"profile_id": "pro_aqpcBpkEsWmbW7urhj3u",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_Av1WjnKXRmzmBivmVUpo",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": null,
"expires_on": "2025-10-14T14:49:21.144Z",
"fingerprint": null,
"browser_info": null,
"payment_channel": null,
"payment_method_id": "pm_yo3lDbKlxUY3jQHntMhb",
"network_transaction_id": "976910110049114",
"payment_method_status": "active",
"updated": "2025-10-14T14:34:23.035Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": false,
"request_extended_authorization": null,
"capture_before": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": "pm_1SI9IvD5R7gDAGffoo7Ok5lP",
"card_discovery": "manual",
"force_3ds_challenge": null,
"force_3ds_challenge_trigger": false,
"issuer_error_code": null,
"issuer_error_message": null,
"is_iframe_redirection_enabled": null,
"whole_connector_response": null,
"enable_partial_authorization": null,
"enable_overcapture": null,
"is_overcapture_enabled": false,
"network_details": null,
"is_stored_credential": null,
"mit_category": null
}
```
</details>
<details>
<summary>
10. Update Merchant Config
</summary>
Request
```
curl --location 'http://localhost:8080/accounts/merchant_1760452142/kv' \
--header 'Content-Type: application/json' \
--header 'api-key: test_admin' \
--data '{
"kv_enabled": false
}'
```
Response
```
{
"merchant_id": "merchant_1760452142",
"kv_enabled": false
}
```
</details>
<details>
<summary>
11. Update Billing processor in profile
</summary>
Request
```
curl --location 'http://localhost:8080/account/merchant_1760452142/business_profile/pro_aqpcBpkEsWmbW7urhj3u' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_dxr1V9U6A5ptgX6HTUl8UfGJKAqd4BXzDRLQrSZLrtn72eer3NvzxKQoGgqpHIZp' \
--data '{
"billing_processor_id": "mca_TsRlKr73leWEWUeDGy4G"
}'
```
Response
```
{
"merchant_id": "merchant_1760452142",
"profile_id": "pro_aqpcBpkEsWmbW7urhj3u",
"profile_name": "US_default",
"return_url": "https://google.com/success",
"enable_payment_response_hash": true,
"payment_response_hash_key": "C4BEr00aRi8ZG5THEm5hIIf6wAiyAHRwLPbBdYiQBClNKSbtgKuCf2O5KIqxAeKy",
"redirect_to_merchant_with_http_post": false,
"webhook_details": {
"webhook_version": "1.0.1",
"webhook_username": "ekart_retail",
"webhook_password": "password_ekart@123",
"webhook_url": null,
"payment_created_enabled": true,
"payment_succeeded_enabled": true,
"payment_failed_enabled": true,
"payment_statuses_enabled": null,
"refund_statuses_enabled": null,
"payout_statuses_enabled": null
},
"metadata": null,
"routing_algorithm": null,
"intent_fulfillment_time": 900,
"frm_routing_algorithm": null,
"payout_routing_algorithm": null,
"applepay_verified_domains": null,
"session_expiry": 900,
"payment_link_config": null,
"authentication_connector_details": null,
"use_billing_as_payment_method_billing": true,
"extended_card_info_config": null,
"collect_shipping_details_from_wallet_connector": false,
"collect_billing_details_from_wallet_connector": false,
"always_collect_shipping_details_from_wallet_connector": false,
"always_collect_billing_details_from_wallet_connector": false,
"is_connector_agnostic_mit_enabled": false,
"payout_link_config": null,
"outgoing_webhook_custom_http_headers": null,
"tax_connector_id": null,
"is_tax_connector_enabled": false,
"is_network_tokenization_enabled": false,
"is_auto_retries_enabled": false,
"max_auto_retries_enabled": null,
"always_request_extended_authorization": null,
"is_click_to_pay_enabled": false,
"authentication_product_ids": null,
"card_testing_guard_config": {
"card_ip_blocking_status": "disabled",
"card_ip_blocking_threshold": 3,
"guest_user_card_blocking_status": "disabled",
"guest_user_card_blocking_threshold": 10,
"customer_id_blocking_status": "disabled",
"customer_id_blocking_threshold": 5,
"card_testing_guard_expiry": 3600
},
"is_clear_pan_retries_enabled": false,
"force_3ds_challenge": false,
"is_debit_routing_enabled": false,
"merchant_business_country": null,
"is_pre_network_tokenization_enabled": false,
"acquirer_configs": null,
"is_iframe_redirection_enabled": null,
"merchant_category_code": null,
"merchant_country_code": null,
"dispute_polling_interval": null,
"is_manual_retry_enabled": null,
"always_enable_overcapture": null,
"is_external_vault_enabled": "skip",
"external_vault_connector_details": null,
"billing_processor_id": "mca_TsRlKr73leWEWUeDGy4G"
}
```
</details>
<details>
<summary>12. Create Customer</summary>
Request
```
curl --location 'http://localhost:8080/customers' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_l07YdEWSpJNNn1xrMQNNUTYTpywyXsDaSjhOHdLT9W9Gnp77txyULaqGs7CcKHUm' \
--header 'X-tenant-id: public' \
--data-raw '{
"email": "[email protected]",
"name": "John Doe",
"phone": "999999999",
"phone_country_code": "+65",
"description": "First customer",
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "IN",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "123456789",
"country_code": "+1"
}
}
}'
```
Response
```
{
"customer_id": "cus_KIMCXOyR0lYSE4QbueqV",
"name": "John Doe",
"email": "[email protected]",
"phone": "999999999",
"phone_country_code": "+65",
"description": "First customer",
"address": null,
"created_at": "2025-10-14T14:37:16.085Z",
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
},
"default_payment_method_id": null,
"tax_registration_id": null
}
```
</details>
<details>
<summary>13. Create and Confirm Subscription</summary>
Request
```
curl --location 'http://localhost:8080/subscriptions' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'X-Profile-Id: pro_aqpcBpkEsWmbW7urhj3u' \
--header 'api-key: dev_l07YdEWSpJNNn1xrMQNNUTYTpywyXsDaSjhOHdLT9W9Gnp77txyULaqGs7CcKHUm' \
--header 'X-tenant-id: public' \
--data '{
"item_price_id": "standard-plan-USD-Monthly",
"customer_id": "cus_KIMCXOyR0lYSE4QbueqV",
"description": "Hello this is description",
"merchant_reference_id": "mer_ref_1760452680",
"shipping": {
"address": {
"state": "zsaasdas",
"city": "Banglore",
"country": "US",
"line1": "sdsdfsdf",
"line2": "hsgdbhd",
"line3": "alsksoe",
"zip": "571201",
"first_name": "joseph",
"last_name": "doe"
},
"phone": {
"number": "123456789",
"country_code": "+1"
}
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "123456789",
"country_code": "+1"
}
},
"payment_details": {
"payment_type": "setup_mandate",
"payment_method": "card",
"payment_method_type": "credit",
"payment_method_data": {
"card": {
"card_number": "4111111111111111",
"card_exp_month": "03",
"card_exp_year": "2030",
"card_holder_name": "CLBRW dffdg",
"card_cvc": "737"
}
},
"authentication_type": "no_three_ds",
"setup_future_usage": "off_session",
"capture_method": "automatic",
"return_url": "https://google.com",
"customer_acceptance": {
"acceptance_type": "online",
"accepted_at": "1963-05-03T04:07:52.723Z",
"online": {
"ip_address": "127.0.0.1",
"user_agent": "amet irure esse"
}
}
}
}'
```
Response
```
{
"id": "sub_S4o0bDVXDjqlPXrhpG2d",
"merchant_reference_id": "mer_ref_1760452676",
"status": "active",
"plan_id": null,
"price_id": "standard-plan-USD-Monthly",
"coupon": null,
"profile_id": "pro_aqpcBpkEsWmbW7urhj3u",
"payment": {
"payment_id": "pay_Xt8nBRIX8Lgw81P6MW1k",
"status": "succeeded",
"amount": 1200,
"currency": "USD",
"profile_id": "pro_aqpcBpkEsWmbW7urhj3u",
"connector": "stripe",
"payment_method_id": "pm_1RjFs9LdxgxoqxEjPMac",
"return_url": "https://google.com/",
"next_action": null,
"payment_experience": null,
"error_code": null,
"error_message": null,
"payment_method_type": "credit",
"client_secret": "pay_Xt8nBRIX8Lgw81P6MW1k_secret_4dVUGf3h21GMmMjcJBWT",
"billing": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "joseph",
"last_name": "Doe",
"origin_zip": null
},
"phone": {
"number": "123456789",
"country_code": "+1"
},
"email": null
},
"shipping": {
"address": {
"city": "Banglore",
"country": "US",
"line1": "sdsdfsdf",
"line2": "hsgdbhd",
"line3": "alsksoe",
"zip": "571201",
"state": "zsaasdas",
"first_name": "joseph",
"last_name": "doe",
"origin_zip": null
},
"phone": {
"number": "123456789",
"country_code": "+1"
},
"email": null
},
"payment_type": null
},
"customer_id": "cus_KIMCXOyR0lYSE4QbueqV",
"invoice": {
"id": "invoice_9PecYzhRhsUDlhP5lfru",
"subscription_id": "sub_S4o0bDVXDjqlPXrhpG2d",
"merchant_id": "merchant_1760452142",
"profile_id": "pro_aqpcBpkEsWmbW7urhj3u",
"merchant_connector_id": "mca_TsRlKr73leWEWUeDGy4G",
"payment_intent_id": "pay_Xt8nBRIX8Lgw81P6MW1k",
"payment_method_id": null,
"customer_id": "cus_KIMCXOyR0lYSE4QbueqV",
"amount": 1200,
"currency": "USD",
"status": "payment_pending"
},
"billing_processor_subscription_id": "sub_S4o0bDVXDjqlPXrhpG2d"
}
```
</details>
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/business_profile.rs`
- `crates/hyperswitch_domain_models/src/configs.rs`
- `crates/hyperswitch_domain_models/src/customer.rs`
- ... and 4 more files
**2. Core Business Logic**
- `crates/router/src/core/payments/customers.rs`
- `crates/router/src/core/payments/flows/psync_flow.rs`
- `crates/router/src/core/payments/helpers.rs`
- ... and 2 more files
**3. External Connector Integration**
- `crates/external_services/src/grpc_client/unified_connector_service.rs`
- `crates/hyperswitch_interfaces/src/unified_connector_service.rs`
- `crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rs`
- ... and 2 more files
**4. Type Definitions**
- `crates/common_utils/src/types.rs`
**5. Utils**
- `crates/hyperswitch_interfaces/src/helpers.rs`
- `crates/storage_impl/src/utils.rs`
**6. Configuration Files**
- `crates/hyperswitch_interfaces/Cargo.toml`
- `crates/hyperswitch_interfaces/src/configs.rs`
- `crates/router/Cargo.toml`
- ... and 6 more files
**7. Other**
- `Cargo.lock`
- `crates/analytics/src/lib.rs`
- `crates/hyperswitch_interfaces/src/api_client.rs`
- ... and 23 more files
**Code Patterns Applied:**
- Define new data structures (6 changes)
- Implement new functions (254 changes)
- Extend existing types with new fields (693 changes)
- Add conditional logic for feature flags or filtering (9 changes)
- Modify database queries (18 changes)
**Detailed Identifier Changes:**
Commit 59628332:
Files to modify:
**crates/analytics/src/lib.rs**
Modify existing code
**crates/common_utils/src/types.rs**
Add:
- trait: pub::TenantConfig
**crates/external_services/src/grpc_client/unified_connector_service.rs**
Remove:
- enum: pub::UnifiedConnectorServiceError
**crates/hyperswitch_domain_models/src/business_profile.rs**
Add:
- trait: pub::ProfileInterface
**crates/hyperswitch_domain_models/src/configs.rs**
Add:
- trait: pub::ConfigInterface
**crates/hyperswitch_domain_models/src/customer.rs**
Add:
- function: pub::update_connector_customer_in_customers
- function: pub::update_connector_customer_in_customers
**crates/hyperswitch_domain_models/src/lib.rs**
Add:
- mod: pub::configs
**crates/hyperswitch_domain_models/src/merchant_account.rs**
Add:
- trait: pub::MerchantAccountInterface
**crates/hyperswitch_domain_models/src/merchant_connector_account.rs**
Add:
- trait: pub::MerchantConnectorAccountInterface
**crates/hyperswitch_domain_models/src/merchant_key_store.rs**
Add:
- trait: pub::MerchantKeyStoreInterface
**crates/hyperswitch_interfaces/src/api_client.rs**
Add:
- function: pub::execute_connector_processing_step
- function: pub::handle_ucs_response
- function: pub::call_connector_api
- function: pub::handle_response
- function: pub::store_raw_connector_response_if_required
- function: pub::get_flow_name
- trait: pub::ConnectorConverter
- trait: pub::RequestBuilder
- trait: pub::ApiClient
- trait: pub::ApiClientWrapper
**crates/hyperswitch_interfaces/src/configs.rs**
Add:
- function: private::get_tenant_id
- function: private::get_accounts_schema
- function: private::get_schema
- function: private::get_redis_key_prefix
- function: private::get_clickhouse_database
- function: private::get_tenant_id
- function: private::get_accounts_schema
- function: private::get_schema
- function: private::get_redis_key_prefix
- function: private::get_clickhouse_database
- function: private::default
- function: pub::get_metadata
- function: pub::get_connector_account_details
- function: pub::get_connector_wallets_details
- function: pub::is_disabled
- function: pub::is_test_mode_on
- function: pub::is_test_mode_on
- function: pub::get_mca_id
- function: pub::get_connector_name
- function: pub::get_connector_name
- function: pub::get_additional_merchant_data
- function: pub::get_webhook_details
- struct: pub::Tenant
- struct: pub::TenantUserConfig
- struct: pub::GlobalTenant
- struct: pub::InternalMerchantIdProfileIdAuthSettings
- struct: pub::InternalServicesConfig
- enum: pub::MerchantConnectorAccountType
- impl: impl common_utils::types::TenantConfig for Tenant
- impl: impl common_utils::types::TenantConfig for GlobalTenant
- impl: impl Default for GlobalTenant
- impl: impl MerchantConnectorAccountType
**crates/hyperswitch_interfaces/src/consts.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/events.rs**
Add:
- trait: pub::EventHandlerInterface
**crates/hyperswitch_interfaces/src/helpers.rs**
Add:
- trait: pub::ForeignTryFrom
**crates/hyperswitch_interfaces/src/lib.rs**
Add:
- mod: pub::api_client
- mod: pub::helpers
- mod: pub::unified_connector_service
**crates/hyperswitch_interfaces/src/metrics.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/unified_connector_service.rs**
Add:
- function: pub::handle_unified_connector_service_response_for_payment_get
- mod: pub::transformers
**crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rs**
Add:
- function: private::foreign_try_from
- function: private::foreign_try_from
- function: pub::convert_connector_service_status_code
- struct: pub::WebhookTransformData
- enum: pub::UnifiedConnectorServiceError
- impl: impl ForeignTryFrom<payments_grpc::PaymentServiceGetResponse> for Result<(PaymentsResponseData, AttemptStatus), ErrorResponse>
- impl: impl ForeignTryFrom<payments_grpc::PaymentStatus> for AttemptStatus
**crates/router/src/configs/defaults.rs**
Remove:
- function: private::default
- impl: impl Default for super::settings::GlobalTenant
**crates/router/src/configs/settings.rs**
Remove:
- function: private::get_tenant_id
- function: private::get_accounts_schema
- function: private::get_schema
- function: private::get_redis_key_prefix
- function: private::get_clickhouse_database
- function: private::get_tenant_id
- function: private::get_accounts_schema
- function: private::get_schema
- function: private::get_redis_key_prefix
- function: private::get_clickhouse_database
- struct: pub::Tenant
- struct: pub::TenantUserConfig
- struct: pub::GlobalTenant
- struct: pub::InternalMerchantIdProfileIdAuthSettings
- struct: pub::InternalServicesConfig
- impl: impl storage_impl::config::TenantConfig for Tenant
- impl: impl storage_impl::config::TenantConfig for GlobalTenant
**crates/router/src/core/payments/customers.rs**
Remove:
- function: pub::update_connector_customer_in_customers
- function: pub::update_connector_customer_in_customers
**crates/router/src/core/payments/flows/psync_flow.rs**
Modify existing code
**crates/router/src/core/payments/helpers.rs**
Remove:
- function: pub::get_metadata
- function: pub::get_connector_account_details
- function: pub::get_connector_wallets_details
- function: pub::is_disabled
- function: pub::is_test_mode_on
- function: pub::is_test_mode_on
- function: pub::get_mca_id
- function: pub::get_connector_name
- function: pub::get_connector_name
- function: pub::get_additional_merchant_data
- function: pub::get_webhook_details
- enum: pub::MerchantConnectorAccountType
- impl: impl MerchantConnectorAccountType
**crates/router/src/core/unified_connector_service.rs**
Remove:
- function: pub::handle_unified_connector_service_response_for_payment_get
**crates/router/src/core/unified_connector_service/transformers.rs**
Remove:
- function: private::foreign_try_from
- function: private::foreign_try_from
- function: pub::convert_connector_service_status_code
- struct: pub::WebhookTransformData
- impl: impl ForeignTryFrom<&RouterData<PSync, PaymentsSyncData, PaymentsResponseData>>
- impl: impl ForeignTryFrom<&RouterData<Authorize, PaymentsAuthorizeData, PaymentsResponseData>> for payments_grpc::PaymentServiceAuthorizeRequest
ForeignTryFrom<
impl ForeignTryFrom<&RouterData<SetupMandate, SetupMandateRequestData, PaymentsResponseData>>
for payments_grpc::PaymentServiceRegisterRequest
impl ForeignTryFrom<&RouterData<Authorize, PaymentsAuthorizeData, PaymentsResponseData>>
for payments_grpc::PaymentServiceRepeatEverythingRequest
impl ForeignTryFrom<payments_grpc::PaymentServiceAuthorizeResponse>
impl ForeignTryFrom<payments_grpc::PaymentServiceGetResponse>
for Result<(PaymentsResponseData, AttemptStatus), ErrorResponse>
- impl: impl ForeignTryFrom<payments_grpc::PaymentServiceRegisterResponse>
- impl: impl ForeignTryFrom<payments_grpc::PaymentServiceRepeatEverythingResponse>
- impl: impl ForeignTryFrom<hyperswitch_domain_models::payment_address::PaymentAddress>
- impl: impl ForeignTryFrom<hyperswitch_domain_models::router_request_types::BrowserInformation> for payments_grpc::BrowserInformation
- impl: impl ForeignTryFrom<payments_grpc::PaymentStatus> for AttemptStatus
- impl: impl ForeignTryFrom<common_types::payments::CustomerAcceptance>
- impl: impl ForeignTryFrom<&hyperswitch_interfaces::webhooks::IncomingWebhookRequestDetails<'_>> for payments_grpc::RequestDetails
Add:
- impl: impl transformers::ForeignTryFrom<&RouterData<PSync, PaymentsSyncData, PaymentsResponseData>>
- impl: impl transformers::ForeignTryFrom<hyperswitch_domain_models::payment_address::PaymentAddress>
- impl: impl transformers::ForeignTryFrom<
hyperswitch_domain_models::router_request_types::BrowserInformation,
> for payments_grpc::BrowserInformation
- impl: impl transformers::ForeignTryFrom<common_types::payments::CustomerAcceptance>
- impl: impl transformers::ForeignTryFrom<
&hyperswitch_interfaces::webhooks::IncomingWebhookRequestDetails<'_>,
> for payments_grpc::RequestDetails
**crates/router/src/db.rs**
Modify existing code
**crates/router/src/db/business_profile.rs**
Remove:
- function: private::find_business_profile_by_merchant_id_profile_id
- function: private::update_profile_by_profile_id
- function: private::delete_profile_by_profile_id_merchant_id
- function: private::list_profile_by_merchant_id
- function: private::find_business_profile_by_profile_name_merchant_id
**crates/router/src/db/configs.rs**
Remove:
- function: private::delete_config_by_key
- function: private::insert_config
- function: private::update_config_in_database
- function: private::update_config_by_key
- function: private::delete_config_by_key
- function: private::find_config_by_key
- function: private::find_config_by_key_unwrap_or
- function: private::find_config_by_key_from_db
- impl: impl ConfigInterface for MockDb
**crates/router/src/db/events.rs**
Modify existing code
**crates/router/src/db/kafka_store.rs**
Modify existing code
**crates/router/src/db/merchant_account.rs**
Remove:
- function: private::insert_merchant
- function: private::find_merchant_account_by_merchant_id
- function: private::update_merchant
- function: private::update_specific_fields_in_merchant
- function: private::find_merchant_account_by_publishable_key
- function: private::list_merchant_accounts_by_organization_id
- function: private::delete_merchant_account_by_merchant_id
- function: private::list_multiple_merchant_accounts
- function: private::list_merchant_and_org_ids
- function: private::update_all_merchant_account
- function: private::insert_merchant
- function: private::find_merchant_account_by_merchant_id
- function: private::update_merchant
- function: private::update_specific_fields_in_merchant
- function: private::find_merchant_account_by_publishable_key
- function: private::update_all_merchant_account
- function: private::delete_merchant_account_by_merchant_id
- function: private::list_merchant_accounts_by_organization_id
- function: private::list_multiple_merchant_accounts
- function: private::list_merchant_and_org_ids
- function: private::publish_and_redact_merchant_account_cache
- function: private::publish_and_redact_all_merchant_account_cache
- trait: pub::MerchantAccountInterface
- impl: impl MerchantAccountInterface for Store
- impl: impl MerchantAccountInterface for MockDb
**crates/router/src/db/merchant_connector_account.rs**
Remove:
- function: private::find_merchant_connector_account_by_merchant_id_connector_label
- function: private::find_merchant_connector_account_by_profile_id_connector_name
- function: private::find_merchant_connector_account_by_merchant_id_connector_name
- function: private::find_by_merchant_connector_account_merchant_id_merchant_connector_id
- function: private::find_merchant_connector_account_by_id
- function: private::insert_merchant_connector_account
- function: private::list_enabled_connector_accounts_by_profile_id
- function: private::find_merchant_connector_account_by_merchant_id_and_disabled_list
- function: private::list_connector_account_by_profile_id
- function: private::update_multiple_merchant_connector_accounts
- function: private::update_call
- function: private::update_merchant_connector_account
- function: private::update_merchant_connector_account
- function: private::delete_merchant_connector_account_by_merchant_id_merchant_connector_id
- function: private::delete_merchant_connector_account_by_id
- function: private::update_multiple_merchant_connector_accounts
- function: private::find_merchant_connector_account_by_merchant_id_connector_label
- function: private::list_enabled_connector_accounts_by_profile_id
- function: private::find_merchant_connector_account_by_merchant_id_connector_name
- function: private::find_merchant_connector_account_by_profile_id_connector_name
- function: private::find_by_merchant_connector_account_merchant_id_merchant_connector_id
- function: private::find_merchant_connector_account_by_id
- function: private::insert_merchant_connector_account
- function: private::insert_merchant_connector_account
- function: private::find_merchant_connector_account_by_merchant_id_and_disabled_list
- function: private::list_connector_account_by_profile_id
- function: private::update_merchant_connector_account
- function: private::update_merchant_connector_account
- function: private::delete_merchant_connector_account_by_merchant_id_merchant_connector_id
- function: private::delete_merchant_connector_account_by_id
- trait: pub::MerchantConnectorAccountInterface
- impl: impl MerchantConnectorAccountInterface for Store
- impl: impl MerchantConnectorAccountInterface for MockDb
**crates/router/src/db/merchant_key_store.rs**
Remove:
- function: private::insert_merchant_key_store
- function: private::get_merchant_key_store_by_merchant_id
- function: private::delete_merchant_key_store_by_merchant_id
- function: private::list_multiple_key_stores
- function: private::get_all_key_stores
- function: private::insert_merchant_key_store
- function: private::get_merchant_key_store_by_merchant_id
- function: private::delete_merchant_key_store_by_merchant_id
- function: private::list_multiple_key_stores
- function: private::get_all_key_stores
- trait: pub::MerchantKeyStoreInterface
- impl: impl MerchantKeyStoreInterface for Store
- impl: impl MerchantKeyStoreInterface for MockDb
**crates/router/src/events.rs**
Add:
- function: private::log_connector_event
- impl: impl events_interfaces::EventHandlerInterface for EventsHandler
**crates/router/src/routes/app.rs**
Add:
- function: private::get_api_client
- function: private::get_proxy
- function: private::get_request_id
- function: private::get_request_id_str
- function: private::get_tenant
- function: private::get_connectors
- function: private::event_handler
- impl: impl hyperswitch_interfaces::api_client::ApiClientWrapper for SessionState
**crates/router/src/services.rs**
Modify existing code
**crates/router/src/services/api.rs**
Remove:
- function: private::handle_ucs_response
- function: private::store_raw_connector_response_if_required
- function: pub::execute_connector_processing_step
- function: pub::call_connector_api
- function: private::handle_response
**crates/router/src/services/api/client.rs**
Remove:
- trait: pub::RequestBuilder
- trait: pub::ApiClient
Add:
- function: private::get_request_id
**crates/router/src/services/kafka.rs**
Modify existing code
**crates/storage_impl/src/business_profile.rs**
Add:
- function: private::insert_business_profile
- function: private::find_business_profile_by_profile_id
- function: private::find_business_profile_by_merchant_id_profile_id
- function: private::find_business_profile_by_profile_name_merchant_id
- function: private::update_profile_by_profile_id
- function: private::delete_profile_by_profile_id_merchant_id
- function: private::list_profile_by_merchant_id
- function: private::insert_business_profile
- function: private::find_business_profile_by_profile_id
- function: private::find_business_profile_by_merchant_id_profile_id
- function: private::find_business_profile_by_profile_name_merchant_id
- function: private::update_profile_by_profile_id
- function: private::delete_profile_by_profile_id_merchant_id
- function: private::list_profile_by_merchant_id
- function: private::insert_business_profile
- function: private::find_business_profile_by_profile_id
- function: private::find_business_profile_by_merchant_id_profile_id
- function: private::update_profile_by_profile_id
- function: private::delete_profile_by_profile_id_merchant_id
- function: private::list_profile_by_merchant_id
- function: private::find_business_profile_by_profile_name_merchant_id
- impl: impl ProfileInterface for kv_router_store::KVRouterStore<T>
- impl: impl ProfileInterface for RouterStore<T>
- impl: impl ProfileInterface for MockDb
**crates/storage_impl/src/config.rs**
Remove:
- trait: pub::TenantConfig
**crates/storage_impl/src/configs.rs**
Add:
- function: private::insert_config
- function: private::update_config_in_database
- function: private::update_config_by_key
- function: private::find_config_by_key_from_db
- function: private::find_config_by_key
- function: private::find_config_by_key_unwrap_or
- function: private::delete_config_by_key
- function: private::insert_config
- function: private::update_config_in_database
- function: private::update_config_by_key
- function: private::find_config_by_key_from_db
- function: private::find_config_by_key
- function: private::find_config_by_key_unwrap_or
- function: private::delete_config_by_key
- function: private::insert_config
- function: private::update_config_in_database
- function: private::update_config_by_key
- function: private::delete_config_by_key
- function: private::find_config_by_key
- function: private::find_config_by_key_unwrap_or
- function: private::find_config_by_key_from_db
- impl: impl ConfigInterface for kv_router_store::KVRouterStore<T>
- impl: impl ConfigInterface for RouterStore<T>
- impl: impl ConfigInterface for MockDb
**crates/storage_impl/src/database/store.rs**
Modify existing code
**crates/storage_impl/src/kv_router_store.rs**
Modify existing code
**crates/storage_impl/src/lib.rs**
Add:
- mod: pub::business_profile
- mod: pub::configs
- mod: pub::merchant_account
- mod: pub::merchant_connector_account
- mod: pub::merchant_key_store
**crates/storage_impl/src/merchant_account.rs**
Add:
- function: private::insert_merchant
- function: private::find_merchant_account_by_merchant_id
- function: private::update_merchant
- function: private::update_specific_fields_in_merchant
- function: private::find_merchant_account_by_publishable_key
- function: private::list_merchant_accounts_by_organization_id
- function: private::delete_merchant_account_by_merchant_id
- function: private::list_multiple_merchant_accounts
- function: private::list_merchant_and_org_ids
- function: private::update_all_merchant_account
- function: private::insert_merchant
- function: private::find_merchant_account_by_merchant_id
- function: private::update_merchant
- function: private::update_specific_fields_in_merchant
- function: private::find_merchant_account_by_publishable_key
- function: private::list_merchant_accounts_by_organization_id
- function: private::delete_merchant_account_by_merchant_id
- function: private::list_multiple_merchant_accounts
- function: private::list_merchant_and_org_ids
- function: private::update_all_merchant_account
- function: private::insert_merchant
- function: private::find_merchant_account_by_merchant_id
- function: private::update_merchant
- function: private::update_specific_fields_in_merchant
- function: private::find_merchant_account_by_publishable_key
- function: private::update_all_merchant_account
- function: private::delete_merchant_account_by_merchant_id
- function: private::list_merchant_accounts_by_organization_id
- function: private::list_multiple_merchant_accounts
- function: private::list_merchant_and_org_ids
- function: private::publish_and_redact_merchant_account_cache
- function: private::publish_and_redact_all_merchant_account_cache
- impl: impl MerchantAccountInterface for kv_router_store::KVRouterStore<T>
- impl: impl MerchantAccountInterface for RouterStore<T>
- impl: impl MerchantAccountInterface for MockDb
**crates/storage_impl/src/merchant_connector_account.rs**
Add:
- function: private::find_merchant_connector_account_by_merchant_id_connector_label
- function: private::find_merchant_connector_account_by_profile_id_connector_name
- function: private::find_merchant_connector_account_by_merchant_id_connector_name
- function: private::find_by_merchant_connector_account_merchant_id_merchant_connector_id
- function: private::find_merchant_connector_account_by_id
- function: private::insert_merchant_connector_account
- function: private::list_enabled_connector_accounts_by_profile_id
- function: private::find_merchant_connector_account_by_merchant_id_and_disabled_list
- function: private::list_connector_account_by_profile_id
- function: private::update_multiple_merchant_connector_accounts
- function: private::update_merchant_connector_account
- function: private::update_merchant_connector_account
- function: private::delete_merchant_connector_account_by_merchant_id_merchant_connector_id
- function: private::delete_merchant_connector_account_by_id
- function: private::find_merchant_connector_account_by_merchant_id_connector_label
- function: private::find_merchant_connector_account_by_profile_id_connector_name
- function: private::find_merchant_connector_account_by_merchant_id_connector_name
- function: private::find_by_merchant_connector_account_merchant_id_merchant_connector_id
- function: private::find_merchant_connector_account_by_id
- function: private::insert_merchant_connector_account
- function: private::list_enabled_connector_accounts_by_profile_id
- function: private::find_merchant_connector_account_by_merchant_id_and_disabled_list
- function: private::list_connector_account_by_profile_id
- function: private::update_multiple_merchant_connector_accounts
- function: private::update_call
- function: private::update_merchant_connector_account
- function: private::update_merchant_connector_account
- function: private::delete_merchant_connector_account_by_merchant_id_merchant_connector_id
- function: private::delete_merchant_connector_account_by_id
- function: private::update_multiple_merchant_connector_accounts
- function: private::find_merchant_connector_account_by_merchant_id_connector_label
- function: private::list_enabled_connector_accounts_by_profile_id
- function: private::find_merchant_connector_account_by_merchant_id_connector_name
- function: private::find_merchant_connector_account_by_profile_id_connector_name
- function: private::find_by_merchant_connector_account_merchant_id_merchant_connector_id
- function: private::find_merchant_connector_account_by_id
- function: private::insert_merchant_connector_account
- function: private::insert_merchant_connector_account
- function: private::find_merchant_connector_account_by_merchant_id_and_disabled_list
- function: private::list_connector_account_by_profile_id
- function: private::update_merchant_connector_account
- function: private::update_merchant_connector_account
- function: private::delete_merchant_connector_account_by_merchant_id_merchant_connector_id
- function: private::delete_merchant_connector_account_by_id
- impl: impl MerchantConnectorAccountInterface for kv_router_store::KVRouterStore<T>
- impl: impl MerchantConnectorAccountInterface for RouterStore<T>
- impl: impl MerchantConnectorAccountInterface for MockDb
**crates/storage_impl/src/merchant_key_store.rs**
Add:
- function: private::insert_merchant_key_store
- function: private::get_merchant_key_store_by_merchant_id
- function: private::delete_merchant_key_store_by_merchant_id
- function: private::list_multiple_key_stores
- function: private::get_all_key_stores
- function: private::insert_merchant_key_store
- function: private::get_merchant_key_store_by_merchant_id
- function: private::delete_merchant_key_store_by_merchant_id
- function: private::list_multiple_key_stores
- function: private::get_all_key_stores
- function: private::insert_merchant_key_store
- function: private::get_merchant_key_store_by_merchant_id
- function: private::delete_merchant_key_store_by_merchant_id
- function: private::list_multiple_key_stores
- function: private::get_all_key_stores
- impl: impl MerchantKeyStoreInterface for kv_router_store::KVRouterStore<T>
- impl: impl MerchantKeyStoreInterface for RouterStore<T>
- impl: impl MerchantKeyStoreInterface for MockDb
**crates/storage_impl/src/mock_db.rs**
Add:
- function: pub::get_master_key
**crates/storage_impl/src/utils.rs**
Add:
- function: pub::pg_accounts_connection_read
- function: pub::pg_accounts_connection_write
|
{"pr_number": 9830, "pr_title": "refactor(db_interfaces): move db interfaces in router to domain_models", "merged_at": "2025-10-15T07:33:48Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/business_profile.rs", "crates/hyperswitch_domain_models/src/configs.rs", "crates/hyperswitch_domain_models/src/customer.rs", "crates/hyperswitch_domain_models/src/lib.rs", "crates/hyperswitch_domain_models/src/merchant_account.rs", "crates/hyperswitch_domain_models/src/merchant_connector_account.rs", "crates/hyperswitch_domain_models/src/merchant_key_store.rs"], "core_business": ["crates/router/src/core/payments/customers.rs", "crates/router/src/core/payments/flows/psync_flow.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/unified_connector_service.rs", "crates/router/src/core/unified_connector_service/transformers.rs"], "connectors": ["crates/external_services/src/grpc_client/unified_connector_service.rs", "crates/hyperswitch_interfaces/src/unified_connector_service.rs", "crates/hyperswitch_interfaces/src/unified_connector_service/transformers.rs", "crates/router/src/db/merchant_connector_account.rs", "crates/storage_impl/src/merchant_connector_account.rs"], "types": ["crates/common_utils/src/types.rs"], "utils": ["crates/hyperswitch_interfaces/src/helpers.rs", "crates/storage_impl/src/utils.rs"], "config": ["crates/hyperswitch_interfaces/Cargo.toml", "crates/hyperswitch_interfaces/src/configs.rs", "crates/router/Cargo.toml", "crates/router/src/configs/defaults.rs", "crates/router/src/configs/settings.rs", "crates/router/src/db/configs.rs", "crates/storage_impl/Cargo.toml", "crates/storage_impl/src/config.rs", "crates/storage_impl/src/configs.rs"], "other": ["Cargo.lock", "crates/analytics/src/lib.rs", "crates/hyperswitch_interfaces/src/api_client.rs", "crates/hyperswitch_interfaces/src/consts.rs", "crates/hyperswitch_interfaces/src/events.rs", "crates/hyperswitch_interfaces/src/lib.rs", "crates/hyperswitch_interfaces/src/metrics.rs", "crates/router/src/db.rs", "crates/router/src/db/business_profile.rs", "crates/router/src/db/events.rs", "crates/router/src/db/kafka_store.rs", "crates/router/src/db/merchant_account.rs", "crates/router/src/db/merchant_key_store.rs", "crates/router/src/events.rs", "crates/router/src/routes/app.rs", "crates/router/src/services.rs", "crates/router/src/services/api.rs", "crates/router/src/services/api/client.rs", "crates/router/src/services/kafka.rs", "crates/storage_impl/src/business_profile.rs", "crates/storage_impl/src/database/store.rs", "crates/storage_impl/src/kv_router_store.rs", "crates/storage_impl/src/lib.rs", "crates/storage_impl/src/merchant_account.rs", "crates/storage_impl/src/merchant_key_store.rs", "crates/storage_impl/src/mock_db.rs"]}, "change_types": {"structs_added": 6, "functions_added": 254, "enums_added": 2, "fields_added": 693, "imports_added": 83, "conditionals_added": 9, "database_queries": 18}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(users): add support for caching and resolving last used lineage context
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
This PR introduces lineage context caching to enhance login and account-switch flows with better continuity and reduced DB load.
### Key Changes
- **During Login:**
- Attempt to fetch the last used `LineageContext` from Redis (`LINEAGE_CONTEXT_<user_id>`).
- If context is found:
- Validate whether a matching user role exists (using both `V1` and `V2` role versions).
- If a valid user_role is found → use this lineage context to issue the JWT token.
- If not → fallback to the default user_role-based resolution logic.
- If context is **not found in cache**, fallback to the existing login flow entirely.
- **During Account Switch:**
- After switching org/merchant/profile context and issuing the new JWT token,
the new `LineageContext` is saved to Redis (`LINEAGE_CONTEXT_<user_id>`).
- This allows restoring the last used org/merchant/profile on future logins.
- **Redis Cache Expiry:**
- Cached lineage context entries are stored with a TTL of **7 days**.
- If the user is inactive beyond this duration, the system reverts to default logic.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
- Improves user experience by remembering their last used account context across sessions.
- Reduces unnecessary DB lookups during login for returning users.
- Ensures fallback safety in case of invalid or expired lineage context.
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Tested locally with TTL as 1 minute, keys are getting stored in redis
<img width="1065" alt="Screenshot 2025-04-22 at 7 40 32 PM" src="https://github.com/user-attachments/assets/1201a92b-7957-4075-8ec6-9a75376c842a" />
<img width="1369" alt="image" src="https://github.com/user-attachments/assets/2e8fbec0-a1e1-4ef9-b280-67ccbea7b1d1" />

### Test 1:
- Log in to the merchant account.
- Check redis using the key: ```GET LINEAGE_CONTEXT_<user_id>``` The value should contain the last used lineage context for the user.
- Switch to another org/merchant/profile.
- Recheck redis with the same key: ```GET LINEAGE_CONTEXT_<user_id>```. The lineage should now be changed.
### Test 2:
- After the above test, log out and log in back, within the TTL for the lineage_context, which is 7 days.
- You should be logged in to exactly the same lineage which you last used.
### Test 3 (optional):
- Have a note of the lineage.
- Do not use this account for 7 days.
- Try logging in now.
- You should be logged in to a random account (possibly the lineage which you have not used last)
- This proves, that the key has expired and the default fallback login is now used.
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/user.rs`
**2. Type Definitions**
- `crates/router/src/types/domain/user.rs`
- `crates/router/src/types/domain/user/decision_manager.rs`
**3. Utils**
- `crates/router/src/utils/user.rs`
**4. Other**
- `crates/router/src/consts/user.rs`
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Implement new functions (5 changes)
- Extend existing types with new fields (37 changes)
- Add conditional logic for feature flags or filtering (3 changes)
**Detailed Identifier Changes:**
Commit 01bca772:
Files to modify:
**crates/router/src/consts/user.rs**
Modify existing code
**crates/router/src/core/user.rs**
Modify existing code
**crates/router/src/types/domain/user.rs**
Add:
- function: pub::try_get_lineage_context_from_cache
- function: pub::try_set_lineage_context_in_cache
- struct: pub::LineageContext
- impl: impl LineageContext
**crates/router/src/types/domain/user/decision_manager.rs**
Modify existing code
**crates/router/src/utils/user.rs**
Add:
- function: pub::get_lineage_context_from_cache
- function: pub::set_lineage_context_in_cache
|
{"pr_number": 7871, "pr_title": "feat(users): add support for caching and resolving last used lineage context", "merged_at": "2025-04-23T14:09:48Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["merchant", "user", "session"]}, "hierarchy": {"core_business": ["crates/router/src/core/user.rs"], "types": ["crates/router/src/types/domain/user.rs", "crates/router/src/types/domain/user/decision_manager.rs"], "utils": ["crates/router/src/utils/user.rs"], "other": ["crates/router/src/consts/user.rs"]}, "change_types": {"structs_added": 1, "functions_added": 5, "fields_added": 37, "imports_added": 2, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(connector): [Cybersource] remove newline in billing address with space
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Newline in billing address failing the payment in production (speculated). This pr removes the newline (if present) in billing address with space.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Tested through postman:
- Create a MCA for cybersource:
- Create a Payment with Cybersource:
```
{
"amount": 499,
"currency": "USD",
"confirm": true,
"capture_method": "automatic",
"customer_id": "test_rec7",
"email": "[email protected]",
"request_external_three_ds_authentication": true,
"customer_acceptance": {
"acceptance_type": "online"
},
"payment_method": "card",
"payment_method_type": "credit",
"payment_method_data": {
"card": {
"card_number": "4242424242424242",
"card_exp_month": "03",
"card_exp_year": "2030",
"card_holder_name": "Test Holder",
"card_cvc": "737"
}
},
"billing": {
"address": {
"city": "test",
"country": "US",
"line1": "here is some \n there is some \n none is some? \n ",
"line2": "there",
"line3": "anywhere",
"zip": "560095",
"state": "Washington",
"first_name": "One",
"last_name": "Two"
},
"phone": {
"number": "1234567890",
"country_code": "+1"
},
"email": "[email protected]"
},
"authentication_type": "no_three_ds"
}
```
- The payment should be succeeded
```
{
"payment_id": "pay_LGt7Tbil8tLko2OpVHqJ",
"merchant_id": "merchant_1730121122",
"status": "succeeded",
"amount": 499,
"net_amount": 499,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": 499,
"connector": "cybersource",
"client_secret": "pay_LGt7Tbil8tLko2OpVHqJ_secret_dycae051HVaAJYXSCdCH",
"created": "2024-10-28T13:12:22.609Z",
"currency": "USD",
"customer_id": "test_rec7",
"customer": {
"id": "test_rec7",
"name": null,
"email": "[email protected]",
"phone": null,
"phone_country_code": null
},
"description": null,
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": null,
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": "card",
"payment_method_data": {
"card": {
"last4": "4242",
"card_type": null,
"card_network": "Visa",
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "424242",
"card_extended_bin": null,
"card_exp_month": "03",
"card_exp_year": "2030",
"card_holder_name": null,
"payment_checks": {
"avs_response": {
"code": "Y",
"codeRaw": "Y"
},
"card_verification": {
"resultCode": "M",
"resultCodeRaw": "M"
}
},
"authentication_data": null
},
"billing": null
},
"payment_token": "token_LyziBYSQnkubuQbE91YF",
"shipping": null,
"billing": {
"address": {
"city": "test",
"country": "US",
"line1": "here is some \n there is some \n none is some? \n ",
"line2": "there",
"line3": "anywhere",
"zip": "560095",
"state": "Washington",
"first_name": "One",
"last_name": "Two"
},
"phone": {
"number": "1234567890",
"country_code": "+1"
},
"email": "[email protected]"
},
"order_details": null,
"email": "[email protected]",
"name": null,
"phone": null,
"return_url": null,
"authentication_type": "no_three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "test_rec7",
"created_at": 1730121142,
"expires": 1730124742,
"secret": "epk_bb3a50134caa4214ad2ea7b534184d26"
},
"manual_retry_allowed": false,
"connector_transaction_id": "7301211437366791304951",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": null,
"reference_id": "pay_LGt7Tbil8tLko2OpVHqJ_1",
"payment_link": null,
"profile_id": "pro_2pDEf41cwojHtrM9xItk",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_AFVVYXejTDoWa4IgaPnw",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2024-10-28T13:27:22.609Z",
"fingerprint": null,
"browser_info": null,
"payment_method_id": null,
"payment_method_status": null,
"updated": "2024-10-28T13:12:24.692Z",
"charges": null,
"frm_metadata": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/router/src/connector/cybersource/transformers.rs`
**Code Patterns Applied:**
- Implement new functions (3 changes)
- Extend existing types with new fields (6 changes)
**Detailed Identifier Changes:**
Commit 7f1d3457:
Files to modify:
**crates/router/src/connector/cybersource/transformers.rs**
Add:
- function: private::remove_new_line
- function: private::remove_new_line
- trait: pub::RemoveNewLine
- impl: impl RemoveNewLine for Option<Secret<String>>
- impl: impl RemoveNewLine for Option<String>
|
{"pr_number": 6478, "pr_title": "fix(connector): [Cybersource] remove newline in billing address with space", "merged_at": "2024-11-05T10:39:42Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/router/src/connector/cybersource/transformers.rs"]}, "change_types": {"functions_added": 3, "fields_added": 6}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
refactor(core): made provider field in ctp_service_details backward compatible
## Type of Change
<!-- Put an `x` in the boxes that apply -->
[x] Hotfix
## Description
<!-- Describe your changes in detail -->
https://github.com/juspay/hyperswitch/pull/7705
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
**2. Core Business Logic**
- `crates/router/src/core/payments/helpers.rs`
- `crates/router/src/core/unified_authentication_service.rs`
**3. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
**Code Patterns Applied:**
- Extend existing types with new fields (1 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 7c9aa2bf:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/router/src/core/payments/helpers.rs**
Modify existing code
**crates/router/src/core/unified_authentication_service.rs**
Modify existing code
|
{"pr_number": 7714, "pr_title": "refactor(core): made provider field in ctp_service_details backward compatible", "merged_at": "2025-04-03T11:10:42Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "core_business": ["crates/router/src/core/payments/helpers.rs", "crates/router/src/core/unified_authentication_service.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {"fields_added": 1, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(payouts): add should_continue flag for propagating error for each call
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Paypal requires creation of access token before payment/payouts in its flow.
In Access token flow, we do get error response
```
PaypalAccessTokenErrorResponse { error: \"invalid_client\", error_description: \"Client Authentication failed\" }
```
The error response gets updated on router data but we don’t do a early return based on this condition thus this gets overwritten by payout’s response.
In this case, even if access token is not generated (null), it still goes to payout create flow and fails at connector service with missing value (5xx) (edited)
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Tested through Postman:
- Create an MCA (Paypal payout) with `incorrect credentials`
- Create a Paypal Payout
```
curl --location '{{baseUrl}}/payouts/create' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key:{{api_key}}' \
--data-raw '{
"amount": 1,
"currency": "EUR",
"customer_id": "payout_customer",
"email": "[email protected]",
"name": "John Doe",
"phone": "999999999",
"phone_country_code": "+65",
"description": "Its my first payout request",
"payout_type": "wallet",
"payout_method_data": {
"wallet": {
"paypal": {
"email": "[email protected]"
}
}
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "NY",
"zip": "94122",
"country": "US",
"first_name": "John",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
},
"entity_type": "NaturalPerson",
"recurring": false,
"metadata": {
"ref": "123"
},
"confirm": true,
"auto_fulfill": true
}'
```
It should give out an 2xx with failed response:
```
{
"payout_id": "payout_OCfkeZ0BRP1TvVBCbqJS",
"merchant_id": "merchant_1758740236",
"merchant_order_reference_id": null,
"amount": 1,
"currency": "EUR",
"connector": "paypal",
"payout_type": "wallet",
"payout_method_data": {
"wallet": {
"email": "sk******@juspay.in",
"telephone_number": null,
"paypal_id": null
}
},
"billing": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "NY",
"first_name": "John",
"last_name": "Doe",
"origin_zip": null
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": null
},
"auto_fulfill": true,
"customer_id": "payout_customer",
"customer": {
"id": "payout_customer",
"name": "John Doe",
"email": "[email protected]",
"phone": "999999999",
"phone_country_code": "+65"
},
"client_secret": "payout_payout_OCfkeZ0BRP1TvVBCbqJS_secret_odzX4yMLCWleZmuNb9sh",
"return_url": null,
"business_country": null,
"business_label": null,
"description": "Its my first payout request",
"entity_type": "NaturalPerson",
"recurring": false,
"metadata": {
"ref": "123"
},
"merchant_connector_id": "mca_jWza4o9JclyqVqh3maid",
"status": "failed",
"error_message": "invalid_client",
"error_code": "invalid_client",
"profile_id": "pro_yOBs0ZV2FcCS8k3ZEbCM",
"created": "2025-09-24T18:58:12.868Z",
"connector_transaction_id": null,
"priority": null,
"payout_link": null,
"email": "[email protected]",
"name": "John Doe",
"phone": "999999999",
"phone_country_code": "+65",
"unified_code": "UE_9000",
"unified_message": "Something went wrong",
"payout_method_id": null
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payouts.rs`
- `crates/router/src/core/payouts/helpers.rs`
**Code Patterns Applied:**
- Implement new functions (1 changes)
- Extend existing types with new fields (1 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit f95c976c:
Files to modify:
**crates/router/src/core/payouts.rs**
Modify existing code
**crates/router/src/core/payouts/helpers.rs**
Add:
- function: pub::should_continue_payout
|
{"pr_number": 9531, "pr_title": "fix(payouts): add should_continue flag for propagating error for each call", "merged_at": "2025-10-10T07:57:50Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payouts.rs", "crates/router/src/core/payouts/helpers.rs"]}, "change_types": {"functions_added": 1, "fields_added": 1, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
refactor(payment_methods): propagate empty wallet details for paypal …
…during MIT
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
This PR adds support for propagating the wallet details during MIT txns for PayPal. This ensures PayPal is propagated with same wallet details during CIT and MIT which in turn ensures the return type for `payment_method_data` is same for CIT and MIT.
**Notes**
- `address_id` is not propagated during MIT today. Tracked here - https://github.com/juspay/hyperswitch/issues/7421
- `billing` details are not propagated in payments confirm API response today. Tracked here - https://github.com/juspay/hyperswitch/issues/7422
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
EDIT:
This ensures payments response for CIT and MIT for PayPal is same.
## How did you test it?
<details>
<summary>1. Create a payment link (CIT)</summary>
cURL
curl --location --request POST 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_4xZENisZayxlH2zJftYiSsdu7zk8puOG3RBIX483lSKioBFuEMS86lzBttq7l085' \
--data '{"authentication_type":"three_ds","customer_id":"cus_waAoSFEx8KLdSAPx3dEj","profile_id":"pro_jubyUidNWv0AlA4VJu8A","customer_acceptance":{"acceptance_type":"online","accepted_at":"1963-05-03T04:07:52.723Z","online":{"ip_address":"127.0.0.1","user_agent":"amet irure esse"}},"amount":100,"currency":"EUR","payment_link":true,"setup_future_usage":"off_session","capture_method":"automatic","session_expiry":100000,"return_url":"https://example.com","payment_link_config":{"theme":"#003264","display_sdk_only":true,"hide_card_nickname_field":true,"payment_button_colour":"#FFA445","custom_message_for_card_terms":"Pour vérifier votre compte, un montant de 0,00 € sera débité lorsque vous aurez cliqué sur le bouton « Confirmer »","payment_button_text":"Confirmer","payment_button_text_colour":"#003264","skip_status_screen":true,"background_colour":"#F9F9F9"}}'
Response
{"payment_id":"pay_x2xG1ShxMCKVEuV7oAj1","merchant_id":"merchant_1741075166","status":"requires_payment_method","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":100,"amount_received":null,"connector":null,"client_secret":"pay_x2xG1ShxMCKVEuV7oAj1_secret_LwkCV1j8R5JxscftaKbc","created":"2025-03-04T10:48:05.817Z","currency":"EUR","customer_id":"cus_waAoSFEx8KLdSAPx3dEj","customer":{"id":"cus_waAoSFEx8KLdSAPx3dEj","name":"John Nether","email":null,"phone":"6168205362","phone_country_code":"+1"},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":"off_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":null,"payment_method_data":null,"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":"John Nether","phone":"6168205362","return_url":"https://example.com/","authentication_type":"three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"cus_waAoSFEx8KLdSAPx3dEj","created_at":1741085285,"expires":1741088885,"secret":"epk_69c09988e51a4e59b53bdb8ebcaaa8ef"},"manual_retry_allowed":null,"connector_transaction_id":null,"frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":null,"payment_link":{"link":"http://localhost:8080/payment_link/merchant_1741075166/pay_x2xG1ShxMCKVEuV7oAj1?locale=en","secure_link":null,"payment_link_id":"plink_2YLDjgstES6J32mbO3sK"},"profile_id":"pro_jubyUidNWv0AlA4VJu8A","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":null,"incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-03-05T14:34:45.815Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-03-04T10:48:05.825Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":null}
</details>
<details>
<summary>2. Complete PayPal payment</summary>
</details>
<details>
<summary>3. Fetch payment details</summary>
- Note down `payment_method_id`
- Note down `payment_method_data`
cURL
curl --location --request GET 'http://localhost:8080/payments/pay_x2xG1ShxMCKVEuV7oAj1?force_sync=true' \
--header 'Accept: application/json' \
--header 'api-key: dev_4xZENisZayxlH2zJftYiSsdu7zk8puOG3RBIX483lSKioBFuEMS86lzBttq7l085'
Response
{"payment_id":"pay_x2xG1ShxMCKVEuV7oAj1","merchant_id":"merchant_1741075166","status":"succeeded","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":0,"amount_received":100,"connector":"adyen","client_secret":"pay_x2xG1ShxMCKVEuV7oAj1_secret_LwkCV1j8R5JxscftaKbc","created":"2025-03-04T10:48:05.817Z","currency":"EUR","customer_id":"cus_waAoSFEx8KLdSAPx3dEj","customer":{"id":"cus_waAoSFEx8KLdSAPx3dEj","name":"John Nether","email":null,"phone":"6168205362","phone_country_code":"+1"},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":"off_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"wallet","payment_method_data":{"wallet":{},"billing":{"address":null,"phone":null,"email":"[email protected]"}},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":"John Nether","phone":"6168205362","return_url":"https://example.com/","authentication_type":"three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":"redirect_to_url","payment_method_type":"paypal","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"L8N5JQ5PDTDKKK75","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_x2xG1ShxMCKVEuV7oAj1_1","payment_link":{"link":"http://localhost:8080/payment_link/merchant_1741075166/pay_x2xG1ShxMCKVEuV7oAj1?locale=en","secure_link":null,"payment_link_id":"plink_2YLDjgstES6J32mbO3sK"},"profile_id":"pro_jubyUidNWv0AlA4VJu8A","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_tW9huzrwc1FMbszOL0sg","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-03-05T14:34:45.815Z","fingerprint":null,"browser_info":{"os_type":"macOS","language":"en-US","time_zone":-330,"ip_address":"::1","os_version":"10.15.7","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Safari/605.1.15","color_depth":24,"device_model":"Macintosh","java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"accept_language":"en-US,en;q=0.9","java_script_enabled":true},"payment_method_id":"pm_Hp1GMhqLs7YZYxQkQRAT","payment_method_status":"active","updated":"2025-03-04T10:51:04.362Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":null}
</details>
<details>
<summary>4. Create MIT for PayPal</summary>
cURL
curl --location --request POST 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_4xZENisZayxlH2zJftYiSsdu7zk8puOG3RBIX483lSKioBFuEMS86lzBttq7l085' \
--data '{"amount":100,"currency":"EUR","confirm":true,"capture_method":"automatic","capture_on":"2022-09-10T10:11:12Z","customer_id":"cus_waAoSFEx8KLdSAPx3dEj","name":"John Doe","phone":"999999999","profile_id":"pro_jubyUidNWv0AlA4VJu8A","phone_country_code":"+65","description":"Its my first payment request","return_url":"https://hyperswitch.io","off_session":true,"recurring_details":{"type":"payment_method_id","data":"pm_Hp1GMhqLs7YZYxQkQRAT"},"statement_descriptor_name":"joseph","statement_descriptor_suffix":"JS","metadata":{"udf1":"value1","new_customer":"true","login_date":"2019-09-10T10:11:12Z"}}'
Response
{"payment_id":"pay_GMWI8IGlX0BouclXYffw","merchant_id":"merchant_1741075166","status":"succeeded","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":0,"amount_received":100,"connector":"adyen","client_secret":"pay_GMWI8IGlX0BouclXYffw_secret_OPNCnvImw2cpgbXCvp99","created":"2025-03-04T10:52:02.372Z","currency":"EUR","customer_id":"cus_waAoSFEx8KLdSAPx3dEj","customer":{"id":"cus_waAoSFEx8KLdSAPx3dEj","name":"John Doe","email":null,"phone":"999999999","phone_country_code":"+65"},"description":"Its my first payment request","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":true,"capture_on":null,"capture_method":"automatic","payment_method":"wallet","payment_method_data":{"wallet":{},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":"John Doe","phone":"999999999","return_url":"https://hyperswitch.io/","authentication_type":"no_three_ds","statement_descriptor_name":"joseph","statement_descriptor_suffix":"JS","next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"paypal","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"cus_waAoSFEx8KLdSAPx3dEj","created_at":1741085522,"expires":1741089122,"secret":"epk_0197a4874d804583b12aac74b4061acc"},"manual_retry_allowed":false,"connector_transaction_id":"BPL47HWWF9FJHPT5","frm_message":null,"metadata":{"udf1":"value1","login_date":"2019-09-10T10:11:12Z","new_customer":"true"},"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_GMWI8IGlX0BouclXYffw_1","payment_link":null,"profile_id":"pro_jubyUidNWv0AlA4VJu8A","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_tW9huzrwc1FMbszOL0sg","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-03-04T11:07:02.372Z","fingerprint":null,"browser_info":null,"payment_method_id":"pm_Hp1GMhqLs7YZYxQkQRAT","payment_method_status":"active","updated":"2025-03-04T10:52:05.328Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":"H43Q9LC5SPN4VDV5","card_discovery":null}
</details>
<details>
<summary>5. Fetch payment details</summary>
cURL
curl --location --request GET 'http://localhost:8080/payments/pay_GMWI8IGlX0BouclXYffw?force_sync=true' \
--header 'Accept: application/json' \
--header 'api-key: dev_4xZENisZayxlH2zJftYiSsdu7zk8puOG3RBIX483lSKioBFuEMS86lzBttq7l085'
Response
{"payment_id":"pay_GMWI8IGlX0BouclXYffw","merchant_id":"merchant_1741075166","status":"succeeded","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":0,"amount_received":100,"connector":"adyen","client_secret":"pay_GMWI8IGlX0BouclXYffw_secret_OPNCnvImw2cpgbXCvp99","created":"2025-03-04T10:52:02.372Z","currency":"EUR","customer_id":"cus_waAoSFEx8KLdSAPx3dEj","customer":{"id":"cus_waAoSFEx8KLdSAPx3dEj","name":"John Doe","email":null,"phone":"999999999","phone_country_code":"+65"},"description":"Its my first payment request","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":true,"capture_on":null,"capture_method":"automatic","payment_method":"wallet","payment_method_data":{"wallet":{},"billing":{"address":null,"phone":null,"email":"[email protected]"}},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":"John Doe","phone":"999999999","return_url":"https://hyperswitch.io/","authentication_type":"no_three_ds","statement_descriptor_name":"joseph","statement_descriptor_suffix":"JS","next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"paypal","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"BPL47HWWF9FJHPT5","frm_message":null,"metadata":{"udf1":"value1","login_date":"2019-09-10T10:11:12Z","new_customer":"true"},"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_GMWI8IGlX0BouclXYffw_1","payment_link":null,"profile_id":"pro_jubyUidNWv0AlA4VJu8A","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_tW9huzrwc1FMbszOL0sg","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-03-04T11:07:02.372Z","fingerprint":null,"browser_info":null,"payment_method_id":"pm_Hp1GMhqLs7YZYxQkQRAT","payment_method_status":"active","updated":"2025-03-04T10:52:05.328Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":null}
</details>
6. Verify `payment_method_data` in CIT vs MIT (should be the same)
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments/operations/payment_create.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (7 changes)
**Detailed Identifier Changes:**
Commit 759474cd:
Files to modify:
**crates/router/src/core/payments/operations/payment_create.rs**
Modify existing code
|
{"pr_number": 7423, "pr_title": "refactor(payment_methods): propagate empty wallet details for paypal \u2026", "merged_at": "2025-03-04T13:41:10Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/operations/payment_create.rs"]}, "change_types": {"fields_added": 7}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
refactor(connector): update add connector script with new connector features
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [x] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
- Removed the unwanted changes (like addition of conector_name in RoutableConnectors enum, etc)
- Amount convertor code is generated in the template
- Connector Specification is also added in the template
- Network error codes added
- validate_mandate_payment, validate_psync_reference_id, toml files doesn't directly implements cards as supported payment method
- The unit test file now generated directly to crates/router/tests/connectors etc
- Derive macro copy added for all unit types like enums which only have 1 type of data (eg payment status, refund status) and structs which only have primitive types like i64, u64 , bool, char or unit structs.
- Connector getting added in all the files in alphabetical order
- In default_implmentation.rs, if connector previous to the new connector doesn't exist in any default_imp list, the new_connector will be added on the top of the list, else it will be in alphabetically sorted.
- Code getting compiled directly after template generation.
<img width="1024" alt="Screenshot 2025-06-12 at 8 10 59 PM" src="https://github.com/user-attachments/assets/ab8ff8ba-ef84-4e8e-87f1-d0cfc2fa6db9" />
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
This PR only updates the script to generate template code for a connector, hence no API testing required.
Script used to test the template generation.
`sh scripts/add_connector.sh testConnector https://www.google.com/`
<img width="1591" alt="Screenshot 2025-06-27 at 4 40 33 PM" src="https://github.com/user-attachments/assets/9abe6973-dfdf-4a47-80be-641d9bc31544" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `connector-template/mod.rs`
- `connector-template/test.rs`
- `connector-template/transformers.rs`
- ... and 2 more files
**Code Patterns Applied:**
- Implement new functions (8 changes)
- Extend existing types with new fields (23 changes)
- Add conditional logic for feature flags or filtering (8 changes)
**Detailed Identifier Changes:**
Commit 2ff93ff9:
Files to modify:
**connector-template/mod.rs**
Remove:
- function: private::get_url
- function: private::get_url
- impl: impl ConnectorSpecifications for project
Add:
- function: private::validate_mandate_payment
- function: private::validate_psync_reference_id
- function: private::get_url
- function: private::get_url
- function: private::get_connector_about
- function: private::get_supported_payment_methods
- function: private::get_supported_webhook_flows
- impl: impl ConnectorSpecifications for project
**connector-template/test.rs**
Modify existing code
**connector-template/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations.rs**
Modify existing code
|
{"pr_number": 8213, "pr_title": "refactor(connector): update add connector script with new connector features", "merged_at": "2025-07-01T14:47:37Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "order"]}, "hierarchy": {"connectors": ["connector-template/mod.rs", "connector-template/test.rs", "connector-template/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "scripts/add_connector.sh"]}, "change_types": {"functions_added": 8, "fields_added": 23, "imports_added": 7, "conditionals_added": 8}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(payment_link): expose payment link configs for SDK UI rules and payment button
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
Hotfix for https://github.com/juspay/hyperswitch/pull/7427
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
Gives granular control to the payment link consumer for designing their UI.
## How did you test it?
As mentioned in https://github.com/juspay/hyperswitch/pull/7427
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/admin.rs`
- `crates/api_models/src/payments.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/business_profile.rs`
- `crates/diesel_models/src/payment_intent.rs`
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/customer.rs`
- `crates/hyperswitch_domain_models/src/errors/api_error_response.rs`
- `crates/hyperswitch_domain_models/src/lib.rs`
**4. Core Business Logic**
- `crates/router/src/core/admin.rs`
- `crates/router/src/core/customers.rs`
- `crates/router/src/core/payment_link.rs`
- ... and 11 more files
**5. Type Definitions**
- `crates/router/src/compatibility/stripe/payment_intents/types.rs`
- `crates/router/src/compatibility/stripe/setup_intents/types.rs`
- `crates/router/src/types/api/admin.rs`
- ... and 1 more files
**6. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
- `crates/router/src/routes/admin.rs`
- ... and 3 more files
**Code Patterns Applied:**
- Extend existing types with new fields (37 changes)
- Add conditional logic for feature flags or filtering (4 changes)
**Detailed Identifier Changes:**
Commit bb84ad70:
Files to modify:
**crates/api_models/src/admin.rs**
Modify existing code
**crates/api_models/src/payments.rs**
Modify existing code
**crates/diesel_models/src/business_profile.rs**
Modify existing code
**crates/diesel_models/src/payment_intent.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/customer.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/errors/api_error_response.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/lib.rs**
Modify existing code
**crates/router/src/compatibility/stripe/payment_intents/types.rs**
Modify existing code
**crates/router/src/compatibility/stripe/setup_intents/types.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/core/customers.rs**
Modify existing code
**crates/router/src/core/payment_link.rs**
Modify existing code
**crates/router/src/core/payment_methods.rs**
Modify existing code
**crates/router/src/core/payment_methods/cards.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_complete_authorize.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_create.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_update.rs**
Modify existing code
**crates/router/src/core/payments/tokenization.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/core/payouts/helpers.rs**
Modify existing code
**crates/router/src/routes/admin.rs**
Modify existing code
**crates/router/src/routes/ephemeral_key.rs**
Modify existing code
**crates/router/src/routes/verification.rs**
Modify existing code
**crates/router/src/services/authorization/roles.rs**
Modify existing code
**crates/router/src/types/api/admin.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
|
{"pr_number": 7442, "pr_title": "feat(payment_link): expose payment link configs for SDK UI rules and payment button", "merged_at": "2025-03-06T11:27:39Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment"]}, "hierarchy": {"api_models": ["crates/api_models/src/admin.rs", "crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/business_profile.rs", "crates/diesel_models/src/payment_intent.rs"], "domain": ["crates/hyperswitch_domain_models/src/customer.rs", "crates/hyperswitch_domain_models/src/errors/api_error_response.rs", "crates/hyperswitch_domain_models/src/lib.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/customers.rs", "crates/router/src/core/payment_link.rs", "crates/router/src/core/payment_link/payment_link_initiate/payment_link.js", "crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js", "crates/router/src/core/payment_link/payment_link_initiate/secure_payment_link_initiator.js", "crates/router/src/core/payment_methods.rs", "crates/router/src/core/payment_methods/cards.rs", "crates/router/src/core/payments/operations/payment_complete_authorize.rs", "crates/router/src/core/payments/operations/payment_create.rs", "crates/router/src/core/payments/operations/payment_update.rs", "crates/router/src/core/payments/tokenization.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/payouts/helpers.rs"], "types": ["crates/router/src/compatibility/stripe/payment_intents/types.rs", "crates/router/src/compatibility/stripe/setup_intents/types.rs", "crates/router/src/types/api/admin.rs", "crates/router/src/types/transformers.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/router/src/routes/admin.rs", "crates/router/src/routes/ephemeral_key.rs", "crates/router/src/routes/verification.rs", "crates/router/src/services/authorization/roles.rs"]}, "change_types": {"fields_added": 37, "conditionals_added": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
refactor(routing): receive json value instead of string
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
Refactoring to recieve json response instead of string
Updated `ConfigApiClient::send_decision_engine_request` calls in `crates/router/src/core/routing/helpers.rs` to return `serde_json::Value` instead of `String`.
This ensures the response is parsed as JSON for better type safety and avoids manual string-to-JSON conversions in downstream logic.
### Changes Made
* Replaced generic type parameter `String` with `serde_json::Value` in the following functions:
* `enable_decision_engine_dynamic_routing_setup`
* `update_decision_engine_dynamic_routing_setup`
* `disable_decision_engine_dynamic_routing_setup`
* `create_decision_engine_merchant`
* `delete_decision_engine_merchant`
### Purpose
Switching to `serde_json::Value` directly improves clarity, reduces redundant parsing, and enforces better response handling.
### Screenshot
create
<img width="1717" height="93" alt="Screenshot 2025-08-21 at 4 11 10 PM" src="https://github.com/user-attachments/assets/68f8bc6a-ffa4-48fc-b030-68fc0a98da2c" />
update
<img width="1709" height="141" alt="Screenshot 2025-08-21 at 4 30 10 PM" src="https://github.com/user-attachments/assets/1dbf40ea-87d9-40fc-83dc-ac39036262db" />
delete
<img width="1725" height="71" alt="Screenshot 2025-08-21 at 4 31 25 PM" src="https://github.com/user-attachments/assets/bffe1bc7-28ac-43ab-9e4f-e1403dd6bca7" />
<img width="1612" height="992" alt="Screenshot 2025-08-19 at 6 23 55 PM" src="https://github.com/user-attachments/assets/14d788c3-9645-456f-a924-7988e46e9b10" />
<img width="1299" height="962" alt="Screenshot 2025-08-19 at 6 24 33 PM" src="https://github.com/user-attachments/assets/1ef46ebd-e286-4ae4-afcd-a33e3d505d7e" />
<img width="1335" height="637" alt="Screenshot 2025-08-19 at 6 25 46 PM" src="https://github.com/user-attachments/assets/c3a52c37-bbc4-4574-877b-e952406730c8" />
Curls and responses
create
```
curl --location 'http://localhost:8080/account/merchant_1756381962/business_profile/pro_nbWFu0RUhkjNIV4YgAJF/dynamic_routing/success_based/create?enable=dynamic_connector_selection' \
--header 'Content-Type: application/json' \
--header 'api-key:****' \
--data '{
"decision_engine_configs": {
"defaultLatencyThreshold": 90,
"defaultBucketSize": 200,
"defaultHedgingPercent": 5,
"subLevelInputConfig": [
{
"paymentMethodType": "card",
"paymentMethod": "credit",
"bucketSize": 250,
"hedgingPercent": 1
}
]
}
}'
```
```
{
"id": "routing_51b92mSgs0B0PJz5xM9R",
"profile_id": "pro_nbWFu0RUhkjNIV4YgAJF",
"name": "Success rate based dynamic routing algorithm",
"kind": "dynamic",
"description": "",
"created_at": 1756381971,
"modified_at": 1756381971,
"algorithm_for": "payment",
"decision_engine_routing_id": null
}
```
update
```
curl --location --request PATCH 'http://localhost:8080/account/merchant_1756381962/business_profile/pro_nbWFu0RUhkjNIV4YgAJF/dynamic_routing/success_based/config/routing_51b92mSgs0B0PJz5xM9R' \
--header 'api-key:****' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"decision_engine_configs": {
"defaultLatencyThreshold": 90,
"defaultBucketSize": 100,
"defaultHedgingPercent": 5,
"subLevelInputConfig": [
{
"paymentMethodType": "card",
"paymentMethod": "credit",
"bucketSize": 250,
"hedgingPercent": 1
}
]
}
}'
```
```
{
"id": "routing_PTySs5RDUL22VinElTAn",
"profile_id": "pro_nbWFu0RUhkjNIV4YgAJF",
"name": "Success rate based dynamic routing algorithm",
"kind": "dynamic",
"description": "",
"created_at": 1756382062,
"modified_at": 1756382062,
"algorithm_for": "payment",
"decision_engine_routing_id": null
}
```
activate
```
curl --location 'http://localhost:8080/routing/routing_51b92mSgs0B0PJz5xM9R/activate' \
--header 'Content-Type: application/json' \
--header 'api-key:****' \
--data '{}'
```
```
{
"id": "routing_51b92mSgs0B0PJz5xM9R",
"profile_id": "pro_nbWFu0RUhkjNIV4YgAJF",
"name": "Success rate based dynamic routing algorithm",
"kind": "dynamic",
"description": "",
"created_at": 1756381971,
"modified_at": 1756381971,
"algorithm_for": "payment",
"decision_engine_routing_id": null
}
```
deactivate(deletion)
```
curl --location 'http://localhost:8080/account/merchant_1756381962/business_profile/pro_nbWFu0RUhkjNIV4YgAJF/dynamic_routing/success_based/create?enable=none' \
--header 'Content-Type: application/json' \
--header 'api-key:****' \
--data '{
"decision_engine_configs": {
"defaultLatencyThreshold": 90,
"defaultBucketSize": 200,
"defaultHedgingPercent": 5,
"subLevelInputConfig": [
{
"paymentMethodType": "card",
"paymentMethod": "credit",
"bucketSize": 250,
"hedgingPercent": 1
}
]
}
}'
```
```
{
"id": "routing_51b92mSgs0B0PJz5xM9R",
"profile_id": "pro_nbWFu0RUhkjNIV4YgAJF",
"name": "Success rate based dynamic routing algorithm",
"kind": "dynamic",
"description": "",
"created_at": 1756381971,
"modified_at": 1756381971,
"algorithm_for": "payment",
"decision_engine_routing_id": null
}
```
|
To implement this **payment** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/routing/helpers.rs`
**Code Patterns Applied:**
- Modify database queries (1 changes)
**Detailed Identifier Changes:**
Commit db4413ce:
Files to modify:
**crates/router/src/core/routing/helpers.rs**
Modify existing code
|
{"pr_number": 8965, "pr_title": "refactor(routing): receive json value instead of string", "merged_at": "2025-09-03T12:58:02Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"core_business": ["crates/router/src/core/routing/helpers.rs"]}, "change_types": {"database_queries": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
refactor: add infra-values in intent kafka events
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
add infra-values in intent kafka events
cluster populating in payment_intent kafka event
<img width="1327" alt="image" src="https://github.com/user-attachments/assets/f1a57f86-b657-4eec-a0e4-d2eee6d29e78" />
Ran clippy locally
<img width="1056" alt="image" src="https://github.com/user-attachments/assets/3e1f3667-c57b-4125-977b-0251158933d9" />
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Type Definitions**
- `crates/common_utils/src/types/keymanager.rs`
- `crates/router/src/types/domain/types.rs`
**2. Other**
- `crates/router/src/db/kafka_store.rs`
- `crates/router/src/services/kafka.rs`
- `crates/router/src/services/kafka/payment_intent.rs`
- ... and 1 more files
**Code Patterns Applied:**
- Implement new functions (2 changes)
- Extend existing types with new fields (7 changes)
**Detailed Identifier Changes:**
Commit 9a840b54:
Files to modify:
**crates/common_utils/src/types/keymanager.rs**
Modify existing code
**crates/router/src/db/kafka_store.rs**
Modify existing code
**crates/router/src/services/kafka.rs**
Modify existing code
**crates/router/src/services/kafka/payment_intent.rs**
Modify existing code
**crates/router/src/services/kafka/payment_intent_event.rs**
Modify existing code
**crates/router/src/types/domain/types.rs**
Modify existing code
|
{"pr_number": 8265, "pr_title": "refactor: add infra-values in intent kafka events", "merged_at": "2025-06-05T10:58:30Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user"]}, "hierarchy": {"types": ["crates/common_utils/src/types/keymanager.rs", "crates/router/src/types/domain/types.rs"], "other": ["crates/router/src/db/kafka_store.rs", "crates/router/src/services/kafka.rs", "crates/router/src/services/kafka/payment_intent.rs", "crates/router/src/services/kafka/payment_intent_event.rs"]}, "change_types": {"functions_added": 2, "fields_added": 7}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(payments_v2): add payment method list endpoint
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] New feature
## Description
<!-- Describe your changes in detail -->
This PR introduces the payment methods list endpoint for payments. Only the initial structure is introduced in this PR.
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
<img width="1714" alt="Screenshot 2024-12-11 at 5 23 59 PM" src="https://github.com/user-attachments/assets/18d53f88-24b1-479c-816c-39f300d7731c">
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
To provide the information to the checkout to show the payment methods that are enabled.
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
- Create a payment and make a call to list payment methods
```bash
curl --location 'http://localhost:8080/v2/payments/12345_pay_0193b57eda2e73e3947f9e9cdd79cb8e/payment-methods' \
--header 'api-key: pk_dev_83a8e7a99b6b45c8a8fa8bedc5c69bed' \
--header 'Content-Type: application/json' \
--header 'x-profile-id: pro_bAnL8eyuZyD9Hx8iXwUt' \
--header 'x-client-secret: 12345_pay_0193b57eda2e73e3947f9e9cdd79cb8e_secret_0193b57eda2e73e3947f9eae72ce6e26'
```
- Response
```json
{
"payment_methods_enabled": [
{
"payment_method_type": "card_redirect",
"payment_method_subtype": "card_redirect",
"required_fields": null,
"surcharge_details": null
},
{
"payment_method_type": "card",
"payment_method_subtype": "credit",
"required_fields": null,
"surcharge_details": null
},
{
"payment_method_type": "card",
"payment_method_subtype": "debit",
"required_fields": null,
"surcharge_details": null
}
],
"customer_payment_methods": null
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/admin.rs`
- `crates/api_models/src/events/payment.rs`
- `crates/api_models/src/payment_methods.rs`
- ... and 1 more files
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/merchant_connector_account.rs`
- `crates/diesel_models/src/query/merchant_connector_account.rs`
- `crates/diesel_models/src/schema_v2.rs`
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/merchant_connector_account.rs`
**4. Core Business Logic**
- `crates/router/src/core/admin.rs`
- `crates/router/src/core/payment_methods/cards.rs`
- `crates/router/src/core/payments.rs`
- ... and 5 more files
**5. External Connector Integration**
- `api-reference-v2/api-reference/business-profile/profile--connector-accounts-list.mdx`
- `api-reference-v2/api-reference/merchant-connector-account/connector-account--create.mdx`
- `api-reference-v2/api-reference/merchant-connector-account/connector-account--retrieve.mdx`
- ... and 3 more files
**6. Type Definitions**
- `crates/common_types/Cargo.toml`
- `crates/common_types/src/lib.rs`
- `crates/common_types/src/payment_methods.rs`
- ... and 1 more files
**7. Utils**
- `crates/kgraph_utils/benches/evaluation.rs`
- `crates/kgraph_utils/src/mca.rs`
**8. Configuration Files**
- `crates/euclid_wasm/Cargo.toml`
**9. Other**
- `.gitignore`
- `api-reference-v2/api-reference/merchant-account/merchant-account--profile-list.mdx`
- `api-reference-v2/api-reference/payment-methods/list-saved-payment-methods-for-a-customer.mdx`
- ... and 13 more files
**Code Patterns Applied:**
- Define new data structures (13 changes)
- Implement new functions (25 changes)
- Extend existing types with new fields (126 changes)
- Modify database queries (6 changes)
**Detailed Identifier Changes:**
Commit d4b3dbc1:
Files to modify:
**crates/api_models/src/admin.rs**
Modify existing code
**crates/api_models/src/events/payment.rs**
Remove:
- impl: impl ApiEventMetric for events::PaymentsCaptureResponse
Add:
- function: private::get_api_event_type
- impl: impl ApiEventMetric for payments::PaymentMethodListResponseForPayments
- impl: impl ApiEventMetric for payments::PaymentsCaptureResponse
**crates/api_models/src/payment_methods.rs**
Add:
- enum: pub::PaymentMethodSubtypeSpecificData
**crates/api_models/src/payments.rs**
Add:
- struct: pub::PaymentMethodsListRequest
- struct: pub::PaymentMethodListResponseForPayments
**crates/common_types/src/lib.rs**
Add:
- mod: pub::payment_methods
**crates/common_types/src/payment_methods.rs**
Add:
- function: private::build
- struct: pub::PaymentMethodsEnabled
- struct: pub::RequestPaymentMethodTypes
- enum: pub::AcceptedCountries
- enum: pub::AcceptedCurrencies
- impl: impl Queryable<Jsonb, DB> for PaymentMethodsEnabled
**crates/diesel_models/src/merchant_connector_account.rs**
Modify existing code
**crates/diesel_models/src/query/merchant_connector_account.rs**
Add:
- function: pub::list_enabled_by_profile_id
**crates/diesel_models/src/schema_v2.rs**
Modify existing code
**crates/euclid_wasm/src/lib.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/merchant_connector_account.rs**
Remove:
- function: pub::get_parsed_payment_methods_enabled
Add:
- function: pub::from_payment_connectors_list
- struct: pub::PaymentMethodsEnabledForConnector
- struct: pub::FlattenedPaymentMethodsEnabled
- impl: impl FlattenedPaymentMethodsEnabled
**crates/kgraph_utils/benches/evaluation.rs**
Add:
- function: private::main
**crates/kgraph_utils/src/mca.rs**
Modify existing code
**crates/openapi/src/openapi_v2.rs**
Modify existing code
**crates/openapi/src/routes/payments.rs**
Add:
- function: pub::list_payment_methods
**crates/router/src/core/admin.rs**
Remove:
- function: private::get_payment_methods_enabled
- struct: private::PaymentMethodsEnabled
- impl: impl PaymentMethodsEnabled<'_>
Add:
- function: private::get_payment_methods_enabled
- struct: private::PaymentMethodsEnabled
- impl: impl PaymentMethodsEnabled<'_>
**crates/router/src/core/payment_methods/cards.rs**
Remove:
- function: pub::list_payment_methods
**crates/router/src/core/payments.rs**
Add:
- mod: pub::payment_methods
**crates/router/src/core/payments/payment_methods.rs**
Add:
- function: pub::list_payment_methods
- function: private::new
- function: private::get_required_fields
- function: private::generate_response
- function: private::perform_surcharge_calculation
- function: private::perform_filtering
- function: private::validate_payment_status
- struct: private::RequiredFieldsInput
- struct: private::FilteredPaymentMethodsEnabled
- struct: private::RequiredFieldsForEnabledPaymentMethod
- struct: private::RequiredFieldsForEnabledPaymentMethodTypes
- struct: private::RequiredFieldsAndSurchargeForEnabledPaymentMethodType
- struct: private::RequiredFieldsAndSurchargeForEnabledPaymentMethodTypes
- trait: private::PerformFilteringOnPaymentMethodsEnabled
- impl: impl RequiredFieldsInput
- impl: impl FilteredPaymentMethodsEnabled
- impl: impl RequiredFieldsAndSurchargeForEnabledPaymentMethodTypes
- impl: impl RequiredFieldsForEnabledPaymentMethodTypes
- impl: impl PerformFilteringOnPaymentMethodsEnabled for hyperswitch_domain_models::merchant_connector_account::FlattenedPaymentMethodsEnabled
**crates/router/src/core/payments/routing.rs**
Remove:
- function: private::perform_session_routing_for_pm_type
Add:
- function: pub::perform_cgraph_filtering
**crates/router/src/core/payout_link.rs**
Modify existing code
**crates/router/src/core/payouts.rs**
Add:
- function: pub::payouts_core
**crates/router/src/core/payouts/helpers.rs**
Modify existing code
**crates/router/src/db/kafka_store.rs**
Add:
- function: private::list_enabled_connector_accounts_by_profile_id
**crates/router/src/db/merchant_connector_account.rs**
Add:
- function: private::list_enabled_connector_accounts_by_profile_id
- function: private::list_enabled_connector_accounts_by_profile_id
**crates/router/src/routes/app.rs**
Modify existing code
**crates/router/src/routes/payment_methods.rs**
Remove:
- function: pub::list_customer_payment_method_for_payment
**crates/router/src/routes/payments.rs**
Add:
- function: pub::list_payment_methods
**crates/router/src/types/transformers.rs**
Add:
- function: private::foreign_try_from
- impl: impl ForeignTryFrom<domain::MerchantConnectorAccount> for api_models::admin::MerchantConnectorResponse
|
{"pr_number": 6805, "pr_title": "feat(payments_v2): add payment method list endpoint", "merged_at": "2024-12-23T10:43:44Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "user"]}, "hierarchy": {"api_models": ["crates/api_models/src/admin.rs", "crates/api_models/src/events/payment.rs", "crates/api_models/src/payment_methods.rs", "crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/merchant_connector_account.rs", "crates/diesel_models/src/query/merchant_connector_account.rs", "crates/diesel_models/src/schema_v2.rs"], "domain": ["crates/hyperswitch_domain_models/src/merchant_connector_account.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/payment_methods/cards.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/payment_methods.rs", "crates/router/src/core/payments/routing.rs", "crates/router/src/core/payout_link.rs", "crates/router/src/core/payouts.rs", "crates/router/src/core/payouts/helpers.rs"], "connectors": ["api-reference-v2/api-reference/business-profile/profile--connector-accounts-list.mdx", "api-reference-v2/api-reference/merchant-connector-account/connector-account--create.mdx", "api-reference-v2/api-reference/merchant-connector-account/connector-account--retrieve.mdx", "api-reference-v2/api-reference/merchant-connector-account/connector-account--update.mdx", "api-reference-v2/api-reference/merchant-connector-account/merchant-connector--delete.mdx", "crates/router/src/db/merchant_connector_account.rs"], "types": ["crates/common_types/Cargo.toml", "crates/common_types/src/lib.rs", "crates/common_types/src/payment_methods.rs", "crates/router/src/types/transformers.rs"], "utils": ["crates/kgraph_utils/benches/evaluation.rs", "crates/kgraph_utils/src/mca.rs"], "config": ["crates/euclid_wasm/Cargo.toml"], "other": [".gitignore", "api-reference-v2/api-reference/merchant-account/merchant-account--profile-list.mdx", "api-reference-v2/api-reference/payment-methods/list-saved-payment-methods-for-a-customer.mdx", "api-reference-v2/api-reference/payments/payments--payment-methods-list.mdx", "api-reference-v2/mint.json", "api-reference-v2/openapi_spec.json", "crates/euclid_wasm/src/lib.rs", "crates/openapi/src/openapi_v2.rs", "crates/openapi/src/routes/payments.rs", "crates/router/src/db/kafka_store.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/payment_methods.rs", "crates/router/src/routes/payments.rs", "v2_migrations/2024-08-28-081721_add_v2_columns/down.sql", "v2_migrations/2024-08-28-081721_add_v2_columns/up.sql", "v2_migrations/2024-10-08-081847_drop_v1_columns/up.sql"]}, "change_types": {"structs_added": 13, "functions_added": 25, "enums_added": 3, "fields_added": 126, "imports_added": 8, "database_queries": 6}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(connector): [CYBERSOURCE] Pass transaction type for only wallet MITs
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
CUG Hotfix for [9444](https://github.com/juspay/hyperswitch/pull/9444)
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
cargo clippy output
<img width="884" height="509" alt="Screenshot 2025-09-23 at 4 44 42 PM" src="https://github.com/user-attachments/assets/e6c38a1c-e5b7-428a-a9e6-cd20c2e2238b" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (2 changes)
**Detailed Identifier Changes:**
Commit 670b9847:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs**
Modify existing code
|
{"pr_number": 9513, "pr_title": "fix(connector): [CYBERSOURCE] Pass transaction type for only wallet MITs", "merged_at": "2025-09-23T11:32:36Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs"]}, "change_types": {"fields_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(payment_methods_v2): single use token implementation
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Add single use token implementation for Payment Method Service
The feature would help to provide a single use PSP token for creating payment
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Create Payment Method Session
Request
```bash
curl --location 'http://localhost:8080/v2/payment-methods-session' \
--header 'x-profile-id: pro_2A1cEgnP0mOT4rqUqLtt' \
--header 'Authorization: api-key=dev_KVJIPqLBqYEGWUSse6Bggow5xL2PkaWLMYcpgTGcvr334sCVwagyUNbrBOTRnESf' \
--header 'Content-Type: application/json' \
--data-raw '{
"customer_id": "12345_cus_0195ab1d3f807a80bd6611b1b71cd1d0",
"billing": {
"address": {
"first_name": "John",
"last_name": "Dough"
},
"email": "[email protected]"
},"psp_tokenization": {
"tokenization_type": "single_use",
"connector_id": "mca_lWefajNQ9HaKiJUhvAZo"
}
}'
```
Response
```json
{
"id": "12345_pms_0195ab1d677970a3bf12c0c019d42f6b",
"customer_id": "12345_cus_0195ab1d3f807a80bd6611b1b71cd1d0",
"billing": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"line3": null,
"zip": null,
"state": null,
"first_name": "John",
"last_name": "Dough"
},
"phone": null,
"email": "[email protected]"
},
"psp_tokenization": {
"tokenization_type": "single_use",
"connector_id": "mca_lWefajNQ9HaKiJUhvAZo"
},
"network_tokenization": null,
"expires_at": "2025-03-18T21:31:25.850Z",
"client_secret": "cs_0195ab1d677a73c2a9b18b77354ad4ae",
"return_url": null,
"next_action": null,
"authentication_details": null,
"associated_payment_methods": null
}
```
Confirm call for the Payment method session with `tokenization_type` as `single_use` under `psp_tokenization` in the request
Request
```bash
curl --location 'http://localhost:8080/v2/payment-methods-session/12345_pms_0195ab1d677970a3bf12c0c019d42f6b/confirm' \
--header 'x-profile-id: pro_2A1cEgnP0mOT4rqUqLtt' \
--header 'Authorization: publishable-key=pk_dev_427ac8f9e07d403a9dc21d71be6725cb,client-secret=cs_0195ab1d677a73c2a9b18b77354ad4ae' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_KVJIPqLBqYEGWUSse6Bggow5xL2PkaWLMYcpgTGcvr334sCVwagyUNbrBOTRnESf' \
--data '{
"payment_method_data": {
"card": {
"card_number": "4242424242424242",
"card_exp_month": "04",
"card_exp_year": "40",
"card_holder_name": "John Doe",
"card_cvc": "100"
}
},
"payment_method_type": "card",
"payment_method_subtype": "credit",
"psp_tokenization": {
"tokenization_type": "single_use",
"connector_id": "mca_wmwOLCiB3NoMv8YwyxcE"
}
}'
```
Response
```json
{
"id": "12345_pms_0195ab1d677970a3bf12c0c019d42f6b",
"customer_id": "12345_cus_0195ab1d3f807a80bd6611b1b71cd1d0",
"billing": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"line3": null,
"zip": null,
"state": null,
"first_name": "John",
"last_name": "Dough"
},
"phone": null,
"email": "[email protected]"
},
"psp_tokenization": {
"tokenization_type": "single_use",
"connector_id": "mca_lWefajNQ9HaKiJUhvAZo"
},
"network_tokenization": null,
"expires_at": "2025-03-18T21:31:25.850Z",
"client_secret": "CLIENT_SECRET_REDACTED",
"return_url": null,
"next_action": null,
"authentication_details": null,
"associated_payment_methods": null
}
```
The way the same is stored in the Storage ( Redis )
```bash
127.0.0.1:6379> get single_use_token_12345_pm_0195d26b9d2b71f094ba39e9fd131ca8
"{\"token\":\"tok_1R6t2xD5R7gDAGffQLz0D4fj\",\"merchant_connector_id\":\"mca_lWefajNQ9HaKiJUhvAZo\"}"
```
Retrieve API for the payment method created
Request
```bash
curl --location 'http://localhost:8080/v2/payment-methods/12345_pm_0195d26b9d2b71f094ba39e9fd131ca8' \
--header 'Content-Type: application/json' \
--header 'x-profile-id: pro_2A1cEgnP0mOT4rqUqLtt' \
--header 'api-key: dev_KVJIPqLBqYEGWUSse6Bggow5xL2PkaWLMYcpgTGcvr334sCVwagyUNbrBOTRnESf' \
--header 'Authorization: publishable-key=pk_dev_427ac8f9e07d403a9dc21d71be6725cb, api-key=dev_KVJIPqLBqYEGWUSse6Bggow5xL2PkaWLMYcpgTGcvr334sCVwagyUNbrBOTRnESf'
```
Response
```bash
{
"id": "12345_pm_0195d26b9d2b71f094ba39e9fd131ca8",
"merchant_id": "apka_apna_test_gvHKZJ8EatRCipXedizy",
"customer_id": "12345_cus_0195ab1d3f807a80bd6611b1b71cd1d0",
"payment_method_type": "card",
"payment_method_subtype": "credit",
"recurring_enabled": false,
"created": "2025-03-26T12:27:02.827Z",
"last_used_at": "2025-03-26T12:27:02.827Z",
"payment_method_data": {
"card": {
"issuer_country": null,
"last4_digits": "4242",
"expiry_month": "04",
"expiry_year": "28",
"card_holder_name": "John Doe",
"card_fingerprint": null,
"nick_name": null,
"card_network": null,
"card_isin": null,
"card_issuer": null,
"card_type": null,
"saved_to_locker": true
}
},
"connector_tokens": [
{
"connector_id": "mca_lWefajNQ9HaKiJUhvAZo",
"token_type": "single_use",
"status": "active",
"connector_token_request_reference_id": null,
"original_payment_authorized_amount": null,
"original_payment_authorized_currency": null,
"metadata": null,
"token": "tok_1R6t2xD5R7gDAGffQLz0D4fj"
}
],
"network_token": null
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payment_methods.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/payment_method_data.rs`
**3. Core Business Logic**
- `crates/router/src/core/payment_methods.rs`
- `crates/router/src/core/payment_methods/transformers.rs`
- `crates/router/src/core/payments/tokenization.rs`
**4. External Connector Integration**
- `crates/router/src/connector/stripe/transformers.rs`
**5. Type Definitions**
- `crates/common_types/src/payment_methods.rs`
- `crates/router/src/types.rs`
**6. Other**
- `api-reference-v2/openapi_spec.json`
- `crates/router/src/consts.rs`
**Code Patterns Applied:**
- Define new data structures (4 changes)
- Implement new functions (10 changes)
- Extend existing types with new fields (105 changes)
- Add conditional logic for feature flags or filtering (2 changes)
**Detailed Identifier Changes:**
Commit f7ea4cce:
Files to modify:
**crates/api_models/src/payment_methods.rs**
Add:
- function: pub::get_tokenize_connector_id
**crates/common_types/src/payment_methods.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payment_method_data.rs**
Add:
- function: private::try_from
- function: pub::get_single_use_token_from_payment_method_token
- function: pub::store_key
- function: pub::get_store_key
- struct: pub::SingleUsePaymentMethodToken
- struct: pub::SingleUseTokenKey
- impl: impl TryFrom<payment_methods::PaymentMethodCreateData> for PaymentMethodData
- impl: impl SingleUsePaymentMethodToken
- impl: impl SingleUseTokenKey
**crates/router/src/connector/stripe/transformers.rs**
Add:
- struct: pub::StripeCardToken
**crates/router/src/consts.rs**
Modify existing code
**crates/router/src/core/payment_methods.rs**
Add:
- function: private::create_single_use_tokenization_flow
- function: private::add_single_use_token_to_store
- function: private::get_single_use_token_from_store
**crates/router/src/core/payment_methods/transformers.rs**
Add:
- function: private::foreign_from
- impl: impl transformers::ForeignFrom<&payment_method_data::SingleUsePaymentMethodToken> for api_models::payment_methods::ConnectorTokenDetails
**crates/router/src/core/payments/tokenization.rs**
Add:
- function: pub::add_token_for_payment_method
**crates/router/src/types.rs**
Add:
- struct: pub::PspTokenResult
|
{"pr_number": 7485, "pr_title": "feat(payment_methods_v2): single use token implementation", "merged_at": "2025-04-01T12:37:38Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payment_methods.rs"], "domain": ["crates/hyperswitch_domain_models/src/payment_method_data.rs"], "core_business": ["crates/router/src/core/payment_methods.rs", "crates/router/src/core/payment_methods/transformers.rs", "crates/router/src/core/payments/tokenization.rs"], "connectors": ["crates/router/src/connector/stripe/transformers.rs"], "types": ["crates/common_types/src/payment_methods.rs", "crates/router/src/types.rs"], "other": ["api-reference-v2/openapi_spec.json", "crates/router/src/consts.rs"]}, "change_types": {"structs_added": 4, "functions_added": 10, "fields_added": 105, "imports_added": 3, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(revenue): Add support for hard-decline switch for revenue-recovery service
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
Add support for hard-decline switch for revenue-recovery service. If we encounter a hard-decline we would not call the external service . This PR also adds support for gsm apis in v2
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
- hit this curl
``` curl
curl --location 'http://localhost:8080/v2/gsm' \
--header 'Authorization: admin-api-key=test_admin' \
--header 'Content-Type: application/json' \
--data '{
"connector": "authipay",
"flow": "revenue_recovery",
"sub_flow": "sub_flow",
"code": "100",
"message": "Insuffiecient Funds",
"status": "Failure",
"decision": "retry",
"clear_pan_possible":false,
"step_up_possible":false,
"error_category": "hard_decline"
}'
```
- Response ```{"connector":"authipay","flow":"revenue_recovery","sub_flow":"sub_flow","code":"100","message":"Insuffiecient Funds","status":"Failure","router_error":null,"decision":"retry","step_up_possible":false,"unified_code":null,"unified_message":null,"error_category":"hard_decline","clear_pan_possible":false,"feature":"retry","feature_data":{"retry":{"step_up_possible":false,"clear_pan_possible":false,"alternate_network_possible":false,"decision":"retry"}}}% ```
- Db entry would be present
<img width="1017" height="385" alt="Screenshot 2025-08-21 at 5 45 52 PM" src="https://github.com/user-attachments/assets/7f9da820-f793-4e57-81dd-cd34608979e9" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/revenue_recovery/types.rs`
**2. Type Definitions**
- `crates/router/src/types/storage/revenue_recovery.rs`
**3. Other**
- `api-reference/v1/openapi_spec_v1.json`
- `api-reference/v2/openapi_spec_v2.json`
- `crates/common_enums/src/enums.rs`
- ... and 3 more files
**Code Patterns Applied:**
- Implement new functions (1 changes)
- Extend existing types with new fields (1 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 84a34925:
Files to modify:
**crates/common_enums/src/enums.rs**
Modify existing code
**crates/router/src/core/revenue_recovery/types.rs**
Modify existing code
**crates/router/src/lib.rs**
Modify existing code
**crates/router/src/routes/app.rs**
Add:
- function: pub::server
- impl: impl Gsm
**crates/router/src/routes/gsm.rs**
Modify existing code
**crates/router/src/types/storage/revenue_recovery.rs**
Modify existing code
|
{"pr_number": 8879, "pr_title": "feat(revenue): Add support for hard-decline switch for revenue-recovery service", "merged_at": "2025-08-21T18:16:12Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "connector"]}, "hierarchy": {"core_business": ["crates/router/src/core/revenue_recovery/types.rs"], "types": ["crates/router/src/types/storage/revenue_recovery.rs"], "other": ["api-reference/v1/openapi_spec_v1.json", "api-reference/v2/openapi_spec_v2.json", "crates/common_enums/src/enums.rs", "crates/router/src/lib.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/gsm.rs"]}, "change_types": {"functions_added": 1, "fields_added": 1, "imports_added": 1, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(router): [V2] Introduce V2Auth and use it for payment_methods_list_enabled
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [x] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Added an enum `V2Auth` (name subject to change) to encapsulate different authentication scenarios. Currently only works for Client Authentication using `publishable_key` and `ephemeral_key` in `Authorization` header
### Additional Changes
- [x] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
Closes #7037
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
1a. Payment method intent create request:
```bash
curl --location 'http://localhost:8080/v2/payment-methods/create-intent' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'X-Profile-Id: pro_hOlRnOdewwhXSV9l7TJJ' \
--header 'api-key: dev_XLbxcbVTqGoxcd8rVlt48b0QhbleB8ZuiqeSj2XXToUBXPDbVzeS0I5cMCaSnsYb' \
--data '{
"customer_id": "12345_cus_0194a71908247490bbc38202cece425b"
}'
```
1b. Payment method intent create response:
```json
{
"id": "12345_pm_0194a71929907523adbb332ddb699f0f",
"merchant_id": "cloth_seller_a8Sp7qm2hHWJbjAuffaz",
"customer_id": "12345_cus_0194a71908247490bbc38202cece425b",
"payment_method_type": null,
"payment_method_subtype": null,
"recurring_enabled": false,
"created": "2025-01-27T09:30:31.703Z",
"last_used_at": "2025-01-27T09:30:31.703Z",
"client_secret": "cs_0194a71929917da2b83fafc6c97388d1",
"payment_method_data": null
}
```
2a. List payment methods enabled request:
```bash
curl --location 'http://localhost:8080/v2/payment-methods/12345_pm_0194a71929907523adbb332ddb699f0f/list-enabled-payment-methods' \
--header 'Content-Type: application/json' \
--header 'x-profile-id: pro_hOlRnOdewwhXSV9l7TJJ' \
--header 'Authorization: publishable-key=pk_dev_8dc540967cb24672bea6d5afed3720e4, client-secret=cs_0194a71929917da2b83fafc6c97388d1' \
--header 'x-customer-id: 12345_cus_0194a71908247490bbc38202cece425b'
```
2b. List payment methods enabled response:
```json
{
"payment_methods_enabled": [
{
"payment_method_type": "card_redirect",
"payment_method_subtype": "card_redirect",
"required_fields": []
},
{
"payment_method_type": "card",
"payment_method_subtype": "credit",
"required_fields": [
{
"required_field": "payment_method_data.card.card_number",
"display_name": "card_number",
"field_type": "user_card_number",
"value": null
},
{
"required_field": "payment_method_data.card.card_exp_year",
"display_name": "card_exp_year",
"field_type": "user_card_expiry_year",
"value": null
},
{
"required_field": "payment_method_data.card.card_cvc",
"display_name": "card_cvc",
"field_type": "user_card_cvc",
"value": null
},
{
"required_field": "payment_method_data.card.card_exp_month",
"display_name": "card_exp_month",
"field_type": "user_card_expiry_month",
"value": null
}
]
},
{
"payment_method_type": "card",
"payment_method_subtype": "debit",
"required_fields": []
},
{
"payment_method_type": "wallet",
"payment_method_subtype": "google_pay",
"required_fields": []
},
{
"payment_method_type": "wallet",
"payment_method_subtype": "apple_pay",
"required_fields": []
},
{
"payment_method_type": "wallet",
"payment_method_subtype": "we_chat_pay",
"required_fields": []
},
{
"payment_method_type": "wallet",
"payment_method_subtype": "ali_pay",
"required_fields": []
},
{
"payment_method_type": "wallet",
"payment_method_subtype": "paypal",
"required_fields": []
},
{
"payment_method_type": "wallet",
"payment_method_subtype": "mb_way",
"required_fields": []
},
{
"payment_method_type": "pay_later",
"payment_method_subtype": "klarna",
"required_fields": []
},
{
"payment_method_type": "pay_later",
"payment_method_subtype": "affirm",
"required_fields": []
},
{
"payment_method_type": "pay_later",
"payment_method_subtype": "afterpay_clearpay",
"required_fields": []
},
{
"payment_method_type": "pay_later",
"payment_method_subtype": "walley",
"required_fields": []
},
{
"payment_method_type": "bank_redirect",
"payment_method_subtype": "giropay",
"required_fields": []
},
{
"payment_method_type": "bank_redirect",
"payment_method_subtype": "ideal",
"required_fields": []
},
{
"payment_method_type": "bank_redirect",
"payment_method_subtype": "eps",
"required_fields": []
},
{
"payment_method_type": "bank_redirect",
"payment_method_subtype": "bancontact_card",
"required_fields": []
},
{
"payment_method_type": "bank_redirect",
"payment_method_subtype": "przelewy24",
"required_fields": []
},
{
"payment_method_type": "bank_redirect",
"payment_method_subtype": "sofort",
"required_fields": []
},
{
"payment_method_type": "bank_redirect",
"payment_method_subtype": "blik",
"required_fields": []
},
{
"payment_method_type": "bank_redirect",
"payment_method_subtype": "trustly",
"required_fields": []
},
{
"payment_method_type": "bank_redirect",
"payment_method_subtype": "online_banking_finland",
"required_fields": []
},
{
"payment_method_type": "bank_redirect",
"payment_method_subtype": "online_banking_poland",
"required_fields": []
},
{
"payment_method_type": "bank_transfer",
"payment_method_subtype": "ach",
"required_fields": []
},
{
"payment_method_type": "bank_transfer",
"payment_method_subtype": "sepa",
"required_fields": []
},
{
"payment_method_type": "bank_transfer",
"payment_method_subtype": "bacs",
"required_fields": []
},
{
"payment_method_type": "bank_debit",
"payment_method_subtype": "ach",
"required_fields": []
},
{
"payment_method_type": "bank_debit",
"payment_method_subtype": "sepa",
"required_fields": []
},
{
"payment_method_type": "bank_debit",
"payment_method_subtype": "bacs",
"required_fields": []
},
{
"payment_method_type": "bank_debit",
"payment_method_subtype": "becs",
"required_fields": []
}
]
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/ephemeral_key.rs`
- `crates/api_models/src/events/payment.rs`
- `crates/api_models/src/payment_methods.rs`
- ... and 2 more files
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/ephemeral_key.rs`
**3. Core Business Logic**
- `crates/router/src/core/payment_methods.rs`
- `crates/router/src/core/payment_methods/transformers.rs`
- `crates/router/src/core/payments/helpers.rs`
- ... and 2 more files
**4. Type Definitions**
- `crates/router/src/types.rs`
- `crates/router/src/types/api/payments.rs`
- `crates/router/src/types/storage/ephemeral_key.rs`
**5. Utils**
- `crates/common_utils/src/events.rs`
- `crates/common_utils/src/id_type.rs`
- `crates/common_utils/src/id_type/client_secret.rs`
- ... and 2 more files
**6. Other**
- `api-reference-v2/openapi_spec.json`
- `crates/openapi/src/openapi_v2.rs`
- `crates/router/src/db.rs`
- ... and 8 more files
**Code Patterns Applied:**
- Define new data structures (4 changes)
- Implement new functions (28 changes)
- Extend existing types with new fields (50 changes)
- Add conditional logic for feature flags or filtering (7 changes)
**Detailed Identifier Changes:**
Commit cc9c2e96:
Files to modify:
**crates/api_models/src/ephemeral_key.rs**
Remove:
- struct: pub::EphemeralKeyCreateRequest
Add:
- struct: pub::ClientSecretCreateRequest
- enum: pub::ResourceId
**crates/api_models/src/events/payment.rs**
Modify existing code
**crates/api_models/src/payment_methods.rs**
Modify existing code
**crates/api_models/src/payments.rs**
Modify existing code
**crates/api_models/src/webhooks.rs**
Modify existing code
**crates/common_utils/src/events.rs**
Modify existing code
**crates/common_utils/src/id_type.rs**
Remove:
- mod: private::ephemeral_key
Add:
- mod: private::client_secret
**crates/common_utils/src/id_type/client_secret.rs**
Add:
- function: private::get_api_event_type
- function: pub::generate_redis_key
- impl: impl crate::events::ApiEventMetric for ClientSecretId
- impl: impl ClientSecretId
**crates/common_utils/src/id_type/ephemeral_key.rs**
Remove:
- function: private::get_api_event_type
- function: pub::generate_redis_key
- impl: impl crate::events::ApiEventMetric for EphemeralKeyId
- impl: impl EphemeralKeyId
**crates/common_utils/src/id_type/global_id/payment_methods.rs**
Modify existing code
**crates/diesel_models/src/ephemeral_key.rs**
Remove:
- struct: pub::EphemeralKeyTypeNew
- enum: pub::ResourceType
Add:
- function: pub::to_str
- struct: pub::ClientSecretTypeNew
- enum: pub::ResourceId
- impl: impl ResourceId
**crates/openapi/src/openapi_v2.rs**
Modify existing code
**crates/router/src/core/payment_methods.rs**
Remove:
- function: pub::payment_method_intent_confirm
**crates/router/src/core/payment_methods/transformers.rs**
Add:
- impl: impl transformers::ForeignFrom<(
hyperswitch_domain_models::payment_methods::PaymentMethodsSession,
Secret<String>,
)> for (session, client_secret)
**crates/router/src/core/payments/helpers.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/core/utils.rs**
Modify existing code
**crates/router/src/db.rs**
Modify existing code
**crates/router/src/db/ephemeral_key.rs**
Remove:
- function: private::get_ephemeral_key
- function: private::delete_ephemeral_key
- function: private::create_ephemeral_key
- function: private::get_ephemeral_key
Add:
- function: private::get_ephemeral_key
- function: private::delete_ephemeral_key
- function: private::delete_client_secret
- function: private::create_client_secret
- function: private::get_client_secret
- trait: pub::ClientSecretInterface
**crates/router/src/db/kafka_store.rs**
Remove:
- function: private::create_ephemeral_key
- function: private::get_ephemeral_key
Add:
- function: private::create_client_secret
- function: private::get_client_secret
**crates/router/src/lib.rs**
Modify existing code
**crates/router/src/routes/app.rs**
Modify existing code
**crates/router/src/routes/customers.rs**
Modify existing code
**crates/router/src/routes/ephemeral_key.rs**
Modify existing code
**crates/router/src/routes/payment_methods.rs**
Remove:
- function: pub::confirm_payment_method_intent_api
**crates/router/src/services/authentication.rs**
Remove:
- function: private::authenticate_and_fetch
- function: pub::is_ephemeral_or_publishible_auth
- impl: impl AuthenticateAndFetch<AuthenticationData, A> for EphemeralKeyAuth
Add:
- function: pub::get_auth_string_from_header
- function: private::authenticate_and_fetch
- function: private::authenticate_and_fetch
- enum: pub::V2Auth
- impl: impl AuthenticateAndFetch<AuthenticationData, A> for V2Auth
- impl: impl AuthenticateAndFetch<AuthenticationData, A> for Vec<V2Auth>
**crates/router/src/types.rs**
Modify existing code
**crates/router/src/types/api/payments.rs**
Modify existing code
**crates/router/src/types/storage/ephemeral_key.rs**
Modify existing code
|
{"pr_number": 7038, "pr_title": "feat(router): [V2] Introduce V2Auth and use it for payment_methods_list_enabled", "merged_at": "2025-01-31T08:37:18Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/ephemeral_key.rs", "crates/api_models/src/events/payment.rs", "crates/api_models/src/payment_methods.rs", "crates/api_models/src/payments.rs", "crates/api_models/src/webhooks.rs"], "database": ["crates/diesel_models/src/ephemeral_key.rs"], "core_business": ["crates/router/src/core/payment_methods.rs", "crates/router/src/core/payment_methods/transformers.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/utils.rs"], "types": ["crates/router/src/types.rs", "crates/router/src/types/api/payments.rs", "crates/router/src/types/storage/ephemeral_key.rs"], "utils": ["crates/common_utils/src/events.rs", "crates/common_utils/src/id_type.rs", "crates/common_utils/src/id_type/client_secret.rs", "crates/common_utils/src/id_type/ephemeral_key.rs", "crates/common_utils/src/id_type/global_id/payment_methods.rs"], "other": ["api-reference-v2/openapi_spec.json", "crates/openapi/src/openapi_v2.rs", "crates/router/src/db.rs", "crates/router/src/db/ephemeral_key.rs", "crates/router/src/db/kafka_store.rs", "crates/router/src/lib.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/customers.rs", "crates/router/src/routes/ephemeral_key.rs", "crates/router/src/routes/payment_methods.rs", "crates/router/src/services/authentication.rs"]}, "change_types": {"structs_added": 4, "functions_added": 28, "enums_added": 3, "fields_added": 50, "imports_added": 11, "conditionals_added": 7}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(connector): [Nuvei] Add Support for External 3DS Auth
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
MCA 3DS Server Configure
```
curl --location 'localhost:8080/account/postman_merchant_GHAction_0935f06b-58ee-4ee9-b230-69ddc48cda7b/business_profile/pro_IffiwhDHi6r0Vj4O0WtD' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_gnIK5foTkbvncFnEs5SAF3IPYZwKrxyOVrJ9PYBCgPS3kgXhmSZGZl5VXLU4W6R8' \
--data '{
"is_click_to_pay_enabled": true,
"authentication_product_ids": {
},
"authentication_connector_details": {
"authentication_connectors": [
"juspaythreedsserver"
],
"three_ds_requestor_url": "https://google.com"
},
"merchant_country_code": "004",
"merchant_category_code": "5411"
}'
```
Response
```
{
"merchant_id": "postman_merchant_GHAction_0935f06b-58ee-4ee9-b230-69ddc48cda7b",
"profile_id": "pro_IffiwhDHi6r0Vj4O0WtD",
"profile_name": "US_default",
"return_url": "https://duck.com/success",
"enable_payment_response_hash": true,
"payment_response_hash_key": "czwmXK9xwnPTENVfAtE41KWiUJ6QeWG1teSLiLIm0A6eXEXHzctt3DVpAT8vlQj1",
"redirect_to_merchant_with_http_post": false,
"webhook_details": {
"webhook_version": "1.0.1",
"webhook_username": "ekart_retail",
"webhook_password": "password_ekart@123",
"webhook_url": null,
"payment_created_enabled": true,
"payment_succeeded_enabled": true,
"payment_failed_enabled": true,
"payment_statuses_enabled": null,
"refund_statuses_enabled": null,
"payout_statuses_enabled": null
},
"metadata": null,
"routing_algorithm": null,
"intent_fulfillment_time": 900,
"frm_routing_algorithm": null,
"payout_routing_algorithm": null,
"applepay_verified_domains": null,
"session_expiry": 900,
"payment_link_config": null,
"authentication_connector_details": {
"authentication_connectors": [
"juspaythreedsserver"
],
"three_ds_requestor_url": "https://google.com",
"three_ds_requestor_app_url": null
},
"use_billing_as_payment_method_billing": true,
"extended_card_info_config": null,
"collect_shipping_details_from_wallet_connector": false,
"collect_billing_details_from_wallet_connector": false,
"always_collect_shipping_details_from_wallet_connector": false,
"always_collect_billing_details_from_wallet_connector": false,
"is_connector_agnostic_mit_enabled": false,
"payout_link_config": null,
"outgoing_webhook_custom_http_headers": null,
"tax_connector_id": null,
"is_tax_connector_enabled": false,
"is_network_tokenization_enabled": false,
"is_auto_retries_enabled": false,
"max_auto_retries_enabled": null,
"always_request_extended_authorization": null,
"is_click_to_pay_enabled": true,
"authentication_product_ids": {},
"card_testing_guard_config": {
"card_ip_blocking_status": "disabled",
"card_ip_blocking_threshold": 3,
"guest_user_card_blocking_status": "disabled",
"guest_user_card_blocking_threshold": 10,
"customer_id_blocking_status": "disabled",
"customer_id_blocking_threshold": 5,
"card_testing_guard_expiry": 3600
},
"is_clear_pan_retries_enabled": false,
"force_3ds_challenge": false,
"is_debit_routing_enabled": false,
"merchant_business_country": null,
"is_pre_network_tokenization_enabled": false,
"acquirer_configs": null,
"is_iframe_redirection_enabled": null,
"merchant_category_code": "5411",
"merchant_country_code": "004",
"dispute_polling_interval": null,
"is_manual_retry_enabled": null,
"always_enable_overcapture": null
}
```
Enable AuthenticationConfig For Merchant
```
curl --location 'http://localhost:8080/configs/merchants_eligible_for_authentication_service' \
--header 'Content-Type: application/json' \
--header 'api-key: test_admin' \
--data '{
"key": "merchants_eligible_for_authentication_service",
"value": "[\"postman_merchant_GHAction_0935f06b-58ee-4ee9-b230-69ddc48cda7b\"]"
}'
```
Response
```
{
"key": "merchants_eligible_for_authentication_service",
"value": "[\"postman_merchant_GHAction_0935f06b-58ee-4ee9-b230-69ddc48cda7b\"]"
}
```
Payments Create
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_gnIK5foTkbvncFnEs5SAF3IPYZwKrxyOVrJ9PYBCgPS3kgXhmSZGZl5VXLU4W6R8' \
--data-raw '{
"amount": 15100,
"currency": "USD",
"confirm": true,
"capture_method": "automatic",
"capture_on": "2022-09-10T10:11:12Z",
"customer_id": "1232134",
"email": "[email protected]",
"name": "John Doe",
"phone": "999999999",
"phone_country_code": "+1",
"description": "Its my first payment request",
"authentication_type": "three_ds",
"return_url": "https://google.com",
"request_external_three_ds_authentication":true,
"payment_method": "card",
"payment_method_type": "debit",
"browser_info": {
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"ip_address": "192.168.1.1",
"java_enabled": false,
"java_script_enabled": true,
"language": "en-US",
"color_depth": 24,
"screen_height": 1080,
"screen_width": 1920,
"time_zone": 330,
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
},
"payment_method_data": {
"card": {
"card_number": "2221008123677736",
"card_exp_month": "01",
"card_exp_year": "2026",
"card_holder_name": "CL-BRW2",
"card_cvc": "100"
}
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
},
"shipping": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
},
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
},
"setup_future_usage": "off_session"
}'
```
Response
```
{
"payment_id": "pay_TfIDb2R0sAQNUwARUcpI",
"merchant_id": "postman_merchant_GHAction_0935f06b-58ee-4ee9-b230-69ddc48cda7b",
"status": "requires_customer_action",
"amount": 15100,
"net_amount": 15100,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": null,
"connector": "nuvei",
"client_secret": "pay_TfIDb2R0sAQNUwARUcpI_secret_hwFa7qs1sgGTdobrZYaT",
"created": "2025-09-22T07:28:52.873Z",
"currency": "USD",
"customer_id": "1232134",
"customer": {
"id": "1232134",
"name": "John Doe",
"email": "[email protected]",
"phone": "999999999",
"phone_country_code": "+1"
},
"description": "Its my first payment request",
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": "off_session",
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": "card",
"payment_method_data": {
"card": {
"last4": "7736",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "222100",
"card_extended_bin": null,
"card_exp_month": "01",
"card_exp_year": "2026",
"card_holder_name": "CL-BRW2",
"payment_checks": null,
"authentication_data": null
},
"billing": null
},
"payment_token": "token_xmGGFmC6iZeAlKBfYqtH",
"shipping": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "joseph",
"last_name": "Doe",
"origin_zip": null
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": null
},
"billing": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "joseph",
"last_name": "Doe",
"origin_zip": null
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": null
},
"order_details": null,
"email": "[email protected]",
"name": "John Doe",
"phone": "999999999",
"return_url": "https://google.com/",
"authentication_type": "three_ds",
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"next_action": {
"type": "three_ds_invoke",
"three_ds_data": {
"three_ds_authentication_url": "http://localhost:8080/payments/pay_TfIDb2R0sAQNUwARUcpI/3ds/authentication",
"three_ds_authorize_url": "http://localhost:8080/payments/pay_TfIDb2R0sAQNUwARUcpI/postman_merchant_GHAction_0935f06b-58ee-4ee9-b230-69ddc48cda7b/authorize/nuvei",
"three_ds_method_details": {
"three_ds_method_key": "threeDSMethodData",
"three_ds_method_data_submission": false,
"three_ds_method_data": null,
"three_ds_method_url": null
},
"poll_config": {
"poll_id": "external_authentication_pay_TfIDb2R0sAQNUwARUcpI",
"delay_in_secs": 2,
"frequency": 5
},
"message_version": "2.2.0",
"directory_server_id": null
}
},
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "debit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "1232134",
"created_at": 1758526132,
"expires": 1758529732,
"secret": "epk_507c17e4351f4d058bc53b5b0b1db3ca"
},
"manual_retry_allowed": null,
"connector_transaction_id": null,
"frm_message": null,
"metadata": {
"udf1": "value1",
"login_date": "2019-09-10T10:11:12Z",
"new_customer": "true"
},
"connector_metadata": null,
"feature_metadata": null,
"reference_id": null,
"payment_link": null,
"profile_id": "pro_IffiwhDHi6r0Vj4O0WtD",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_kTACx9mG4wavPD5UpMt1",
"incremental_authorization_allowed": null,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": {
"authentication_flow": null,
"electronic_commerce_indicator": null,
"status": "pending",
"ds_transaction_id": "dc8d6144-f780-4ccf-b66f-f0cd7559e24c",
"version": "2.2.0",
"error_code": null,
"error_message": null
},
"external_3ds_authentication_attempted": true,
"expires_on": "2025-09-22T07:43:52.873Z",
"fingerprint": null,
"browser_info": {
"language": "en-US",
"time_zone": 330,
"ip_address": "192.168.1.1",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
"color_depth": 24,
"java_enabled": false,
"screen_width": 1920,
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
"screen_height": 1080,
"java_script_enabled": true
},
"payment_channel": null,
"payment_method_id": null,
"network_transaction_id": null,
"payment_method_status": null,
"updated": "2025-09-22T07:28:53.677Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": null,
"capture_before": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null,
"card_discovery": "manual",
"force_3ds_challenge": false,
"force_3ds_challenge_trigger": false,
"issuer_error_code": null,
"issuer_error_message": null,
"is_iframe_redirection_enabled": null,
"whole_connector_response": null,
"enable_partial_authorization": null,
"enable_overcapture": null,
"is_overcapture_enabled": null,
"network_details": null
}
```
Authenticate
```
curl --location 'https://93a6a1e56b62.ngrok-free.app/payments/pay_TfIDb2R0sAQNUwARUcpI/3ds/authentication' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: pk_dev_f7aa27c7cc134cac91ef3c653eafa136' \
--data '{
"client_secret": "pay_TfIDb2R0sAQNUwARUcpI_secret_hwFa7qs1sgGTdobrZYaT",
"device_channel": "BRW",
"threeds_method_comp_ind": "N"
}'
```
Response
```
{
"trans_status": "C",
"acs_url": "https://mock-three-ds-server-small-lake-1937.fly.dev/processor/mock/acs/trigger-otp?redirectUrl=http%3A%2F%2Flocalhost%3A8080%2Fpayments%2Fpay_TfIDb2R0sAQNUwARUcpI%2Fpostman_merchant_GHAction_0935f06b-58ee-4ee9-b230-69ddc48cda7b%2Fauthorize%2Fnuvei",
"challenge_request": "eyJtZXNzYWdlVHlwZSI6IkNSZXEiLCJ0aHJlZURTU2VydmVyVHJhbnNJRCI6ImRjOGQ2MTQ0LWY3ODAtNGNjZi1iNjZmLWYwY2Q3NTU5ZTI0YyIsImFjc1RyYW5zSUQiOiI5ODJkNGEzMi04NDJjLTQwN2EtOWUyNS1hODk4MWI5MmZjMDkiLCJjaGFsbGVuZ2VXaW5kb3dTaXplIjoiMDEiLCJtZXNzYWdlVmVyc2lvbiI6IjIuMi4wIn0=",
"challenge_request_key": "creq",
"acs_reference_number": "982d4a32-842c-407a-9e25-a8981b92fc09",
"acs_trans_id": "982d4a32-842c-407a-9e25-a8981b92fc09",
"three_dsserver_trans_id": "dc8d6144-f780-4ccf-b66f-f0cd7559e24c",
"acs_signed_content": null,
"three_ds_requestor_url": "https://google.com",
"three_ds_requestor_app_url": null
}
```
Call Juspay 3DS Server
```
curl --location 'https://mock-three-ds-server-small-lake-1937.fly.dev/processor/mock/acs/trigger-otp?redirectUrl=http%3A%2F%2Flocalhost%3A8080%2Fpayments%2Fpay_TfIDb2R0sAQNUwARUcpI%2Fpostman_merchant_GHAction_0935f06b-58ee-4ee9-b230-69ddc48cda7b%2Fauthorize%2Fnuvei' \
--header 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
--header 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
--header 'cache-control: no-cache' \
--header 'content-type: application/x-www-form-urlencoded' \
--header 'origin: https://juspay-3ds-sdk.netlify.app' \
--header 'pragma: no-cache' \
--header 'priority: u=0, i' \
--header 'referer: https://juspay-3ds-sdk.netlify.app/' \
--header 'sec-ch-ua: "Google Chrome";v="137", "Chromium";v="137", "Not/A)Brand";v="24"' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'sec-ch-ua-platform: "macOS"' \
--header 'sec-fetch-dest: iframe' \
--header 'sec-fetch-mode: navigate' \
--header 'sec-fetch-site: cross-site' \
--header 'sec-fetch-storage-access: active' \
--header 'upgrade-insecure-requests: 1' \
--header 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36' \
--header 'api-key: dev_gnIK5foTkbvncFnEs5SAF3IPYZwKrxyOVrJ9PYBCgPS3kgXhmSZGZl5VXLU4W6R8' \
--data-urlencode 'creq={"messageType":"CReq","threeDSServerTransID":"dc8d6144-f780-4ccf-b66f-f0cd7559e24c","acsTransID":"982d4a32-842c-407a-9e25-a8981b92fc09","challengeWindowSize":"01","messageVersion":"2.2.0"}'
```
Response
<img width="1160" height="873" alt="Screenshot 2025-09-22 at 1 01 21 PM" src="https://github.com/user-attachments/assets/0eb30eb6-4e09-4683-8dba-473a61706a18" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments.rs`
**2. External Connector Integration**
- `crates/common_enums/src/connector_enums.rs`
- `crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs`
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Implement new functions (2 changes)
- Extend existing types with new fields (12 changes)
**Detailed Identifier Changes:**
Commit ba74587e:
Files to modify:
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs**
Add:
- function: private::get_auth_data
- function: private::get_auth_data
- struct: pub::ExternalMpi
**crates/router/src/core/payments.rs**
Modify existing code
|
{"pr_number": 9468, "pr_title": "feat(connector): [Nuvei] Add Support for External 3DS Auth ", "merged_at": "2025-09-22T18:35:56Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs"]}, "change_types": {"structs_added": 1, "functions_added": 2, "fields_added": 12}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
docs: Updating logo for Api ref
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
### Additional Changes
- [X] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
Closes - #6742
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Other**
- `api-reference/logo/dark.svg`
- `api-reference/logo/light.svg`
- `docs/imgs/hyperswitch-logo-dark.svg`
- ... and 1 more files
|
{"pr_number": 6741, "pr_title": "docs: Updating logo for Api ref", "merged_at": "2024-12-05T11:09:38Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"other": ["api-reference/logo/dark.svg", "api-reference/logo/light.svg", "docs/imgs/hyperswitch-logo-dark.svg", "docs/imgs/hyperswitch-logo-light.svg"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
refactor(core): Added payment id in authentication router data
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Refactoring
## Description
<!-- Describe your changes in detail -->
Add payment id in authentication router data
This change is done to populate payment id in clickhouse authentication table and kafka to get authentication analytics since analytics is dependent on payment_id.
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
logs screenshots
kafka UI :
<img width="568" alt="Screenshot 2025-03-06 at 3 38 55 PM" src="https://github.com/user-attachments/assets/4fbb5442-76ba-4f9e-82be-a53a9da40b85" />
Clickhouse table:
<img width="479" alt="Screenshot 2025-03-06 at 3 40 38 PM" src="https://github.com/user-attachments/assets/f4bd774c-a003-4b9a-9ac7-eb8d54875377" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **payment** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/authentication.rs`
- `crates/router/src/core/authentication/transformers.rs`
- `crates/router/src/core/authentication/utils.rs`
- ... and 2 more files
**Code Patterns Applied:**
- Extend existing types with new fields (10 changes)
**Detailed Identifier Changes:**
Commit ea817060:
Files to modify:
**crates/router/src/core/authentication.rs**
Modify existing code
**crates/router/src/core/authentication/transformers.rs**
Modify existing code
**crates/router/src/core/authentication/utils.rs**
Modify existing code
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_confirm.rs**
Modify existing code
Commit 2f5b5f2d:
Files to modify:
**crates/router/src/core/authentication.rs**
Modify existing code
**crates/router/src/core/authentication/transformers.rs**
Modify existing code
**crates/router/src/core/authentication/utils.rs**
Modify existing code
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_confirm.rs**
Modify existing code
|
{"pr_number": 7441, "pr_title": "refactor(core): Added payment id in authentication router data", "merged_at": "2025-03-06T11:08:41Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["payment", "user"]}, "hierarchy": {"core_business": ["crates/router/src/core/authentication.rs", "crates/router/src/core/authentication/transformers.rs", "crates/router/src/core/authentication/utils.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/operations/payment_confirm.rs"]}, "change_types": {"fields_added": 10}, "has_identifier_data": true, "commits_matched": 2, "match_method": "pr_number"}
|
feat(payments): Add audit events for PaymentUpdate update
## Type of Change
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
This PR adds an Audit event for the PaymentUpdate operation.
### Additional Changes
- [x] This PR modifies the files below
- `crates/router/src/core/payments/operations/payment_update.rs`
- `crates/router/src/events/audit_events.rs`
## Motivation and Context
This PR fixes #4682
## How did you test it
- Hit the `Payments - Create` endpoint.
Make a payment with `"confirm": false`
```bash
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_LZcIA7XeMpnK5satp4CDvjcnHCaeKTBcosyuBBJaknZu1odhFo96cwS0nSdfzuJF' \
--data-raw '{
"amount": 6540,
"currency": "USD",
"confirm": false,
"capture_method": "automatic",
"capture_on": "2022-09-10T10:11:12Z",
"amount_to_capture": 6540,
"customer_id": "StripeCustomer",
"email": "[email protected]",
"name": "John Doe",
"phone": "999999999",
"phone_country_code": "+65",
"description": "Its my first payment request",
"authentication_type": "no_three_ds",
"return_url": "https://google.com",
"payment_method": "card",
"payment_method_type": "credit",
"payment_method_data": {
"card": {
"card_number": "4242424242424242",
"card_exp_month": "10",
"card_exp_year": "25",
"card_holder_name": "joseph Doe",
"card_cvc": "123"
}
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
},
"shipping": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
},
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
},
"profile_id": "pro_v5sFoHe80OeiUlIonocM"
}'
```
- Now hit the `Payments - Update` endpoint.
```bash
{
"amount": 20000,
"currency": "SGD",
"confirm": false,
"capture_method": "automatic",
"capture_on": "2022-09-10T10:11:12Z",
"amount_to_capture": 20000,
"email": "[email protected]",
"name": "joseph Doe",
"phone": "8888888888",
"phone_country_code": "+65",
"description": "Its my first payment request",
"authentication_type": "no_three_ds",
"payment_method": "card",
"return_url": "https://google.com",
"payment_method_data": {
"card": {
"card_number": "4242424242424242",
"card_exp_month": "10",
"card_exp_year": "25",
"card_holder_name": "joseph Doe",
"card_cvc": "123"
}
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US"
}
},
"shipping": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US"
}
},
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
}
}
```
Audit log will get generated and can be viewed in hyperswitch-audit-events topic in kafka with `PaymentUpdate` event-type.
Amount parameter can be verified in the event.
<img width="1424" alt="Screenshot 2024-11-07 at 12 42 34 PM" src="https://github.com/user-attachments/assets/e4dfdef5-495b-48ad-938a-8053d0271408">
<img width="1458" alt="Screenshot 2024-11-07 at 12 42 42 PM" src="https://github.com/user-attachments/assets/2b39e2bb-6200-4184-84ed-0b913d0f437f">
Now payment can be completed by hitting the `Payments - Confirm` endpoint.
## Checklist
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
|
To implement this **payment** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments/operations/payment_update.rs`
**2. Other**
- `crates/router/src/events/audit_events.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (3 changes)
**Detailed Identifier Changes:**
Commit 1be2654b:
Files to modify:
**crates/router/src/core/payments/operations/payment_update.rs**
Modify existing code
**crates/router/src/events/audit_events.rs**
Modify existing code
|
{"pr_number": 6426, "pr_title": "feat(payments): Add audit events for PaymentUpdate update", "merged_at": "2024-11-08T13:37:22Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "user"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/operations/payment_update.rs"], "other": ["crates/router/src/events/audit_events.rs"]}, "change_types": {"fields_added": 3, "imports_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(router): add `merchant_configuration_id` in netcetera metadata and make other merchant configurations optional
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
add `merchant_configuration_id` in netcetera metadata and make other merchant configurations optional
This would allow merchant to do the required configuration on netcetera dashboard, and just provide us the merchant_configuration_id to process the payment authentications
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [x] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Tested Manually
1. Configure netcetera with merchant_configuration_id and don't send other configuration details except live endpoint prefix and test the sanity 3DS authentication
Authentication request CURL
```
curl --location '{{BASE_URL}}/payments/{{PAYMENT_ID}}/3ds/authentication' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: {{PUBLISHABLE_API_KEY}}' \
--data '{
"client_secret": "pay_5CJ7ExVzDnwBiAw4Gtku_secret_InmW7DASEWY2eZy1xBOb",
"device_channel": "BRW",
"threeds_method_comp_ind": "Y"
}'
```
Response
```
{
"trans_status": "Y",
"acs_url": null,
"challenge_request": null,
"acs_reference_number": null,
"acs_trans_id": null,
"three_dsserver_trans_id": "a111d741-febd-4986-8a39-fac36924c33a",
"acs_signed_content": null,
"three_ds_requestor_url": "https://google.com/"
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments/helpers.rs`
- `crates/router/src/core/payments/operations/payment_confirm.rs`
**2. External Connector Integration**
- `crates/connector_configs/src/common_config.rs`
- `crates/connector_configs/src/connector.rs`
- `crates/connector_configs/toml/development.toml`
- ... and 3 more files
**Code Patterns Applied:**
- Extend existing types with new fields (17 changes)
**Detailed Identifier Changes:**
Commit 57ab8693:
Files to modify:
**crates/connector_configs/src/common_config.rs**
Modify existing code
**crates/connector_configs/src/connector.rs**
Modify existing code
**crates/router/src/connector/netcetera/transformers.rs**
Modify existing code
**crates/router/src/core/payments/helpers.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_confirm.rs**
Modify existing code
|
{"pr_number": 7347, "pr_title": "feat(router): add `merchant_configuration_id` in netcetera metadata and make other merchant configurations optional", "merged_at": "2025-02-21T19:52:15Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/operations/payment_confirm.rs"], "connectors": ["crates/connector_configs/src/common_config.rs", "crates/connector_configs/src/connector.rs", "crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml", "crates/router/src/connector/netcetera/transformers.rs"]}, "change_types": {"fields_added": 17}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
ci: minor refactors and improvements
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [x] CI/CD
## Description
<!-- Describe your changes in detail -->
This PR includes minor refactors and improvements to our CI workflows:
1. The Docker build workflow files are not being used, and have been removed.
2. The connector sanity and UI sanity workflows are not being actively used. I didn't want to remove them completely, so instead "archived" them for later reference.
3. Dependency updates: The versions of the actions that we use have been updated.
4. Replaced usages of `baptiste0928/cargo-install` with `taiki-e/install-action` to install tools. This is done because if the binary is not available in cache, the `baptiste0928/cargo-install` action builds it from source, which can take a longer amount of time, as compared to `taiki-e/install-action`, which should be deterministic since it pulls pre-built binaries from releases.
5. We were using the `CARGO_REGISTRIES_CRATES_IO_PROTOCOL` environment variable to enable sparse index, but since it is enabled by default on recent Rust versions, I've removed it.
6. Replaced usages of `postgres:latest` and `redis:latest` with `postgres:alpine` and `redis:alpine` respectively, to slightly reduce bandwidth used when pulling images.
7. The Postman workflow has a `workflow_dispatch` trigger, which hasn't been used in quite a while, so I've removed it.
8. The `CI-push` workflow was missing some environment variables that allowed us to handle flaky CI failures due to network issues, so I copied them from the `CI-pr` workflow.
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
Minor improvements and dependency updates to the CI workflows.
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
N/A
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **connector_integration** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `.github/workflows/connector-sanity-tests.yml`
- `.github/workflows/connector-ui-sanity-tests.yml`
**2. Tests**
- `.github/workflows/cypress-tests-runner.yml`
**3. Configuration Files**
- `.github/workflows/CI-pr.yml`
- `.github/workflows/CI-push.yml`
- `.github/workflows/auto-release-tag.yml`
- ... and 8 more files
**4. Other**
- `.github/workflows/migration-check.yaml`
- `Dockerfile`
**Code Patterns Applied:**
- Extend existing types with new fields (60 changes)
|
{"pr_number": 7308, "pr_title": "ci: minor refactors and improvements", "merged_at": "2025-02-24T22:05:59Z", "intent": {"feature_type": "connector_integration", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"connectors": [".github/workflows/connector-sanity-tests.yml", ".github/workflows/connector-ui-sanity-tests.yml"], "tests": [".github/workflows/cypress-tests-runner.yml"], "config": [".github/workflows/CI-pr.yml", ".github/workflows/CI-push.yml", ".github/workflows/auto-release-tag.yml", ".github/workflows/create-hotfix-branch.yml", ".github/workflows/create-hotfix-tag.yml", ".github/workflows/manual-release.yml", ".github/workflows/postman-collection-runner.yml", ".github/workflows/pr-convention-checks.yml", ".github/workflows/pr-title-spell-check.yml", ".github/workflows/release-nightly-version-reusable.yml", ".github/workflows/release-stable-version.yml"], "other": [".github/workflows/migration-check.yaml", "Dockerfile"]}, "change_types": {"fields_added": 60}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
refactor: move merchant_key_store table to accounts schema
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Moved `merchant_key_store` table to accounts schema.
Since `merchant_account` is already moved to schema. `merchant_key_store` must also be present there.
Other changes:
* introduced `ShouldCollectCvvDuringPayment` bool wrapper for `should_collect_cvv_during_payment` column in `business_profile`. And made it an optional field.
* It is being made optional since it is an optional merchant config. Default is true.
### Additional Changes
- [ ] This PR modifies the API contract
- [x] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Created Organization, MerchantAccount, BusinessProfile and MCA in v1 and fetched the same records in v2.
1. Create MerchantAccount in v1 (organization and profile will be created internally).
```
curl --location 'http://localhost:8080/accounts' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: test_admin' \
--data-raw '{
"merchant_id": "merchant_1744042374",
"locker_id": "m0010",
"merchant_name": "NewAge Retailer",
"merchant_details": {
"primary_contact_person": "John Test",
"primary_email": "[email protected]",
"primary_phone": "sunt laborum",
"secondary_contact_person": "John Test2",
"secondary_email": "[email protected]",
"secondary_phone": "cillum do dolor id",
"website": "www.example.com",
"about_business": "Online Retail with a wide selection of organic products for North America",
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US"
}
},
"return_url": "https://google.com/success",
"webhook_details": {
"webhook_version": "1.0.1",
"webhook_username": "ekart_retail",
"webhook_password": "password_ekart@123",
"payment_created_enabled": true,
"payment_succeeded_enabled": true,
"payment_failed_enabled": true
},
"routing_algorithm": {
"type": "single",
"data": "stripe"
},
"sub_merchants_enabled": false,
"metadata": {
"city": "NY",
"unit": "245"
}
}'
```
Response:
```
{
"merchant_id": "merchant_1744033814",
"merchant_name": "NewAge Retailer",
"return_url": "https://google.com/success",
"enable_payment_response_hash": true,
"payment_response_hash_key": "nLINoWmKxPXiJvCuw3fDRe8RiELDb1N8ZM85pXj399Z2vPluiXa7KNSFJKd8KvxH",
"redirect_to_merchant_with_http_post": false,
"merchant_details": {
"primary_contact_person": "John Test",
"primary_phone": "sunt laborum",
"primary_email": "[email protected]",
"secondary_contact_person": "John Test2",
"secondary_phone": "cillum do dolor id",
"secondary_email": "[email protected]",
"website": "www.example.com",
"about_business": "Online Retail with a wide selection of organic products for North America",
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": null,
"last_name": null
}
},
"webhook_details": {
"webhook_version": "1.0.1",
"webhook_username": "ekart_retail",
"webhook_password": "password_ekart@123",
"webhook_url": null,
"payment_created_enabled": true,
"payment_succeeded_enabled": true,
"payment_failed_enabled": true
},
"payout_routing_algorithm": null,
"sub_merchants_enabled": false,
"parent_merchant_id": null,
"publishable_key": "pk_dev_8ee3799e377d43e9a9fc17fd1ade2a60",
"metadata": {
"city": "NY",
"unit": "245",
"compatible_connector": null
},
"locker_id": "m0010",
"primary_business_details": [],
"frm_routing_algorithm": null,
"organization_id": "org_rB3KXc8vko9DJUSk2T0l",
"is_recon_enabled": false,
"default_profile": "pro_23Cji2XVTvRx8hehqmCY",
"recon_status": "not_requested",
"pm_collect_link_config": null,
"product_type": "orchestration"
}
```
2. Create Mca in v1
```
curl --location 'http://localhost:8080/account/merchant_1689854244/connectors' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: test_admin' \
--data '{
"connector_type": "fiz_operations",
"connector_name": "stripe",
"connector_account_details": {
"auth_type": "HeaderKey",
"api_key": "connector_api_key"
},
"test_mode": false,
"disabled": false,
"payment_methods_enabled": [
{
"payment_method": "card",
"payment_method_types": [
{
"payment_method_type": "credit",
"card_networks": [
"Visa",
"Mastercard"
],
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "debit",
"card_networks": [
"Visa",
"Mastercard"
],
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
},
{
"payment_method": "pay_later",
"payment_method_types": [
{
"payment_method_type": "klarna",
"payment_experience": "redirect_to_url",
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "affirm",
"payment_experience": "redirect_to_url",
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "afterpay_clearpay",
"payment_experience": "redirect_to_url",
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
}
],
"metadata": {
"city": "NY",
"unit": "245"
}
}'
```
Response:
```
{
"connector_type": "fiz_operations",
"connector_name": "stripe",
"connector_label": "stripe_default",
"merchant_connector_id": "mca_IUj9RpsESEhHkgG7QQoW",
"profile_id": "pro_23Cji2XVTvRx8hehqmCY",
"connector_account_details": {
"auth_type": "HeaderKey",
"api_key": "sk*******************************************************************************************************np"
},
"payment_methods_enabled": [
{
"payment_method": "card",
"payment_method_types": [
{
"payment_method_type": "credit",
"payment_experience": null,
"card_networks": [
"Visa",
"Mastercard"
],
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "debit",
"payment_experience": null,
"card_networks": [
"Visa",
"Mastercard"
],
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
},
{
"payment_method": "pay_later",
"payment_method_types": [
{
"payment_method_type": "klarna",
"payment_experience": "redirect_to_url",
"card_networks": null,
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "affirm",
"payment_experience": "redirect_to_url",
"card_networks": null,
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "afterpay_clearpay",
"payment_experience": "redirect_to_url",
"card_networks": null,
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
}
],
"connector_webhook_details": null,
"metadata": {
"city": "NY",
"unit": "245"
},
"test_mode": false,
"disabled": false,
"frm_configs": null,
"business_country": null,
"business_label": null,
"business_sub_label": null,
"applepay_verified_domains": null,
"pm_auth_config": null,
"status": "active",
"additional_merchant_data": null,
"connector_wallets_details": null
}
```
4. Fetch Organization in v2
```
curl --location 'http://localhost:8080/v2/organization/org_rB3KXc8vko9DJUSk2T0l' \
--header 'authorization: admin-api-key=test_admin'
```
Response:
```
{
"id": "org_rB3KXc8vko9DJUSk2T0l",
"organization_name": null,
"organization_details": null,
"metadata": null,
"modified_at": "2025-04-07 13:50:14.308268",
"created_at": "2025-04-07 13:50:14.30826"
}
```
5. Fetch MerchantAccount in v2
```
curl --location 'http://localhost:8080/v2/merchant-accounts/merchant_1744033814' \
--header 'authorization: admin-api-key=test_admin'
```
Response:
```
{
"id": "merchant_1744033814",
"merchant_name": "NewAge Retailer",
"merchant_details": {
"primary_contact_person": "John Test",
"primary_phone": "sunt laborum",
"primary_email": "[email protected]",
"secondary_contact_person": "John Test2",
"secondary_phone": "cillum do dolor id",
"secondary_email": "[email protected]",
"website": "www.example.com",
"about_business": "Online Retail with a wide selection of organic products for North America",
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": null,
"last_name": null
}
},
"publishable_key": "pk_dev_8ee3799e377d43e9a9fc17fd1ade2a60",
"metadata": {
"city": "NY",
"unit": "245",
"compatible_connector": null
},
"organization_id": "org_rB3KXc8vko9DJUSk2T0l",
"recon_status": "not_requested",
"product_type": "orchestration"
}
```
6. Fetch businessProfile in v2
```
curl --location 'http://localhost:8080/v2/profiles/pro_23Cji2XVTvRx8hehqmCY' \
--header 'x-merchant-id: merchant_1744033814' \
--header 'authorization: admin-api-key=test_admin'
```
Response:
```
{
"merchant_id": "merchant_1744033814",
"id": "pro_23Cji2XVTvRx8hehqmCY",
"profile_name": "default",
"return_url": "https://google.com/success",
"enable_payment_response_hash": true,
"payment_response_hash_key": "nLINoWmKxPXiJvCuw3fDRe8RiELDb1N8ZM85pXj399Z2vPluiXa7KNSFJKd8KvxH",
"redirect_to_merchant_with_http_post": false,
"webhook_details": {
"webhook_version": "1.0.1",
"webhook_username": "ekart_retail",
"webhook_password": "password_ekart@123",
"webhook_url": null,
"payment_created_enabled": true,
"payment_succeeded_enabled": true,
"payment_failed_enabled": true
},
"metadata": null,
"applepay_verified_domains": null,
"session_expiry": 900,
"payment_link_config": null,
"authentication_connector_details": null,
"use_billing_as_payment_method_billing": true,
"extended_card_info_config": null,
"collect_shipping_details_from_wallet_connector_if_required": false,
"collect_billing_details_from_wallet_connector_if_required": false,
"always_collect_shipping_details_from_wallet_connector": false,
"always_collect_billing_details_from_wallet_connector": false,
"is_connector_agnostic_mit_enabled": false,
"payout_link_config": null,
"outgoing_webhook_custom_http_headers": null,
"order_fulfillment_time": null,
"order_fulfillment_time_origin": null,
"tax_connector_id": null,
"is_tax_connector_enabled": false,
"is_network_tokenization_enabled": false,
"should_collect_cvv_during_payment": null,
"is_click_to_pay_enabled": false,
"authentication_product_ids": null,
"card_testing_guard_config": {
"card_ip_blocking_status": "disabled",
"card_ip_blocking_threshold": 3,
"guest_user_card_blocking_status": "disabled",
"guest_user_card_blocking_threshold": 10,
"customer_id_blocking_status": "disabled",
"customer_id_blocking_threshold": 5,
"card_testing_guard_expiry": 3600
},
"is_clear_pan_retries_enabled": false,
"is_debit_routing_enabled": false,
"merchant_business_country": null
}
```
7. Fetch Mca in v2
```
curl --location 'http://localhost:8080/v2/connector-accounts/mca_IUj9RpsESEhHkgG7QQoW' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-merchant-id: merchant_1744033814' \
--header 'x-profile-id: pro_23Cji2XVTvRx8hehqmCY' \
--header 'authorization: admin-api-key=test_admin'
```
Response:
```
{
"connector_type": "fiz_operations",
"connector_name": "stripe",
"connector_label": "stripe_default",
"id": "mca_IUj9RpsESEhHkgG7QQoW",
"profile_id": "pro_23Cji2XVTvRx8hehqmCY",
"connector_account_details": {
"auth_type": "HeaderKey",
"api_key": "sk*******************************************************************************************************np"
},
"payment_methods_enabled": [
{
"payment_method_type": "card",
"payment_method_subtypes": [
{
"payment_method_subtype": "credit",
"payment_experience": null,
"card_networks": [
"Visa",
"Mastercard"
],
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_subtype": "debit",
"payment_experience": null,
"card_networks": [
"Visa",
"Mastercard"
],
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
},
{
"payment_method_type": "pay_later",
"payment_method_subtypes": [
{
"payment_method_subtype": "klarna",
"payment_experience": "redirect_to_url",
"card_networks": null,
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_subtype": "affirm",
"payment_experience": "redirect_to_url",
"card_networks": null,
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_subtype": "afterpay_clearpay",
"payment_experience": "redirect_to_url",
"card_networks": null,
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
}
],
"connector_webhook_details": null,
"metadata": {
"city": "NY",
"unit": "245"
},
"disabled": false,
"frm_configs": null,
"applepay_verified_domains": null,
"pm_auth_config": null,
"status": "active",
"additional_merchant_data": null,
"connector_wallets_details": null,
"feature_metadata": null
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/admin.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/business_profile.rs`
- `crates/diesel_models/src/schema_v2.rs`
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/business_profile.rs`
**4. Core Business Logic**
- `crates/router/src/core/admin.rs`
**5. Type Definitions**
- `crates/common_types/src/payment_methods.rs`
- `crates/common_types/src/primitive_wrappers.rs`
- `crates/router/src/types/payment_methods.rs`
**6. Other**
- `api-reference-v2/openapi_spec.json`
- `crates/router/src/db.rs`
- `crates/router/src/db/merchant_key_store.rs`
- ... and 2 more files
**Code Patterns Applied:**
- Define new data structures (2 changes)
- Implement new functions (8 changes)
- Extend existing types with new fields (46 changes)
**Detailed Identifier Changes:**
Commit e88672c9:
Files to modify:
**crates/api_models/src/admin.rs**
Modify existing code
**crates/common_types/src/payment_methods.rs**
Add:
- function: private::from_sql
- function: private::to_sql
- function: private::from
- function: private::from
- struct: private::RequestPaymentMethodTypesV1
- enum: private::PaymentMethodsEnabledHelper
- impl: impl FromSql<Json, diesel::pg::Pg> for PaymentMethodsEnabled
- impl: impl ToSql<Json, diesel::pg::Pg> for PaymentMethodsEnabled
- impl: impl From<PaymentMethodsEnabledHelper> for PaymentMethodsEnabled
- impl: impl From<RequestPaymentMethodTypesV1> for RequestPaymentMethodTypes
**crates/common_types/src/primitive_wrappers.rs**
Add:
- function: private::deref
- function: private::to_sql
- function: private::from_sql
- function: private::default
- struct: pub::ShouldCollectCvvDuringPayment
- impl: impl Deref for ShouldCollectCvvDuringPayment
- impl: impl diesel::serialize::ToSql<diesel::sql_types::Bool, DB> for ShouldCollectCvvDuringPayment
- impl: impl diesel::deserialize::FromSql<diesel::sql_types::Bool, DB> for ShouldCollectCvvDuringPayment
- impl: impl Default for ShouldCollectCvvDuringPayment
**crates/diesel_models/src/business_profile.rs**
Modify existing code
**crates/diesel_models/src/schema_v2.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/business_profile.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/db.rs**
Modify existing code
**crates/router/src/db/merchant_key_store.rs**
Modify existing code
**crates/router/src/types/payment_methods.rs**
Modify existing code
|
{"pr_number": 7746, "pr_title": "refactor: move merchant_key_store table to accounts schema", "merged_at": "2025-04-08T12:20:57Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/admin.rs"], "database": ["crates/diesel_models/src/business_profile.rs", "crates/diesel_models/src/schema_v2.rs"], "domain": ["crates/hyperswitch_domain_models/src/business_profile.rs"], "core_business": ["crates/router/src/core/admin.rs"], "types": ["crates/common_types/src/payment_methods.rs", "crates/common_types/src/primitive_wrappers.rs", "crates/router/src/types/payment_methods.rs"], "other": ["api-reference-v2/openapi_spec.json", "crates/router/src/db.rs", "crates/router/src/db/merchant_key_store.rs", "v2_migrations/2024-08-28-081837_add_not_null_constraints_to_v2_columns/down.sql", "v2_migrations/2024-08-28-081837_add_not_null_constraints_to_v2_columns/up.sql"]}, "change_types": {"structs_added": 2, "functions_added": 8, "enums_added": 1, "fields_added": 46, "imports_added": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(payouts): populate additional payout method data during recurring payouts
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
This PR fixes the missing additional payout method details in the response when using stored payment methods (via PSP tokens) for processing payouts.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
Sends back additional payout method details (if they exist) when using PSP tokens for processing payouts.
## How did you test it?
<details>
<summary>1. Migrate payment method</summary>
cURL
curl --location --request POST 'http://localhost:8080/payment_methods/migrate-batch' \
--header 'api-key: test_admin' \
--form 'merchant_id="merchant_1758125250"' \
--form 'merchant_connector_id="mca_k6axPokgVgx67z9hmNkj"' \
--form 'file=@"tokens__migrate.csv"'
[tokens__migrate.csv](https://github.com/user-attachments/files/22390753/tokens__migrate.csv)
Response
[
{
"line_number": 1,
"payment_method_id": "pm_YspT9VnuMG0XecrqkhZs",
"payment_method": "card",
"payment_method_type": "credit",
"customer_id": "cus_AdzK04pgB274z931M7JL",
"migration_status": "Success",
"card_number_masked": "429318 xxxx 0008",
"card_migrated": null,
"network_token_migrated": true,
"connector_mandate_details_migrated": true,
"network_transaction_id_migrated": true
}
]
</details>
<details>
<summary>2. Update token to make it payout eligible</summary>
cURL
curl --location --request POST 'http://localhost:8080/payment_methods/update-batch' \
--header 'api-key: test_admin' \
--form 'merchant_id="merchant_1758125250"' \
--form 'merchant_connector_id="mca_k6axPokgVgx67z9hmNkj"' \
--form 'file=@"tokens__update.csv"'
[tokens__update.csv](https://github.com/user-attachments/files/22390755/tokens__update.csv)
Response
[
{
"payment_method_id": "pm_YspT9VnuMG0XecrqkhZs",
"status": "active",
"network_transaction_id": "512560415387748",
"connector_mandate_details": {
"payouts": {
"mca_k6axPokgVgx67z9hmNkj": {
"transfer_method_id": "PQJWQCVLMZD3LTT5"
}
},
"mca_k6axPokgVgx67z9hmNkj": {
"mandate_metadata": null,
"payment_method_type": "credit",
"connector_mandate_id": "PQJWQCVLMZD3LTT5",
"connector_mandate_status": null,
"original_payment_authorized_amount": null,
"original_payment_authorized_currency": null,
"connector_mandate_request_reference_id": null
}
},
"update_status": "Success",
"line_number": 1
}
]
</details>
<details>
<summary>3. Create payout using payment_method_id</summary>
cURL
curl --location --request POST 'http://localhost:8080/payouts/create' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_1cELx0sYKhaGJNBh3actVbPYXkFnnOxhQbn6JT6APnI2DPqDvncMJndF2vyFuQjs' \
--data '{"payout_method_id":"pm_YspT9VnuMG0XecrqkhZs","amount":1,"currency":"EUR","customer_id":"cus_AdzK04pgB274z931M7JL","phone_country_code":"+65","description":"Its my first payout request","connector":["adyenplatform"],"entity_type":"Individual","recurring":true,"metadata":{"ref":"123"},"confirm":true,"auto_fulfill":true,"profile_id":"pro_kgnfc6bjRh1yoyyCuuYS","billing":{"address":{"line1":"Raadhuisplein","line2":"92","city":"Hoogeveen","state":"FL","zip":"7901 BW","country":"NL","first_name":"John","last_name":"Doe"},"phone":{"number":"0650242319","country_code":"+31"}}}'
Response (must have payout_method_data)
{"payout_id":"payout_uIYW6dcWF0UESBtvayES","merchant_id":"merchant_1758125250","merchant_order_reference_id":null,"amount":1,"currency":"EUR","connector":"adyenplatform","payout_type":"card","payout_method_data":{"card":{"card_issuer":"WESTPAC BANKING CORPORATION","card_network":"Visa","card_type":"CREDIT","card_issuing_country":"AUSTRALIA","bank_code":null,"last4":"0008","card_isin":"429318","card_extended_bin":null,"card_exp_month":"3","card_exp_year":"2030","card_holder_name":"Albert Klaassen"}},"billing":{"address":{"city":"Hoogeveen","country":"NL","line1":"Raadhuisplein","line2":"92","line3":null,"zip":"7901 BW","state":"FL","first_name":"John","last_name":"Doe","origin_zip":null},"phone":{"number":"0650242319","country_code":"+31"},"email":null},"auto_fulfill":true,"customer_id":"cus_AdzK04pgB274z931M7JL","customer":{"id":"cus_AdzK04pgB274z931M7JL","name":"Albert Klaassen","email":null,"phone":null,"phone_country_code":null},"client_secret":"payout_payout_uIYW6dcWF0UESBtvayES_secret_2Rp8hjZfSHFNC7Y7U5eo","return_url":null,"business_country":null,"business_label":null,"description":"Its my first payout request","entity_type":"Individual","recurring":true,"metadata":{"ref":"123"},"merchant_connector_id":"mca_k6axPokgVgx67z9hmNkj","status":"failed","error_message":"Unauthorized","error_code":"00_401","profile_id":"pro_kgnfc6bjRh1yoyyCuuYS","created":"2025-09-17T16:43:54.344Z","connector_transaction_id":null,"priority":null,"payout_link":null,"email":null,"name":"Albert Klaassen","phone":null,"phone_country_code":null,"unified_code":"UE_9000","unified_message":"Something went wrong","payout_method_id":"pm_YspT9VnuMG0XecrqkhZs"}
Webhooks response (must have payout_method_data)
{"merchant_id":"merchant_1758125250","event_id":"evt_0199588fabf176d1ad39603c17064d2d","event_type":"payout_failed","content":{"type":"payout_details","object":{"payout_id":"payout_uIYW6dcWF0UESBtvayES","merchant_id":"merchant_1758125250","merchant_order_reference_id":null,"amount":1,"currency":"EUR","connector":"adyenplatform","payout_type":"card","payout_method_data":{"card":{"card_issuer":"WESTPAC BANKING CORPORATION","card_network":"Visa","card_type":"CREDIT","card_issuing_country":"AUSTRALIA","bank_code":null,"last4":"0008","card_isin":"429318","card_extended_bin":null,"card_exp_month":"3","card_exp_year":"2030","card_holder_name":"Albert Klaassen"}},"billing":{"address":{"city":"Hoogeveen","country":"NL","line1":"Raadhuisplein","line2":"92","line3":null,"zip":"7901 BW","state":"FL","first_name":"John","last_name":"Doe","origin_zip":null},"phone":{"number":"0650242319","country_code":"+31"},"email":null},"auto_fulfill":true,"customer_id":"cus_AdzK04pgB274z931M7JL","customer":{"id":"cus_AdzK04pgB274z931M7JL","name":"Albert Klaassen","email":null,"phone":null,"phone_country_code":null},"client_secret":"payout_payout_uIYW6dcWF0UESBtvayES_secret_2Rp8hjZfSHFNC7Y7U5eo","return_url":null,"business_country":null,"business_label":null,"description":"Its my first payout request","entity_type":"Individual","recurring":true,"metadata":{"ref":"123"},"merchant_connector_id":"mca_k6axPokgVgx67z9hmNkj","status":"failed","error_message":"Unauthorized","error_code":"00_401","profile_id":"pro_kgnfc6bjRh1yoyyCuuYS","created":"2025-09-17T16:43:54.344Z","connector_transaction_id":null,"priority":null,"payout_link":null,"email":null,"name":"Albert Klaassen","phone":null,"phone_country_code":null,"unified_code":"UE_9000","unified_message":"Something went wrong","payout_method_id":"pm_YspT9VnuMG0XecrqkhZs"}},"timestamp":"2025-09-17T16:43:54.737Z"}
</details>
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/payment_method_data.rs`
**2. Core Business Logic**
- `crates/router/src/core/payouts.rs`
**Code Patterns Applied:**
- Implement new functions (1 changes)
- Extend existing types with new fields (11 changes)
**Detailed Identifier Changes:**
Commit bdb04adc:
Files to modify:
**crates/hyperswitch_domain_models/src/payment_method_data.rs**
Add:
- function: pub::get_additional_payout_method_data
**crates/router/src/core/payouts.rs**
Modify existing code
|
{"pr_number": 9426, "pr_title": "fix(payouts): populate additional payout method data during recurring payouts", "merged_at": "2025-09-18T14:29:16Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/payment_method_data.rs"], "core_business": ["crates/router/src/core/payouts.rs"]}, "change_types": {"functions_added": 1, "fields_added": 11}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
refactor(euclid): add logs for euclid routing
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Added logs for routing engine.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
This PR only introduces logs, hence no testing is required.
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments.rs`
- `crates/router/src/core/payments/routing.rs`
**Detailed Identifier Changes:**
Commit e09c3938:
Files to modify:
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/core/payments/routing.rs**
Modify existing code
|
{"pr_number": 8962, "pr_title": "refactor(euclid): add logs for euclid routing", "merged_at": "2025-08-18T14:59:20Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/routing.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(cache): address in-memory cache invalidation using global tenant as `key_prefix`
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
This PR fixes an inconsistency in the redis `key_prefix` that was used when invalidating the cache entries which affected all the cache types (configs, accounts, routing, etc).
The `delete_key` redis call during cache invalidation was using `global` as the `key_prefix` (key like `global:test_key` was being deleted in redis) while each of the tenants were reading using their corresponding `key_prefix` (key like `public:test_key` was being set/read in redis).
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
PUT/GET/UPDATE/DELETE on configs table as configs has cache usage
1. PUT
```
curl --location 'http://localhost:8080/configs/' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-tenant-id: public' \
--header 'api-key: test_admin' \
--data '{
"key": "test_key_1",
"value": "test_val_1"
}'
```
2. GET
```
curl --location 'http://localhost:8080/configs/test_key_1' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-tenant-id: public' \
--header 'api-key: test_admin' \
--data ''
```

3. UPDATE
```
curl --location 'http://localhost:8080/configs/test_key_1' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-tenant-id: public' \
--header 'api-key: test_admin' \
--data '{
"value": "test_val_2"
}'
```
4. GET
```
curl --location 'http://localhost:8080/configs/test_key_1' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-tenant-id: public' \
--header 'api-key: test_admin' \
--data ''
```

5. DELETE
```
curl --location --request DELETE 'http://localhost:8080/configs/test_key_1' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-tenant-id: public' \
--header 'api-key: test_admin' \
--data ''
```
6. GET
```
curl --location 'http://localhost:8080/configs/test_key_1' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-tenant-id: public' \
--header 'api-key: test_admin' \
--data ''
```

## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/admin.rs`
- `crates/router/src/core/cache.rs`
- `crates/router/src/core/routing.rs`
- ... and 1 more files
**2. Configuration Files**
- `crates/router/src/db/configs.rs`
**3. Other**
- `crates/redis_interface/src/commands.rs`
- `crates/router/src/db/merchant_account.rs`
- `crates/storage_impl/src/redis/cache.rs`
- ... and 1 more files
**Code Patterns Applied:**
- Implement new functions (1 changes)
- Extend existing types with new fields (4 changes)
**Detailed Identifier Changes:**
Commit fce5ffa4:
Files to modify:
**crates/redis_interface/src/commands.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/core/cache.rs**
Modify existing code
**crates/router/src/core/routing.rs**
Modify existing code
**crates/router/src/core/routing/helpers.rs**
Modify existing code
**crates/router/src/db/configs.rs**
Modify existing code
**crates/router/src/db/merchant_account.rs**
Modify existing code
**crates/storage_impl/src/redis/cache.rs**
Remove:
- function: pub::redact_cache
Add:
- function: pub::get_key_without_prefix
- impl: impl CacheKind<'_>
**crates/storage_impl/src/redis/pub_sub.rs**
Modify existing code
|
{"pr_number": 6976, "pr_title": "fix(cache): address in-memory cache invalidation using global tenant as `key_prefix`", "merged_at": "2025-01-03T08:18:56Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/cache.rs", "crates/router/src/core/routing.rs", "crates/router/src/core/routing/helpers.rs"], "config": ["crates/router/src/db/configs.rs"], "other": ["crates/redis_interface/src/commands.rs", "crates/router/src/db/merchant_account.rs", "crates/storage_impl/src/redis/cache.rs", "crates/storage_impl/src/redis/pub_sub.rs"]}, "change_types": {"functions_added": 1, "fields_added": 4, "imports_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(payments): [Payment links] Add locale case fix
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [X] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
hotfix for https://github.com/juspay/hyperswitch/pull/6789
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [X] I formatted the code `cargo +nightly fmt --all`
- [X] I addressed lints thrown by `cargo clippy`
- [X] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payment_link/locale.js`
**Code Patterns Applied:**
- Extend existing types with new fields (3 changes)
|
{"pr_number": 6795, "pr_title": "feat(payments): [Payment links] Add locale case fix", "merged_at": "2024-12-10T15:38:40Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"core_business": ["crates/router/src/core/payment_link/locale.js"]}, "change_types": {"fields_added": 3}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
feat(connector): [Datatrans] Add Wasm Changes
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [x] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Added Wasm changes for Datatrans (acquirer_country_code,acquirer_merchant_id,acquirer_bin)
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Just wasm changes
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/connector_configs/toml/development.toml`
- `crates/connector_configs/toml/production.toml`
- `crates/connector_configs/toml/sandbox.toml`
|
{"pr_number": 7229, "pr_title": "feat(connector): [Datatrans] Add Wasm Changes ", "merged_at": "2025-02-10T08:58:34Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["merchant"]}, "hierarchy": {"connectors": ["crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
fix(router): rename `management_url` to `management_u_r_l` in the apple pay session response
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Parent issue describing the feature (https://github.com/juspay/hyperswitch/issues/6841)
We need to rename `management_url` to `management_u_r_l` in the apple pay session response as our sdk converts the apple pay session request to camelCase before sending it to the apple pay team, after which `management_url` will be sent as `managementUrl`. But apple pay expects it to be passed as `managementURL`.
Hence renaming it to `management_u_r_l` as that when it is converted to snake case it will be passed as `managementURL`.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
-> create a merchant connector account with apple pay enabled
-> create a payment with recurring details passed in the `feature_metadata`
```
{
"amount": 6500,
"currency": "USD",
"confirm": false,
"amount_to_capture": 6500,
"customer_id": "test_fb",
"capture_method": "automatic",
"capture_on": "2022-09-10T10:11:12Z",
"authentication_type": "three_ds",
"return_url": "https://google.com",
"email": "[email protected]",
"name": "Joseph Doe",
"phone": "999999999",
"phone_country_code": "+65",
"description": "Its my first payment request",
"statement_descriptor_name": "Juspay",
"statement_descriptor_suffix": "Router",
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": {
"payment_description": "this is the apple pay recurring payment",
"regular_billing": {
"label": "pay to hyperswitchs merchant",
"recurring_payment_start_date": "2027-09-10T10:11:12.000Z",
"recurring_payment_end_date": "2027-09-10T10:11:12.000Z",
"recurring_payment_interval_unit": "year",
"recurring_payment_interval_count": 1
},
"billing_agreement": "billing starts from the above mentioned start date",
"management_url": "https://applepaydemo.apple.com/"
}
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
}
}
```
```
{
"payment_id": "pay_IkF0eZObdRKHRaW2qPjP",
"merchant_id": "merchant_1735037046",
"status": "requires_payment_method",
"amount": 6500,
"net_amount": 6500,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": null,
"connector": null,
"client_secret": "pay_IkF0eZObdRKHRaW2qPjP_secret_NiGZ8jzWUD0Eul78MWKG",
"created": "2024-12-26T10:11:17.687Z",
"currency": "USD",
"customer_id": "test_fb",
"customer": {
"id": "test_fb",
"name": "Joseph Doe",
"email": "[email protected]",
"phone": "999999999",
"phone_country_code": "+65"
},
"description": "Its my first payment request",
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": null,
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": null,
"payment_method_data": null,
"payment_token": null,
"shipping": null,
"billing": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": null
},
"order_details": null,
"email": "[email protected]",
"name": "Joseph Doe",
"phone": "999999999",
"return_url": "https://google.com/",
"authentication_type": "three_ds",
"statement_descriptor_name": "Juspay",
"statement_descriptor_suffix": "Router",
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": null,
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "test_fb",
"created_at": 1735207877,
"expires": 1735211477,
"secret": "epk_4a7844e8c4164df8806efc7aeda70607"
},
"manual_retry_allowed": null,
"connector_transaction_id": null,
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": {
"payment_description": "this is the apple pay recurring payment",
"regular_billing": {
"label": "pay to hyperswitchs merchant",
"recurring_payment_start_date": "2027-09-10T10:11:12.000Z",
"recurring_payment_end_date": "2027-09-10T10:11:12.000Z",
"recurring_payment_interval_unit": "year",
"recurring_payment_interval_count": 1
},
"billing_agreement": "billing starts from the above mentioned start date",
"management_url": "https://applepaydemo.apple.com/"
}
},
"reference_id": null,
"payment_link": null,
"profile_id": "pro_hyTvjhxF9uXvaibNrP0C",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": null,
"incremental_authorization_allowed": null,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2024-12-26T10:26:17.687Z",
"fingerprint": null,
"browser_info": null,
"payment_method_id": null,
"payment_method_status": null,
"updated": "2024-12-26T10:11:17.740Z",
"split_payments": null,
"frm_metadata": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null
}
```
-> Make session call for above created payment
```
curl --location 'http://localhost:8080/payments/session_tokens' \
--header 'Content-Type: application/json' \
--header 'api-key: pk_dev_75f912a867024370a73d2e290b9f7623' \
--data '{
"payment_id": "pay_IkF0eZObdRKHRaW2qPjP",
"wallets": [],
"client_secret": "pay_IkF0eZObdRKHRaW2qPjP_secret_NiGZ8jzWUD0Eul78MWKG"
}'
```
```
{
"payment_id": "pay_IkF0eZObdRKHRaW2qPjP",
"client_secret": "pay_IkF0eZObdRKHRaW2qPjP_secret_NiGZ8jzWUD0Eul78MWKG",
"session_token": [
{
"wallet_name": "apple_pay",
"session_token_data": {
"epoch_timestamp": 1735207885750,
"expires_at": 1735211485750,
"merchant_session_identifier": "SSHABDD07E7A93F47A8AE218B19493987B6_CCE257A9D27B42513B2C3CA67DB49F602F3450D996C0811ED462EDCA0D7477FD",
"nonce": "6a181236",
"merchant_identifier": "76B79A8E91F4D365B0B636C8F75CB207D52532E82C2C085DE79D6D8135EF3813",
"domain_name": "sdk-test-app.netlify.app",
"display_name": "applepay",
"signature": "308006092a864886f70d010702a0803080020101310d300b0609608648016503040201308006092a864886f70d0107010000a080308203e330820388a003020102020816634c8b0e305717300a06082a8648ce3d040302307a312e302c06035504030c254170706c65204170706c69636174696f6e20496e746567726174696f6e204341202d20473331263024060355040b0c1d4170706c652043657274696669636174696f6e20417574686f7269747931133011060355040a0c0a4170706c6520496e632e310b3009060355040613025553301e170d3234303432393137343732375a170d3239303432383137343732365a305f3125302306035504030c1c6563632d736d702d62726f6b65722d7369676e5f5543342d50524f4431143012060355040b0c0b694f532053797374656d7331133011060355040a0c0a4170706c6520496e632e310b30090603550406130255533059301306072a8648ce3d020106082a8648ce3d03010703420004c21577edebd6c7b2218f68dd7090a1218dc7b0bd6f2c283d846095d94af4a5411b83420ed811f3407e83331f1c54c3f7eb3220d6bad5d4eff49289893e7c0f13a38202113082020d300c0603551d130101ff04023000301f0603551d2304183016801423f249c44f93e4ef27e6c4f6286c3fa2bbfd2e4b304506082b0601050507010104393037303506082b060105050730018629687474703a2f2f6f6373702e6170706c652e636f6d2f6f63737030342d6170706c65616963613330323082011d0603551d2004820114308201103082010c06092a864886f7636405013081fe3081c306082b060105050702023081b60c81b352656c69616e6365206f6e207468697320636572746966696361746520627920616e7920706172747920617373756d657320616363657074616e6365206f6620746865207468656e206170706c696361626c65207374616e64617264207465726d7320616e6420636f6e646974696f6e73206f66207573652c20636572746966696361746520706f6c69637920616e642063657274696669636174696f6e2070726163746963652073746174656d656e74732e303606082b06010505070201162a687474703a2f2f7777772e6170706c652e636f6d2f6365727469666963617465617574686f726974792f30340603551d1f042d302b3029a027a0258623687474703a2f2f63726c2e6170706c652e636f6d2f6170706c6561696361332e63726c301d0603551d0e041604149457db6fd57481868989762f7e578507e79b5824300e0603551d0f0101ff040403020780300f06092a864886f76364061d04020500300a06082a8648ce3d0403020349003046022100c6f023cb2614bb303888a162983e1a93f1056f50fa78cdb9ba4ca241cc14e25e022100be3cd0dfd16247f6494475380e9d44c228a10890a3a1dc724b8b4cb8889818bc308202ee30820275a0030201020208496d2fbf3a98da97300a06082a8648ce3d0403023067311b301906035504030c124170706c6520526f6f74204341202d20473331263024060355040b0c1d4170706c652043657274696669636174696f6e20417574686f7269747931133011060355040a0c0a4170706c6520496e632e310b3009060355040613025553301e170d3134303530363233343633305a170d3239303530363233343633305a307a312e302c06035504030c254170706c65204170706c69636174696f6e20496e746567726174696f6e204341202d20473331263024060355040b0c1d4170706c652043657274696669636174696f6e20417574686f7269747931133011060355040a0c0a4170706c6520496e632e310b30090603550406130255533059301306072a8648ce3d020106082a8648ce3d03010703420004f017118419d76485d51a5e25810776e880a2efde7bae4de08dfc4b93e13356d5665b35ae22d097760d224e7bba08fd7617ce88cb76bb6670bec8e82984ff5445a381f73081f4304606082b06010505070101043a3038303606082b06010505073001862a687474703a2f2f6f6373702e6170706c652e636f6d2f6f63737030342d6170706c65726f6f7463616733301d0603551d0e0416041423f249c44f93e4ef27e6c4f6286c3fa2bbfd2e4b300f0603551d130101ff040530030101ff301f0603551d23041830168014bbb0dea15833889aa48a99debebdebafdacb24ab30370603551d1f0430302e302ca02aa0288626687474703a2f2f63726c2e6170706c652e636f6d2f6170706c65726f6f74636167332e63726c300e0603551d0f0101ff0404030201063010060a2a864886f7636406020e04020500300a06082a8648ce3d040302036700306402303acf7283511699b186fb35c356ca62bff417edd90f754da28ebef19c815e42b789f898f79b599f98d5410d8f9de9c2fe0230322dd54421b0a305776c5df3383b9067fd177c2c216d964fc6726982126f54f87a7d1b99cb9b0989216106990f09921d00003182018730820183020101308186307a312e302c06035504030c254170706c65204170706c69636174696f6e20496e746567726174696f6e204341202d20473331263024060355040b0c1d4170706c652043657274696669636174696f6e20417574686f7269747931133011060355040a0c0a4170706c6520496e632e310b3009060355040613025553020816634c8b0e305717300b0609608648016503040201a08193301806092a864886f70d010903310b06092a864886f70d010701301c06092a864886f70d010905310f170d3234313232363130313132355a302806092a864886f70d010934311b3019300b0609608648016503040201a10a06082a8648ce3d040302302f06092a864886f70d010904312204209b43f7e26b7c35184723da6aa89977d89ebf53079f968db5b25d60ed379445b1300a06082a8648ce3d04030204463044022068fc0f182085841b99b8334ec5072017c4f32d93fdd8dac0b344a02f2c7797b3022024d835837764ddbf539c06781d2e41e37094d1c41f65c364da18aa6537e1ce17000000000000",
"operational_analytics_identifier": "applepay:76B79A8E91F4D365B0B636C8F75CB207D52532E82C2C085DE79D6D8135EF3813",
"retries": 0,
"psp_id": "76B79A8E91F4D365B0B636C8F75CB207D52532E82C2C085DE79D6D8135EF3813"
},
"payment_request_data": {
"country_code": "US",
"currency_code": "USD",
"total": {
"label": "applepay",
"type": "final",
"amount": "65.00"
},
"merchant_capabilities": [
"supports3DS"
],
"supported_networks": [
"visa",
"masterCard",
"amex",
"discover"
],
"merchant_identifier": "merchant.com.hyperswitch.checkout",
"recurring_payment_request": {
"payment_description": "this is the apple pay recurring payment",
"regular_billing": {
"amount": "65.00",
"label": "pay to hyperswitchs merchant",
"payment_timing": "recurring",
"recurring_payment_start_date": "2027-09-10T10:11:12.000Z",
"recurring_payment_end_date": "2027-09-10T10:11:12.000Z",
"recurring_payment_interval_unit": "year",
"recurring_payment_interval_count": 1
},
"billing_agreement": "billing starts from the above mentioned start date",
"management_u_r_l": "https://applepaydemo.apple.com/"
}
},
"connector": "stripe",
"delayed_session_token": false,
"sdk_next_action": {
"next_action": "confirm"
},
"connector_reference_id": null,
"connector_sdk_public_key": null,
"connector_merchant_id": null
},
{
"wallet_name": "google_pay",
"merchant_info": {
"merchant_name": "Stripe"
},
"shipping_address_required": false,
"email_required": false,
"shipping_address_parameters": {
"phone_number_required": false
},
"allowed_payment_methods": [
{
"type": "CARD",
"parameters": {
"allowed_auth_methods": [
"PAN_ONLY",
"CRYPTOGRAM_3DS"
],
"allowed_card_networks": [
"AMEX",
"DISCOVER",
"INTERAC",
"JCB",
"MASTERCARD",
"VISA"
],
"billing_address_required": false
},
"tokenization_specification": {
"type": "PAYMENT_GATEWAY",
"parameters": {
"gateway": "stripe",
"stripe:version": "2018-10-31",
"stripe:publishableKey": "pk_test_51Msk2GAGHc77EJXX78h549SX2uaOnEkUYqBfjcoD05PIpAnDkYxMn8nQ4d19im85NQuX4Z6WDyHaUw2fFTPBWsIY00Wa7oNerO"
}
}
}
],
"transaction_info": {
"country_code": "US",
"currency_code": "USD",
"total_price_status": "Final",
"total_price": "65.00"
},
"delayed_session_token": false,
"connector": "stripe",
"sdk_next_action": {
"next_action": "confirm"
},
"secrets": null
}
]
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
**2. Core Business Logic**
- `crates/router/src/core/payments/transformers.rs`
**3. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
**Code Patterns Applied:**
- Extend existing types with new fields (2 changes)
**Detailed Identifier Changes:**
Commit cb12e3da:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
|
{"pr_number": 6945, "pr_title": "fix(router): rename `management_url` to `management_u_r_l` in the apple pay session response", "merged_at": "2024-12-27T06:46:27Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "core_business": ["crates/router/src/core/payments/transformers.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {"fields_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(router): replace underscore by hyphen in Samsung pay session call
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
-> Create a connector with samsung pay enabled
-> Create a payment
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key:' \
--data '{
"amount": 100000,
"currency": "USD",
"capture_method": "automatic",
"authentication_type": "no_three_ds",
"confirm": false,
"customer_id": "cu_1728548597"
}'
```
```
{
"payment_id": "pay_mJFt25nBNl0ZKeW122Eu",
"merchant_id": "merchant_1728917453",
"status": "requires_payment_method",
"amount": 100000,
"net_amount": 100000,
"amount_capturable": 0,
"amount_received": null,
"connector": null,
"client_secret": "pay_mJFt25nBNl0ZKeW122Eu_secret_ssXacvSHe4w7Q6smAWOQ",
"created": "2024-10-14T14:51:05.156Z",
"currency": "USD",
"customer_id": "cu_1728548597",
"customer": {
"id": "cu_1728548597",
"name": null,
"email": null,
"phone": null,
"phone_country_code": null
},
"description": null,
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": null,
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": null,
"payment_method_data": null,
"payment_token": null,
"shipping": null,
"billing": null,
"order_details": null,
"email": null,
"name": null,
"phone": null,
"return_url": null,
"authentication_type": "no_three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": null,
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "cu_1728548597",
"created_at": 1728917465,
"expires": 1728921065,
"secret": "epk_cd0634f3e55a456aab914f0715a37cbd"
},
"manual_retry_allowed": null,
"connector_transaction_id": null,
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": null,
"reference_id": null,
"payment_link": null,
"profile_id": "pro_a54a9pfTV5Yf5U2wboZ2",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": null,
"incremental_authorization_allowed": null,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2024-10-14T15:06:05.156Z",
"fingerprint": null,
"browser_info": null,
"payment_method_id": null,
"payment_method_status": null,
"updated": "2024-10-14T14:51:05.213Z",
"charges": null,
"frm_metadata": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null
}
```
-> session call
```
curl --location 'http://localhost:8080/payments/session_tokens' \
--header 'Content-Type: application/json' \
--header 'x-browser-name: Chrome' \
--header 'x-client-platform: web' \
--header 'x-merchant-domain: sdk-test-app.netlify.app' \
--header 'api-key: pk_dev_f89f808cd23b4b53ba1f84d1ae675e3c' \
--data '{
"payment_id": "pay_mJFt25nBNl0ZKeW122Eu",
"wallets": [],
"client_secret": "pay_mJFt25nBNl0ZKeW122Eu_secret_ssXacvSHe4w7Q6smAWOQ"
}'
```
```
{
"payment_id": "pay_mJFt25nBNl0ZKeW122Eu",
"client_secret": "pay_mJFt25nBNl0ZKeW122Eu_secret_ssXacvSHe4w7Q6smAWOQ",
"session_token": [
{
"wallet_name": "google_pay",
"merchant_info": {
"merchant_name": "Stripe"
},
"shipping_address_required": false,
"email_required": false,
"shipping_address_parameters": {
"phone_number_required": false
},
"allowed_payment_methods": [
{
"type": "CARD",
"parameters": {
"allowed_auth_methods": [
"PAN_ONLY",
"CRYPTOGRAM_3DS"
],
"allowed_card_networks": [
"AMEX",
"DISCOVER",
"INTERAC",
"JCB",
"MASTERCARD",
"VISA"
],
"billing_address_required": false
},
"tokenization_specification": {
"type": "PAYMENT_GATEWAY",
"parameters": {
"gateway": "stripe",
"stripe:version": "2018-10-31",
"stripe:publishableKey": "pk_test_51Msk2GAGHc77EJXX78h549SX2uaOnEkUYqBfjcoD05PIpAnDkYxMn8nQ4d19im85NQuX4Z6WDyHaUw2fFTPBWsIY00Wa7oNerO"
}
}
}
],
"transaction_info": {
"country_code": "US",
"currency_code": "USD",
"total_price_status": "Final",
"total_price": "1000.00"
},
"delayed_session_token": false,
"connector": "cybersource",
"sdk_next_action": {
"next_action": "confirm"
},
"secrets": null
},
{
"wallet_name": "samsung_pay",
"version": "2",
"service_id": "49400558c67f4a97b3925f",
"order_number": "pay-mJFt25nBNl0ZKeW122Eu",
"merchant": {
"name": "Hyperswitch",
"url": "sdk-test-app.netlify.app",
"country_code": "IN"
},
"amount": {
"option": "FORMAT_TOTAL_PRICE_ONLY",
"currency_code": "USD",
"total": "1000.00"
},
"protocol": "PROTOCOL3DS",
"allowed_brands": [
"visa",
"masterCard",
"amex",
"discover"
]
},
{
"wallet_name": "apple_pay",
"payment_request_data": {
"country_code": "US",
"currency_code": "USD",
"total": {
"label": "applepay",
"type": "final",
"amount": "1000.00"
},
"merchant_capabilities": [
"supports3DS"
],
"supported_networks": [
"visa",
"masterCard",
"amex",
"discover"
],
"merchant_identifier": "merchant.com.hyperswitch.checkout"
},
"connector": "cybersource",
"delayed_session_token": false,
"sdk_next_action": {
"next_action": "confirm"
},
"connector_reference_id": null,
"connector_sdk_public_key": null,
"connector_merchant_id": null
}
]
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments/flows/session_flow.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (1 changes)
**Detailed Identifier Changes:**
Commit 7f1bbbff:
Files to modify:
**crates/router/src/core/payments/flows/session_flow.rs**
Modify existing code
|
{"pr_number": 6311, "pr_title": "fix(router): replace underscore by hyphen in Samsung pay session call", "merged_at": "2024-10-14T17:19:38Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/flows/session_flow.rs"]}, "change_types": {"fields_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(connector): Supported capture methods fix for feature matrix
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Supported capture methods fix for feature matrix. This change is done for connector `Itaubank` and `Nuvei`.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
1. Get feature matrix
```
curl --location 'http://localhost:8080/feature_matrix' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key;'
```
Response
```
{
"connector_count": 63,
"connectors": [
{
"name": "ITAUBANK",
"display_name": "Itaubank",
"description": "Itau Bank is a leading Brazilian financial institution offering a wide range of banking services, including retail banking, loans, and investment solutions.",
"category": "payment_gateway",
"supported_payment_methods": [
{
"payment_method": "bank_transfer",
"payment_method_type": "pix",
"payment_method_type_display_name": "Pix",
"mandates": "not_supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic"
],
"supported_countries": [
"BRA"
],
"supported_currencies": [
"BRL"
]
}
],
"supported_webhook_flows": []
},
{
"name": "NUVEI",
"display_name": "Nuvei",
"description": "Nuvei is the Canadian fintech company accelerating the business of clients around the world.",
"category": "payment_gateway",
"supported_payment_methods": [
{
"payment_method": "card",
"payment_method_type": "credit",
"payment_method_type_display_name": "Credit Card",
"mandates": "supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"three_ds": "supported",
"no_three_ds": "supported",
"supported_card_networks": [
"Visa",
"Mastercard",
"AmericanExpress",
"UnionPay",
"Interac",
"JCB",
"DinersClub",
"Discover",
"CartesBancaires"
],
"supported_countries": [
"NZL",
"THA",
"USA",
"AUS",
"JPN",
"IND",
"SGP",
"PHL",
"GBR",
"CAN"
],
"supported_currencies": [
"UZS",
"IQD",
"ZAR",
"CLP",
"CAD",
"ISK",
"AMD",
"INR",
"MDL",
"NZD",
"PLN",
"PKR",
"PHP",
"SAR",
"THB",
"MKD",
"COP",
"MWK",
"MYR",
"SGD",
"TRY",
"NAD",
"TTD",
"ARS",
"CHF",
"EGP",
"GTQ",
"UYU",
"VND",
"LBP",
"DOP",
"EUR",
"UAH",
"YER",
"UGX",
"BDT",
"DKK",
"RON",
"MZN",
"KES",
"IDR",
"BGN",
"KYD",
"CZK",
"BMD",
"KZT",
"NGN",
"MUR",
"AED",
"AZN",
"HKD",
"KWD",
"NOK",
"RUB",
"RSD",
"BYN",
"MXN",
"BAM",
"KGS",
"GHS",
"XAF",
"SEK",
"JPY",
"GBP",
"AUD",
"OMR",
"DZD",
"TWD",
"HUF",
"PEN",
"MAD",
"GEL",
"MNT",
"BHD",
"CNY",
"CRC",
"JOD",
"BND",
"BRL",
"LKR",
"KRW",
"MMK",
"SOS",
"TOP",
"PYG",
"USD",
"TND",
"QAR"
]
},
{
"payment_method": "card",
"payment_method_type": "debit",
"payment_method_type_display_name": "Debit Card",
"mandates": "supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"three_ds": "supported",
"no_three_ds": "supported",
"supported_card_networks": [
"Visa",
"Mastercard",
"AmericanExpress",
"UnionPay",
"Interac",
"JCB",
"DinersClub",
"Discover",
"CartesBancaires"
],
"supported_countries": [
"JPN",
"USA",
"SGP",
"THA",
"NZL",
"PHL",
"CAN",
"AUS",
"IND",
"GBR"
],
"supported_currencies": [
"RUB",
"TRY",
"CNY",
"NGN",
"DKK",
"BMD",
"GEL",
"UYU",
"HUF",
"KES",
"UZS",
"CLP",
"MZN",
"TOP",
"MXN",
"MWK",
"CRC",
"JPY",
"OMR",
"HKD",
"TTD",
"INR",
"ISK",
"DOP",
"AED",
"CHF",
"NZD",
"COP",
"RON",
"VND",
"YER",
"BHD",
"PLN",
"MUR",
"PKR",
"TWD",
"EGP",
"SGD",
"THB",
"BGN",
"TND",
"BAM",
"ZAR",
"GBP",
"ARS",
"PYG",
"USD",
"BRL",
"SEK",
"KRW",
"JOD",
"BDT",
"MKD",
"PEN",
"PHP",
"DZD",
"CZK",
"MMK",
"UAH",
"AMD",
"AZN",
"SAR",
"UGX",
"XAF",
"EUR",
"BYN",
"GHS",
"KWD",
"MNT",
"KGS",
"GTQ",
"KZT",
"IDR",
"IQD",
"BND",
"KYD",
"LKR",
"MDL",
"MYR",
"NAD",
"NOK",
"MAD",
"RSD",
"QAR",
"LBP",
"SOS",
"AUD",
"CAD"
]
},
{
"payment_method": "wallet",
"payment_method_type": "apple_pay",
"payment_method_type_display_name": "Apple Pay",
"mandates": "not_supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"supported_countries": [
"JPN",
"IND",
"NZL",
"GBR",
"USA",
"THA",
"PHL",
"AUS",
"CAN",
"SGP"
],
"supported_currencies": [
"UZS",
"AED",
"MKD",
"RUB",
"MWK",
"AUD",
"CAD",
"LBP",
"PLN",
"UYU",
"MMK",
"AMD",
"CLP",
"MXN",
"INR",
"EGP",
"BAM",
"MUR",
"NGN",
"MNT",
"BMD",
"IDR",
"SOS",
"KES",
"CRC",
"TWD",
"ARS",
"COP",
"HKD",
"VND",
"ZAR",
"RSD",
"BHD",
"THB",
"BDT",
"MDL",
"PYG",
"PEN",
"MZN",
"TOP",
"XAF",
"IQD",
"NOK",
"YER",
"SGD",
"KYD",
"RON",
"AZN",
"PHP",
"BRL",
"PKR",
"GTQ",
"JOD",
"DKK",
"BYN",
"DOP",
"JPY",
"DZD",
"HUF",
"NZD",
"UGX",
"NAD",
"USD",
"BND",
"GBP",
"LKR",
"GEL",
"MYR",
"KWD",
"TTD",
"MAD",
"QAR",
"CNY",
"CHF",
"KRW",
"SEK",
"TRY",
"ISK",
"TND",
"BGN",
"CZK",
"GHS",
"EUR",
"KGS",
"OMR",
"KZT",
"SAR",
"UAH"
]
},
{
"payment_method": "wallet",
"payment_method_type": "paypal",
"payment_method_type_display_name": "PayPal",
"mandates": "not_supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"supported_countries": [
"IND",
"CAN",
"SGP",
"USA",
"JPN",
"AUS",
"GBR",
"PHL",
"NZL",
"THA"
],
"supported_currencies": [
"PLN",
"BMD",
"SOS",
"HKD",
"TOP",
"EGP",
"THB",
"USD",
"UYU",
"CHF",
"AUD",
"BYN",
"GHS",
"GEL",
"MXN",
"JOD",
"INR",
"BAM",
"PHP",
"ZAR",
"CZK",
"PKR",
"RON",
"LKR",
"SAR",
"CRC",
"DOP",
"LBP",
"NAD",
"BGN",
"BND",
"EUR",
"NGN",
"NOK",
"IDR",
"RUB",
"TRY",
"SGD",
"TWD",
"KZT",
"MMK",
"TND",
"KWD",
"MAD",
"MDL",
"KGS",
"JPY",
"NZD",
"MYR",
"XAF",
"OMR",
"AED",
"CNY",
"GBP",
"CLP",
"KYD",
"RSD",
"KES",
"CAD",
"BDT",
"DKK",
"DZD",
"PYG",
"SEK",
"BRL",
"GTQ",
"TTD",
"QAR",
"ISK",
"MWK",
"MNT",
"PEN",
"UAH",
"UZS",
"MUR",
"MZN",
"IQD",
"UGX",
"HUF",
"YER",
"ARS",
"VND",
"AZN",
"MKD",
"BHD",
"KRW",
"AMD",
"COP"
]
},
{
"payment_method": "wallet",
"payment_method_type": "google_pay",
"payment_method_type_display_name": "Google Pay",
"mandates": "not_supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"supported_countries": [
"SGP",
"GBR",
"NZL",
"JPN",
"PHL",
"IND",
"USA",
"THA",
"AUS",
"CAN"
],
"supported_currencies": [
"RUB",
"COP",
"TWD",
"THB",
"RON",
"BHD",
"CHF",
"TTD",
"INR",
"BYN",
"MDL",
"GBP",
"DZD",
"AUD",
"LKR",
"BRL",
"BND",
"DKK",
"DOP",
"EGP",
"LBP",
"OMR",
"KYD",
"MZN",
"UGX",
"MUR",
"SOS",
"BMD",
"PLN",
"MKD",
"QAR",
"KRW",
"JPY",
"MYR",
"AED",
"SGD",
"PHP",
"TOP",
"MAD",
"USD",
"IDR",
"MNT",
"GEL",
"SEK",
"XAF",
"UYU",
"YER",
"MMK",
"NAD",
"NZD",
"ISK",
"PKR",
"ZAR",
"PYG",
"UAH",
"ARS",
"VND",
"AMD",
"CLP",
"CZK",
"BDT",
"KWD",
"KZT",
"BGN",
"HUF",
"EUR",
"HKD",
"IQD",
"KGS",
"SAR",
"TND",
"PEN",
"GTQ",
"KES",
"MWK",
"BAM",
"TRY",
"UZS",
"CAD",
"CRC",
"AZN",
"MXN",
"NOK",
"GHS",
"NGN",
"JOD",
"RSD",
"CNY"
]
},
{
"payment_method": "bank_redirect",
"payment_method_type": "eps",
"payment_method_type_display_name": "EPS",
"mandates": "not_supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"supported_countries": [
"GBR",
"IND",
"CAN",
"JPN",
"THA",
"PHL",
"NZL",
"USA",
"SGP",
"AUS"
],
"supported_currencies": [
"CAD",
"QAR",
"VND",
"MNT",
"TRY",
"NZD",
"NGN",
"DKK",
"KES",
"AUD",
"CHF",
"EUR",
"HKD",
"MKD",
"KRW",
"IDR",
"LKR",
"OMR",
"CLP",
"PEN",
"SOS",
"THB",
"USD",
"BND",
"YER",
"BHD",
"BAM",
"UYU",
"PKR",
"MDL",
"ISK",
"MMK",
"MWK",
"GEL",
"NOK",
"TND",
"TOP",
"BMD",
"SEK",
"TWD",
"RUB",
"AMD",
"MAD",
"KZT",
"PYG",
"COP",
"SGD",
"EGP",
"AED",
"KWD",
"SAR",
"BDT",
"GHS",
"GTQ",
"LBP",
"IQD",
"MUR",
"PLN",
"UAH",
"KGS",
"CZK",
"AZN",
"BYN",
"DOP",
"MZN",
"BRL",
"CNY",
"UGX",
"CRC",
"UZS",
"INR",
"MYR",
"ARS",
"JPY",
"NAD",
"BGN",
"JOD",
"KYD",
"PHP",
"HUF",
"DZD",
"RON",
"RSD",
"GBP",
"TTD",
"XAF",
"MXN",
"ZAR"
]
},
{
"payment_method": "bank_redirect",
"payment_method_type": "sofort",
"payment_method_type_display_name": "Sofort",
"mandates": "not_supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"supported_countries": [
"PHL",
"THA",
"USA",
"AUS",
"CAN",
"IND",
"JPN",
"SGP",
"GBR",
"NZL"
],
"supported_currencies": [
"BRL",
"BHD",
"INR",
"ISK",
"ARS",
"BYN",
"JOD",
"JPY",
"CLP",
"KES",
"MDL",
"KZT",
"NAD",
"PEN",
"PHP",
"PYG",
"THB",
"TND",
"TWD",
"RSD",
"MUR",
"LBP",
"KWD",
"MKD",
"MXN",
"DOP",
"SAR",
"AMD",
"TTD",
"USD",
"XAF",
"BMD",
"IDR",
"QAR",
"CAD",
"CNY",
"GEL",
"EGP",
"GBP",
"KRW",
"GHS",
"YER",
"HKD",
"ZAR",
"CHF",
"MAD",
"AZN",
"DKK",
"BDT",
"MNT",
"RON",
"MMK",
"SEK",
"NGN",
"SOS",
"TOP",
"UAH",
"UGX",
"UZS",
"NOK",
"PKR",
"CRC",
"SGD",
"AED",
"BAM",
"BGN",
"AUD",
"KGS",
"KYD",
"PLN",
"CZK",
"VND",
"COP",
"IQD",
"TRY",
"UYU",
"DZD",
"BND",
"GTQ",
"OMR",
"RUB",
"LKR",
"MZN",
"EUR",
"MWK",
"HUF",
"NZD",
"MYR"
]
},
{
"payment_method": "bank_redirect",
"payment_method_type": "giropay",
"payment_method_type_display_name": "Giropay",
"mandates": "not_supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"supported_countries": [
"SGP",
"PHL",
"NZL",
"JPN",
"AUS",
"IND",
"THA",
"CAN",
"USA",
"GBR"
],
"supported_currencies": [
"COP",
"TOP",
"VND",
"BYN",
"JPY",
"CNY",
"CAD",
"CZK",
"CLP",
"BND",
"BGN",
"GEL",
"BHD",
"BAM",
"JOD",
"MDL",
"OMR",
"XAF",
"ZAR",
"KZT",
"NGN",
"RSD",
"TND",
"SAR",
"KYD",
"CRC",
"CHF",
"DKK",
"GBP",
"DOP",
"IDR",
"KES",
"NOK",
"MWK",
"PLN",
"AUD",
"KGS",
"LBP",
"EGP",
"RON",
"NAD",
"GHS",
"ISK",
"MYR",
"UAH",
"PYG",
"SGD",
"YER",
"THB",
"QAR",
"HKD",
"MAD",
"MUR",
"AMD",
"TTD",
"UYU",
"BRL",
"IQD",
"AZN",
"KWD",
"SEK",
"UGX",
"PEN",
"PHP",
"PKR",
"DZD",
"LKR",
"MKD",
"MZN",
"BDT",
"RUB",
"ARS",
"EUR",
"SOS",
"UZS",
"HUF",
"TWD",
"MNT",
"NZD",
"INR",
"AED",
"TRY",
"KRW",
"MMK",
"USD",
"MXN",
"GTQ",
"BMD"
]
},
{
"payment_method": "bank_redirect",
"payment_method_type": "ideal",
"payment_method_type_display_name": "iDEAL",
"mandates": "not_supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"supported_countries": [
"NZL",
"PHL",
"IND",
"GBR",
"AUS",
"SGP",
"JPN",
"CAN",
"USA",
"THA"
],
"supported_currencies": [
"TOP",
"AZN",
"JPY",
"GHS",
"VND",
"BRL",
"SOS",
"LKR",
"EUR",
"EGP",
"BGN",
"NOK",
"CRC",
"CAD",
"MXN",
"SAR",
"MUR",
"RSD",
"HUF",
"YER",
"GTQ",
"PLN",
"BHD",
"DOP",
"LBP",
"SGD",
"KGS",
"NZD",
"KES",
"PHP",
"THB",
"USD",
"BMD",
"CLP",
"MKD",
"NAD",
"CZK",
"ISK",
"GEL",
"CHF",
"SEK",
"UYU",
"MAD",
"RON",
"UZS",
"MYR",
"KWD",
"MNT",
"KRW",
"HKD",
"MDL",
"BND",
"MZN",
"KZT",
"DZD",
"UAH",
"ZAR",
"CNY",
"BDT",
"AMD",
"OMR",
"QAR",
"MWK",
"TND",
"TTD",
"AUD",
"JOD",
"PYG",
"PEN",
"UGX",
"MMK",
"IQD",
"NGN",
"GBP",
"IDR",
"XAF",
"COP",
"INR",
"DKK",
"AED",
"TRY",
"KYD",
"TWD",
"BAM",
"BYN",
"ARS",
"PKR",
"RUB"
]
},
{
"payment_method": "pay_later",
"payment_method_type": "afterpay_clearpay",
"payment_method_type_display_name": "Afterpay Clearpay",
"mandates": "not_supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"supported_countries": [
"AUS",
"JPN",
"THA",
"PHL",
"NZL",
"SGP",
"CAN",
"GBR",
"IND",
"USA"
],
"supported_currencies": [
"CAD",
"SAR",
"IDR",
"SGD",
"TOP",
"USD",
"BHD",
"MXN",
"EUR",
"NOK",
"SOS",
"THB",
"TWD",
"MWK",
"UGX",
"BND",
"AUD",
"DOP",
"HKD",
"AMD",
"GHS",
"KRW",
"NAD",
"NGN",
"OMR",
"TND",
"UAH",
"MYR",
"GEL",
"KWD",
"KYD",
"BAM",
"MAD",
"RON",
"DKK",
"BDT",
"QAR",
"PHP",
"YER",
"MZN",
"PEN",
"ZAR",
"AZN",
"CNY",
"MDL",
"RUB",
"MNT",
"ISK",
"UZS",
"UYU",
"CZK",
"INR",
"LKR",
"BMD",
"CRC",
"BGN",
"KES",
"IQD",
"JPY",
"AED",
"BYN",
"MMK",
"PKR",
"PYG",
"SEK",
"COP",
"BRL",
"TRY",
"JOD",
"CHF",
"MUR",
"HUF",
"DZD",
"GTQ",
"KGS",
"MKD",
"PLN",
"TTD",
"KZT",
"VND",
"GBP",
"LBP",
"RSD",
"CLP",
"EGP",
"NZD",
"XAF",
"ARS"
]
},
{
"payment_method": "pay_later",
"payment_method_type": "klarna",
"payment_method_type_display_name": "Klarna",
"mandates": "not_supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"supported_countries": [
"IND",
"CAN",
"USA",
"AUS",
"NZL",
"PHL",
"SGP",
"GBR",
"JPN",
"THA"
],
"supported_currencies": [
"SEK",
"AUD",
"COP",
"EGP",
"PHP",
"PKR",
"THB",
"USD",
"KRW",
"AMD",
"BDT",
"KGS",
"ARS",
"PLN",
"RSD",
"BMD",
"ISK",
"KES",
"SGD",
"NZD",
"SAR",
"JPY",
"BRL",
"BAM",
"CNY",
"NOK",
"TRY",
"JOD",
"BGN",
"RUB",
"TWD",
"MKD",
"MAD",
"UAH",
"KZT",
"CLP",
"INR",
"KWD",
"GEL",
"HUF",
"AZN",
"CZK",
"PEN",
"TND",
"GHS",
"MXN",
"CRC",
"IQD",
"MUR",
"MYR",
"SOS",
"YER",
"BND",
"CAD",
"KYD",
"PYG",
"LBP",
"ZAR",
"MDL",
"QAR",
"HKD",
"MNT",
"RON",
"MZN",
"MWK",
"OMR",
"UGX",
"UYU",
"TTD",
"LKR",
"VND",
"XAF",
"GBP",
"TOP",
"DKK",
"AED",
"MMK",
"NAD",
"CHF",
"DOP",
"BHD",
"NGN",
"DZD",
"IDR",
"EUR",
"UZS",
"GTQ",
"BYN"
]
}
],
"supported_webhook_flows": [
"payments"
]
},
]
```
2. Itaubank payment
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_lZER6zngOuQRz4wSIikHy4bcGOSbYjjimRdtbWzgF8dUxQzPfJpTGOiKwi4AKcN0' \
--data-raw '
{
"amount": 6540,
"currency": "BRL",
"amount_to_capture": 6540,
"confirm": true,
"profile_id": "pro_Wmdi0cv4vAhDt6JYkdwS",
"capture_method": "automatic",
"capture_on": "2022-09-10T10:11:12Z",
"authentication_type": "no_three_ds",
"setup_future_usage": "on_session",
"customer": {
"id": "customer123",
"name": "John Doe",
"email": "[email protected]",
"phone": "9999999999",
"phone_country_code": "+1"
},
"customer_id": "customer123",
"phone_country_code": "+1",
"routing": {
"type": "single",
"data": "stripe"
},
"description": "Its my first payment request",
"return_url": "https://google.com",
"payment_method": "bank_transfer",
"payment_method_type": "pix",
"payment_method_data": {
"bank_transfer": {
"pix": {
"pix_key": PIX_KEY_HERE,
"cnpj": CNPJ_HERE,
"cpf": CPF_HERE
}
}
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "BR",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": "[email protected]"
},
"shipping": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "BR",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": "[email protected]"
},
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"order_details": [
{
"product_name": "Apple iphone 15",
"quantity": 1,
"amount": 6540,
"account_name": "transaction_processing"
}
],
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
},
"browser_info": {
"user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/70.0.3538.110 Safari\/537.36",
"accept_header": "text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/webp,image\/apng,*\/*;q=0.8",
"language": "nl-NL",
"color_depth": 24,
"screen_height": 723,
"screen_width": 1536,
"time_zone": 0,
"java_enabled": true,
"java_script_enabled": true,
"ip_address": "128.0.0.1"
},
"customer_acceptance": {
"acceptance_type": "offline",
"accepted_at": "1963-05-03T04:07:52.723Z",
"online": {
"ip_address": "125.0.0.1",
"user_agent": "amet irure esse"
}
},
"connector_metadata": {
"noon": {
"order_category": "pay"
}
},
"payment_link": false,
"payment_link_config": {
"theme": "",
"logo": "",
"seller_name": "",
"sdk_layout": "",
"display_sdk_only": false,
"enabled_saved_payment_method": false
},
"payment_type": "normal",
"request_incremental_authorization": false,
"merchant_order_reference_id": "test_ord",
"session_expiry": 900
}
'
```
Response
```
{
"payment_id": "pay_pQZiTUNDPILvYRuZb2MC",
"merchant_id": "merchant_1747395895",
"status": "requires_customer_action",
"amount": 6540,
"net_amount": 6540,
"shipping_cost": null,
"amount_capturable": 6540,
"amount_received": null,
"connector": "itaubank",
"client_secret": "pay_pQZiTUNDPILvYRuZb2MC_secret_OApvoX7M24LEIODyCVZE",
"created": "2025-05-16T11:45:19.199Z",
"currency": "BRL",
"customer_id": "customer123",
"customer": {
"id": "customer123",
"name": "John Doe",
"email": "[email protected]",
"phone": "9999999999",
"phone_country_code": "+1"
},
"description": "Its my first payment request",
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": "on_session",
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": "bank_transfer",
"payment_method_data": {
"bank_transfer": {
"pix": {
"pix_key": "a1f4****-****-****-****-********c1d1",
"cpf": "*******4689",
"cnpj": "7446******7312",
"source_bank_account_id": null,
"destination_bank_account_id": null
}
},
"billing": null
},
"payment_token": null,
"shipping": {
"address": {
"city": "San Fransico",
"country": "BR",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": "[email protected]"
},
"billing": {
"address": {
"city": "San Fransico",
"country": "BR",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": "[email protected]"
},
"order_details": [
{
"brand": null,
"amount": 6540,
"category": null,
"quantity": 1,
"tax_rate": null,
"product_id": null,
"product_name": "Apple iphone 15",
"product_type": null,
"sub_category": null,
"product_img_link": null,
"product_tax_code": null,
"total_tax_amount": null,
"requires_shipping": null
}
],
"email": "[email protected]",
"name": "John Doe",
"phone": "9999999999",
"return_url": "https://google.com/",
"authentication_type": "no_three_ds",
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"next_action": {
"type": "qr_code_information",
"image_data_url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcgAAAHICAAAAADvyiU2AAAR0ElEQVR4Ae3gAZAkSZIkSRKLqpm7R0REZmZmVlVVVVV3d3d3d/fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMdHd3d3dXV1VVVVVmZkZGRIS7m5kKz0xmV3d1d3dPz8zMzMxMYjVX/R9A5ar/C6hc9X8Blav+L6By1f8FVK76v4DKVf8XULnq/wIqV/1fQOWq/wuoXPV/AZWr/i+gctX/BVSu+r+AylX/F1C56v8CKlf9X0Dlqv8LqFz1fwGVq/4voHLV/wVUrvq/gMpV/xdQuer/AipX/V9A5ar/C6hc9X8Blav+L6By1f8FVK76v4DKVf8XULnq/wIq/wLxb2OuEFeYK8QV5grxwpnnJJ6TuUJcYf59xHMyz0k8J/PCiSvMFeLfxrxQVK76v4DKVf8XULnq/wIqV/1fQOWq/wuoXPV/AZWr/i+g8iIyLxrx/IkrzBXiCvP8iSvEFeYK88KJF415TuL5E1eYK8wLJ1405kUjXiRUrvq/gMpV/xdQuer/AipX/V9A5ar/C6hc9X8Blav+L6DyrySeP/P8mReNuMJcYa4QV4grzHMSV5jnJK4wL5y4wlwhnj/xnMwV4gpzhblCvGjE82f+Vahc9X8Blav+L6By1f8FVK76v4DKVf8XULnq/wIqV/1fQOU/mXhO5jmJ5ySek7lCPCdxhXn+zBXiCnOFeE7m+TMvGvPCmf8SVK76v4DKVf8XULnq/wIqV/1fQOWq/wuoXPV/AZWr/i+g8p/MXCGuEFeY5ySeP/GcxBXmCvGiES+ceE7iOZl/HfNfispV/xdQuer/AipX/V9A5ar/C6hc9X8Blav+L6By1f8FVP6VzL+NuUI8J/HCmSvEFeY5meckrjDPn3hO4vkzz0k8J/P8iSvMi8b8h6By1f8FVK76v4DKVf8XULnq/wIqV/1fQOWq/wuoXPV/AZUXkfi3EVeYF85cIa4wV4grzBXiCnOFuMI8f+IK85zMFeIKc4V4TuIKc4V4TuIK8/yJK8xzEv+hqFz1fwGVq/4voHLV/wVUrvq/gMpV/xdQuer/AipX/V9A5V9g/mOIK8wV4gpzhbjCvHDmX8c8f+IKc4W4wlwhrjDPybxw5gpxhXlO5j8Flav+L6By1f8FVK76v4DKVf8XULnq/wIqV/1fQOWq/wuo/AvEFeYK8ZzMFeL5M8+f+fcRz0k8J/HCmX8dcYX51xFXmCvEFeY5iSvMFeI5mReKylX/F1C56v8CKlf9X0Dlqv8LqFz1fwGVq/4voHLV/wVU/pXMFeIKcYV5TuI5iSvMCyeeP/GczBXiCnOFeP7MFeIK8ZzMczJXiH8fc4X4tzEvEipX/V9A5ar/C6hc9X8Blav+L6By1f8FVK76v4DKVf8XUHkRiSvMFeYKcYV4TuYK8fyJK8wV5vkTz8lcIZ6TeP7MFeIK8x9DXGGuEM/JvHDiPxSVq/4voHLV/wVUrvq/gMpV/xdQuer/AipX/V9A5ar/C5B50YgXzjwncYW5Qlxhnj/xwpnnTzwn86IRz5+5QlxhnpN40ZgXTlxhrhAvnHmhqFz1fwGVq/4voHLV/wVUrvq/gMpV/xdQuer/AipX/V9A5V8grjDPn7hCPCfz/IkrzBXiCvOcxBXmCvGczBXmCvGcxHMyV4jnz1whnpN4Tub5E1eYK8QV5jmJK8x/KCpX/V9A5ar/C6hc9X8Blav+L6By1f8FVK76v4DKVf8XIPMfQ1xhrhBXmOckrjDPSTx/5vkTV5grxHMyV4grzAsnrjBXiCvMFeIK8+8jnpN5/sQV5kVC5ar/C6hc9X8Blav+L6By1f8FVK76v4DKVf8XULnq/wIq/0biOZkrxBXmCnGFeU7iCvOczBXi+RPPSVxhXjjxwpnnZJ4/8fyZK8RzMleIK8wV4vkTV5h/FSpX/V9A5ar/C6hc9X8Blav+L6By1f8FVK76v4DKVf8XUHkRiedknj/znMzzZ56TuUJcYa4Qz8lcIZ4/8fyZ5ySuMM9JXGGeP3OFeP7MFeL5E89JPCfznMQV5oWictX/BVSu+r+AylX/F1C56v8CKlf9X0Dlqv8LqFz1fwGVfyVzhbjCPCdxhXlO4jmJ52SuMFeI52SeP/OczBXiOYkrzHMSz8lcIZ6Tef7MFeL5E8/JPCfx/IkrzIuEylX/F1C56v8CKlf9X0Dlqv8LqFz1fwGVq/4voHLV/wVU/gXiCnOFeOHMFeIK85zM8yeuMM/JXCGuMM9JXGGuEM/JXCGek3n+xHMyz595/swLJ56TeU7iCnOFuMK8UFSu+r+AylX/F1C56v8CKlf9X0Dlqv8LqFz1fwGVq/4vQOZfRzx/5gpxhXn+xL+NeU7iCnOFuMI8J/GczHMSz8k8J3GFuUJcYZ6TeP7MFeIK85zEFeYK8ZzMi4TKVf8XULnq/wIqV/1fQOWq/wuoXPV/AZWr/i+gctX/Bcj864jnZJ4/cYV5/sQV5grxnMwV4jmZF05cYa4Qz8lcIV405vkTV5jnJK4wV4gXjXlO4grzIqFy1f8FVK76v4DKVf8XULnq/wIqV/1fQOWq/wuoXPV/ATIvnLjCXCGeP3OFuMI8J/HCmSvEczLPSVxhrhDPyTwn8aIxV4grzHMSV5jnJJ6TeU7ihTP/Iahc9X8Blav+L6By1f8FVK76v4DKVf8XULnq/wIqV/1fQOXfyFwhnpO5Qjwnc4W4wlwhrhBXmCvEFeI5medkrhBXiCvMi8a8aMwV4gpzhblCPCdxhXlO4vkTV5jnJK4wLxSVq/4voHLV/wVUrvq/gMpV/xdQuer/AipX/V9A5ar/C5B50YgrzHMS/zbmOYnnZJ6TuMJcIa4wz0m8aMwV4grznMQV5grx/JkrxH8M85zEFeaFonLV/wVUrvq/gMpV/xdQuer/AipX/V9A5ar/C6hc9X8BlX8j8ZzM8yeek7lCXGGek7lCPCfz/Innzzx/4gpxhblCXGGuMFeIK8xzEleIK8zzJ64wz5+4wlwhnpN5kVC56v8CKlf9X0Dlqv8LqFz1fwGVq/4voHLV/wVUrvq/gMq/QDwncYW5QjwncYV5TuYKcYW5QlxhnpO5QrxozBXiOYkrzAtnnj9zhXhO5jmJF424wrxw5l+FylX/F1C56v8CKlf9X0Dlqv8LqFz1fwGVq/4voHLV/wVUXkTmOYnnz/z7iCvMFeb5My8a8/yZK8SLxlwhnpO4wjx/4jmZ/xRUrvq/gMpV/xdQuer/AipX/V9A5ar/C6hc9X8Blav+L6DyIhLPyVwhrhD/scQV5grxnMwLJ1405gpxhblCXGGuEM9JXGGek7jCPCfxwonnT1xhXigqV/1fQOWq/wuoXPV/AZWr/i+gctX/BVSu+r+AylX/F1D5F5jnJJ6TuUJcYa4Qz0k8f+Zfx/zbmOdPXGFeNOYK8fyZK8QV5vkTV5grxPNnXiRUrvq/gMpV/xdQuer/AipX/V9A5ar/C6hc9X8Blav+L0DmRSOuMFeIK8xzEleY5088J/OvI54/c4V4TuYK8ZzMcxJXmOckrjDPn3hO5oUTV5j/UFSu+r+AylX/F1C56v8CKlf9X0Dlqv8LqFz1fwGVq/4voPIiMleIK8wV4jmZK8TzZ56TuML825grxPMnnpN5TuIKc4V44cQV5l9HPH/iCnOFuML8q1C56v8CKlf9X0Dlqv8LqFz1fwGVq/4voHLV/wVUrvq/gMq/kXhO5grxnMwV4gpxhXlO4grzwpkrxHMyV4grzAsnXjTmCnGFeU7mCvH8iSvMv424wrxQVK76v4DKVf8XULnq/wIqV/1fQOWq/wuoXPV/AZWr/i+g8m9krhDPyVwhrhBXmCvEFeIKc4V4/sTzZ64QV5jnT7xw5gpxhblCXCGeP3GFeU7iOZkrxHMyz595TuZFQuWq/wuoXPV/AZWr/i+gctX/BVSu+r+AylX/F1C56v8CKi8i8ZzEFeY5iedP/PuYfx1xhblCXGGek7jCPH/mCvH8iefPPCfznMRzEleYK8QV5kVC5ar/C6hc9X8Blav+L6By1f8FVK76v4DKVf8XULnq/wJkXjjx/JkrxBXm+RPPyfzHEs+f+bcRL5x5TuI5medPPCfzwonnZF4oKlf9X0Dlqv8LqFz1fwGVq/4voHLV/wVUrvq/gMpV/xcg88KJK8wV4kVjnpO4wjx/4jmZF05cYZ4/8ZzMCyeuMFeI52Sek7jCXCGek7lCvHDm+RNXmBcJlav+L6By1f8FVK76v4DKVf8XULnq/wIqV/1fQOWq/wuovIjEczJXiOdknj9zhbjCXCFeOHGFef7EczLPyVwhnpN50ZgrxHMyz8k8J/H8mSvEFeIKc4X4N6Fy1f8FVK76v4DKVf8XULnq/wIqV/1fQOWq/wuoXPV/ATIvnHjhzHMSz8k8f+JFY64QV5h/H/GczBXi+TPPSVxhnpN4TuYK8ZzMFeL5M89JXGFeKCpX/V9A5ar/C6hc9X8Blav+L6By1f8FVK76v4DKVf8XUHkRmecknpO4wlwhrhBXmCvEczLPSVxhrhBXmOdPPCdzhXhO5jmZ58+8aMQV5vkTL5x5/sQV5grzIqFy1f8FVK76v4DKVf8XULnq/wIqV/1fQOWq/wuoXPV/AZV/gblCXGGuMM+fuMJcIZ4/c4W4wlxhnpO5Qlxhnj9zhXhO5l9HPCdzhbjCPCdxhblCXGFeNOKFE1eYF4rKVf8XULnq/wIqV/1fQOWq/wuoXPV/AZWr/i+gctX/BVT+lcRzMleY5ySuMFeIK8zzJ64wz0lcYf51zHMSL5x5TuIKcYW5QvzriBfOXCGuMFeIfxUqV/1fQOWq/wuoXPV/AZWr/i+gctX/BVSu+r+AylX/FyDzwonnzzx/4kVjnpN4TuY5iSvMFeIK85zEi8Y8f+IK88KJK8wV4grznMS/jrlCXGFeJFSu+r+AylX/F1C56v8CKlf9X0Dlqv8LqFz1fwGVq/4voPIvMP865jmJK8zzJ1405l/HPH/iCvGczBXmCnGFeU7i38Y8f+IK8/yJK8wLReWq/wuoXPV/AZWr/i+gctX/BVSu+r+AylX/F1C56v8CKv8C8W9jnj9xhfmPIa4wz5+4wrxw4jmZK8QV5grzohHPn7jCPH/iCvOvQuWq/wuoXPV/AZWr/i+gctX/BVSu+r+AylX/F1C56v8CKi8i86IRz5+4wlwhnpO5Qjx/4grzr2NeNOY5iRdOXGGuMM/JXCGek3nhzHMSV5gXispV/xdQuer/AipX/V9A5ar/C6hc9X8Blav+L6By1f8FVP6VxPNnnj9zhbhCXGGuEM+feE7mCvGczBXiOYkXzvzbiCvMFeIKc4W4wjwn8aIRz8m8SKhc9X8Blav+L6By1f8FVK76v4DKVf8XULnq/wIqV/1fQOU/mXj+xBXmCnGFeU7ihRMvnPnXEVeYK8RzMs/JPCdzhXhO5grxojFXiCvMC0Xlqv8LqFz1fwGVq/4voHLV/wVUrvq/gMpV/xdQuer/Air/xcxzEi+ceU7m+RMvnHhO5grx/IkXTlxhXjjz/JkrxBXiCnOFuMK8SKhc9X8Blav+L6By1f8FVK76v4DKVf8XULnq/wIqV/1fQOVfyfzrmCvEcxJXmOckrjBXiCvMFeIKc4V44cRzMv865vkzV4h/HXOFeE7m34XKVf8XULnq/wIqV/1fQOWq/wuoXPV/AZWr/i+gctX/BVReROLfRjx/5gpxhXlO4grznMwV4vkzV4h/HfP8iedknj/znMQV4grznMwV4grxnMwV4grzQlG56v8CKlf9X0Dlqv8LqFz1fwGVq/4voHLV/wVUrvq/AJmr/g+gctX/BVSu+r+AylX/F1C56v8CKlf9X0Dlqv8LqFz1fwGVq/4voHLV/wVUrvq/gMpV/xdQuer/AipX/V9A5ar/C6hc9X8Blav+L6By1f8FVK76v4DKVf8XULnq/wIqV/1fQOWq/wuoXPV/AZWr/i+gctX/BVSu+r+AylX/F1C56v8CKlf9X0Dlqv8LqFz1fwH/CGvfQwMG1jzrAAAAAElFTkSuQmCC",
"display_to_timestamp": 1747471522000,
"qr_code_url": null,
"display_text": null,
"border_color": null
},
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "pix",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "customer123",
"created_at": 1747395919,
"expires": 1747399519,
"secret": "epk_e26e1f8ab20c44f5a528b8625f12c644"
},
"manual_retry_allowed": null,
"connector_transaction_id": "bbba96adf0e442a0802761bb2758d9e5",
"frm_message": null,
"metadata": {
"udf1": "value1",
"login_date": "2019-09-10T10:11:12Z",
"new_customer": "true"
},
"connector_metadata": {
"apple_pay": null,
"airwallex": null,
"noon": {
"order_category": "pay"
},
"braintree": null,
"adyen": null
},
"feature_metadata": null,
"reference_id": "bbba96adf0e442a0802761bb2758d9e5",
"payment_link": null,
"profile_id": "pro_Wmdi0cv4vAhDt6JYkdwS",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_kG19XIl1ZgQflDANZJkB",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-05-16T12:00:19.198Z",
"fingerprint": null,
"browser_info": {
"language": "nl-NL",
"time_zone": 0,
"ip_address": "128.0.0.1",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",
"color_depth": 24,
"java_enabled": true,
"screen_width": 1536,
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"screen_height": 723,
"java_script_enabled": true
},
"payment_method_id": null,
"payment_method_status": null,
"updated": "2025-05-16T11:45:22.550Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": null,
"capture_before": null,
"merchant_order_reference_id": "test_ord",
"order_tax_amount": null,
"connector_mandate_id": null,
"card_discovery": null,
"force_3ds_challenge": false,
"force_3ds_challenge_trigger": false,
"issuer_error_code": null,
"issuer_error_message": null,
"is_iframe_redirection_enabled": null
}
```
3. Nuvei payment
Unable to test the connector due to the unavailability of test credentials.
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/itaubank.rs`
- `crates/hyperswitch_connectors/src/connectors/nuvei.rs`
**Detailed Identifier Changes:**
Commit 6e03fc84:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/itaubank.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/nuvei.rs**
Modify existing code
|
{"pr_number": 8057, "pr_title": "fix(connector): Supported capture methods fix for feature matrix", "merged_at": "2025-05-20T10:44:25Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/itaubank.rs", "crates/hyperswitch_connectors/src/connectors/nuvei.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
chore: address Rust 1.88.0 clippy lints
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
This pull request includes a minor improvement to error message formatting in the `build_unified_connector_service_payment_method` function.
* [`crates/router/src/core/unified_connector_service.rs`](diffhunk://#diff-b8e808846f58e455687a9e192c1c8d192598081aac942628640c42c1d397dfaeL104-R104): Updated the error message to use inline formatting for `payment_method_type`, improving readability and consistency.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payment_methods/vault.rs`
- `crates/router/src/core/unified_connector_service.rs`
**Detailed Identifier Changes:**
Commit b1c9be16:
Files to modify:
**crates/router/src/core/payment_methods/vault.rs**
Modify existing code
**crates/router/src/core/unified_connector_service.rs**
Modify existing code
|
{"pr_number": 8607, "pr_title": "chore: address Rust 1.88.0 clippy lints", "merged_at": "2025-07-10T15:38:02Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "connector"]}, "hierarchy": {"core_business": ["crates/router/src/core/payment_methods/vault.rs", "crates/router/src/core/unified_connector_service.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(connectors): [Template] add Worldpayvantiv
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
Add Payment connector template for Worldpayvantiv.
Hotfix PR for https://github.com/juspay/hyperswitch/pull/8226
Worldpay Vantiv, also known as the Worldpay CNP API, is a robust XML-based interface used to process online (card-not-present) transactions such as e-commerce purchases, subscription billing, and digital payments
Doc Reference - http://support.worldpay.com/support/CNP-API/content/introduction.htm
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **payment** feature, you'll need to modify these architectural layers:
**1. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/configs.rs`
**2. Core Business Logic**
- `crates/router/src/core/admin.rs`
**3. External Connector Integration**
- `crates/common_enums/src/connector_enums.rs`
- `crates/connector_configs/src/connector.rs`
- `crates/hyperswitch_connectors/src/connectors.rs`
- ... and 9 more files
**4. Type Definitions**
- `crates/router/src/types/api.rs`
- `crates/router/src/types/transformers.rs`
**5. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**6. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
**Code Patterns Applied:**
- Define new data structures (10 changes)
- Implement new functions (78 changes)
- Extend existing types with new fields (158 changes)
**Detailed Identifier Changes:**
Commit 68c08799:
Files to modify:
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/connector_configs/src/connector.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors.rs**
Add:
- mod: pub::worldpayvantiv
**crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs**
Add:
- function: pub::new
- function: private::build_headers
- function: private::id
- function: private::get_currency_unit
- function: private::common_get_content_type
- function: private::base_url
- function: private::get_auth_header
- function: private::build_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::get_request_body
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::get_request_body
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::get_request_body
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_webhook_object_reference_id
- function: private::get_webhook_event_type
- function: private::get_webhook_resource_object
- struct: pub::Worldpayvantiv
- impl: impl Worldpayvantiv
- impl: impl api::Payment for Worldpayvantiv
- impl: impl api::PaymentSession for Worldpayvantiv
- impl: impl api::ConnectorAccessToken for Worldpayvantiv
- impl: impl api::MandateSetup for Worldpayvantiv
- impl: impl api::PaymentAuthorize for Worldpayvantiv
- impl: impl api::PaymentSync for Worldpayvantiv
- impl: impl api::PaymentCapture for Worldpayvantiv
- impl: impl api::PaymentVoid for Worldpayvantiv
- impl: impl api::Refund for Worldpayvantiv
- impl: impl api::RefundExecute for Worldpayvantiv
- impl: impl api::RefundSync for Worldpayvantiv
- impl: impl api::PaymentToken for Worldpayvantiv
- impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Worldpayvantiv
- impl: impl ConnectorCommonExt<Flow, Request, Response> for Worldpayvantiv
- impl: impl ConnectorCommon for Worldpayvantiv
- impl: impl ConnectorValidation for Worldpayvantiv
- impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Worldpayvantiv
- impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Worldpayvantiv
- impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Worldpayvantiv
- impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Worldpayvantiv
- impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Worldpayvantiv
- impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Worldpayvantiv
- impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Worldpayvantiv
- impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Worldpayvantiv
- impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Worldpayvantiv
- impl: impl webhooks::IncomingWebhook for Worldpayvantiv
- impl: impl ConnectorSpecifications for Worldpayvantiv
- mod: pub::transformers
**crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs**
Add:
- function: private::from
- function: private::try_from
- function: private::try_from
- function: private::from
- function: private::try_from
- function: private::try_from
- function: private::from
- function: private::try_from
- function: private::try_from
- struct: pub::WorldpayvantivRouterData
- struct: pub::WorldpayvantivPaymentsRequest
- struct: pub::WorldpayvantivCard
- struct: pub::WorldpayvantivAuthType
- struct: pub::WorldpayvantivPaymentsResponse
- struct: pub::WorldpayvantivRefundRequest
- struct: pub::RefundResponse
- struct: pub::WorldpayvantivErrorResponse
- enum: pub::WorldpayvantivPaymentStatus
- enum: pub::RefundStatus
- impl: impl From<(StringMinorUnit, T)> for WorldpayvantivRouterData<T>
- impl: impl TryFrom<&WorldpayvantivRouterData<&PaymentsAuthorizeRouterData>> for WorldpayvantivPaymentsRequest
- impl: impl TryFrom<&ConnectorAuthType> for WorldpayvantivAuthType
- impl: impl From<WorldpayvantivPaymentStatus> for common_enums::AttemptStatus
- impl: impl TryFrom<ResponseRouterData<F, WorldpayvantivPaymentsResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData>
- impl: impl TryFrom<&WorldpayvantivRouterData<&RefundsRouterData<F>>> for WorldpayvantivRefundRequest
- impl: impl From<RefundStatus> for enums::RefundStatus
- impl: impl TryFrom<RefundsResponseRouterData<Execute, RefundResponse>> for RefundsRouterData<Execute>
- impl: impl TryFrom<RefundsResponseRouterData<RSync, RefundResponse>> for RefundsRouterData<RSync>
**crates/hyperswitch_connectors/src/default_implementations.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations_v2.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/configs.rs**
Modify existing code
**crates/router/src/connector.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/types/api.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
**crates/router/tests/connectors/main.rs**
Add:
- mod: private::worldpayvantiv
**crates/router/tests/connectors/worldpayvantiv.rs**
Add:
- function: private::get_data
- function: private::get_auth_token
- function: private::get_name
- function: private::get_default_payment_info
- function: private::payment_method_details
- function: private::should_only_authorize_payment
- function: private::should_capture_authorized_payment
- function: private::should_partially_capture_authorized_payment
- function: private::should_sync_authorized_payment
- function: private::should_void_authorized_payment
- function: private::should_refund_manually_captured_payment
- function: private::should_partially_refund_manually_captured_payment
- function: private::should_sync_manually_captured_refund
- function: private::should_make_payment
- function: private::should_sync_auto_captured_payment
- function: private::should_refund_auto_captured_payment
- function: private::should_partially_refund_succeeded_payment
- function: private::should_refund_succeeded_payment_multiple_times
- function: private::should_sync_refund
- function: private::should_fail_payment_for_incorrect_cvc
- function: private::should_fail_payment_for_invalid_exp_month
- function: private::should_fail_payment_for_incorrect_expiry_year
- function: private::should_fail_void_payment_for_auto_capture
- function: private::should_fail_capture_for_invalid_payment
- function: private::should_fail_for_refund_amount_higher_than_payment_amount
- struct: private::WorldpayvantivTest
- impl: impl ConnectorActions for WorldpayvantivTest
- impl: impl utils::Connector for WorldpayvantivTest
**crates/test_utils/src/connector_auth.rs**
Modify existing code
|
{"pr_number": 8245, "pr_title": "feat(connectors): [Template] add Worldpayvantiv ", "merged_at": "2025-06-05T05:31:47Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["payment", "connector", "card"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/configs.rs"], "core_business": ["crates/router/src/core/admin.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/connector_configs/src/connector.rs", "crates/hyperswitch_connectors/src/connectors.rs", "crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs", "crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/router/src/connector.rs", "crates/router/tests/connectors/main.rs", "crates/router/tests/connectors/worldpayvantiv.rs", "crates/test_utils/src/connector_auth.rs", "scripts/add_connector.sh"], "types": ["crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {"structs_added": 10, "functions_added": 78, "enums_added": 2, "fields_added": 158, "imports_added": 20}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(events): adding infra level components to api-events
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
main PR
https://github.com/juspay/hyperswitch/pull/8214
Adding infra level information to `ApiEvent` based on config from deployment config under `infra_values`
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [x] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
```bash
[infra_values]
cluster = "CLUSTER" # value of CLUSTER from deployment
version = "HOSTNAME" # value of HOSTNAME from deployment which tells its version
```
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
This is required for comparing events generation and their status code for comparing success rate of 2 different versions of router
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
<img width="985" alt="Screenshot 2025-06-03 at 11 18 29 AM" src="https://github.com/user-attachments/assets/8cc863c5-f948-4232-969f-7a6d44be1dac" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/webhooks/incoming.rs`
- `crates/router/src/core/webhooks/incoming_v2.rs`
**2. Configuration Files**
- `config/config.example.toml`
- `config/development.toml`
- `config/docker_compose.toml`
- ... and 2 more files
**3. Other**
- `crates/router/src/events/api_logs.rs`
- `crates/router/src/routes/app.rs`
- `crates/router/src/services/api.rs`
**Code Patterns Applied:**
- Implement new functions (1 changes)
- Extend existing types with new fields (9 changes)
- Add conditional logic for feature flags or filtering (1 changes)
- Modify database queries (1 changes)
**Detailed Identifier Changes:**
Commit 9341fb2d:
Files to modify:
**crates/router/src/configs/secrets_transformers.rs**
Modify existing code
**crates/router/src/configs/settings.rs**
Modify existing code
**crates/router/src/core/webhooks/incoming.rs**
Modify existing code
**crates/router/src/core/webhooks/incoming_v2.rs**
Modify existing code
**crates/router/src/events/api_logs.rs**
Modify existing code
**crates/router/src/routes/app.rs**
Add:
- function: pub::process_env_mappings
**crates/router/src/services/api.rs**
Modify existing code
|
{"pr_number": 8253, "pr_title": "feat(events): adding infra level components to api-events", "merged_at": "2025-06-05T06:17:41Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"core_business": ["crates/router/src/core/webhooks/incoming.rs", "crates/router/src/core/webhooks/incoming_v2.rs"], "config": ["config/config.example.toml", "config/development.toml", "config/docker_compose.toml", "crates/router/src/configs/secrets_transformers.rs", "crates/router/src/configs/settings.rs"], "other": ["crates/router/src/events/api_logs.rs", "crates/router/src/routes/app.rs", "crates/router/src/services/api.rs"]}, "change_types": {"functions_added": 1, "fields_added": 9, "conditionals_added": 1, "database_queries": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(payment-method): add custom header to connector call for hitting sandbox custom pod
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
add custom header to connector call for hitting sandbox custom pod
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs`
- `crates/hyperswitch_connectors/src/constants.rs`
|
{"pr_number": 8471, "pr_title": "fix(payment-method): add custom header to connector call for hitting sandbox custom pod", "merged_at": "2025-06-26T10:59:25Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs", "crates/hyperswitch_connectors/src/constants.rs"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
feat(router): add api_models and openapi changes for refunds create api v2
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
add api_models and openapi changes for refunds create api v2
### Additional Changes
- [x] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Run `mintlify dev` locally to test api-reference changes

## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/events/refund.rs`
- `crates/api_models/src/refunds.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/Cargo.toml`
- `crates/diesel_models/src/refund.rs`
**3. Utils**
- `crates/common_utils/src/events.rs`
- `crates/common_utils/src/id_type.rs`
- `crates/common_utils/src/id_type/global_id.rs`
- ... and 2 more files
**4. Other**
- `api-reference-v2/api-reference/refunds/refunds--create.mdx`
- `api-reference-v2/mint.json`
- `api-reference-v2/openapi_spec.json`
- ... and 3 more files
**Code Patterns Applied:**
- Define new data structures (4 changes)
- Implement new functions (9 changes)
- Extend existing types with new fields (35 changes)
**Detailed Identifier Changes:**
Commit 5a10e586:
Files to modify:
**crates/api_models/src/events/refund.rs**
Add:
- function: private::get_api_event_type
- impl: impl ApiEventMetric for RefundResponse
**crates/api_models/src/refunds.rs**
Add:
- function: pub::get_refund_id_as_string
- function: pub::get_refund_id_as_string
- struct: pub::RefundsCreateRequest
- struct: pub::RefundResponse
- struct: pub::RefundErrorDetails
- impl: impl RefundResponse
- impl: impl RefundResponse
**crates/common_utils/src/events.rs**
Modify existing code
**crates/common_utils/src/id_type.rs**
Add:
- mod: private::refunds
**crates/common_utils/src/id_type/global_id.rs**
Add:
- mod: pub::refunds
**crates/common_utils/src/id_type/global_id/refunds.rs**
Add:
- function: pub::get_string_repr
- function: pub::generate
- function: private::try_from
- function: private::to_sql
- function: private::from_sql
- struct: pub::GlobalRefundId
- impl: impl GlobalRefundId
- impl: impl TryFrom<std::borrow::Cow<'static, str>> for GlobalRefundId
- impl: impl diesel::serialize::ToSql<diesel::sql_types::Text, DB> for GlobalRefundId
- impl: impl diesel::deserialize::FromSql<diesel::sql_types::Text, DB> for GlobalRefundId
**crates/common_utils/src/id_type/refunds.rs**
Modify existing code
**crates/diesel_models/src/refund.rs**
Modify existing code
**crates/openapi/src/openapi_v2.rs**
Modify existing code
**crates/openapi/src/routes/refunds.rs**
Add:
- function: pub::refunds_create
**crates/router/src/events/outgoing_webhook_logs.rs**
Modify existing code
|
{"pr_number": 6385, "pr_title": "feat(router): add api_models and openapi changes for refunds create api v2", "merged_at": "2024-10-23T11:49:07Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "refund"]}, "hierarchy": {"api_models": ["crates/api_models/src/events/refund.rs", "crates/api_models/src/refunds.rs"], "database": ["crates/diesel_models/Cargo.toml", "crates/diesel_models/src/refund.rs"], "utils": ["crates/common_utils/src/events.rs", "crates/common_utils/src/id_type.rs", "crates/common_utils/src/id_type/global_id.rs", "crates/common_utils/src/id_type/global_id/refunds.rs", "crates/common_utils/src/id_type/refunds.rs"], "other": ["api-reference-v2/api-reference/refunds/refunds--create.mdx", "api-reference-v2/mint.json", "api-reference-v2/openapi_spec.json", "crates/openapi/src/openapi_v2.rs", "crates/openapi/src/routes/refunds.rs", "crates/router/src/events/outgoing_webhook_logs.rs"]}, "change_types": {"structs_added": 4, "functions_added": 9, "fields_added": 35, "imports_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(payment_methods): [Paysera, Skrill] Add support to paysera and skrill wallets and in shift4
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Add support to paysera and skrill PMs and shift4
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
<details>
<summary>Cypress</summary>
Existing PMS 3ds auto capture and sofort is failing in cypress
<img width="855" alt="Screenshot 2025-07-07 at 5 37 35 PM" src="https://github.com/user-attachments/assets/1e83e6fa-16f7-4f21-b384-caade9d18775" />
<img width="1701" alt="Screenshot 2025-07-07 at 7 04 00 PM" src="https://github.com/user-attachments/assets/a204aa4f-2029-4dbd-96b7-909b3dcb6e0c" />
</details>
<details>
<summary>Feature Matrix Response</summary>
```
{"connector_count":68,"connectors":[{"name":"ACI","display_name":"ACI","description":"ACI Payments delivers secure, real-time electronic payment solutions for businesses, banks, and governments, enabling seamless transactions across channels.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"wallet","payment_method_type":"mb_way","payment_method_type_display_name":"MB WAY","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"supported_countries":["ESP","PRT","EST"],"supported_currencies":["EUR"]},{"payment_method":"wallet","payment_method_type":"ali_pay","payment_method_type_display_name":"Alipay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"supported_countries":["CHN"],"supported_currencies":["CNY"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","DinersClub","Discover","JCB","Maestro","Mastercard","UnionPay","Visa"],"supported_countries":["USA","SAU","GTM","PAK","SEN","SVK","ITA","ARE","PER","QAT","URY","HRV","MOZ","HUN","NGA","GBR","MKD","DNK","DOM","NZL","HKG","PAN","MYS","LUX","SWE","MEX","AUT","LBY","IRL","FIN","BEL","LAO","GHA","CYP","EGY","MMR","THA","CHN","LIE","COL","ROU","CRI","FRA","LTU","GIB","BGR","AND","SLV","JPN","POL","ETH","VNM","OMN","CZE","UKR","EST","KHM","HND","PRT","DEU","SVN","ISL","IDN","ESP","CHE","GRC","ZMB"],"supported_currencies":["EUR","GHS","NZD","UYU","MMK","THB","HUF","JPY","SEK","LAK","DKK","PAB","MAD","UAH","HRK","TRY","MXN","IDR","SAR","NGN","SGD","KPW","CHF","ARS","BGN","HKD","QAR","RON","VND","MKD","ZMW","RSD","CRC","ALL","DOP","KHR","TWD","PKR","COP","GBP","EGP","AED","PEN","ILS","MZN","USD","HNL","MYR","OMR","CLP","CNY","LKR","PHP","CZK","ISK","PLN","NOK","ZAR"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","DinersClub","Discover","JCB","Maestro","Mastercard","UnionPay","Visa"],"supported_countries":["ZMB","GTM","PER","PAN","EGY","EST","ETH","DEU","MYS","HND","SWE","SEN","GBR","VNM","ROU","LTU","JPN","CYP","ARE","ITA","COL","LIE","NGA","AUT","FRA","HKG","MMR","LAO","DOM","UKR","BEL","BGR","KHM","CHN","AND","IDN","LBY","NZL","SVK","USA","DNK","HUN","SAU","OMN","PRT","URY","IRL","CHE","CZE","GIB","THA","MKD","GHA","FIN","POL","HRV","MOZ","QAT","ESP","SLV","GRC","ISL","PAK","LUX","MEX","CRI","SVN"],"supported_currencies":["ZAR","CRC","KPW","DOP","BGN","PHP","TRY","USD","ISK","NZD","QAR","ILS","MZN","SGD","CLP","LKR","PAB","NOK","RON","MXN","ALL","MKD","PKR","JPY","PEN","KHR","SEK","TWD","CNY","ARS","CHF","DKK","GBP","HNL","EGP","PLN","THB","NGN","UAH","SAR","OMR","HRK","HKD","HUF","COP","RSD","MMK","CZK","MYR","LAK","MAD","ZMW","EUR","GHS","UYU","VND","IDR","AED"]},{"payment_method":"bank_redirect","payment_method_type":"eft","payment_method_type_display_name":"EFT","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"supported_countries":null,"supported_currencies":null},{"payment_method":"bank_redirect","payment_method_type":"interac","payment_method_type_display_name":"Interac","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"supported_countries":["CAN"],"supported_currencies":["USD","CAD"]},{"payment_method":"bank_redirect","payment_method_type":"trustly","payment_method_type_display_name":"Trustly","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"supported_countries":["EST","NOR","DEU","DNK","GBR","LTU","FIN","LVA","SWE","ESP","NLD","AUT"],"supported_currencies":["SEK","DKK","NOK","CZK","GBP","EUR"]},{"payment_method":"bank_redirect","payment_method_type":"eps","payment_method_type_display_name":"EPS","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"supported_countries":["AUT"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"ideal","payment_method_type_display_name":"iDEAL","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"supported_countries":["NLD"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"przelewy24","payment_method_type_display_name":"Przelewy24","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"supported_countries":["POL"],"supported_currencies":["GBP","CZK","EUR","PLN"]},{"payment_method":"bank_redirect","payment_method_type":"giropay","payment_method_type_display_name":"Giropay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"supported_countries":["DEU"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"sofort","payment_method_type_display_name":"Sofort","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"supported_countries":["ESP","AUT","ITA","DEU","GBR","CHE","NLD","POL","BEL"],"supported_currencies":["GBP","CHF","EUR","HUF","PLN"]},{"payment_method":"pay_later","payment_method_type":"klarna","payment_method_type_display_name":"Klarna","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"supported_countries":["AUS","DNK","CZE","FIN","GRC","NZL","USA","NLD","CHE","ESP","GBR","DEU","NOR","CAN","PRT","BEL","IRL","AUT","ITA","SWE","FRA","POL"],"supported_currencies":["NOK","AUD","CHF","EUR","PLN","GBP","DKK","NZD","CAD","USD","SEK"]}],"supported_webhook_flows":[]},{"name":"ADYEN","display_name":"Adyen","description":"Adyen is a Dutch payment company with the status of an acquiring bank that allows businesses to accept e-commerce, mobile, and point-of-sale payments. It is listed on the stock exchange Euronext Amsterdam","category":"payment_gateway","supported_payment_methods":[{"payment_method":"wallet","payment_method_type":"swish","payment_method_type_display_name":"Swish","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["SWE"],"supported_currencies":["SEK"]},{"payment_method":"wallet","payment_method_type":"mb_way","payment_method_type_display_name":"MB WAY","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["PRT"],"supported_currencies":["EUR"]},{"payment_method":"wallet","payment_method_type":"vipps","payment_method_type_display_name":"Vipps","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"supported_countries":null,"supported_currencies":null},{"payment_method":"wallet","payment_method_type":"apple_pay","payment_method_type_display_name":"Apple Pay","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"supported_countries":["CZE","USA","FIN","NLD","NZL","LTU","GRC","BEL","LUX","ITA","MYS","ESP","CYP","DEU","SGP","CHN","SWE","IRL","DNK","ISL","UKR","CHE","LVA","GBR","ROU","BHR","SVN","AUT","FRA","AUS","BRA","MLT","PRT","HUN","KWT","POL","HRV","HKG","ARE","CAN","LIE","EST","NOR","JPN"],"supported_currencies":["AUD","EUR","MYR","HKD","CHF","SGD","GBP","CAD","USD"]},{"payment_method":"wallet","payment_method_type":"ali_pay","payment_method_type_display_name":"Alipay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["MLT","NLD","THA","ESP","DNK","USA","ROU","GBR","FRA","AUS","AUT","DEU","SGP","GRC","MYS","ITA","PRT","CYP","SWE","IRL","SVN","BEL","CHE","NOR","FIN","HKG","CAN","JPN"],"supported_currencies":["CHF","HKD","THB","JPY","EUR","SEK","NOK","USD","CAD","SGD","GBP","NZD","AUD"]},{"payment_method":"wallet","payment_method_type":"paze","payment_method_type_display_name":"Paze","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"wallet","payment_method_type":"go_pay","payment_method_type_display_name":"GoPay","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["IDN"],"supported_currencies":["IDR"]},{"payment_method":"wallet","payment_method_type":"ali_pay_hk","payment_method_type_display_name":"AlipayHK","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["HKG"],"supported_currencies":["HKD"]},{"payment_method":"wallet","payment_method_type":"kakao_pay","payment_method_type_display_name":"KakaoPay","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["KOR"],"supported_currencies":["KRW"]},{"payment_method":"wallet","payment_method_type":"we_chat_pay","payment_method_type_display_name":"WeChat Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["USA","JPN","SWE","PRT","NOR","FRA","AUS","GRC","BEL","ITA","SVN","CHE","CYP","SGP","ESP","GBR","DNK","DEU","AUT","CAN","CHN","LIE","NLD","MLT","HKG","NZL"],"supported_currencies":["NZD","AUD","GBP","USD","CNY","JPY","CAD","EUR","HKD","SGD"]},{"payment_method":"wallet","payment_method_type":"gcash","payment_method_type_display_name":"GCash","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["PHL"],"supported_currencies":["PHP"]},{"payment_method":"wallet","payment_method_type":"touch_n_go","payment_method_type_display_name":"Touch 'n Go","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["MYS"],"supported_currencies":["MYR"]},{"payment_method":"wallet","payment_method_type":"google_pay","payment_method_type_display_name":"Google Pay","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"supported_countries":["HUN","LIE","ISL","NOR","CAN","VNM","AUT","BRA","AUS","USA","SGP","LUX","MLT","TUR","GRC","FRA","NZL","ESP","SVN","EST","ARE","LTU","IRL","HKG","THA","SWE","KWT","POL","CHE","LVA","SVK","HRV","BHR","ROU","CYP","NLD","DNK","CZE","PRT","ITA","GBR","MYS","JPN","BEL","DEU"],"supported_currencies":["JOD","BYN","USD","AMD","AZN","IQD","IDR","MMK","RWF","CVE","ZMW","TOP","MXN","HNL","RSD","STN","INR","TRY","HTG","BAM","ILS","KZT","PKR","KRW","CUP","ALL","EGP","LAK","VUV","UGX","SGD","PEN","QAR","PYG","NPR","AOA","PLN","VES","TND","YER","BZD","MRU","LBP","ZAR","THB","TWD","UZS","SBD","KHR","DKK","AED","ETB","CNY","CRC","PHP","MYR","RUB","DOP","HKD","JMD","JPY","UAH","SRD","GYD","PGK","HUF","NOK","SOS","FKP","CZK","DZD","KWD","MNT","GBP","GIP","MDL","FJD","GNF","SLE","SVC","BSD","WST","ARS","MOP","VND","SCR","OMR","UYU","ANG","LKR","MUR","MZN","CHF","DJF","NGN","MAD","BGN","SZL","CAD","SEK","SHP","GHS","TTD","BND","BRL","NZD","XPF","BMD","AUD","GMD","GTQ","KGS","KYD","XOF","GEL","COP","KMF","CLP","BDT","NIO","MVR","XCD","AWG","RON","BOB","LYD","BBD","NAD","XAF","BWP","KES","EUR","MWK","PAB","SAR","BHD","TZS","MKD"]},{"payment_method":"wallet","payment_method_type":"momo","payment_method_type_display_name":"MoMo","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["VNM"],"supported_currencies":["VND"]},{"payment_method":"wallet","payment_method_type":"samsung_pay","payment_method_type_display_name":"Samsung Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"wallet","payment_method_type":"twint","payment_method_type_display_name":"TWINT","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"wallet","payment_method_type":"dana","payment_method_type_display_name":"DANA","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"wallet","payment_method_type":"paypal","payment_method_type_display_name":"PayPal","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"supported_countries":["SVK","KOR","BRA","LVA","SVN","CHN","NZL","ROU","IDN","ITA","MLT","NLD","ISL","CAN","PHL","LUX","FIN","JPN","CYP","MYS","ESP","EST","HKG","DNK","CHE","KWT","CZE","LTU","UKR","USA","POL","NOR","BEL","PRT","GBR","DEU","SWE","FRA","GIB","AUT","HUN","ARE","IRL","HRV","THA","AUS"],"supported_currencies":["HUF","PLN","SEK","CHF","THB","EUR","CAD","AUD","HKD","MYR","NOK","GBP","USD","NZD","BRL","DKK","INR","RUB","SGD","PHP","JPY","CZK","MXN"]},{"payment_method":"wallet","payment_method_type":"mobile_pay","payment_method_type_display_name":"MobilePay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"supported_countries":["DNK","FIN"],"supported_currencies":["DKK","NOK","SEK","EUR"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","CartesBancaires","UnionPay","DinersClub","Discover","Interac","JCB","Maestro","Mastercard","Visa"],"supported_countries":null,"supported_currencies":null},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","CartesBancaires","UnionPay","DinersClub","Discover","Interac","JCB","Maestro","Mastercard","Visa"],"supported_countries":null,"supported_currencies":null},{"payment_method":"gift_card","payment_method_type":"pay_safe_card","payment_method_type_display_name":"PaySafeCard","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["SVK","HRV","DNK","POL","LTU","LVA","MDA","CZE","GBR","ARE","SVN","HUN","ISL","PER","MEX","ROU","DEU","NOR","CHE","FIN","SRB","AUT","GIB","KWT","MLT","MNE","ESP","FRA","PRT","SAU","AUS","LUX","NLD","PRY","BEL","BRA","GEO","TUR","CYP","SWE","USA","IRL","CAN","URY","NZL","LIE"],"supported_currencies":["AUD","GEL","MXN","PLN","RON","GBP","NOK","CAD","CZK","DKK","MDL","SAR","RSD","SEK","TRY","USD","BRL","CHF","NZD","AED","EUR","GIP","HUF","UYU","KWD","PYG","PEN"]},{"payment_method":"gift_card","payment_method_type":"givex","payment_method_type_display_name":"Givex","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"pay_later","payment_method_type":"walley","payment_method_type_display_name":"Walley","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["NOR","DNK","FIN","SWE"],"supported_currencies":["SEK","DKK","EUR","NOK"]},{"payment_method":"pay_later","payment_method_type":"affirm","payment_method_type_display_name":"Affirm","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"supported_countries":["USA"],"supported_currencies":["USD"]},{"payment_method":"pay_later","payment_method_type":"atome","payment_method_type_display_name":"Atome","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["SGP","MYS"],"supported_currencies":["SGD","MYR"]},{"payment_method":"pay_later","payment_method_type":"alma","payment_method_type_display_name":"Alma","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"pay_later","payment_method_type":"afterpay_clearpay","payment_method_type_display_name":"Afterpay Clearpay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"supported_countries":["FRA","AUS","CAN","ESP","USA","GBR","NZL","ITA"],"supported_currencies":["GBP"]},{"payment_method":"pay_later","payment_method_type":"klarna","payment_method_type_display_name":"Klarna","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["DNK","SWE","FIN","IRL","DEU","CHE","PRT","FRA","NLD","GRC","CZE","ESP","BEL","ITA","GBR","ROU","NOR","CAN","USA","AUS","AUT","POL"],"supported_currencies":["AUD","SEK","DKK","CAD","RON","CHF","CZK","USD","NOK","PLN","GBP","EUR"]},{"payment_method":"pay_later","payment_method_type":"pay_bright","payment_method_type_display_name":"PayBright","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"supported_countries":["CAN"],"supported_currencies":["CAD"]},{"payment_method":"bank_redirect","payment_method_type":"open_banking_uk","payment_method_type_display_name":"Open Banking UK","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["GBR"],"supported_currencies":["GBP"]},{"payment_method":"bank_redirect","payment_method_type":"bancontact_card","payment_method_type_display_name":"Bancontact Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["BEL"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"ideal","payment_method_type_display_name":"iDEAL","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["NLD"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"online_banking_slovakia","payment_method_type_display_name":"Online Banking Slovakia","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["SVK"],"supported_currencies":["EUR","CZK"]},{"payment_method":"bank_redirect","payment_method_type":"online_banking_finland","payment_method_type_display_name":"Online Banking Finland","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["FIN"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"blik","payment_method_type_display_name":"BLIK","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["POL"],"supported_currencies":["PLN"]},{"payment_method":"bank_redirect","payment_method_type":"eps","payment_method_type_display_name":"EPS","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["AUT"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"online_banking_czech_republic","payment_method_type_display_name":"Online Banking Czech Republic","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["CZE"],"supported_currencies":["CZK","EUR"]},{"payment_method":"bank_redirect","payment_method_type":"bizum","payment_method_type_display_name":"Bizum","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["ESP"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"online_banking_fpx","payment_method_type_display_name":"Online Banking FPX","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["MYS"],"supported_currencies":["MYR"]},{"payment_method":"bank_redirect","payment_method_type":"online_banking_poland","payment_method_type_display_name":"Online Banking Poland","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["POL"],"supported_currencies":["PLN"]},{"payment_method":"bank_redirect","payment_method_type":"online_banking_thailand","payment_method_type_display_name":"Online Banking Thailand","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["THA"],"supported_currencies":["THB"]},{"payment_method":"bank_redirect","payment_method_type":"trustly","payment_method_type_display_name":"Trustly","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["LTU","AUT","ESP","DNK","EST","LVA","GBR","SWE","NLD","NOR","DEU","FIN"],"supported_currencies":["NOK","EUR","CZK","SEK","GBP","DKK"]},{"payment_method":"voucher","payment_method_type":"boleto","payment_method_type_display_name":"Boleto Bancário","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["BRA"],"supported_currencies":["BRL"]},{"payment_method":"voucher","payment_method_type":"seicomart","payment_method_type_display_name":"Seicomart","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["JPN"],"supported_currencies":["JPY"]},{"payment_method":"voucher","payment_method_type":"alfamart","payment_method_type_display_name":"Alfamart","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["IDN"],"supported_currencies":["IDR"]},{"payment_method":"voucher","payment_method_type":"lawson","payment_method_type_display_name":"Lawson","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["JPN"],"supported_currencies":["JPY"]},{"payment_method":"voucher","payment_method_type":"seven_eleven","payment_method_type_display_name":"7-Eleven","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["JPN"],"supported_currencies":["JPY"]},{"payment_method":"voucher","payment_method_type":"indomaret","payment_method_type_display_name":"Indomaret","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["IDN"],"supported_currencies":["IDR"]},{"payment_method":"voucher","payment_method_type":"oxxo","payment_method_type_display_name":"OXXO","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["MEX"],"supported_currencies":["MXN"]},{"payment_method":"voucher","payment_method_type":"family_mart","payment_method_type_display_name":"FamilyMart","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["JPN"],"supported_currencies":["JPY"]},{"payment_method":"voucher","payment_method_type":"pay_easy","payment_method_type_display_name":"PayEasy","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["JPN"],"supported_currencies":["JPY"]},{"payment_method":"voucher","payment_method_type":"mini_stop","payment_method_type_display_name":"Mini Stop","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["JPN"],"supported_currencies":["JPY"]},{"payment_method":"bank_debit","payment_method_type":"bacs","payment_method_type_display_name":"BACS Direct Debit","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["GBR"],"supported_currencies":["GBP"]},{"payment_method":"bank_debit","payment_method_type":"ach","payment_method_type_display_name":"ACH Direct Debit","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["USA"],"supported_currencies":["USD"]},{"payment_method":"bank_debit","payment_method_type":"sepa","payment_method_type_display_name":"SEPA Direct Debit","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"supported_countries":["LVA","EST","FIN","ESP","ITA","SVK","IRL","DEU","AUT","NLD","BEL","FRA","LTU","PRT"],"supported_currencies":["EUR"]},{"payment_method":"bank_transfer","payment_method_type":"cimb_va","payment_method_type_display_name":"CIMB Virtual Account","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["IDN"],"supported_currencies":["IDR"]},{"payment_method":"bank_transfer","payment_method_type":"bni_va","payment_method_type_display_name":"BNI Virtual Account","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["IDN"],"supported_currencies":["IDR"]},{"payment_method":"bank_transfer","payment_method_type":"danamon_va","payment_method_type_display_name":"Danamon Virtual Account","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["IDN"],"supported_currencies":["IDR"]},{"payment_method":"bank_transfer","payment_method_type":"bri_va","payment_method_type_display_name":"BRI Virtual Account","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["IDN"],"supported_currencies":["IDR"]},{"payment_method":"bank_transfer","payment_method_type":"mandiri_va","payment_method_type_display_name":"Mandiri Virtual Account","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["IDN"],"supported_currencies":["IDR"]},{"payment_method":"bank_transfer","payment_method_type":"permata_bank_transfer","payment_method_type_display_name":"Permata Bank Transfer","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["IDN"],"supported_currencies":["IDR"]},{"payment_method":"bank_transfer","payment_method_type":"pix","payment_method_type_display_name":"Pix","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["BRA"],"supported_currencies":["BRL"]},{"payment_method":"bank_transfer","payment_method_type":"bca_bank_transfer","payment_method_type_display_name":"BCA Bank Transfer","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["IDN"],"supported_currencies":["IDR"]},{"payment_method":"card_redirect","payment_method_type":"benefit","payment_method_type_display_name":"Benefit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"card_redirect","payment_method_type":"momo_atm","payment_method_type_display_name":"MoMo ATM","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"card_redirect","payment_method_type":"knet","payment_method_type_display_name":"KNET","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":null}],"supported_webhook_flows":["payments","refunds","disputes","payouts","mandates"]},{"name":"AIRWALLEX","display_name":"Airwallex","description":"Airwallex is a multinational financial technology company offering financial services and software as a service (SaaS)","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","JCB","DinersClub","UnionPay","Discover"],"supported_countries":["HKG","NZL","SGP","AUS","USA"],"supported_currencies":["IRR","KGS","KPW","XOF","GEL","GNF","ANG","COP","DJF","GMD","GIP","HKD","BBD","IDR","ISK","UGX","BWP","RSD","MGA","PGK","GHS","BIF","CNY","MAD","LRD","SDG","TND","HRK","MUR","EGP","ERN","JMD","HUF","HTG","GBP","LYD","FKP","JOD","SBD","MNT","BHD","SHP","SCR","MDL","KYD","ZMW","SVC","USD","CRC","MRU","NPR","XCD","SZL","MXN","INR","KZT","MWK","GTQ","EUR","CDF","PLN","ETB","KES","SLE","BYN","TRY","NOK","KWD","AWG","BDT","GYD","ZAR","OMR","CUP","LKR","LAK","AUD","DZD","KMF","AED","ALL","LBP","CLP","DKK","RUB","TMT","PYG","TJS","UAH","MOP","SRD","XPF","TZS","SGD","RON","CHF","SOS","RWF","AOA","FJD","BSD","CAD","QAR","XAF","SEK","THB","DOP","PAB","BAM","BND","YER","BGN","BMD","KRW","PHP","VES","LSL","BRL","UZS","ARS","BOB","BZD","CVE","CZK","NGN","MKD","PEN","SSP","STN","MMK","JPY","MYR","VUV","AFN","SYP","WST","AMD","IQD","TTD","ILS","MZN","NAD","SLL","PKR","TOP","TWD","VND","NIO","ZWL","HNL","MVR","BTN","NZD","UYU","AZN","KHR","SAR"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","JCB","DinersClub","UnionPay","Discover"],"supported_countries":["USA","SGP","AUS","NZL","HKG"],"supported_currencies":["BRL","THB","KRW","AED","RON","GHS","AMD","DOP","MUR","OMR","BDT","BND","TMT","TOP","GBP","BHD","NIO","SSP","XPF","KYD","VES","KZT","TZS","KPW","MNT","GIP","NAD","GNF","NGN","GTQ","HKD","PYG","RWF","CUP","KHR","LBP","DZD","SGD","SHP","MWK","PKR","SZL","CZK","KGS","AOA","ZMW","PAB","HRK","WST","CLP","NOK","JPY","MGA","BIF","SCR","SLL","RSD","USD","MKD","BZD","VND","PEN","NZD","XOF","BGN","JOD","MXN","PGK","SRD","STN","AWG","YER","TRY","DKK","UAH","CHF","GEL","TND","UZS","SYP","BSD","BTN","SLE","GYD","UGX","AZN","MRU","UYU","ETB","FKP","HTG","MYR","QAR","IDR","MOP","TWD","RUB","ISK","DJF","LAK","BAM","EUR","FJD","TTD","PLN","BOB","JMD","LYD","SAR","ERN","GMD","ILS","MVR","BMD","MZN","SBD","CAD","IRR","LKR","MAD","HNL","HUF","VUV","ALL","BWP","SDG","PHP","SOS","TJS","CRC","XCD","ANG","NPR","SEK","SVC","ZAR","BYN","CVE","MDL","AFN","CNY","CDF","XAF","COP","IQD","KWD","BBD","LRD","MMK","LSL","AUD","KES","ARS","INR","EGP","KMF","ZWL"]},{"payment_method":"wallet","payment_method_type":"google_pay","payment_method_type_display_name":"Google Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["NZL","HKG","USA","SGP","AUS"],"supported_currencies":["MRU","MXN","SRD","ERN","CHF","BHD","KMF","PLN","SVC","LKR","PEN","MYR","RSD","TWD","UZS","YER","BOB","CVE","ILS","GMD","IRR","MGA","TTD","ALL","BND","CZK","DKK","OMR","THB","MZN","GHS","GNF","HKD","IQD","MMK","UYU","SAR","NPR","HNL","MUR","MWK","SCR","ETB","JMD","LYD","ZWL","EUR","SGD","QAR","MVR","SDG","BZD","EGP","BRL","GEL","BMD","KPW","TJS","NAD","KGS","NZD","BIF","BTN","INR","HRK","ISK","BWP","KES","PYG","AZN","AMD","PGK","TMT","SOS","NGN","FJD","LSL","GIP","UAH","SHP","WST","MDL","ZAR","XAF","DOP","SYP","USD","CNY","SEK","CRC","DZD","KZT","KWD","MNT","SLL","LAK","ARS","TND","TOP","ANG","IDR","VND","RUB","CDF","CLP","VUV","AFN","CAD","FKP","ZMW","AED","AUD","PHP","XOF","AWG","GBP","STN","LRD","NOK","XPF","HUF","TZS","RON","JPY","AOA","JOD","CUP","MOP","UGX","KHR","BSD","SZL","HTG","GTQ","TRY","PAB","BDT","COP","KYD","LBP","VES","BYN","SSP","GYD","MKD","BGN","MAD","NIO","KRW","SLE","XCD","BBD","PKR","RWF","SBD","BAM","DJF"]}],"supported_webhook_flows":["payments","refunds","disputes"]},{"name":"AUTHORIZEDOTNET","display_name":"Authorize.net","description":" Authorize.net supports payment processing by helping small businesses accept credit card and eCheck payments online, in person on the go.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","Discover","JCB","Mastercard","Visa"],"supported_countries":null,"supported_currencies":["USD","CAD"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","Discover","JCB","Mastercard","Visa"],"supported_countries":null,"supported_currencies":["USD","CAD"]},{"payment_method":"wallet","payment_method_type":"google_pay","payment_method_type_display_name":"Google Pay","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":null,"supported_currencies":["NOK","DKK","CHF","EUR","USD","AUD","NZD","SEK","CAD","PLN","GBP"]},{"payment_method":"wallet","payment_method_type":"paypal","payment_method_type_display_name":"PayPal","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":null,"supported_currencies":["MYR","PLN","DKK","PHP","SGD","TWD","HUF","CNY","GBP","USD","JPY","HKD","NZD","AUD","BRL","SEK","THB","CHF","CZK","ILS","CAD","EUR","MXN","NOK"]},{"payment_method":"wallet","payment_method_type":"apple_pay","payment_method_type_display_name":"Apple Pay","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":null,"supported_currencies":["BRL","INR","CAD","CRC","KWD","ILS","USD","HKD","JPY","DKK","CZK","PEN","THB","RON","ZAR","COP","UAH","GBP","AED","GEL","AUD","ISK","PLN","SAR","GTQ","KZT","EGP","MAD","MYR","NZD","TWD","QAR","SGD","PYG","CLP","SEK","GHS","KRW","HUF","MXN","EUR","VND","NOK","HNL"]}],"supported_webhook_flows":["payments","refunds"]},{"name":"BAMBORA","display_name":"Bambora","description":"Bambora is a leading online payment provider in Canada and United States.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","JCB","DinersClub"],"supported_countries":["USA","CAN"],"supported_currencies":["USD"]}],"supported_webhook_flows":[]},{"name":"BAMBORAAPAC","display_name":"Bambora Asia-Pacific","description":"Bambora Asia-Pacific, provides comprehensive payment solutions, offering merchants smart and smooth payment processing capabilities.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","DinersClub"],"supported_countries":["SLB","IDN","ZAF","SAU","BLZ","GHA","JAM","NPL","NRU","SSD","PSE","ECU","CPV","COD","AZE","TUV","HTI","SUR","BHS","VAT","MOZ","BWA","THA","GGY","KHM","GEO","GNB","DMA","ARG","BEL","CIV","BGD","LUX","ZWE","SGP","LIE","FRA","VUT","BEN","DNK","MNE","ROU","BLR","BRA","COM","NGA","TLS","PAN","SVK","SRB","GIN","LSO","OMN","KEN","ZMB","CHE","SEN","BDI","KGZ","MUS","ATG","HRV","NAM","CAF","KOR","MLI","EST","BRB","AUS","LTU","UKR","KNA","UGA","AGO","CMR","DZA","TUR","KAZ","ISR","MHL","POL","NOR","JOR","MKD","IND","TZA","MEX","CYP","BGR","LCA","ARM","AND","FSM","TGO","PER","DOM","ESP","KIR","URY","TCD","MNG","IRL","MWI","PLW","CZE","CHN","TKM","FJI","AUT","KWT","COL","SMR","BRN","VCT","LKA","TUN","BTN","GUY","CRI","PAK","SLE","LVA","VNM","SYC","TON","GRD","PHL","LAO","BHR","NLD","WSM","ETH","HND","ITA","JPN","STP","GNQ","BOL","NIC","NZL","BIH","MLT","NER","PNG","TTO","FIN","MDV","EGY","VEN","SLV","LBN","MYS","SVN","ISL","TJK","PRY","HUN","COG","SWE","MDA","MDG","GRC","QAT","MCO","GBR","GMB","GAB","GTM","MAR","SOM","MMR","DJI","SWZ","USA","ERI","LBR","DEU","RWA","ARE","ALB","MRT","UZB","CHL","PRT","CAN"],"supported_currencies":["MXN","RON","IDR","RUB","CNY","USD","ISK","HUF","HRK","PHP","PKR","GHS","AED","IQD","LAK","MAD","MMK","RSD","AUD","NZD","PLN","TZS","ZMW","SAR","COP","UAH","BDT","KWD","MZN","KZT","VND","TRY","NOK","BRL","LKR","BGN","JPY","KRW","BND","INR","MYR","NAD","NPR","RWF","SEK","TWD","CZK","NGN","XAF","THB","UYU","HKD","KES","XOF","SGD","BWP","MDL","IRR","PEN","GEL","CHF","GBP","UGX","ZAR","EUR","CAD","MWK","SCR","MOP","DKK","QAR","SLL","BOB","EGP","FJD","ILS"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","DinersClub"],"supported_countries":["VAT","GIN","CHN","KEN","COG","BGD","MOZ","DNK","PLW","ISL","GBR","FSM","BLZ","CZE","CMR","BHS","NRU","NER","LUX","MDG","BOL","ESP","PSE","ALB","MRT","STP","AUT","SEN","PRY","EGY","LIE","MDV","BIH","ISR","ECU","NOR","AGO","SRB","COD","DOM","BTN","ATG","TGO","NPL","OMN","VNM","KIR","LCA","TJK","TCD","TUR","URY","TLS","VCT","GEO","HTI","ERI","SWZ","LKA","JPN","KOR","CAN","UZB","LTU","MWI","SMR","GHA","MEX","BEL","CIV","HRV","ETH","PAN","THA","NZL","PER","UGA","SGP","BDI","HUN","TZA","MNE","LBN","TTO","GGY","COM","NGA","SOM","CRI","HND","PAK","CPV","ZWE","MUS","SUR","ZAF","FRA","MKD","JOR","MYS","COL","BHR","LBR","DMA","BRA","BGR","ARM","ZMB","GUY","KAZ","MHL","MMR","TKM","PRT","NAM","NIC","GTM","LVA","SAU","MAR","VEN","ITA","TUN","GAB","SLB","SYC","DJI","USA","CYP","ARG","GRC","EST","BLR","TON","GNB","SLE","DZA","SLV","ARE","CHL","POL","DEU","BRN","WSM","IDN","UKR","SVK","PNG","MLI","FJI","MCO","VUT","AND","AUS","SSD","KNA","CHE","KHM","MDA","LAO","SVN","SWE","ROU","TUV","GMB","QAT","BWA","KWT","GRD","BEN","MLT","RWA","AZE","KGZ","BRB","IRL","NLD","FIN","IND","CAF","LSO","MNG","GNQ","PHL","JAM"],"supported_currencies":["LKR","BGN","MZN","CNY","BRL","BOB","SCR","THB","DKK","HKD","BDT","PKR","SAR","RSD","MDL","PHP","ZAR","EGP","BND","SEK","AED","KWD","UYU","RWF","MMK","TRY","LAK","MOP","TZS","INR","KES","NPR","IQD","SGD","KZT","JPY","QAR","HRK","IRR","NOK","SLL","ZMW","GBP","VND","RON","HUF","COP","MAD","NZD","BWP","TWD","EUR","IDR","UAH","USD","PEN","NAD","GEL","XOF","RUB","PLN","MYR","ISK","CAD","MWK","NGN","AUD","UGX","CZK","ILS","GHS","CHF","MXN","XAF","KRW","FJD"]}],"supported_webhook_flows":[]},{"name":"BARCLAYCARD","display_name":"BarclayCard SmartPay Fuse","description":"Barclaycard, part of Barclays Bank UK PLC, is a leading global payment business that helps consumers, retailers and businesses to make and take payments flexibly, and to access short-term credit and point of sale finance.","category":"bank_acquirer","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","AmericanExpress","JCB","Discover","Maestro","Interac","DinersClub","CartesBancaires","UnionPay"],"supported_countries":null,"supported_currencies":null},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","AmericanExpress","JCB","Discover","Maestro","Interac","DinersClub","CartesBancaires","UnionPay"],"supported_countries":null,"supported_currencies":null}],"supported_webhook_flows":[]},{"name":"BILLWERK","display_name":"Billwerk","description":"Billwerk+ Pay is an acquirer independent payment gateway that's easy to setup with more than 50 recurring and non-recurring payment methods.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","AmericanExpress","Discover","JCB","UnionPay","DinersClub","Interac","CartesBancaires"],"supported_countries":["DEU","DNK","FRA","SWE"],"supported_currencies":["DKK","NOK"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","AmericanExpress","Discover","JCB","UnionPay","DinersClub","Interac","CartesBancaires"],"supported_countries":["SWE","DNK","FRA","DEU"],"supported_currencies":["NOK","DKK"]}],"supported_webhook_flows":[]},{"name":"BITPAY","display_name":"Bitpay","description":"BitPay is a cryptocurrency payment processor that enables businesses to accept Bitcoin and other digital currencies ","category":"alternative_payment_method","supported_payment_methods":[{"payment_method":"crypto","payment_method_type":"crypto_currency","payment_method_type_display_name":"Crypto","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["HUN","ESP","NLD","HRV","ROU","CYP","EST","FIN","LTU","FRA","BGR","SWE","IRL","CZE","GBR","SVN","MLT","BEL","USA","PRT","LUX","DEU","LVA","GRC","ITA","DNK","POL","AUT","CAN","SVK"],"supported_currencies":["NZD","MXN","EUR","CAD","USD","CHF","AUD","GBP"]}],"supported_webhook_flows":["payments"]},{"name":"BLUESNAP","display_name":"BlueSnap","description":"BlueSnap is a payment platform that helps businesses accept payments from customers in over 200 regions ","category":"payment_gateway","supported_payment_methods":[{"payment_method":"wallet","payment_method_type":"google_pay","payment_method_type_display_name":"Google Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["BLZ","ZWE","SVN","VUT","BRN","AGO","MRT","MDV","BHS","CMR","LAO","SWZ","ISL","EST","HUN","URY","LVA","DJI","DOM","MDG","ZMB","MMR","SEN","PAN","HTI","PLW","MLI","TTO","GRC","TUR","BEN","NIC","SRB","UGA","IND","GGY","TON","DMA","GNQ","PHL","IDN","JPN","LKA","COD","UKR","SGP","GEO","MHL","BRA","KAZ","BHR","ATG","BOL","CYP","BGR","BRB","BGD","MNE","CAF","TJK","NZL","KIR","PRT","USA","AUS","MKD","COG","NER","ARE","CHE","GNB","TCD","SMR","ESP","PNG","LSO","VEN","GUY","ARG","ECU","LBN","ZAF","SAU","HRV","THA","DEU","PER","KOR","OMN","MLT","FRA","ETH","CZE","GAB","SYC","NGA","BEL","GMB","AND","ITA","ROU","RWA","NPL","LTU","GBR","ISR","DNK","QAT","STP","SUR","COM","GRD","CRI","BIH","IRL","CIV","CAN","CHN","BLR","CHL","KHM","GTM","MOZ","JOR","PRY","ALB","KNA","TKM","BWA","JAM","MEX","LIE","FJI","VNM","NRU","MDA","TZA","TLS","AUT","FSM","AZE","LUX","MNG","HND","TGO","MYS","COL","MCO","VCT","GHA","WSM","NOR","GIN","POL","MWI","ARM","CPV","ERI","KWT","LCA","BDI","SLE","LBR","SWE","PSE","NLD","TUV","EGY","SLB","FIN","SOM","DZA","SLV","VAT","SSD","MAR","KGZ","BTN","UZB","TUN","SVK","KEN","NAM","PAK","MUS"],"supported_currencies":["BOB","SGD","HUF","TWD","RSD","GBP","HKD","SDG","TTD","XAF","BAM","CAD","EGP","JMD","XOF","AED","CRC","MKD","TND","PAB","UYU","BGN","LKR","ARS","CHF","CLP","CNY","DKK","ALL","SAR","MUR","AFN","BHD","ISK","DZD","QAR","UAH","CZK","EUR","AMD","BRL","GIP","LBP","ANG","MYR","TZS","USD","UZS","XCD","IDR","ZAR","KHR","GTQ","NOK","BSD","KYD","KWD","BND","JPY","AUD","NZD","PLN","PKR","RON","MXN","PHP","NAD","RUB","AWG","DOP","COP","TRY","MAD","KRW","SEK","NGN","VND","BBD","FJD","BWP","INR","OMR","PGK","MDL","SCR","NPR","THB","GEL","KZT","PEN","BMD","ILS","KES","MWK"]},{"payment_method":"wallet","payment_method_type":"apple_pay","payment_method_type_display_name":"Apple Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["LCA","GGY","MNG","BRB","RWA","BHS","GBR","LTU","NIC","JAM","CYP","ISL","KGZ","CMR","UKR","DMA","LIE","TUN","BDI","NPL","BRA","EGY","CAF","LBR","SWZ","BEL","FIN","FJI","GEO","MUS","VEN","TLS","CRI","VAT","NER","MDA","USA","PAN","GMB","LKA","CHN","OMN","VNM","SWE","COG","MEX","PRT","LAO","SEN","MHL","ETH","SLV","ARE","MYS","GHA","MOZ","KAZ","PNG","DNK","LVA","GRC","BHR","NGA","BTN","ESP","HRV","JPN","QAT","PHL","SUR","MNE","CHE","NZL","MLT","PRY","STP","MWI","BGD","FRA","ISR","JOR","VCT","TKM","POL","TUR","DOM","CHL","CAN","ROU","ZMB","HTI","SLB","MMR","NRU","PLW","GNB","AUS","ERI","TZA","HND","HUN","AND","ZAF","THA","MAR","MCO","BWA","TUV","BRN","MDG","NLD","SRB","BLZ","DZA","TGO","KOR","MKD","KEN","TON","FSM","ECU","BIH","COL","SSD","LBN","IDN","GUY","AGO","CZE","SAU","PAK","CPV","NAM","SVK","SYC","BEN","KWT","TJK","GIN","ATG","IRL","URY","SGP","ARM","BOL","EST","MRT","SVN","ITA","TTO","MLI","CIV","BGR","ZWE","AZE","GRD","BLR","TCD","SMR","GNQ","MDV","LUX","COM","GTM","KIR","UZB","IND","COD","WSM","UGA","AUT","NOR","DEU","DJI","GAB","KHM","ARG","SOM","LSO","PSE","VUT","KNA","SLE","PER","ALB"],"supported_currencies":["SGD","CAD","TRY","RON","UYU","UZS","XAF","AED","BRL","EUR","BHD","DZD","MDL","SAR","SDG","ZAR","BSD","EGP","BMD","FJD","GTQ","KYD","TWD","ANG","TTD","BND","BWP","DOP","MYR","NAD","MWK","BBD","ISK","AMD","ALL","KWD","MKD","PEN","KRW","GEL","TND","USD","ARS","COP","IDR","OMR","PAB","AWG","DKK","PHP","SCR","THB","RUB","NZD","NPR","ILS","AUD","MAD","KZT","BGN","MXN","PLN","SEK","CLP","HUF","XCD","VND","UAH","MUR","XOF","GIP","KES","INR","JMD","TZS","RSD","KHR","NGN","PKR","LBP","NOK","JPY","CZK","CRC","BAM","BOB","GBP","PGK","CHF","CNY","LKR","HKD","QAR","AFN"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","RuPay","Maestro"],"supported_countries":["ROU","PNG","AND","LAO","MOZ","GTM","IND","KAZ","BDI","PHL","TON","FRA","BLR","TUR","TZA","GRD","BGR","COG","TTO","PAK","KIR","OMN","FIN","IDN","SAU","KEN","DOM","NGA","SWZ","NAM","SVN","GUY","ITA","KWT","MHL","MRT","NPL","ESP","VNM","SOM","GRC","KNA","LTU","CHE","BWA","ARM","CHL","BEN","DMA","SSD","THA","PLW","POL","NZL","BGD","TUV","NER","MDG","LBR","PSE","CZE","MDA","GEO","LKA","MWI","BHS","UZB","SVK","MDV","BRA","LSO","TUN","BRB","CAF","DZA","TCD","MUS","JOR","FJI","CAN","COM","COL","SWE","ETH","DJI","SYC","BIH","GNQ","BLZ","MEX","AUT","CPV","BEL","ECU","HUN","FSM","COD","NLD","ZMB","URY","HND","MLI","ALB","BHR","NIC","ISL","MMR","KOR","SGP","MAR","KHM","RWA","KGZ","MKD","PRT","TLS","GBR","HRV","MYS","VEN","LIE","NOR","MCO","HTI","SMR","DEU","GMB","PRY","ERI","CRI","SLE","JPN","BRN","CYP","AUS","LCA","MLT","ISR","MNE","WSM","SUR","LBN","ZWE","TGO","GGY","TKM","GAB","JAM","SLV","MNG","STP","CIV","BTN","UKR","SRB","ARE","EGY","QAT","GNB","IRL","CMR","PER","AGO","SEN","ZAF","EST","GHA","PAN","ATG","VUT","LUX","NRU","GIN","UGA","DNK","SLB","BOL","USA","LVA","VCT","TJK","CHN","AZE","VAT","ARG"],"supported_currencies":["ZAR","BAM","KHR","KYD","MWK","SCR","INR","BOB","PAB","TTD","HKD","BBD","GIP","SGD","ANG","GTQ","KES","MDL","MUR","MAD","NAD","SAR","RON","THB","MXN","EGP","ALL","BND","JPY","TRY","ARS","AWG","CRC","FJD","DOP","BRL","AMD","CZK","UAH","BMD","CHF","CLP","ILS","LBP","IDR","KRW","PLN","TND","PGK","XCD","BSD","XOF","UYU","COP","DKK","EUR","JMD","NGN","USD","VND","ISK","CAD","KWD","PHP","RUB","AUD","HUF","NPR","MKD","SDG","UZS","GEL","BWP","BGN","OMR","GBP","AFN","BHD","LKR","QAR","AED","DZD","RSD","PEN","TWD","TZS","MYR","CNY","SEK","XAF","KZT","NZD","NOK","PKR"]}],"supported_webhook_flows":["payments","refunds","disputes"]},{"name":"BRAINTREE","display_name":"Braintree","description":"Braintree, a PayPal service, offers a full-stack payment platform that simplifies accepting payments in your app or website, supporting various payment methods including credit cards and PayPal.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","Discover","JCB","UnionPay","Mastercard","Visa"],"supported_countries":["GRC","MLT","CAN","ESP","LUX","LIE","SMR","ITA","BGR","CHE","POL","GIB","PRT","DEU","SVN","HRV","NLD","ROU","IMN","FIN","MYS","AUT","AUS","LVA","LTU","SWE","SVK","JEY","EST","GBR","CZE","BEL","GGY","CYP","HUN","AND","SGP","FRA","NOR","IRL","NZL","HKG","DNK","MCO","USA"],"supported_currencies":["KMF","AUD","LKR","COP","RSD","TRY","TWD","DKK","BDT","KES","LSL","NGN","SLL","BIF","MXN","PAB","CLP","KZT","SEK","PKR","AWG","HTG","LAK","FKP","SOS","GBP","GEL","BYN","GYD","HKD","LRD","BRL","NZD","CRC","BND","MWK","TTD","VUV","UYU","USD","BZD","HNL","MAD","XOF","MZN","PYG","VND","MNT","EUR","SAR","KGS","XCD","ZAR","BMD","ZWL","GHS","SYP","EGP","BBD","BAM","FJD","RWF","BSD","HUF","QAR","SHP","UAH","GIP","PEN","NAD","GNF","ISK","AMD","LBP","XAF","PHP","RON","MOP","ARS","TOP","YER","CNY","CVE","JMD","THB","AZN","SZL","MDL","BWP","SBD","DZD","CZK","KYD","RUB","GMD","SVC","NPR","TJS","DJF","UZS","JPY","AOA","DOP","PGK","GTQ","HRK","WST","VES","ZMW","TZS","INR","CAD","MYR","CHF","ILS","SCR","SGD","XPF","MVR","UGX","ETB","NIO","NOK","STD","IDR","BGN","PLN","MUR","AED","KHR","KRW","SRD","BOB","MKD"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","Discover","JCB","UnionPay","Mastercard","Visa"],"supported_countries":["IMN","HRV","SMR","MCO","NOR","FIN","CYP","USA","LIE","LVA","NLD","JEY","GIB","LTU","BGR","MYS","FRA","SWE","ITA","AND","DEU","EST","SGP","ESP","CZE","POL","ROU","CAN","AUT","PRT","HUN","CHE","BEL","GBR","GGY","SVN","GRC","MLT","HKG","NZL","LUX","IRL","AUS","DNK","SVK"],"supported_currencies":["ILS","WST","EUR","HNL","ISK","JPY","VES","ZMW","LBP","BOB","DOP","ARS","BAM","DKK","COP","TOP","GBP","MKD","SZL","TRY","AUD","BYN","CRC","TWD","XCD","INR","PYG","PKR","SHP","KES","KYD","VUV","DZD","MVR","KZT","JMD","GEL","MAD","BIF","UGX","RWF","SRD","BWP","DJF","GHS","MOP","AZN","MDL","MXN","XPF","LRD","GMD","THB","SYP","NGN","NOK","SBD","CNY","GNF","BBD","CAD","ETB","BMD","PLN","NZD","BND","NPR","USD","SAR","TJS","KRW","SLL","EGP","ZWL","BSD","KGS","LSL","AED","BRL","GYD","PEN","AWG","RSD","AMD","BGN","AOA","HKD","HTG","KMF","NAD","UZS","GIP","LAK","SCR","FKP","UYU","LKR","CVE","FJD","XAF","MWK","PAB","RUB","SVC","PGK","SOS","XOF","MZN","MUR","TTD","IDR","BDT","QAR","UAH","BZD","GTQ","HRK","YER","SGD","NIO","PHP","CZK","STD","TZS","ZAR","CHF","RON","KHR","HUF","MNT","SEK","VND","MYR","CLP"]}],"supported_webhook_flows":["payments","refunds"]},{"name":"CASHTOCODE","display_name":"CashToCode","description":"CashToCode is a payment solution that enables users to convert cash into digital vouchers for online transactions","category":"payment_gateway","supported_payment_methods":[{"payment_method":"reward","payment_method_type":"evoucher","payment_method_type_display_name":"Evoucher","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["SAU","ALA","ATF","MAC","ETH","PER","HRV","MOZ","SWE","HUN","GUF","GIB","KAZ","PHL","DMA","VAT","TTO","IDN","AGO","MDG","BGD","PLW","LBY","CXR","ITA","CYM","GIN","GHA","VGB","CHN","HND","ASM","MEX","SRB","BLZ","IRQ","LKA","SDN","CIV","BVT","MAF","SEN","SMR","KGZ","GNQ","COD","SUR","RUS","TCA","UMI","OMN","GMB","PRY","TGO","ISL","CCK","JOR","ARG","IRN","ALB","KWT","QAT","NRU","MUS","UKR","NIC","GBR","WLF","EGY","STP","VUT","SOM","NAM","SLB","MAR","HTI","JEY","HKG","TUN","LCA","GAB","GTM","TUR","GNB","LBR","HMD","TON","BMU","IND","BRB","SYR","GRC","BDI","BFA","NIU","BHR","IOT","MSR","CUW","SSD","NOR","LIE","IRL","VIR","REU","PRK","SJM","TZA","PYF","BIH","COM","KIR","GEO","KEN","KNA","SPM","NGA","TWN","BRA","IMN","UGA","MLT","TLS","LSO","SVK","MNG","MYS","JAM","ROU","TJK","AND","PAK","GRL","CHL","CAF","MDA","CHE","SGP","BES","CYP","VCT","CAN","SHN","BGR","COK","ZWE","MCO","MNE","PRI","JPN","TKM","NFK","ERI","MHL","PSE","ATA","EST","LAO","LBN","URY","RWA","SWZ","MKD","ARE","DZA","SYC","CPV","GUM","LUX","AUS","SXM","BRN","MMR","AIA","GUY","FLK","SVN","MWI","VNM","AFG","DOM","KHM","THA","MLI","ECU","AUT","ATG","ESH","ZMB","FSM","POL","CRI","BEL","UZB","SLE","BLM","PNG","CMR","MTQ","VEN","MYT","TCD","LVA","ARM","ABW","SLV","GLP","GGY","TKL","CZE","DEU","MRT","BHS","COG","TUV","AZE","PRT","BLR","COL","YEM","NER","ESP","NPL","KOR","BTN","BEN","DJI","MNP","USA","FJI","CUB","FRA","MDV","LTU","FIN","NZL","NLD","GRD","FRO","PCN","PAN","WSM","DNK","SGS","BOL","NCL","BWA","ISR","ZAF"],"supported_currencies":["AUD","BMD","IRR","CUC","JMD","NPR","SEK","WST","PKR","LBP","ALL","AOA","MNT","VND","LRD","TOP","YER","CZK","JPY","KHR","KYD","ERN","TJS","MDL","SAR","SOS","NZD","LKR","MAD","AFN","HNL","UYU","ARS","GNF","INR","IQD","DZD","VUV","LAK","GMD","DKK","BBD","STN","UZS","EGP","BSD","FJD","CLP","BWP","RWF","SHP","SRD","TMT","NOK","MUR","SVC","BAM","KES","ANG","GHS","PAB","SBD","SCR","OMR","RON","RSD","BHD","CLF","NGN","GIP","ZAR","HTG","CHF","MZN","HKD","ETB","BTN","CNY","LYD","KGS","SLE","MVR","KRW","CVE","ISK","PEN","PYG","TRY","UAH","IDR","BIF","SGD","XAF","ILS","UGX","BDT","FKP","HRK","MMK","CUP","MRU","NIO","QAR","SDG","SYP","JOD","KMF","HUF","TTD","XOF","XPF","TZS","ZMW","DOP","TND","BZD","STD","BRL","CAD","MGA","AZN","KZT","SLL","MKD","GYD","SZL","VES","NAD","ZWL","MYR","CRC","MXN","BOB","GTQ","BND","BYN","PGK","PLN","KWD","AED","EUR","LSL","TWD","XCD","AWG","DJF","AMD","CDF","MOP","GEL","THB","BGN","MWK","COP","SSP","GBP","RUB","KPW","USD","PHP"]},{"payment_method":"reward","payment_method_type":"classic","payment_method_type_display_name":"Classic Reward","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["NIU","ECU","NIC","ALA","GRD","PHL","GLP","BGD","TON","KGZ","DZA","LBR","SXM","MLT","CCK","CYM","FRA","LVA","SVN","NCL","ERI","CIV","PAK","UZB","ZMB","LIE","BRB","CAN","TUR","JEY","MAC","TZA","WLF","HND","BTN","REU","NER","KHM","SRB","BWA","GMB","PCN","MNP","KIR","GUY","MWI","TUV","MHL","PER","TKL","IND","ABW","IRL","ARG","QAT","MLI","BIH","TTO","SVK","AND","ROU","EST","MSR","LCA","AGO","CAF","COK","TJK","LSO","VEN","ALB","PRY","SJM","MOZ","VIR","GGY","TGO","EGY","MRT","CMR","ZAF","MDG","SHN","KNA","MDA","MAR","SWZ","PRI","THA","CHL","CUW","SLB","LBY","BDI","MAF","MYT","TCA","FRO","GRL","HMD","ASM","GRC","AUT","CHE","SGS","CRI","ESH","LAO","GUM","ARM","TKM","SMR","BEL","MCO","BRN","SOM","UMI","NAM","NZL","CYP","SGP","SWE","BMU","ATA","KAZ","BLZ","FJI","BRA","DMA","YEM","SEN","ETH","AIA","GNQ","KWT","MMR","WSM","ATF","URY","UGA","PRK","NLD","MNE","STP","FLK","NRU","GBR","HKG","ARE","TCD","SAU","HRV","SLE","RWA","BHS","LUX","IOT","VCT","POL","PRT","SDN","IRQ","COG","HUN","GIN","COL","NFK","PSE","VUT","ITA","DEU","BHR","IMN","FIN","BEN","AZE","UKR","CUB","SLV","IDN","SPM","BGR","HTI","CPV","SUR","PYF","FSM","CXR","RUS","NGA","VNM","GEO","GUF","SYC","TWN","LBN","AUS","COM","LTU","BLR","VAT","SSD","MDV","PAN","IRN","DNK","TUN","MEX","GHA","KEN","MYS","MNG","BLM","ISL","KOR","NPL","PNG","BOL","AFG","PLW","MKD","GTM","SYR","MUS","NOR","TLS","GIB","ISR","USA","JPN","CZE","LKA","VGB","GAB","BES","JAM","DJI","COD","MTQ","BVT","ZWE","GNB","ESP","DOM","BFA","JOR","OMN","ATG","CHN"],"supported_currencies":["DOP","RUB","HNL","MXN","XAF","XOF","ARS","PAB","CUP","MKD","THB","MOP","BOB","MRU","ETB","IQD","SOS","BWP","AOA","GTQ","MAD","SGD","CNY","VUV","KMF","SZL","HRK","SAR","ILS","WST","ZMW","MYR","MMK","MDL","QAR","ZWL","COP","ANG","CAD","NIO","SHP","AUD","BYN","NOK","VES","GHS","LKR","CDF","GNF","KWD","KZT","BRL","ISK","SCR","JOD","AZN","AMD","NAD","CLF","TJS","BTN","KRW","DKK","TND","OMR","CVE","BAM","AFN","SDG","TMT","JPY","EGP","BHD","MWK","BBD","INR","UYU","PHP","GIP","SEK","KPW","MUR","BMD","LBP","LAK","UZS","KHR","STD","PYG","KGS","UAH","IRR","HUF","DZD","SYP","TWD","LSL","XCD","FJD","PKR","NPR","ALL","GBP","XPF","PEN","STN","AED","KES","HTG","JMD","GYD","SBD","CHF","SSP","ERN","TRY","VND","AWG","PGK","NZD","SVC","MZN","BND","LYD","MNT","GEL","CRC","BIF","SRD","TZS","IDR","RWF","MGA","NGN","SLL","TOP","BGN","MVR","CUC","GMD","TTD","USD","CZK","RSD","YER","FKP","BDT","KYD","EUR","PLN","CLP","DJF","LRD","RON","BZD","SLE","UGX","BSD","ZAR","HKD"]}],"supported_webhook_flows":["payments"]},{"name":"CHECKOUT","display_name":"Checkout","description":"Checkout.com is a British multinational financial technology company that processes payments for other companies.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","CartesBancaires","DinersClub","Discover","JCB","Mastercard","Visa","UnionPay"],"supported_countries":["COL","SAU","CYP","MEX","HUN","ITA","LTU","CHL","USA","CZE","ARE","ESP","NLD","DNK","IRL","GRC","SVN","SGP","BHR","FIN","MLT","SVK","DEU","ISL","LIE","BGR","PRT","ROU","PER","LVA","CHE","FRA","AUT","GBR","BEL","AUS","POL","HRV","LUX","ARG","HKG","SWE","EST","NOR"],"supported_currencies":["YER","JMD","AOA","UGX","MDL","RWF","DJF","SEK","STN","BSD","DKK","ILS","MNT","VES","AUD","CHF","CNY","AED","AWG","DOP","EGP","GBP","IRR","IDR","KZT","MKD","MGA","NAD","BTN","SHP","INR","TZS","BZD","SLL","HUF","TWD","ETB","BIF","TJS","MWK","BDT","BYN","GTQ","HKD","CDF","MRU","NOK","COP","CLP","EUR","KHR","USD","MOP","MXN","TMT","XCD","ZWL","KES","MMK","AFN","CVE","KYD","MYR","MUR","KMF","SAR","SRD","BHD","ERN","JOD","LRD","SCR","PHP","HNL","PAB","AMD","DZD","LKR","BRL","PLN","RSD","NGN","HTG","BBD","SZL","MVR","IQD","BGN","BND","BMD","HRK","CZK","GHS","KWD","MZN","TND","XPF","LSL","AZN","JPY","CUP","THB","ISK","GNF","SOS","GYD","SSP","CRC","SYP","CAD","FKP","SGD","FJD","UYU","NPR","RON","VND","SLE","KGS","ALL","UZS","SDG","XOF","XAF","WST","RUB","LBP","TOP","NIO","SBD","KRW","LAK","BAM","NZD","ZAR","BOB","ZMW","GMD","GEL","OMR","PYG","PGK","VUV","MAD","UAH","TTD","PKR","QAR","PEN","TRY","BWP","ANG","LYD","GIP"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","CartesBancaires","DinersClub","Discover","JCB","Mastercard","Visa","UnionPay"],"supported_countries":["CHE","COL","LIE","ISL","GRC","MEX","CHL","SVK","BHR","SAU","FRA","CYP","ROU","BGR","EST","SVN","AUT","DNK","LTU","BEL","LUX","NOR","LVA","MLT","ESP","ITA","POL","FIN","DEU","PRT","SGP","ARG","SWE","ARE","PER","CZE","HKG","NLD","HRV","USA","HUN","IRL","AUS","GBR"],"supported_currencies":["KYD","CUP","RON","FKP","NZD","TTD","MWK","UZS","JOD","SYP","ISK","FJD","DZD","AED","AFN","HNL","CLP","BOB","SDG","TMT","MRU","CHF","TJS","VUV","GEL","THB","ALL","BWP","TRY","GNF","KWD","MOP","HKD","SSP","XCD","MVR","CAD","CZK","KHR","PEN","BBD","BAM","CRC","KGS","NPR","IDR","QAR","LYD","ZMW","XAF","PGK","AZN","HTG","DJF","MGA","DOP","GBP","NIO","CDF","SGD","ZAR","PAB","USD","LAK","SEK","SHP","SLE","TWD","AMD","LKR","NAD","MMK","VND","MYR","CNY","UGX","INR","SCR","EUR","HUF","UYU","PLN","SAR","EGP","MKD","ERN","KRW","KES","BMD","AUD","BZD","ANG","BSD","DKK","MDL","OMR","NGN","PKR","LSL","SBD","SLL","KZT","SZL","TND","VES","RUB","SRD","JMD","BRL","XOF","BIF","SOS","GIP","PHP","BYN","BTN","AWG","ETB","GMD","LRD","BHD","ZWL","TOP","YER","PYG","LBP","COP","WST","CVE","XPF","BDT","UAH","ILS","JPY","MUR","MNT","BND","GHS","MXN","GTQ","AOA","HRK","IQD","GYD","IRR","MAD","STN","MZN","TZS","KMF","RWF","BGN","RSD","NOK"]},{"payment_method":"wallet","payment_method_type":"apple_pay","payment_method_type_display_name":"Apple Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"supported_countries":["SWE","SGP","LIE","SAU","LTU","GRC","PRT","ESP","HUN","EST","GBR","ITA","HKG","HRV","AUS","AUT","QAT","ROU","IRL","CYP","CZE","KWT","NLD","DNK","JOR","FRA","CHE","LVA","FIN","POL","NOR","BEL","BGR","ISL","DEU","ARE","MLT","SVK","SVN","LUX","USA"],"supported_currencies":["EUR","UAH","VUV","VES","KES","GBP","GNF","KMF","STN","XPF","MMK","BOB","LKR","SAR","MNT","ZMW","RWF","KHR","BDT","YER","MXN","NIO","BSD","KPW","BTN","SCR","SYP","WST","BND","SGD","BRL","MGA","CLP","SLE","USD","ILS","GTQ","ETB","AMD","FKP","PEN","MAD","AFN","PGK","TTD","XAF","VND","IRR","ZWL","DJF","LRD","PLN","CRC","JOD","NAD","HTG","KYD","QAR","SEK","ERN","AOA","AWG","DOP","GEL","THB","PAB","GIP","CHF","MOP","MVR","RUB","BZD","ZAR","MKD","CUC","GMD","IQD","ANG","STD","HKD","TMT","ARS","MDL","PHP","MYR","CLF","MRU","SBD","TOP","XCD","RON","NPR","CUP","TZS","LYD","AZN","EGP","NGN","BYN","CZK","SZL","TJS","AUD","COP","ISK","LSL","PYG","GHS","RSD","TWD","LBP","KWD","CVE","KRW","AED","INR","JMD","UYU","BBD","SHP","MWK","OMR","ALL","NOK","TND","MZN","SVC","HNL","JPY","MUR","BGN","KGS","FJD","HUF","KZT","BWP","SSP","SRD","LAK","GYD","SOS","BMD","HRK","UZS","CDF","DKK","PKR","BAM","NZD","CAD","XOF","IDR","BIF","DZD","CNY","SLL","SDG","BHD","TRY","UGX"]},{"payment_method":"wallet","payment_method_type":"google_pay","payment_method_type_display_name":"Google Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"supported_countries":["HKG","SGP","GBR","ARE","FIN","HRV","LUX","LTU","EST","DNK","NOR","USA","POL","ITA","BGR","FRA","NLD","CZE","DEU","ROU","ESP","PRT","SVK","SWE","SAU","AUS","HUN","AUT","BEL","GRC","CHE","IRL"],"supported_currencies":["LBP","EUR","TJS","BBD","HNL","BRL","MNT","ZWL","BSD","SBD","SLL","UAH","PHP","BWP","MXN","AED","KRW","BMD","DOP","MGA","MMK","LSL","NPR","BHD","CLP","JPY","KWD","TND","BZD","HTG","RON","SOS","FJD","UZS","IQD","XCD","AWG","PLN","PEN","TOP","ANG","MUR","BOB","CHF","YER","RSD","TRY","GHS","BDT","CAD","HRK","SCR","VUV","TZS","BAM","NZD","BND","XPF","QAR","NIO","SHP","NGN","AUD","CDF","KHR","VES","UYU","GEL","CZK","KYD","MVR","WST","ETB","GYD","SAR","ZAR","JMD","BGN","KGS","TTD","CNY","ZMW","KZT","SYP","BIF","BYN","AZN","CLF","MAD","ILS","OMR","EGP","GIP","LAK","SRD","AOA","INR","ISK","COP","MRU","SZL","SEK","SGD","MWK","AFN","HUF","HKD","FKP","MDL","NOK","PGK","CUP","RUB","TWD","VND","MKD","STN","NAD","GBP","GMD","GTQ","IDR","MOP","SLE","PYG","THB","DZD","BTN","ALL","GNF","CUC","RWF","AMD","CRC","CVE","PKR","DJF","MYR","IRR","PAB","SDG","SSP","STD","SVC","MZN","UGX","KPW","XAF","ERN","ARS","KMF","TMT","LRD","XOF","LYD","JOD","USD","DKK","LKR","KES"]}],"supported_webhook_flows":["payments","refunds","disputes"]},{"name":"COINBASE","display_name":"Coinbase","description":"Coinbase is a place for people and businesses to buy, sell, and manage crypto.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"crypto","payment_method_type":"crypto_currency","payment_method_type_display_name":"Crypto","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["USA","ITA","TUR","FRA","PRT","SGP","CAN","AUS","VNM","DEU","BRA","GBR","ESP","NLD","ZAF"],"supported_currencies":null}],"supported_webhook_flows":["payments","refunds"]},{"name":"COINGATE","display_name":"Coingate","description":"CoinGate's online payment solution makes it easy for businesses to accept Bitcoin, Ethereum, stablecoins and other cryptocurrencies for payments on any website.","category":"alternative_payment_method","supported_payment_methods":[{"payment_method":"crypto","payment_method_type":"crypto_currency","payment_method_type_display_name":"Crypto","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["FRA","UKR","SVN","POL","SLV","GRC","NLD","GRD","LUX","BGR","ITA","HRV","CHE","MLT","EST","SWE","JPN","IND","HUN","EGY","ESP","DNK","QAT","AUT","SAU","ROU","SRB","KOR","CRI","SVK","MEX","AUS","MDA","ALB","NOR","SGP","DOM","LCA","FIN","DEU","ISL","PRT","LVA","NZL","BIH","GBR","PER","BEL","IRL","ARG","COL","HKG","ISR","LTU","AND","BRA","CHL","CZE","CYP"],"supported_currencies":["EUR","USD","GBP"]}],"supported_webhook_flows":["payments"]},{"name":"DEUTSCHEBANK","display_name":"Deutsche Bank","description":"Deutsche Bank is a German multinational investment bank and financial services company ","category":"bank_acquirer","supported_payment_methods":[{"payment_method":"bank_debit","payment_method_type":"sepa","payment_method_type_display_name":"SEPA Direct Debit","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"not_supported","supported_card_networks":["Visa","Mastercard"],"supported_countries":null,"supported_currencies":null},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"not_supported","supported_card_networks":["Visa","Mastercard"],"supported_countries":null,"supported_currencies":null}],"supported_webhook_flows":[]},{"name":"DIGITALVIRGO","display_name":"Digital Virgo","description":"Digital Virgo is an alternative payment provider specializing in carrier billing and mobile payments ","category":"alternative_payment_method","supported_payment_methods":[{"payment_method":"mobile_payment","payment_method_type":"direct_carrier_billing","payment_method_type_display_name":"Direct Carrier Billing","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["JOR","KWT","LBY","MEX","CHL","TUR","GBR","ESP","MLI","BRA","ZAF","GRC","CHE","GHA","GAB","ITA","PRT","SGP","FRA","SAU","PSE","ARE","IDN","SEN","DEU","BWA","QAT","MDG","POL","TUN","DZA","CMR","SVK","SDN","AZE","OMN","NGA","IRL","MAR","BHR","GIN","IRQ","ARG","RUS","BEL","NLD","COG","EGY"],"supported_currencies":["SAR","ZAR","EUR","CLP","IQD","DZD","PLN","LYD","MGA","TND","ILS","SGD","AED","JOD","TRY","BRL","MAD","GHS","SDG","GNF","AZN","CDF","CHF","MXN","RUB","IDR","QAR","OMR","KWD","ARS","XAF","NGN","BWP","GBP","EGP","BHD","XOF"]}],"supported_webhook_flows":[]},{"name":"DLOCAL","display_name":"DLOCAL","description":"Dlocal is a cross-border payment processor enabling businesses to accept and send payments in emerging markets worldwide.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","JCB","DinersClub","UnionPay","Interac","CartesBancaires"],"supported_countries":["EGY","MAR","RWA","MEX","ECU","PRY","COL","PHL","HND","CRI","PAN","CHN","DOM","UGA","GTM","MYS","BOL","CIV","URY","ZMB","TUR","PER","KEN","PAK","IND","THA","SLV","CMR","NGA","SEN","NIC","JPN","SAU","CHL","IDN","BGD","ZAF","ARG","TZA","VNM","GHA","BRA"],"supported_currencies":["GTQ","INR","KES","RWF","EGP","BRL","DOP","GHS","MYR","VND","MXN","USD","TRY","CRC","XOF","SAR","MAD","CNY","THB","NGN","HNL","PKR","PEN","TZS","PHP","CLP","ZMW","XAF","ZAR","IDR","JPY","NIO","ARS","COP","BDT","PYG","UGX","BOB","UYU"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","JCB","DinersClub","UnionPay","Interac","CartesBancaires"],"supported_countries":["IND","UGA","NGA","IDN","PHL","BRA","ECU","VNM","ZMB","GHA","TZA","SEN","PAN","TUR","CRI","SAU","CIV","PER","MEX","HND","MAR","CMR","CHL","URY","COL","THA","SLV","GTM","PRY","JPN","DOM","BGD","KEN","NIC","PAK","RWA","BOL","EGY","CHN","MYS","ARG","ZAF"],"supported_currencies":["ZAR","MXN","USD","GTQ","BOB","PYG","BRL","COP","XOF","MYR","TRY","PEN","EGP","PKR","ZMW","GHS","IDR","XAF","CLP","VND","SAR","BDT","MAD","NGN","CRC","INR","CNY","THB","HNL","DOP","ARS","KES","TZS","NIO","UGX","RWF","UYU","PHP","JPY"]}],"supported_webhook_flows":[]},{"name":"ELAVON","display_name":"Elavon","description":"Elavon, a wholly owned subsidiary of U.S. Bank, has been a global leader in payment processing for more than 30 years.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","JCB","DinersClub","UnionPay","Discover","CartesBancaires","Interac"],"supported_countries":["USA"],"supported_currencies":["MWK","SDG","RON","SEK","GMD","UGX","CDF","BND","BOB","CHF","ALL","CNY","GBP","AZN","JMD","THB","NAD","NPR","LBP","KZT","BZD","TJS","XAF","AOA","BBD","DZD","FJD","BHD","LAK","BTN","PLN","ANG","SHP","EGP","MZN","XOF","MYR","SLE","KYD","HTG","AMD","KES","TND","USD","ERN","OMR","ZAR","SBD","TRY","AED","MNT","MUR","VND","SAR","VES","SLL","HUF","AUD","BWP","MXN","TWD","KHR","MOP","CLP","CVE","XCD","NGN","NIO","BMD","COP","RWF","HNL","GIP","JOD","PHP","DOP","BIF","GNF","CUP","ILS","GHS","BGN","NOK","RUB","LRD","TTD","UYU","VUV","LSL","GTQ","TOP","MMK","MRU","SRD","PEN","IDR","AFN","INR","MGA","AWG","TZS","EUR","ISK","ZMW","MKD","MDL","SGD","IRR","QAR","RSD","SYP","SZL","DJF","JPY","PYG","LKR","LYD","KPW","PAB","TMT","SOS","ZWL","BDT","KWD","BRL","CAD","ARS","HKD","KGS","ETB","GYD","BSD","MAD","PKR","WST","DKK","GEL","PGK","SCR","STN","XPF","UAH","SVC","BAM","HRK","CRC","MVR","KRW","YER","KMF","UZS","CZK","BYN","IQD","NZD","SSP","FKP"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","JCB","DinersClub","UnionPay","Discover","CartesBancaires","Interac"],"supported_countries":["USA"],"supported_currencies":["LSL","LAK","SBD","SSP","KGS","VND","PGK","SLL","MAD","RSD","VES","XAF","XPF","KYD","MRU","IQD","PEN","KRW","CHF","CVE","UYU","AUD","HTG","NPR","BND","ALL","KMF","TTD","ANG","PYG","AWG","DOP","VUV","YER","SAR","HKD","ARS","TWD","TZS","SGD","SOS","SYP","LKR","NIO","BDT","CUP","PLN","SZL","ZAR","MZN","JOD","ZMW","AMD","BSD","AOA","CDF","MDL","UAH","NOK","MKD","SLE","GEL","UGX","AFN","FKP","IRR","CAD","MXN","NAD","KPW","NZD","QAR","FJD","BOB","SHP","IDR","HRK","KWD","BMD","RWF","WST","SCR","TMT","TND","BTN","MMK","RUB","TOP","MVR","CLP","MWK","MYR","BRL","GMD","LYD","CRC","HUF","ISK","DKK","ILS","BWP","GTQ","EUR","BGN","BYN","KZT","GIP","ETB","LRD","TRY","MOP","XCD","DJF","JPY","HNL","STN","CZK","UZS","THB","DZD","INR","MGA","LBP","BBD","OMR","ZWL","GBP","BIF","GYD","JMD","SDG","TJS","GNF","SRD","USD","NGN","RON","SVC","AZN","PAB","PHP","CNY","COP","PKR","KHR","BAM","ERN","BHD","KES","XOF","AED","SEK","GHS","BZD","EGP","MUR","MNT"]}],"supported_webhook_flows":[]},{"name":"FACILITAPAY","display_name":"Facilitapay","description":"FacilitaPay, the best and most reliable payment provider for your international business.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"bank_transfer","payment_method_type":"pix","payment_method_type_display_name":"Pix","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["BRA"],"supported_currencies":["BRL"]}],"supported_webhook_flows":[]},{"name":"FISERV","display_name":"Fiserv","description":"Fiserv is a global fintech and payments company with solutions for banking, global commerce, merchant acquiring, billing and payments, and point-of-sale ","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic","manual"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","JCB","Discover","UnionPay","Interac"],"supported_countries":["COL","IND","FRA","MEX","POL","MNE","NZL","ZAF","MYS","CAN","ARG","GBR","AUS","USA","URY","ESP","DEU","CHN","NLD","BEL","HKG","SGP","PAN","BRA","ITA","LKA","KOR"],"supported_currencies":["EGP","BMD","MMK","SZL","ARS","MWK","TJS","AFN","CUP","DJF","ILS","PEN","SLL","UGX","KES","AED","SBD","LBP","GHS","TRY","KZT","SAR","SEK","MZN","VES","MUR","IQD","CRC","NOK","LKR","TZS","BHD","CVE","GBP","NZD","UYU","BAM","HUF","RUB","RWF","PHP","FKP","SYP","UAH","AUD","HRK","INR","CAD","JMD","MVR","XCD","VUV","ZMW","JOD","CHF","GNF","BZD","OMR","ZWL","BIF","PAB","ZAR","PKR","AWG","ISK","CZK","CDF","BBD","LSL","SRD","AOA","DOP","UZS","SDG","AZN","ANG","YER","HTG","AMD","XAF","KMF","GEL","KWD","BOB","KHR","JPY","BYN","LRD","MGA","KPW","RON","WST","STN","SCR","SSP","NIO","DKK","CNY","USD","PYG","MNT","GYD","PGK","TTD","XPF","GMD","IDR","BND","NPR","BDT","FJD","BTN","MOP","HKD","MAD","VND","NGN","SOS","LYD","KRW","MDL","KGS","LAK","BWP","MXN","QAR","TND","ETB","ERN","HNL","MKD","MYR","NAD","DZD","BRL","GIP","EUR","SVC","RSD","GTQ","TOP","ALL","PLN","THB","SHP","BSD","SGD","BGN","MRU","TWD","COP","TMT","KYD","XOF","IRR","CLP"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic","manual"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","JCB","Discover","UnionPay","Interac"],"supported_countries":["CAN","FRA","NLD","PAN","URY","HKG","GBR","USA","LKA","COL","BRA","AUS","BEL","IND","MNE","POL","ITA","ESP","ZAF","MYS","SGP","ARG","KOR","MEX","DEU","CHN","NZL"],"supported_currencies":["HKD","CLP","PYG","GIP","DJF","MUR","BHD","PHP","GBP","MMK","BGN","RUB","KYD","MOP","EGP","BRL","STN","AOA","LSL","USD","XCD","TJS","SLL","CNY","NAD","ETB","JMD","NZD","UZS","MXN","AFN","VUV","SAR","BDT","GEL","ALL","DKK","KPW","TND","VES","GHS","AUD","GYD","CHF","HUF","LBP","LRD","MKD","HNL","AMD","BBD","NPR","FJD","MZN","ARS","CDF","ILS","SHP","SEK","PAB","VND","BIF","ANG","TOP","PKR","HTG","GMD","MWK","ISK","KGS","AWG","BTN","GNF","SCR","UGX","JOD","AED","MRU","MVR","INR","EUR","DZD","BYN","BWP","XAF","PLN","CAD","IQD","SSP","LKR","THB","SZL","ERN","ZWL","BAM","SGD","WST","CRC","CVE","NGN","BSD","KHR","AZN","CZK","BZD","DOP","FKP","IDR","MNT","SBD","TTD","CUP","COP","TMT","RON","KMF","LAK","KZT","MGA","JPY","SYP","SVC","SOS","TRY","HRK","MDL","TZS","KWD","YER","BMD","XOF","LYD","ZAR","BOB","NOK","OMR","GTQ","SDG","SRD","RSD","KRW","MAD","NIO","BND","KES","ZMW","XPF","UYU","IRR","UAH","MYR","TWD","PGK","PEN","QAR","RWF"]}],"supported_webhook_flows":[]},{"name":"FISERVEMEA","display_name":"Fiservemea","description":"Fiserv powers over 6+ million merchants and 10,000+ financial institutions enabling them to accept billions of payments a year.","category":"bank_acquirer","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","AmericanExpress","Discover","JCB","UnionPay","DinersClub","Interac","CartesBancaires"],"supported_countries":["GBR","POL","ZAF","DEU","NLD","ITA","ARE","ESP","FRA"],"supported_currencies":["CRC","CLP","TRY","BIF","IQD","MVR","BZD","BMD","BDT","GTQ","KMF","VES","NPR","OMR","RUB","XCD","ERN","LSL","TWD","AFN","CDF","ISK","PGK","VND","WST","YER","JOD","UAH","MMK","MYR","TOP","SRD","ANG","BND","JPY","KZT","LRD","AOA","RWF","SSP","TJS","USD","UYU","CNY","SAR","SBD","XAF","COP","MOP","XOF","MXN","XPF","QAR","CUP","AED","MUR","MKD","TND","GNF","PAB","GIP","SHP","BAM","MRU","GYD","PLN","SLL","TMT","DOP","KRW","MNT","SLE","UZS","PEN","UGX","RSD","PKR","BGN","HNL","IRR","EGP","SOS","SZL","VUV","ZWL","EUR","ARS","DJF","ILS","RON","ZAR","IDR","MWK","GHS","BWP","DZD","GMD","LAK","LYD","KGS","BBD","NGN","CZK","BOB","AWG","FKP","KHR","LBP","FJD","BYN","BTN","HTG","MAD","PHP","BRL","NIO","JMD","MZN","PYG","HKD","SDG","SGD","NAD","THB","TTD","ZMW","GBP","KES","BSD","SVC","MDL","CAD","MGA","NZD","LKR","AMD","GEL","AUD","TZS","DKK","INR","BHD","HRK","ETB","SCR","SEK","KYD","HUF","ALL","CVE","STN","SYP","KWD","KPW","AZN","CHF","NOK"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","AmericanExpress","Discover","JCB","UnionPay","DinersClub","Interac","CartesBancaires"],"supported_countries":["GBR","ZAF","FRA","ITA","POL","ESP","DEU","NLD","ARE"],"supported_currencies":["KES","SBD","ERN","DZD","EGP","BRL","KGS","GYD","RUB","QAR","AZN","GBP","AUD","PYG","LAK","MRU","SVC","LBP","ARS","KRW","GMD","PGK","JOD","PLN","VUV","BDT","HRK","HKD","BBD","ANG","BYN","SYP","RWF","OMR","MDL","LYD","ETB","HUF","PAB","AFN","GTQ","AWG","BGN","CUP","ALL","DOP","ILS","XPF","MWK","FJD","AOA","NAD","BTN","HTG","UAH","USD","AMD","BSD","GHS","RSD","KWD","MAD","TTD","SAR","NZD","TJS","CRC","EUR","MVR","STN","XOF","ZWL","BHD","IQD","ZMW","THB","MKD","XAF","NOK","SDG","TZS","KYD","VES","BWP","MYR","NPR","SEK","HNL","RON","DJF","SLL","ZAR","LRD","KHR","SLE","KZT","MXN","SRD","SOS","GIP","YER","CLP","PEN","XCD","MGA","IDR","PHP","TND","DKK","GEL","INR","UYU","LSL","BOB","CAD","MZN","TMT","MMK","WST","SHP","SGD","CVE","TOP","BAM","BIF","KPW","MNT","GNF","SCR","KMF","NGN","UZS","SSP","CNY","VND","COP","LKR","CZK","NIO","JPY","MOP","UGX","CDF","AED","CHF","FKP","MUR","PKR","IRR","JMD","BZD","BND","SZL","ISK","TRY","BMD","TWD"]}],"supported_webhook_flows":[]},{"name":"FIUU","display_name":"Fiuu","description":"Fiuu, formerly known as Razer Merchant Services, is a leading online payment gateway in Southeast Asia, offering secure and seamless payment solutions for businesses of all sizes, including credit and debit cards, e-wallets, and bank transfers.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"bank_redirect","payment_method_type":"online_banking_fpx","payment_method_type_display_name":"Online Banking FPX","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["MYS"],"supported_currencies":["MYR"]},{"payment_method":"real_time_payment","payment_method_type":"duit_now","payment_method_type_display_name":"DuitNow","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["MYS"],"supported_currencies":["MYR"]},{"payment_method":"wallet","payment_method_type":"apple_pay","payment_method_type_display_name":"Apple Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["MYS"],"supported_currencies":["MYR"]},{"payment_method":"wallet","payment_method_type":"google_pay","payment_method_type_display_name":"Google Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["MYS"],"supported_currencies":["MYR"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","JCB","DinersClub","UnionPay","Mastercard","Discover"],"supported_countries":["SGP","IDN","PHL","CHN","TWN","THA","MYS","VNM","HKG"],"supported_currencies":["CNY","VND","SGD","THB","IDR","HKD","PHP","MYR","TWD"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","JCB","DinersClub","UnionPay","Mastercard","Discover"],"supported_countries":["TWN","HKG","CHN","THA","SGP","IDN","PHL","VNM","MYS"],"supported_currencies":["CNY","VND","SGD","TWD","PHP","THB","HKD","MYR","IDR"]}],"supported_webhook_flows":["payments","refunds"]},{"name":"FORTE","display_name":"Forte","description":"CSG Forte offers a unified payments platform, enabling businesses to securely process credit cards, debit cards, ACH/eCheck transactions, and more, with advanced fraud prevention and seamless integration.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","Discover","DinersClub","JCB","Mastercard","Visa"],"supported_countries":["CAN","USA"],"supported_currencies":["USD","CAD"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","Discover","DinersClub","JCB","Mastercard","Visa"],"supported_countries":["CAN","USA"],"supported_currencies":["CAD","USD"]}],"supported_webhook_flows":[]},{"name":"GETNET","display_name":"Getnet","description":"Getnet is a high-tech global payment platform that helps businesses accept payments securely while providing the best frictionless experience for customers everywhere.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay","RuPay","Maestro"],"supported_countries":["BRA","NLD","URY","ARE","FRA","POL","MEX","NOR","ARG","IND","IRL","CHL","PRT","DNK","GBR","LUX","DEU","SWE","ESP","FIN","CHE","BEL","ITA","AUT"],"supported_currencies":["BRL","CLP","INR","PLN","SEK","EUR","ARS","NOK","MXN","UYU","GBP","DKK","CHF","AED"]}],"supported_webhook_flows":["payments","refunds"]},{"name":"GLOBALPAY","display_name":"Globalpay","description":"Global Payments is an American multinational financial technology company that provides payment technology and services to merchants, issuers and consumers.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"wallet","payment_method_type":"google_pay","payment_method_type_display_name":"Google Pay","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"wallet","payment_method_type":"paypal","payment_method_type_display_name":"PayPal","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","DinersClub","Discover","Interac","JCB","CartesBancaires","UnionPay"],"supported_countries":["SUR","MNP","UZB","GBR","SYC","STP","EST","VUT","AUT","MAF","IRL","BTN","MEX","RUS","SAU","COD","LCA","USA","MWI","LKA","CUB","MTQ","NZL","DZA","IRQ","GMB","KNA","THA","AZE","QAT","ZAF","HUN","UKR","VEN","BLZ","HKG","BDI","PNG","PYF","MLI","MNG","SLB","PAK","ECU","ARE","MDA","NAM","SWE","UMI","FIN","BLR","PRY","MKD","COL","ISR","GUY","DOM","CHE","TWN","CYP","URY","CHN","SGS","LIE","BLM","BEN","AGO","LBR","WLF","SHN","SYR","TUR","MHL","ESH","TJK","VAT","TLS","LTU","FLK","GNQ","PAN","TKL","TGO","KWT","SGP","ETH","SOM","SLV","IDN","SVK","MLT","YEM","HMD","COK","CHL","BFA","MUS","IOT","MYS","BES","OMN","BGD","BRB","GUM","ARM","MDV","PHL","CRI","SPM","AND","NRU","AIA","PRK","KOR","PRT","PRI","PCN","MMR","GIN","MYT","ABW","WSM","ATG","ATA","VNM","KIR","CXR","NPL","ATF","BHS","BGR","KAZ","BIH","AFG","RWA","BOL","GUF","GNB","TUV","VIR","HTI","GRL","CZE","KHM","MDG","VCT","BRA","NGA","MAC","DNK","HND","COG","AUS","CAN","FJI","EGY","ITA","MCO","ISL","BWA","TUN","COM","TCD","ESP","ASM","DEU","SRB","SJM","SDN","JPN","ERI","BEL","JEY","TTO","CMR","NFK","SEN","GEO","TZA","CIV","HRV","MOZ","GRD","FRA","CUW","TON","VGB","NER","ALA","JAM","SLE","ALB","NIU","NLD","TCA","LSO","SSD","IRN","POL","MNE","CPV","UGA","PSE","GHA","CCK","LVA","LUX","GAB","SVN","BHR","SXM","TKM","FRO","BMU","MAR","DMA","GGY","PLW","PER","JOR","CAF","ZMB","BVT","SMR","IND","DJI","LBY","MSR","LAO","IMN","CYM","FSM","NCL","SWZ","LBN","ZWE","REU","BRN","MRT","GTM","ROU","GRC","NOR","NIC","KGZ","ARG","GIB","KEN","GLP"],"supported_currencies":["RUB","ETB","AED","MUR","OMR","KHR","BOB","ALL","KZT","YER","SAR","KWD","ZWL","SEK","UZS","GEL","KMF","AOA","MKD","GHS","MMK","BTN","PLN","BYN","PAB","BIF","ANG","DJF","MYR","BND","BBD","NPR","AZN","CUP","GTQ","HKD","MDL","IRR","KPW","KGS","SDG","SYP","CNY","BHD","ZAR","ZMW","TWD","SBD","BWP","MXN","DOP","ILS","MNT","SVC","MAD","TND","PKR","AWG","CVE","HUF","MVR","UGX","SGD","CRC","COP","BGN","SHP","PHP","AUD","CLF","LKR","NGN","EUR","NZD","RSD","STD","QAR","CAD","TTD","BRL","GNF","CUC","PGK","EGP","TOP","BSD","HTG","PYG","FKP","JMD","THB","INR","SOS","TRY","KRW","SCR","LSL","LAK","AMD","NAD","MOP","JOD","SSP","VUV","CHF","BMD","MGA","TZS","ARS","USD","VND","AFN","LRD","MZN","GBP","NOK","DKK","IQD","GIP","UYU","HRK","JPY","BZD","SZL","ERN","RON","BDT","NIO","GYD","CZK","IDR","ISK","TMT","LBP","DZD","MWK","RWF","KES","CLP","UAH","SRD","HNL","SLL","TJS","PEN","LYD","WST","XCD","FJD","CDF","GMD"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","DinersClub","Discover","Interac","JCB","CartesBancaires","UnionPay"],"supported_countries":["BLR","LVA","NER","GAB","KGZ","COM","VNM","VUT","ETH","TON","MTQ","COK","PAK","BLZ","SLE","MAF","SJM","BWA","HMD","ECU","CYP","SOM","GMB","TUV","CCK","HUN","JEY","VIR","KHM","IRN","SVK","VAT","SPM","GLP","RUS","NIU","GUF","BRA","MSR","BLM","GRL","BFA","LSO","ABW","IND","GGY","BDI","NAM","MEX","UKR","GEO","BGR","HTI","YEM","USA","MRT","ITA","FRO","ARG","CYM","KOR","OMN","BTN","CIV","NZL","GIB","HKG","ALA","MNE","AND","BVT","GRD","POL","REU","SGP","BEL","BOL","ISL","KAZ","TWN","EGY","NPL","GIN","NGA","PRY","LBY","FLK","MWI","UGA","MCO","SGS","FRA","LIE","SLB","NFK","WSM","IRL","ESH","MYT","MAC","LUX","SUR","EST","GUM","ATA","SHN","SMR","PRI","DJI","PRT","ZAF","MMR","CRI","LCA","COG","COL","MLI","AGO","ASM","IRQ","KIR","URY","TCA","BHS","BEN","SAU","NRU","PCN","UZB","PSE","GNQ","TUN","PAN","GTM","ISR","LBR","MUS","DMA","SVN","TZA","DOM","AUS","CHL","KEN","TUR","MDG","GUY","BRN","GHA","SWE","ZMB","WLF","KWT","LAO","CXR","BIH","PRK","IMN","GBR","MOZ","SSD","ATF","VEN","LBN","NCL","CHN","CUW","SDN","BES","GRC","SWZ","HND","AZE","RWA","SRB","NLD","ZWE","IDN","THA","CZE","TKM","DEU","MAR","SEN","MNG","MDA","JPN","MKD","PYF","VCT","CPV","DZA","BGD","MDV","MLT","STP","JOR","CMR","ERI","MYS","MHL","VGB","ESP","TTO","SXM","PLW","KNA","ARE","TLS","GNB","TCD","MNP","IOT","SYR","LTU","UMI","DNK","QAT","BMU","BHR","AIA","CHE","ROU","NOR","SYC","FIN","JAM","FJI","CUB","AFG","HRV","PER","NIC","SLV","ALB","ATG","LKA","BRB","PNG","AUT","CAN","PHL","TGO","ARM","TJK","FSM","COD","TKL","CAF"],"supported_currencies":["TWD","CRC","ARS","SZL","BRL","BND","AUD","USD","BOB","CZK","NZD","MOP","KRW","UAH","ZWL","RSD","UZS","BYN","IRR","TMT","PEN","ZMW","KGS","DKK","LSL","BZD","CUP","SBD","AED","MZN","NIO","CNY","BTN","ISK","SCR","KMF","GEL","HRK","MGA","QAR","EUR","SDG","LRD","JOD","LKR","COP","PAB","ETB","VUV","HKD","KWD","PKR","CLF","BWP","GYD","XCD","KPW","BIF","UGX","MMK","KES","FJD","SEK","GHS","RON","ANG","SLL","AFN","DZD","AWG","MKD","SOS","INR","CLP","SRD","HNL","YER","RWF","FKP","EGP","ALL","MAD","WST","DOP","HTG","LBP","BBD","NPR","MYR","TZS","BDT","PLN","SVC","GBP","TRY","SAR","CVE","CUC","PYG","LAK","MNT","GTQ","PHP","BMD","THB","AZN","CDF","TTD","MVR","JPY","GNF","TOP","TND","BHD","KZT","MDL","IDR","GIP","BGN","ERN","BSD","SYP","ILS","NGN","NAD","AOA","VND","SHP","SGD","PGK","OMR","GMD","HUF","ZAR","SSP","LYD","RUB","UYU","STD","CAD","AMD","NOK","MXN","CHF","KHR","IQD","DJF","JMD","MWK","MUR","TJS"]},{"payment_method":"bank_redirect","payment_method_type":"sofort","payment_method_type_display_name":"Sofort","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["AUT","BEL","ESP","NLD","DEU","ITA"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"eps","payment_method_type_display_name":"EPS","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["AUT"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"ideal","payment_method_type_display_name":"iDEAL","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["NLD"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"giropay","payment_method_type_display_name":"Giropay","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["DEU"],"supported_currencies":["EUR"]}],"supported_webhook_flows":["payments"]},{"name":"GLOBEPAY","display_name":"Globepay","description":"GlobePay Limited is a professional cross-border payment solution provider (WeChat Pay & Alipay) in the UK","category":"payment_gateway","supported_payment_methods":[{"payment_method":"wallet","payment_method_type":"ali_pay","payment_method_type_display_name":"Alipay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["GBR"],"supported_currencies":["GBP","CNY"]},{"payment_method":"wallet","payment_method_type":"we_chat_pay","payment_method_type_display_name":"WeChat Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["GBR"],"supported_currencies":["GBP","CNY"]}],"supported_webhook_flows":[]},{"name":"GOCARDLESS","display_name":"GoCardless","description":"GoCardless is a fintech company that specialises in bank payments including recurring payments.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"bank_debit","payment_method_type":"ach","payment_method_type_display_name":"ACH Direct Debit","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["USA"],"supported_currencies":["USD"]},{"payment_method":"bank_debit","payment_method_type":"becs","payment_method_type_display_name":"BECS Direct Debit","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["AUS"],"supported_currencies":["AUD"]},{"payment_method":"bank_debit","payment_method_type":"sepa","payment_method_type_display_name":"SEPA Direct Debit","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["DEU","ROU","ESP","NOR","BEL","SVN","BGR","DNK","NLD","CYP","HRV","NZL","AUS","FRA","IRL","CHE","CAN","SWE","PRT","SVK","ITA","LUX","FIN","MLT","HUN","CZE","GBR","POL","AUT","ZAF"],"supported_currencies":["DKK","AUD","CAD","NZD","GBP","SEK","EUR"]}],"supported_webhook_flows":["payments","refunds","mandates"]},{"name":"HIPAY","display_name":"Hipay","description":"HiPay is an independent global payment service provider that is based in France.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["JPN","CZE","AUS","DNK","CAN","NOR","SWE","USA","GBR","ZAF","POL","CHE","HKG"],"supported_currencies":["USD","CAD","HKD","AUD","ZAR","CZK","GBP","NOK","JPY","EUR","CHF","SEK","DKK","PLN"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["CZE","NOR","JPN","ZAF","CHE","USA","CAN","GBR","HKG","AUS","POL","DNK","SWE"],"supported_currencies":["HKD","USD","DKK","SEK","AUD","NOK","JPY","CHF","EUR","ZAR","PLN","CZK","CAD","GBP"]}],"supported_webhook_flows":[]},{"name":"HELCIM","display_name":"Helcim","description":"Helcim is a payment processing company that offers transparent, affordable merchant services for businesses of all sizes","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["USA","CAN"],"supported_currencies":["USD","CAD"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["USA","CAN"],"supported_currencies":["CAD","USD"]}],"supported_webhook_flows":[]},{"name":"INESPAY","display_name":"Inespay","description":"INESPAY is a payment method system that allows online shops to receive money in their bank accounts through a SEPA bank transfer ","category":"bank_acquirer","supported_payment_methods":[{"payment_method":"bank_debit","payment_method_type":"sepa","payment_method_type_display_name":"SEPA Direct Debit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["ESP"],"supported_currencies":["EUR"]}],"supported_webhook_flows":["payments","refunds"]},{"name":"IATAPAY","display_name":"Iatapay","description":"IATA Pay is a payment method for travellers to pay for air tickets purchased online by directly debiting their bank account.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"upi","payment_method_type":"upi_collect","payment_method_type_display_name":"UPI Collect","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["IND"],"supported_currencies":["INR"]},{"payment_method":"upi","payment_method_type":"upi_intent","payment_method_type_display_name":"UPI Intent","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["IND"],"supported_currencies":["INR"]},{"payment_method":"real_time_payment","payment_method_type":"duit_now","payment_method_type_display_name":"DuitNow","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["MYS"],"supported_currencies":["MYR"]},{"payment_method":"real_time_payment","payment_method_type":"prompt_pay","payment_method_type_display_name":"PromptPay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["THA"],"supported_currencies":["THB"]},{"payment_method":"real_time_payment","payment_method_type":"fps","payment_method_type_display_name":"FPS","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["GBR"],"supported_currencies":["GBP"]},{"payment_method":"real_time_payment","payment_method_type":"viet_qr","payment_method_type_display_name":"VietQR","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["VNM"],"supported_currencies":["VND"]},{"payment_method":"bank_redirect","payment_method_type":"local_bank_redirect","payment_method_type_display_name":"Local Bank Redirect","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["NLD","LVA","DEU","THA","PHL","GHA","IND","ITA","PRT","ESP","AUS","IRL","JOR","EST","FRA","BRA","FIN","LUX","GBR","HKG","SGP","MEX","BEL","LTU","VNM","COL","AUT","MYS"],"supported_currencies":["COP","BRL","VND","THB","HKD","GHS","SGD","EUR","PHP","AUD","INR","JOD","MYR","MXN","GBP"]},{"payment_method":"bank_redirect","payment_method_type":"ideal","payment_method_type_display_name":"iDEAL","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["NLD"],"supported_currencies":["EUR"]}],"supported_webhook_flows":["payments","refunds"]},{"name":"ITAUBANK","display_name":"Itaubank","description":"Itau Bank is a leading Brazilian financial institution offering a wide range of banking services, including retail banking, loans, and investment solutions.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"bank_transfer","payment_method_type":"pix","payment_method_type_display_name":"Pix","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["BRA"],"supported_currencies":["BRL"]}],"supported_webhook_flows":[]},{"name":"JPMORGAN","display_name":"Jpmorgan","description":"J.P. Morgan is a global financial services firm and investment bank, offering banking, asset management, and payment processing solutions","category":"bank_acquirer","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic","manual"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","DinersClub","Discover","JCB","Mastercard","UnionPay","Visa"],"supported_countries":["FIN","SWE","SVK","DNK","POL","PRT","IRL","LVA","FRA","GRC","CAN","LUX","HUN","ITA","LTU","GBR","DEU","MLT","CZE","USA","AUT","EST","ESP","NLD","BEL","SVN","BGR","ROU","CYP","HRV"],"supported_currencies":["PAB","AOA","DKK","NZD","MXN","LSL","SLL","MWK","GTQ","MYR","BBD","BDT","XOF","MZN","JMD","SZL","SHP","SCR","DOP","CHF","TWD","AZN","EUR","SRD","BND","KYD","SAR","CAD","ALL","UGX","PGK","RON","RSD","ZMW","CRC","BRL","COP","NIO","BGN","ISK","PHP","VND","ANG","XAF","HNL","SOS","TTD","VUV","CZK","AED","MOP","RWF","BWP","BMD","NPR","UAH","CNY","BOB","MRU","SBD","BSD","YER","USD","PEN","AMD","AWG","AUD","PLN","EGP","GMD","GEL","LKR","CLP","MGA","QAR","SEK","GIP","MMK","PYG","FKP","KRW","HTG","BZD","KES","NAD","KZT","SGD","BIF","TJS","PKR","BTN","BYN","DZD","ETB","CDF","FJD","TOP","KHR","NOK","MUR","MAD","WST","GBP","TRY","LAK","MVR","ZAR","ARS","KMF","MDL","NGN","CVE","DJF","BAM","AFN","XPF","IDR","GHS","STN","INR","ILS","TZS","THB","MKD","HRK","JPY","LBP","LRD","MNT","HUF","UYU","UZS","HKD","XCD","GYD"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic","manual"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","DinersClub","Discover","JCB","Mastercard","UnionPay","Visa"],"supported_countries":["LUX","IRL","BEL","SWE","USA","ESP","SVN","POL","ROU","GRC","NLD","FIN","AUT","FRA","HUN","LTU","EST","LVA","HRV","CZE","DEU","DNK","CYP","MLT","GBR","BGR","CAN","ITA","PRT","SVK"],"supported_currencies":["BYN","CAD","XCD","BOB","ARS","RWF","CZK","SBD","MYR","TOP","GIP","BBD","TJS","AZN","LRD","NZD","NOK","EGP","HNL","MXN","ZAR","COP","TRY","UAH","GBP","PAB","MZN","AOA","PKR","BDT","AED","HKD","FKP","MKD","RSD","KRW","JPY","TWD","LAK","SRD","PYG","KZT","USD","SEK","SLL","TTD","BND","VND","XOF","SGD","UGX","LSL","YER","BWP","GMD","ALL","KMF","BRL","QAR","MVR","PGK","KYD","MWK","HRK","PHP","AMD","CLP","GYD","TZS","LKR","XAF","PEN","PLN","AUD","DZD","SOS","SHP","STN","BZD","MOP","MNT","NIO","NPR","CHF","HTG","JMD","MDL","HUF","MMK","CDF","BSD","BIF","NGN","BAM","NAD","BGN","MRU","ETB","AFN","UYU","UZS","RON","CRC","ANG","IDR","SZL","ZMW","ISK","LBP","CNY","AWG","KHR","INR","MGA","DJF","FJD","GHS","WST","DKK","DOP","BMD","SAR","ILS","EUR","XPF","CVE","GEL","SCR","KES","MUR","VUV","GTQ","MAD","THB","BTN"]}],"supported_webhook_flows":[]},{"name":"KLARNA","display_name":"Klarna","description":"Klarna provides payment processing services for the e-commerce industry, managing store claims and customer payments.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"pay_later","payment_method_type":"klarna","payment_method_type_display_name":"Klarna","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["NZL","SWE","GBR","CAN","AUS","NLD","DNK","AUT","ITA","BEL","FRA","CHE","POL","PRT","IRL","NOR","DEU","CZE","ESP","FIN","USA","GRC"],"supported_currencies":["CHF","DKK","NZD","SEK","GBP","AUD","CZK","PLN","NOK","USD","EUR","CAD"]}],"supported_webhook_flows":[]},{"name":"MIFINITY","display_name":"MIFINITY","description":"Mifinity is a payment gateway empowering you to pay online, receive funds, and send money globally, the MiFinity eWallet supports super-low fees, offering infinite possibilities to do more of the things you love.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"wallet","payment_method_type":"mifinity","payment_method_type_display_name":"MiFinity","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic"],"supported_countries":["NAM","ZAF","FIN","SWZ","DEU","NLD","BDI","HKG","GNQ","COG","LBN","GTM","BHR","GRC","CAF","MNP","ATF","MWI","TLS","ROU","GMB","ECU","UZB","HTI","VIR","TKL","PRT","GLP","HRV","RWA","GUM","THA","FJI","CRI","TWN","OMN","KNA","TTO","WLF","MAF","TGO","ISL","VNM","FSM","VAT","LIE","GUF","JEY","SGP","LUX","CZE","MNG","NRU","CUW","KHM","CYP","BRB","MEX","SLE","DZA","NCL","ARM","PSE","WSM","BEN","GNB","GAB","MCO","PYF","MRT","KOR","GRL","NER","MLI","MAR","PHL","ESP","DMA","GRD","SOM","CHL","NIU","CXR","MUS","CIV","MDG","COM","REU","SGS","TON","TUR","AND","AUS","CYM","LVA","KAZ","ITA","MDV","ALA","SMR","NIC","ZMB","STP","SWE","SRB","EST","UKR","BFA","MTQ","VGB","PER","TUV","MDA","SJM","SHN","LAO","ARE","URY","AIA","LTU","GIB","CHN","BTN","ETH","SPM","SEN","TCD","PAK","GBR","MAC","BMU","SVN","LCA","NOR","COL","BEL","DJI","SAU","SLB","NGA","IOT","ESH","CAN","QAT","TKM","BIH","MSR","COK","MKD","JOR","MOZ","VCT","ARG","KEN","CHE","NZL","BGR","BGD","LSO","ALB","BOL","NPL","BRA","SLV","POL","ATG","KWT","GUY","ERI","PRY","AUT","BES","CMR","IMN","FRO","GEO","JPN","ISR","PNG","RUS","GIN","MYS","VUT","IDN","TUN","ABW","CUB","AZE","SYC","BHS","IRL","MLT","LKA","GGY","UGA","KIR","SUR","IND","BLM","VEN","MYT","KGZ","SVK","HND","CPV","MHL","FLK","EGY","ASM","PAN","HMD","AGO","NFK","GHA","BRN","FRA","DOM","DNK","PCN","BWA","PLW","MNE","CCK","BLZ","SXM","TCA","PRI"],"supported_currencies":["CZK","INR","CAD","NOK","RUB","GBP","CNY","ZAR","EGP","UYU","PLN","USD","SEK","NZD","UZS","DKK","JPY","EUR","AUD","CHF"]}],"supported_webhook_flows":[]},{"name":"MOLLIE","display_name":"MOLLIE","description":"Mollie is a Developer-friendly processor providing simple and customizable payment solutions for businesses of all sizes.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","JCB","DinersClub","UnionPay","Interac","CartesBancaires"],"supported_countries":null,"supported_currencies":null},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","JCB","DinersClub","UnionPay","Interac","CartesBancaires"],"supported_countries":null,"supported_currencies":null},{"payment_method":"bank_redirect","payment_method_type":"giropay","payment_method_type_display_name":"Giropay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"bank_redirect","payment_method_type":"ideal","payment_method_type_display_name":"iDEAL","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["NLD"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"przelewy24","payment_method_type_display_name":"Przelewy24","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["POL"],"supported_currencies":["EUR","PLN"]},{"payment_method":"bank_redirect","payment_method_type":"sofort","payment_method_type_display_name":"Sofort","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"bank_redirect","payment_method_type":"bancontact_card","payment_method_type_display_name":"Bancontact Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"bank_redirect","payment_method_type":"eps","payment_method_type_display_name":"EPS","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["AUT"],"supported_currencies":["EUR"]},{"payment_method":"bank_debit","payment_method_type":"sepa","payment_method_type_display_name":"SEPA Direct Debit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"wallet","payment_method_type":"apple_pay","payment_method_type_display_name":"Apple Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"wallet","payment_method_type":"paypal","payment_method_type_display_name":"PayPal","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":null}],"supported_webhook_flows":[]},{"name":"MONERIS","display_name":"Moneris","description":"Moneris is Canada's top payment solutions provider, empowering businesses with innovative mobile, online & in-store solutions.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["MYS","PAK","IDN","NAM","AUT","VNM","BGR","ROU","VUT","UGA","EGY","LSO","MAC","PER","FIN","KAZ","KOR","TWN","CHL","SYC","ISR","MDA","WSM","CZE","RUS","TTO","SWZ","BTN","SUR","ISL","JAM","GMB","MWI","MDV","GTM","DEU","ZMB","NGA","CHE","FRA","DJI","HKG","PRT","AFG","SHN","TKM","BMU","SAU","NPL","SVK","HUN","CRI","OMN","UZB","BLR","DOM","CPV","TUR","NOR","PNG","LUX","BRA","MKD","SGP","BRN","TUN","JPN","BGD","DZA","MUS","CYP","IRL","GIN","KWT","CYM","CUB","PRY","LKA","BDI","NIC","BIH","ITA","RWA","HND","LTU","ZAF","GUY","CHN","MRT","ABW","POL","BLZ","QAT","URY","TZA","FJI","SWE","MDG","COL","MOZ","ARG","LBR","SLE","GRC","JOR","GIB","AGO","ARE","COM","GBR","ALB","SRB","LAO","MEX","NZL","SVN","USA","SLV","ESP","BRB","TJK","AZE","HTI","EST","DNK","GEO","HRV","LVA","SLB","IND","KEN","AUS","MLT","NLD","BOL","BEL","BHR","MAR","THA"],"supported_currencies":["XPF","UZS","RUB","PYG","BDT","BTN","AFN","SHP","SCR","TRY","ALL","GTQ","UGX","FJD","LKR","BAM","MWK","PKR","VND","GIP","XCD","ISK","AOA","BND","DJF","SVC","ANG","BZD","WST","IDR","GEL","MYR","KZT","BHD","MOP","MAD","PHP","SLL","TJS","TTD","CNY","SEK","LAK","SBD","HTG","JOD","JMD","THB","AZN","TZS","AWG","EGP","BMD","ZAR","NAD","DZD","HUF","RWF","VUV","MGA","KES","CHF","SRD","PEN","RSD","DOP","DKK","NGN","CVE","GBP","RON","LSL","INR","CZK","GYD","KRW","MRU","BBD","PGK","LRD","EUR","NPR","ILS","HRK","XOF","CRC","QAR","CUP","HNL","BIF","SGD","MUR","JPY","NZD","KWD","ARS","BRL","CLP","TWD","OMR","AUD","GNF","MZN","MXN","MKD","BOB","SZL","SAR","GMD","KYD","COP","MDL","ZMW","PLN","BGN","TMT","UYU","BYN","USD","AED","HKD","MVR","NIO","KMF","TND","NOK"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["QAT","SGP","MLT","BHR","PRY","THA","DEU","RUS","BRN","MEX","BMU","PRT","ROU","MWI","ZAF","SYC","NZL","EGY","LAO","RWA","ABW","TWN","TKM","LSO","AZE","ARE","BEL","WSM","URY","POL","TUN","CZE","SVN","GTM","SWZ","GIN","CHN","MDA","NIC","DZA","ZMB","LTU","MDV","SWE","AFG","ARG","GIB","BRA","GRC","LUX","DNK","GBR","ITA","NPL","SLE","OMN","PNG","JAM","IND","MRT","BDI","PAK","GUY","JPN","SHN","MUS","DJI","IDN","BOL","MYS","COM","PER","NGA","SUR","NOR","BRB","MAR","TZA","BTN","CHL","UZB","MAC","LKA","TUR","BGR","HRV","CYM","KOR","FRA","GEO","CUB","USA","CRI","BLR","DOM","VNM","NLD","GMB","AUT","COL","HND","LBR","NAM","CYP","KEN","JOR","SAU","TTO","EST","MOZ","ISL","HTI","ESP","HUN","SLB","KAZ","UGA","SLV","TJK","BLZ","VUT","SVK","HKG","MKD","CHE","KWT","ISR","BGD","AUS","IRL","ALB","AGO","SRB","MDG","BIH","CPV","LVA","FJI","FIN"],"supported_currencies":["GEL","JOD","OMR","ILS","PHP","UGX","SLL","TTD","ANG","NGN","KZT","MYR","TMT","BMD","MGA","NOK","UYU","BAM","MUR","ARS","NIO","LAK","GTQ","UZS","RUB","KYD","CUP","CLP","AWG","DJF","TZS","DZD","XOF","BND","MOP","THB","GIP","CVE","IDR","SRD","TRY","BHD","SZL","LRD","KRW","XPF","MWK","NAD","RWF","BTN","INR","PEN","LSL","BRL","AZN","TWD","COP","GYD","VND","GBP","BYN","LKR","BOB","BZD","MZN","GNF","KMF","HNL","MDL","AOA","EGP","BDT","BGN","MVR","AFN","PGK","WST","MXN","BBD","MKD","ZMW","CHF","ISK","SAR","HTG","ZAR","SGD","JPY","SCR","CNY","FJD","DOP","KWD","NPR","PLN","MAD","CRC","SHP","RON","TJS","AED","GMD","HRK","JMD","HKD","TND","MRU","HUF","AUD","EUR","KES","QAR","PKR","SVC","SEK","XCD","VUV","USD","RSD","CZK","SBD","BIF","PYG","DKK","NZD","ALL"]}],"supported_webhook_flows":[]},{"name":"MULTISAFEPAY","display_name":"Multisafepay","description":"MultiSafePay is a payment gateway and PSP enabling secure online transactions","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"three_ds":"supported","no_three_ds":"not_supported","supported_card_networks":["AmericanExpress","CartesBancaires","Maestro","Mastercard","Visa"],"supported_countries":["TKL","SDN","SGS","BVT","KGZ","ARE","PRK","SGP","BEL","KEN","HRV","PSE","CHN","IND","NIC","SWE","MDG","KHM","LIE","TTO","DNK","BGD","VUT","ASM","FRA","DMA","GGY","POL","AUS","PAK","AZE","BHS","BRN","MTQ","HMD","CYM","IRN","JPN","GRD","ECU","LBY","MEX","THA","ATF","MNP","ROU","SUR","TCD","CCK","TUV","HND","BLZ","CUW","MWI","TUN","MSR","AUT","ZWE","MRT","SWZ","PER","PRT","ALA","KWT","AIA","UKR","FRO","DZA","CPV","LAO","SXM","TCA","TKM","CIV","BWA","AFG","BRB","COD","GLP","MNG","ALB","BLM","ERI","GUM","BDI","VIR","VCT","COG","LTU","CZE","REU","ZAF","NRU","GNB","PHL","TGO","COM","CXR","LBR","IOT","BOL","BTN","MMR","PLW","CRI","UZB","LCA","ETH","BRA","WLF","QAT","KAZ","MAF","TWN","RWA","BIH","LSO","MAR","TZA","GRC","SLV","YEM","NLD","USA","GUY","WSM","NIU","SHN","NZL","MNE","ISR","OMN","SPM","ITA","EGY","NCL","MCO","GBR","COL","GTM","MHL","RUS","TJK","GAB","MDA","SRB","CUB","URY","PYF","SVN","HKG","CHL","UGA","KNA","MUS","ISL","VGB","CYP","LKA","FSM","HUN","JOR","CAN","BFA","GHA","LVA","NER","UMI","IMN","DOM","EST","GNQ","JAM","GEO","TLS","FLK","PRI","BMU","NPL","MLT","BLR","ZMB","DJI","BEN","LUX","ESH","VEN","KOR","ARM","JEY","MKD","SYC","IRQ","SEN","FJI","ATG","MAC","NAM","IRL","SYR","PNG","PRY","MLI","DEU","NOR","TON","MYT","AND","SVK","ABW","GUF","GMB","PCN","CMR","AGO","COK","CAF","ESP","MOZ","NFK","FIN","TUR","SLB","STP","ARG","IDN","CHE","HTI","SSD","BHR","SJM","NGA","GIB","GIN","PAN","VAT","VNM","BGR","MDV","MYS","GRL","SOM","SMR","SAU","KIR","LBN","SLE","BES","ATA"],"supported_currencies":["SEK","KRW","USD","COP","NOK","TRY","HUF","AED","ILS","SGD","EUR","GBP","RUB","BRL","CLP","CNY","NZD","PLN","CHF","HKD","ISK","JPY","DKK","AUD","INR","TWD","CZK","HRK","PEN","CAD","RON","ZAR","MXN","MYR"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"three_ds":"supported","no_three_ds":"not_supported","supported_card_networks":["AmericanExpress","CartesBancaires","Maestro","Mastercard","Visa"],"supported_countries":["TJK","LIE","MDV","LUX","KHM","CXR","STP","SJM","HTI","VGB","NFK","AIA","CUW","PHL","COG","FLK","BGR","SUR","AUS","ISR","GMB","PRK","TON","ARG","ATA","CHL","DZA","LSO","QAT","CCK","GUM","MYT","HND","AZE","OMN","FIN","DJI","TCA","IRQ","CUB","GNQ","MEX","SAU","SWE","MMR","YEM","CYM","ATF","IMN","CAN","BDI","EGY","GRC","UGA","TUN","SPM","ZMB","MKD","NOR","TUV","GUF","VUT","SYR","MYS","AND","REU","IRL","CPV","PLW","AFG","CHE","BRA","TUR","NZL","TWN","MLI","CIV","HUN","CHN","HRV","NER","GUY","SLE","IND","MCO","MAF","KGZ","ITA","LAO","VCT","ARM","BTN","VAT","PNG","KWT","ABW","ATG","TZA","PRY","GTM","COM","ALB","LTU","BLR","PCN","HMD","COL","KAZ","BMU","ARE","DNK","IDN","SLV","LCA","SEN","MUS","SLB","VIR","LBR","TGO","MAR","TKL","URY","THA","GBR","SXM","JPN","LBY","GIB","PSE","NRU","BLM","KNA","ESH","GNB","BGD","LVA","BEN","UMI","BEL","USA","GEO","ALA","LKA","ESP","COK","FRO","BIH","BVT","CYP","KIR","SDN","SVN","ISL","MOZ","KOR","NAM","FRA","ROU","MDA","WLF","PER","MWI","CAF","BHS","DEU","TCD","GIN","BHR","UZB","MNE","BWA","GGY","PRT","ECU","MTQ","SYC","POL","BFA","MNG","PRI","CMR","GHA","CRI","GRL","AGO","GAB","SHN","SGS","LBN","UKR","IOT","MDG","PAK","NCL","SMR","BOL","SVK","MAC","NIU","GLP","DMA","NPL","EST","FJI","DOM","RUS","JOR","BLZ","CZE","NIC","ASM","AUT","ERI","ZWE","NLD","WSM","PAN","SWZ","TLS","JAM","VEN","HKG","TKM","ETH","JEY","BRN","SSD","GRD","IRN","NGA","FSM","PYF","BES","SOM","MRT","VNM","MNP","SGP","MHL","MSR","SRB","ZAF","KEN","RWA","TTO","BRB","COD","MLT"],"supported_currencies":["MYR","HRK","JPY","CHF","ISK","CLP","BRL","CAD","KRW","EUR","AUD","DKK","MXN","PLN","RON","NZD","ILS","TRY","AED","HUF","SEK","INR","CNY","COP","TWD","ZAR","NOK","SGD","USD","RUB","GBP","PEN","HKD","CZK"]},{"payment_method":"pay_later","payment_method_type":"klarna","payment_method_type_display_name":"Klarna","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["FRA","NOR","DEU","ITA","SWE","GBR","DNK","BEL","NLD","ESP","AUT","FIN","PRT"],"supported_currencies":["SEK","GBP","EUR","NOK","DKK"]},{"payment_method":"wallet","payment_method_type":"google_pay","payment_method_type_display_name":"Google Pay","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["LBN","FRO","ARM","JOR","HND","VUT","KGZ","ROU","COK","SRB","VEN","PER","SLV","IRL","BIH","FIN","NCL","NPL","AUS","TCD","MYS","NIU","BRA","ISR","GUM","MNE","LBR","MDA","AZE","WLF","SGS","GHA","MAR","ASM","CMR","OMN","FLK","ZMB","MNP","URY","LSO","ERI","SYC","HUN","RUS","GIB","THA","CIV","FSM","MTQ","SJM","GMB","CZE","BWA","PNG","BEN","CCK","SAU","PRI","MOZ","GNB","GGY","KEN","TUR","BRB","CUB","DJI","HKG","GRC","VGB","DOM","BHR","ECU","SPM","NZL","CPV","NRU","ATF","TGO","SLE","SEN","CHL","MLT","MKD","IRN","GNQ","UKR","TUN","GEO","CHN","BHS","MEX","BOL","VIR","NIC","PHL","PRY","HMD","GUF","BLR","MCO","MHL","USA","PYF","NGA","TKM","KIR","TZA","KHM","DEU","BMU","UGA","LUX","MNG","ARG","VCT","SYR","ESH","MSR","SWE","ITA","CHE","ATA","PRK","BLZ","STP","GIN","LVA","ALB","UMI","ETH","ATG","TWN","LBY","IND","BEL","LIE","IDN","LCA","TJK","PRT","BRN","TLS","SMR","BTN","DMA","SOM","GRL","IMN","POL","GLP","REU","NFK","CAF","HTI","ARE","CUW","COL","CYP","BES","DNK","BVT","PLW","VNM","TON","MDG","CRI","IRQ","ALA","SDN","GRD","GUY","TUV","FJI","CAN","TCA","BFA","BLM","COM","MUS","VAT","YEM","MRT","DZA","ISL","COG","COD","AIA","PAN","KAZ","MMR","TKL","MWI","ZAF","NOR","NER","JAM","MLI","EST","SVN","HRV","NAM","UZB","EGY","BDI","SUR","PCN","MAF","AFG","KWT","RWA","SVK","TTO","BGR","BGD","SWZ","AUT","QAT","SGP","MYT","JEY","MAC","NLD","FRA","SLB","WSM","ESP","PAK","GTM","IOT","ZWE","PSE","MDV","GBR","AND","SHN","KNA","JPN","ABW","KOR","SXM","AGO","CXR","LTU","LAO","CYM","LKA","SSD","GAB"],"supported_currencies":["COP","GBP","AUD","USD","INR","MXN","MYR","ZAR","BRL","PLN","ILS","NZD","CZK","PEN","UAH","PHP","JPY","RON","SGD","RUB","HUF","AED","CLP","DKK","CAD","HRK","HKD","ISK","THB","CNY","TRY","EUR","CHF","KRW","SEK","TWD","NOK"]},{"payment_method":"wallet","payment_method_type":"paypal","payment_method_type_display_name":"PayPal","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["CUW","UMI","PAN","CHE","POL","SGP","GHA","PNG","CHL","BLZ","MMR","NOR","ASM","LKA","ISL","NCL","UZB","NZL","FIN","BGD","USA","JPN","NAM","ARM","CYP","LBN","FRA","JEY","IOT","GLP","BVT","KNA","GAB","COG","SLB","PRY","COL","ALB","BOL","PSE","VIR","HMD","COK","SHN","OMN","BFA","GUY","DZA","MRT","WLF","ETH","NRU","THA","TGO","SAU","NIC","KIR","IMN","FJI","IRQ","LIE","NPL","PAK","IDN","PLW","ZWE","HND","IND","BMU","SDN","DMA","MKD","YEM","JOR","ITA","LBY","SSD","PHL","GMB","PCN","TON","LVA","TUN","MLI","CZE","ARE","MSR","MHL","SWE","FRO","SWZ","BTN","AIA","SRB","ATA","GTM","DEU","BIH","TWN","KOR","HRV","MAC","BLM","TKL","BRA","GRD","VAT","KEN","GIB","WSM","MTQ","BEL","MNP","PRK","DOM","SLE","MWI","TTO","ATF","SYR","AZE","MUS","LSO","CMR","COM","ATG","PYF","SLV","IRN","STP","NIU","RUS","ECU","GNB","ISR","LAO","TZA","VNM","MNE","BGR","CUB","RWA","ESH","MDA","SMR","BLR","TUV","EGY","ALA","DJI","AGO","KWT","TCD","GUM","KGZ","ZAF","COD","MLT","VCT","GEO","MDV","BHR","CHN","CRI","CIV","CXR","BDI","GGY","LTU","SVK","SVN","GUF","ROU","EST","BRN","MNG","NLD","PER","SYC","AFG","HUN","GNQ","MEX","VGB","CPV","DNK","GBR","VUT","BES","MYS","LUX","REU","FSM","SPM","AUS","AUT","GRC","VEN","BWA","MDG","JAM","LBR","CAF","MAF","GRL","BRB","TCA","KHM","NGA","QAT","MCO","PRI","BHS","ERI","ARG","TJK","LCA","MOZ","AND","TLS","FLK","SOM","PRT","CYM","CAN","UGA","SUR","KAZ","HKG","TKM","CCK","GIN","SEN","URY","SGS","BEN","ZMB","SJM","IRL","NER","MAR","SXM","ESP","NFK","UKR","TUR","HTI","ABW","MYT"],"supported_currencies":["BRL","CZK","HUF","GBP","SGD","TRY","HRK","MYR","CAD","NZD","AUD","JPY","PLN","SEK","PHP","THB","CHF","MXN","TWD","RUB","USD","HKD","NOK","EUR","DKK"]},{"payment_method":"wallet","payment_method_type":"ali_pay","payment_method_type_display_name":"Alipay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":["EUR","USD"]},{"payment_method":"wallet","payment_method_type":"we_chat_pay","payment_method_type_display_name":"WeChat Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":null,"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"trustly","payment_method_type_display_name":"Trustly","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["EST","LTU","LVA","FIN","NOR","PRT","DNK","GBR","POL","DEU","NLD","SWE","CZE","AUT","ESP"],"supported_currencies":["GBP","SEK","EUR"]},{"payment_method":"bank_redirect","payment_method_type":"giropay","payment_method_type_display_name":"Giropay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["DEU"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"ideal","payment_method_type_display_name":"iDEAL","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["NLD"],"supported_currencies":["EUR"]}],"supported_webhook_flows":[]},{"name":"NEXINETS","display_name":"Nexinets","description":"Nexi and Nets join forces to create The European PayTech leader, a strategic combination to offer future-proof innovative payment solutions.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"wallet","payment_method_type":"paypal","payment_method_type_display_name":"PayPal","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["DEU"],"supported_currencies":["EUR"]},{"payment_method":"wallet","payment_method_type":"apple_pay","payment_method_type_display_name":"Apple Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["DEU"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"ideal","payment_method_type_display_name":"iDEAL","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["DEU"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"sofort","payment_method_type_display_name":"Sofort","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["DEU"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"eps","payment_method_type_display_name":"EPS","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["DEU"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"giropay","payment_method_type_display_name":"Giropay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["DEU"],"supported_currencies":["EUR"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","DinersClub","Discover","Interac","JCB","CartesBancaires","UnionPay"],"supported_countries":["DEU"],"supported_currencies":["EUR"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","DinersClub","Discover","Interac","JCB","CartesBancaires","UnionPay"],"supported_countries":["DEU"],"supported_currencies":["EUR"]}],"supported_webhook_flows":[]},{"name":"NEXIXPAY","display_name":"Nexixpay","description":"Nexixpay is an Italian bank that specialises in payment systems such as Nexi Payments (formerly known as CartaSi).","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","JCB"],"supported_countries":["MLT","ROU","BRA","DEU","HRV","USA","AUT","NOR","EST","SVK","CYP","SVN","BEL","DNK","PRT","IRL","CZE","BGR","CHE","SWE","FRA","POL","LUX","HUN","ITA","GBR","GRC","LTU","NLD","LVA","ESP","FIN","AUS"],"supported_currencies":["ARS","JOD","QAR","AED","EUR","VND","SGD","CAD","KWD","CLP","CHF","JPY","HRK","BHD","CZK","HUF","HKD","KRW","MXN","PHP","SAR","BYN","RON","CNY","TWD","PLN","DKK","RSD","COP","MYR","KZT","NGN","TRY","AUD","NOK","THB","GBP","AOA","BRL","ZAR","BGN","RUB","AZN","UAH","INR","EGP","USD","SEK"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","JCB"],"supported_countries":["FRA","EST","SWE","SVN","ITA","POL","BEL","NLD","BGR","FIN","PRT","GRC","AUT","LVA","CHE","HUN","HRV","CYP","USA","IRL","NOR","MLT","CZE","ESP","DEU","GBR","LTU","BRA","SVK","DNK","LUX","AUS","ROU"],"supported_currencies":["INR","UAH","QAR","CHF","JOD","BGN","CLP","DKK","BRL","THB","MXN","ZAR","CNY","BYN","TRY","HKD","SAR","GBP","RSD","KWD","AUD","CAD","AOA","AED","CZK","COP","SGD","KRW","AZN","EGP","BHD","NOK","USD","MYR","RUB","KZT","ARS","SEK","RON","JPY","EUR","HRK","PLN","PHP","NGN","HUF","TWD","VND"]}],"supported_webhook_flows":[]},{"name":"NOVALNET","display_name":"Novalnet","description":"Novalnet provides tailored, data-driven payment solutions that maximize acceptance, boost conversions, and deliver seamless customer experiences worldwide.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","JCB","DinersClub","UnionPay","Discover","CartesBancaires","Interac"],"supported_countries":["TUN","GUY","CHN","BGR","YEM","ETH","CYP","SOM","BOL","NZL","UGA","MNG","MNE","TUR","MWI","GEO","MDA","BLR","TON","IND","QAT","CZE","CRI","SGP","GHA","DNK","NOR","PNG","IDN","MAC","BMU","ISL","ITA","THA","HND","RUS","BHS","BRN","CAF","VCT","MEX","SLB","LCA","CUB","LKA","WSM","SLV","BWA","POL","ISR","FIN","SVN","GRD","IRL","NLD","BIH","ROU","BRB","CHL","RWA","SVK","VAT","DOM","KHM","FJI","GTM","HRV","DZA","SWE","GIB","VNM","HKG","TJK","ATG","PRT","ARM","EGY","LBN","JOR","TZA","ALB","COD","CYM","SLE","DJI","SRB","OMN","CAN","ARG","BEL","DMA","TWN","ARE","COL","BDI","KAZ","UKR","MDG","KEN","BRA","USA","GBR","ESP","MLT","JPN","MYS","AUS","BGD","SMR","MKD","KWT","PAN","KNA","SYR","URY","HUN","ZAF","AND","AUT","LVA","GRC","STP","MCO","LBY","CHE","AZE","MDV","EST","PER","GMB","PHL","SHN","SYC","SUR","VUT","JAM","SAU","BHR","PRY","LTU","VEN","MAR","PAK","NGA","FRA","BLZ","KOR","NIC","UZB","ZMB","DEU","NPL"],"supported_currencies":["BBD","BDT","SHP","AZN","MXN","DKK","KYD","BSD","MYR","SYP","SCR","RWF","BOB","IDR","PHP","OMR","HNL","UAH","KES","TOP","TJS","PYG","RSD","MOP","HKD","PLN","SRD","DOP","MGA","RON","LBP","BZD","PEN","JMD","HRK","BIF","UZS","GTQ","JPY","AUD","DZD","ISK","NPR","PGK","NZD","SGD","AMD","JOD","GMD","EGP","ARS","FJD","ALL","MDL","BGN","KWD","CLP","MKD","NOK","SOS","BWP","NIO","KHR","HUF","UGX","VND","BAM","GYD","CUP","SVC","TWD","MAD","CHF","XAF","GHS","SEK","MWK","YER","GBP","UYU","TND","MVR","STN","CDF","BMD","BHD","GEL","BYN","SAR","USD","TZS","BND","AED","PAB","CAD","CRC","WST","QAR","VUV","KZT","SBD","TRY","RUB","CNY","ETB","SLL","INR","COP","LKR","THB","LYD","NGN","XCD","ZMW","VES","KRW","MNT","GIP","CZK","EUR","BRL","PKR","DJF","ZAR","ILS"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","JCB","DinersClub","UnionPay","Discover","CartesBancaires","Interac"],"supported_countries":["COD","KNA","USA","CYP","UKR","SWE","MNE","AUS","SYR","STP","JAM","ARG","LBN","PRT","ZMB","MYS","BRN","SYC","GEO","BRB","MAC","LVA","LBY","BEL","NZL","NLD","BHR","AND","ESP","HKG","TUN","KEN","CHE","KAZ","IDN","ATG","CAN","CHN","EGY","HRV","ARE","TWN","AZE","MEX","THA","SAU","VNM","MKD","NGA","VCT","PHL","BDI","CUB","CAF","SLE","WSM","AUT","RWA","CRI","MLT","HND","ETH","NPL","PAK","EST","ISL","BGR","BWA","GMB","JPN","VAT","ARM","BOL","TON","VUT","PER","BGD","QAT","SOM","BLZ","FIN","MWI","ZAF","DZA","DJI","TZA","MCO","GTM","JOR","DMA","LTU","MDV","BLR","GRC","MAR","BIH","OMN","PAN","ALB","PNG","GHA","TJK","KHM","KOR","CHL","GRD","GBR","TUR","YEM","FRA","NIC","ROU","NOR","BMU","SHN","URY","CYM","SVK","DNK","MNG","SLB","BRA","FJI","BHS","LCA","UGA","IRL","IND","GUY","SVN","ITA","SMR","ISR","POL","VEN","HUN","MDA","KWT","COL","SUR","RUS","MDG","GIB","LKA","DEU","PRY","SRB","SGP","CZE","DOM","UZB","SLV"],"supported_currencies":["EGP","TRY","SVC","KWD","MYR","KYD","CNY","BRL","RWF","FJD","SGD","AMD","USD","ALL","BZD","LBP","COP","RUB","JPY","CZK","HUF","NOK","UYU","KRW","QAR","GMD","KZT","NIO","PGK","LYD","OMR","IDR","GEL","BOB","UAH","SAR","RON","CUP","XCD","PKR","LKR","BGN","CHF","MNT","SEK","SYP","NGN","UZS","BIF","EUR","ZMW","VND","GIP","DZD","MWK","PAB","THB","AUD","HNL","MDL","CRC","MAD","DJF","PEN","ZAR","UGX","SHP","BND","GBP","STN","TJS","ETB","BBD","MKD","HKD","TWD","BYN","BHD","HRK","MXN","SRD","RSD","WST","SBD","SCR","TOP","VUV","DKK","ILS","BSD","GHS","NZD","JMD","MGA","TND","ISK","YER","BAM","CAD","GTQ","AZN","CDF","CLP","NPR","BMD","MVR","SOS","JOD","PYG","PLN","GYD","AED","ARS","BDT","INR","SLL","KES","VES","MOP","XAF","PHP","BWP","DOP","KHR","TZS"]},{"payment_method":"wallet","payment_method_type":"apple_pay","payment_method_type_display_name":"Apple Pay","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["GBR","VNM","KNA","NOR","DJI","JOR","YEM","SMR","QAT","MNE","HRV","BEL","CAF","VUT","BLZ","TUN","CYP","SLB","TZA","CUB","SVN","SAU","MEX","RUS","KWT","AUS","HND","LVA","SLE","FRA","EST","IRL","MAR","UZB","NLD","LKA","SRB","BRB","PAN","TWN","SHN","DMA","LBN","AUT","SUR","ARM","MYS","NIC","CHL","DNK","BMU","AND","UGA","FJI","ARE","VCT","IDN","KAZ","MKD","MAC","PAK","ATG","ROU","NGA","PRY","THA","AZE","BHR","MNG","GMB","GRC","LTU","BWA","ZAF","KOR","FIN","PER","VEN","ISR","ITA","KEN","MDA","GUY","DOM","KHM","BGR","NPL","GRD","COL","WSM","ESP","PNG","SVK","BRA","BGD","IND","ALB","CHE","MCO","JAM","EGY","COD","USA","TON","BDI","URY","CZE","ARG","SYR","BOL","UKR","SOM","JPN","LBY","SWE","MDV","GHA","MLT","TUR","BIH","PHL","BLR","ZMB","HKG","CHN","GEO","ETH","TJK","SGP","GIB","SYC","PRT","SLV","DEU","BRN","MDG","CYM","RWA","HUN","VAT","CRI","CAN","DZA","POL","ISL","MWI","OMN","NZL","BHS","LCA","GTM","STP"],"supported_currencies":["PKR","BSD","NZD","DZD","NPR","NOK","CUP","SEK","GIP","XCD","HRK","UZS","BDT","CHF","PYG","VUV","EGP","MKD","BRL","BBD","USD","GYD","ETB","HUF","SLL","CZK","NIO","INR","BGN","ISK","TWD","MGA","NGN","ZAR","SAR","DOP","IDR","KHR","GBP","KRW","CLP","BYN","MXN","PGK","BWP","QAR","RWF","ALL","BMD","MAD","CNY","BHD","SVC","MWK","MNT","COP","BZD","SYP","TJS","BAM","FJD","JPY","SCR","SRD","TND","VND","AZN","MVR","PEN","ARS","LBP","GTQ","EUR","LKR","HNL","MDL","KYD","PLN","RUB","AED","TOP","TZS","UYU","ZMW","AUD","UGX","VES","STN","SBD","SGD","YER","TRY","XAF","RON","THB","MYR","GHS","GEL","GMD","DJF","KZT","LYD","PAB","SHP","KES","BOB","AMD","CAD","BND","JMD","BIF","JOD","KWD","WST","DKK","OMR","UAH","HKD","ILS","PHP","CDF","CRC","MOP","RSD","SOS"]},{"payment_method":"wallet","payment_method_type":"google_pay","payment_method_type_display_name":"Google Pay","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["TZA","SAU","KEN","QAT","CUB","KHM","CHE","LKA","SVN","DJI","TUN","SLE","URY","JAM","NZL","PAN","MLT","ETH","LBY","MYS","MEX","CAN","KOR","BEL","BRN","BHR","ZMB","USA","PAK","UKR","JPN","BDI","DMA","GRD","AZE","MAR","CYP","BHS","NIC","BRB","MWI","LTU","FJI","NOR","CYM","ROU","SLV","BOL","EGY","AUT","MCO","HKG","IDN","IND","KAZ","BLR","DNK","HRV","DOM","AND","NLD","SYC","MNE","UZB","VAT","GBR","EST","DZA","GRC","ATG","NGA","SGP","TJK","MNG","POL","CZE","VCT","ISL","TWN","SMR","GHA","CHL","GUY","IRL","SWE","SRB","RWA","SOM","COD","MDV","BLZ","LBN","GIB","SLB","SHN","GMB","KWT","GTM","WSM","SUR","VEN","ALB","ARM","BMU","CHN","AUS","GEO","HND","RUS","VNM","ARE","ARG","SYR","ITA","CRI","NPL","HUN","ISR","MDA","BIH","ZAF","MDG","PNG","PRY","THA","BRA","JOR","STP","BGR","COL","OMN","SVK","VUT","PER","FRA","UGA","TUR","MKD","YEM","PRT","DEU","BGD","LVA","FIN","ESP","CAF","PHL","MAC","KNA","LCA","BWA","TON"],"supported_currencies":["GIP","MWK","HUF","PYG","CNY","VES","DKK","LBP","ZAR","AZN","THB","KES","JPY","MAD","BZD","UAH","USD","MXN","WST","BDT","INR","OMR","NPR","XCD","BIF","BOB","SOS","VUV","PEN","LKR","UZS","GHS","GEL","PGK","YER","BRL","KWD","ALL","CAD","CLP","BBD","AUD","DZD","KHR","CRC","PKR","BAM","TND","CHF","ETB","HKD","TJS","CZK","EUR","TWD","XAF","MOP","MGA","KZT","JOD","NOK","PHP","MNT","RON","FJD","KYD","GTQ","BHD","HRK","SBD","TOP","MYR","AED","SYP","SRD","MVR","SAR","COP","GMD","PLN","PAB","BMD","QAR","CUP","ARS","SGD","SEK","RUB","BSD","GYD","SVC","SCR","NGN","ILS","SLL","BGN","NZD","MDL","HNL","BWP","RSD","TRY","UYU","CDF","RWF","BND","IDR","JMD","NIO","TZS","BYN","AMD","LYD","STN","VND","SHP","GBP","ISK","MKD","EGP","UGX","DJF","DOP","ZMW","KRW"]},{"payment_method":"wallet","payment_method_type":"paypal","payment_method_type_display_name":"PayPal","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["KHM","CHL","IRL","NZL","CUB","USA","PAK","EGY","BMU","GHA","DMA","ISL","ITA","VNM","VAT","URY","KEN","THA","BHR","PAN","AUS","VCT","BGR","IND","COL","GBR","FJI","MEX","TUR","CRI","FIN","SYC","DNK","JOR","SUR","PER","BEL","EST","NOR","MDG","GIB","NGA","LCA","MNG","GUY","GTM","LTU","TWN","YEM","SAU","TJK","UZB","SRB","TON","MYS","AND","HUN","MLT","MAC","SYR","ATG","LBY","SWE","CAN","PHL","NPL","LVA","SLB","DJI","PRT","ETH","POL","KWT","COD","UKR","ARG","DEU","SGP","CYP","TUN","SVK","BRA","MNE","IDN","NIC","HKG","HND","OMN","FRA","KAZ","DOM","STP","ROU","LKA","GMB","BLR","BGD","ARE","BLZ","DZA","WSM","LBN","UGA","JPN","BRN","MKD","MDV","ESP","CHN","GRD","RWA","SLE","KNA","QAT","SLV","CYM","PNG","ZMB","SMR","ZAF","SVN","BIH","GEO","AZE","CZE","ARM","HRV","NLD","VUT","ISR","PRY","BWA","CHE","RUS","TZA","BOL","CAF","SOM","MDA","MAR","JAM","SHN","GRC","AUT","MCO","BRB","BDI","ALB","MWI","KOR","BHS","VEN"],"supported_currencies":["AUD","CNY","USD","DKK","ZMW","GHS","CLP","GTQ","STN","EUR","VND","MOP","MXN","ARS","CRC","PLN","UAH","KRW","GEL","BHD","YER","RWF","BYN","LBP","BBD","MDL","BRL","MYR","PHP","CZK","PKR","KES","TND","XCD","FJD","LKR","DOP","ISK","HNL","BSD","TJS","GIP","SEK","VES","TRY","WST","OMR","PGK","COP","TZS","CUP","ALL","HUF","EGP","PYG","GBP","MVR","KZT","MKD","SRD","MAD","JPY","PEN","SLL","SCR","INR","BZD","NZD","NGN","THB","AMD","MGA","UGX","DZD","SGD","KHR","BGN","SOS","AZN","QAR","UYU","SYP","TOP","SBD","CDF","BWP","RON","RUB","SHP","ZAR","VUV","JOD","RSD","BIF","SVC","NPR","BAM","BMD","KWD","HKD","UZS","CHF","TWD","MNT","PAB","ILS","ETB","CAD","GYD","BOB","AED","BDT","LYD","IDR","KYD","MWK","SAR","XAF","BND","NOK","JMD","GMD","NIO","HRK","DJF"]}],"supported_webhook_flows":["payments","refunds","disputes","mandates"]},{"name":"NUVEI","display_name":"Nuvei","description":"Nuvei is the Canadian fintech company accelerating the business of clients around the world.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","UnionPay","Interac","JCB","DinersClub","Discover","CartesBancaires"],"supported_countries":["JPN","PHL","SGP","IND","GBR","THA","NZL","USA","AUS","CAN"],"supported_currencies":["PKR","THB","YER","DZD","COP","KWD","UGX","HKD","CZK","CLP","VND","KES","OMR","RSD","NGN","UZS","TOP","JPY","NAD","MAD","GHS","IQD","TTD","PLN","INR","LBP","BRL","NZD","GTQ","PEN","SEK","TWD","CNY","SOS","BYN","RON","CAD","QAR","ISK","GBP","MYR","BND","BDT","EGP","USD","KRW","RUB","SAR","BHD","ARS","TRY","MWK","BGN","MDL","ZAR","AED","KZT","TND","AZN","MKD","MMK","DOP","KGS","CRC","GEL","CHF","KYD","MUR","EUR","BAM","MXN","PHP","XAF","PYG","JOD","MNT","UAH","IDR","UYU","AMD","SGD","DKK","MZN","LKR","BMD","HUF","AUD","NOK"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","UnionPay","Interac","JCB","DinersClub","Discover","CartesBancaires"],"supported_countries":["PHL","SGP","USA","NZL","GBR","THA","IND","AUS","JPN","CAN"],"supported_currencies":["CZK","GBP","SOS","BRL","BYN","OMR","TOP","JOD","QAR","TRY","IQD","MWK","BAM","BDT","COP","EUR","KRW","BND","ARS","MMK","IDR","MNT","RSD","SGD","TWD","KYD","AED","UZS","LKR","CHF","VND","KZT","SAR","YER","SEK","AZN","GEL","RUB","DZD","NAD","PEN","CLP","DOP","UGX","UAH","CAD","NOK","AUD","USD","GHS","AMD","MUR","KWD","INR","MXN","MAD","NGN","PKR","TND","PLN","KES","MZN","NZD","ZAR","PHP","EGP","TTD","THB","BHD","CRC","BMD","HUF","UYU","MDL","HKD","GTQ","ISK","JPY","XAF","MYR","MKD","RON","DKK","KGS","LBP","PYG","CNY","BGN"]},{"payment_method":"wallet","payment_method_type":"google_pay","payment_method_type_display_name":"Google Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["USA","IND","THA","CAN","SGP","GBR","NZL","JPN","AUS","PHL"],"supported_currencies":["KGS","MZN","BRL","IQD","LBP","PLN","CLP","CNY","ISK","PYG","TOP","MKD","GBP","UYU","YER","MWK","INR","BHD","KYD","CZK","PKR","TWD","AED","CAD","BMD","SAR","SGD","RUB","UAH","USD","MMK","BYN","EUR","GHS","PEN","BND","DOP","MAD","CHF","MXN","IDR","KES","TND","UGX","VND","NZD","CRC","MNT","NGN","PHP","SOS","THB","AMD","QAR","ZAR","UZS","MDL","MUR","GTQ","ARS","KRW","JPY","KWD","AZN","KZT","GEL","TRY","BGN","JOD","EGP","AUD","COP","DKK","MYR","SEK","TTD","BDT","HUF","LKR","RON","RSD","DZD","BAM","XAF","OMR","NAD","HKD","NOK"]},{"payment_method":"wallet","payment_method_type":"apple_pay","payment_method_type_display_name":"Apple Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["JPN","GBR","PHL","NZL","USA","THA","AUS","SGP","CAN","IND"],"supported_currencies":["SOS","THB","MUR","NAD","CHF","PHP","MDL","CLP","CAD","YER","UAH","GTQ","NZD","CNY","MZN","IDR","PKR","BYN","KGS","QAR","SEK","UZS","BMD","UGX","TRY","TND","DKK","DOP","AED","JOD","MMK","RSD","TOP","NOK","USD","AUD","INR","KYD","BHD","CRC","JPY","LBP","BDT","GBP","KWD","PEN","RON","SGD","TWD","AZN","CZK","IQD","RUB","LKR","NGN","VND","MXN","BRL","BND","ARS","MAD","MWK","HKD","EGP","XAF","KES","OMR","MYR","ISK","MNT","GHS","BAM","PLN","SAR","TTD","BGN","DZD","EUR","UYU","GEL","ZAR","COP","MKD","AMD","HUF","KZT","PYG","KRW"]},{"payment_method":"wallet","payment_method_type":"paypal","payment_method_type_display_name":"PayPal","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["SGP","IND","NZL","THA","USA","AUS","CAN","GBR","PHL","JPN"],"supported_currencies":["MDL","DOP","MWK","CRC","MXN","BND","MUR","KES","SEK","GBP","TTD","UZS","PEN","YER","UGX","IQD","LBP","EUR","OMR","ZAR","KZT","SAR","RSD","SOS","NZD","PLN","KGS","QAR","AED","TND","SGD","ISK","NGN","HKD","PKR","BHD","JOD","MNT","UYU","NOK","PHP","XAF","JPY","PYG","GTQ","INR","MZN","GHS","RUB","UAH","BAM","BYN","MAD","ARS","MMK","KYD","TOP","DKK","CHF","AUD","CLP","CNY","HUF","BMD","COP","AZN","EGP","KRW","AMD","MKD","BDT","NAD","CZK","KWD","RON","THB","CAD","DZD","MYR","TWD","GEL","USD","VND","TRY","BGN","LKR","IDR","BRL"]},{"payment_method":"bank_redirect","payment_method_type":"giropay","payment_method_type_display_name":"Giropay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["NZL","JPN","USA","GBR","SGP","CAN","THA","PHL","IND","AUS"],"supported_currencies":["ISK","SGD","CLP","PEN","NGN","LBP","BDT","KWD","NOK","TND","YER","CAD","PKR","CNY","HKD","IQD","CZK","TTD","DKK","DZD","BRL","RON","AED","HUF","GEL","EUR","NZD","UGX","ZAR","JPY","BMD","AZN","MMK","TWD","KRW","UYU","KGS","COP","CRC","GBP","KZT","MUR","AMD","BND","SAR","MDL","MAD","TRY","LKR","MZN","IDR","NAD","DOP","SEK","MYR","TOP","QAR","CHF","BYN","UZS","VND","ARS","GTQ","EGP","OMR","GHS","KES","MNT","SOS","PHP","PLN","MKD","UAH","USD","XAF","MXN","AUD","BAM","BGN","KYD","INR","PYG","JOD","BHD","RUB","THB","MWK","RSD"]},{"payment_method":"bank_redirect","payment_method_type":"eps","payment_method_type_display_name":"EPS","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["GBR","PHL","THA","AUS","USA","SGP","IND","JPN","NZL","CAN"],"supported_currencies":["IQD","ZAR","THB","TOP","GTQ","SAR","UAH","HKD","ISK","JPY","COP","BAM","BND","CHF","INR","MMK","TTD","SEK","TWD","JOD","HUF","KGS","KZT","VND","BDT","AUD","YER","KYD","NAD","RSD","DOP","MKD","LKR","MZN","ARS","MXN","BRL","PLN","BGN","IDR","XAF","MYR","SGD","KWD","LBP","CAD","MNT","BYN","MAD","RON","UGX","PEN","TRY","CLP","BMD","KRW","CNY","NZD","AZN","QAR","DKK","TND","PHP","GEL","MUR","EGP","AED","EUR","GHS","PYG","UZS","DZD","UYU","MWK","GBP","USD","NGN","MDL","AMD","PKR","OMR","SOS","RUB","NOK","BHD","CZK","CRC","KES"]},{"payment_method":"bank_redirect","payment_method_type":"sofort","payment_method_type_display_name":"Sofort","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["NZL","IND","AUS","PHL","USA","SGP","THA","GBR","JPN","CAN"],"supported_currencies":["BMD","KWD","EGP","MZN","BYN","KZT","NAD","NOK","NZD","UYU","GTQ","JOD","PKR","UGX","CHF","BHD","RUB","INR","BGN","GBP","ISK","PLN","TOP","ARS","RSD","MYR","UAH","UZS","USD","CNY","PHP","SAR","MKD","MNT","KRW","TWD","AZN","YER","CAD","IDR","QAR","THB","HKD","LBP","NGN","PYG","BDT","CZK","MAD","MUR","SOS","GHS","DOP","GEL","KES","IQD","SEK","VND","XAF","OMR","AED","HUF","TND","SGD","BND","DKK","KYD","MWK","LKR","AUD","EUR","KGS","MDL","COP","BRL","CLP","JPY","AMD","PEN","DZD","RON","TRY","ZAR","MMK","MXN","CRC","TTD","BAM"]},{"payment_method":"bank_redirect","payment_method_type":"ideal","payment_method_type_display_name":"iDEAL","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["JPN","SGP","THA","NZL","GBR","AUS","CAN","IND","USA","PHL"],"supported_currencies":["UGX","UZS","ZAR","HUF","GTQ","KYD","MAD","DOP","VND","MKD","AZN","BAM","CHF","HKD","JOD","MXN","BDT","LKR","TTD","TRY","SOS","EUR","BMD","KRW","OMR","PHP","DKK","SAR","CAD","IDR","XAF","IQD","NZD","USD","MWK","PYG","YER","TND","RON","KGS","TWD","ISK","AMD","MYR","NOK","BHD","AED","TOP","CNY","DZD","MZN","SEK","BGN","RUB","UAH","QAR","SGD","LBP","GBP","KWD","CRC","BND","KES","NGN","MUR","AUD","COP","INR","EGP","JPY","KZT","CZK","BRL","BYN","MDL","RSD","CLP","GEL","NAD","THB","UYU","ARS","GHS","MNT","MMK","PLN","PEN","PKR"]},{"payment_method":"pay_later","payment_method_type":"afterpay_clearpay","payment_method_type_display_name":"Afterpay Clearpay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["USA","PHL","GBR","AUS","SGP","JPN","NZL","CAN","THA","IND"],"supported_currencies":["ISK","NAD","NZD","SGD","THB","TND","TRY","ARS","BGN","JPY","GEL","TWD","KWD","MMK","MUR","UZS","NOK","KYD","PLN","EUR","BAM","KES","RSD","YER","CHF","HUF","UYU","AED","OMR","KRW","UAH","COP","LKR","IDR","UGX","SAR","NGN","PHP","QAR","BYN","KGS","KZT","CZK","INR","CNY","MWK","XAF","GBP","GTQ","LBP","MNT","MYR","BHD","JOD","DOP","TOP","BRL","RON","MDL","USD","CLP","DKK","BDT","AZN","DZD","EGP","PEN","PYG","CRC","SEK","SOS","TTD","MXN","RUB","CAD","VND","PKR","ZAR","MKD","GHS","MZN","AUD","BND","AMD","BMD","HKD","MAD","IQD"]},{"payment_method":"pay_later","payment_method_type":"klarna","payment_method_type_display_name":"Klarna","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["AUS","CAN","USA","SGP","THA","JPN","IND","GBR","NZL","PHL"],"supported_currencies":["LKR","DOP","AED","BND","PHP","UGX","AMD","JPY","PYG","RSD","VND","HKD","KGS","SEK","BHD","THB","BDT","SOS","OMR","BAM","MYR","MDL","UZS","ISK","DZD","GBP","CAD","IDR","NGN","EUR","NZD","TTD","YER","BGN","KES","RUB","XAF","BRL","MAD","GTQ","IQD","USD","BYN","CZK","NOK","MMK","COP","CNY","JOD","KYD","MUR","AUD","KWD","NAD","PLN","RON","LBP","CLP","DKK","MNT","GEL","EGP","INR","SAR","SGD","TOP","PEN","TND","TRY","TWD","UAH","UYU","CRC","QAR","PKR","AZN","KRW","KZT","ZAR","HUF","ARS","MXN","GHS","CHF","MWK","BMD","MKD","MZN"]}],"supported_webhook_flows":["payments"]},{"name":"OPENNODE","display_name":"Opennode","description":"OpenNode offers accessible way for e-commerce businesses to process bitcoin payments.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"crypto","payment_method_type":"crypto_currency","payment_method_type_display_name":"Crypto","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic"],"supported_countries":["PRT","USA","SVN","MLT","NLD","BEL","GBR","SVK","LTU","FIN","LVA","DEU","NZL","SGP","CYP","GRC","IRL","ITA","AUT","JPN","HRV","EST","ESP","CAN","LUX","PHL","BRA","AUS","ZAF","FRA","MEX"],"supported_currencies":["USD","EUR","MXN","GBP","AUD","CAD","NZD","JPY","ZAR","BRL","PHP","SGD"]}],"supported_webhook_flows":["payments"]},{"name":"PAYBOX","display_name":"Paybox","description":"Paybox is a payment gateway that enables businesses to process online transactions securely ","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["FRA"],"supported_currencies":["USD","AUD","EUR","CAD"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["FRA"],"supported_currencies":["USD","EUR","AUD","CAD"]}],"supported_webhook_flows":[]},{"name":"PAYSTACK","display_name":"Paystack","description":"Paystack is a Nigerian financial technology company that provides online and offline payment solutions to businesses across Africa.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"bank_redirect","payment_method_type":"eft","payment_method_type_display_name":"EFT","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["GHA","ZAF","KEN","CIV","NGA"],"supported_currencies":["NGN","KES","USD","GHS","ZAR"]}],"supported_webhook_flows":["payments","refunds"]},{"name":"PAYU","display_name":"Payu","description":"PayU is a global fintech company providing online payment solutions, including card processing, UPI, wallets, and BNPL services across multiple markets ","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"not_supported","supported_card_networks":["Visa","Mastercard","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["MOZ","URY","ASM","BEN","POL","GGY","BHR","LSO","SOM","CUW","JAM","SWE","SYC","ROU","AFG","BRA","MDV","TTO","CAN","CHN","IRQ","MAC","MKD","TWN","DOM","VUT","ABW","NIC","GIN","BDI","BMU","GIB","JPN","KGZ","DZA","SHN","TUR","TZA","COK","SAU","COM","GUY","BVT","ARG","MAR","MWI","UGA","PRY","NAM","AGO","BOL","ISR","KOR","BWA","CHL","AZE","BHS","KAZ","SRB","BIH","TJK","ZMB","FJI","GMB","HRV","LBR","HTI","BGR","QAT","TUN","CZE","MEX","RWA","MNG","DJI","ISL","CYM","HKG","KWT","HND","PYF","LBN","ZAF","CPV","ARM","TON","ALB","PER","LAO","SWZ","GTM","MRT","ETH","SLV","JOR","BLZ","BRB","ZWE","SLB","MYS","OMN","EGY","AND","COD","NGA","BRN","COL","YEM","CRI","LIE","FLK","UZB","IDN","SUR","GHA","VNM","AUS","AIA","BLR","TKM","PNG","KHM","PAN","ARE","CMR","MDG","GEO","DNK","SGP","HUN","THA","MDA","VEN","WSM"],"supported_currencies":["ETB","TMT","ARS","DKK","CLP","PAB","LAK","ALL","ANG","LSL","GEL","MRU","RON","AED","SBD","SRD","BSD","GTQ","CVE","NOK","SEK","TZS","AUD","VES","SCR","YER","JPY","GNF","KZT","BAM","QAR","ILS","AZN","SHP","PEN","UGX","DJF","PLN","DOP","XPF","AMD","AOA","BND","NGN","BMD","MVR","BHD","CHF","KGS","MDL","SAR","MKD","AWG","USD","BRL","BIF","NAD","NIO","TOP","MXN","RSD","VUV","TRY","WST","UZS","GHS","EUR","LBP","PGK","HTG","FKP","CAD","BBD","BZD","MGA","IDR","DZD","SVC","SZL","CZK","GIP","RWF","BWP","TWD","JMD","XCD","MOP","SOS","EGP","TTD","SGD","ZMW","FJD","KMF","NZD","THB","TND","HKD","COP","TJS","GBP","CDF","MWK","BGN","JOD","LRD","MYR","UYU","XAF","ISK","ZAR","OMR","CNY","MAD","MNT","HNL","GMD","CRC","HRK","MZN","ZWL","HUF","KWD","BOB","KHR","IQD","PYG","GYD","KYD","VND","AFN","BYN","KRW","XOF"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"not_supported","supported_card_networks":["Visa","Mastercard","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["BLZ","AIA","ETH","GEO","PRY","OMN","SWZ","HTI","SLB","MDG","CZE","CPV","IDN","QAT","ROU","BLR","DJI","BMU","AFG","WSM","TZA","ARE","TON","MNG","SLV","SGP","CYM","VEN","ALB","DOM","KOR","BGR","PAN","BHS","ZAF","TTO","ZWE","GIB","MYS","MAC","BRN","LBR","BVT","ARM","ABW","SOM","AGO","JPN","POL","AND","HRV","BDI","SYC","BRA","COL","GHA","ARG","KAZ","GIN","SRB","MDA","HKG","ISR","PER","RWA","MKD","DNK","GUY","FLK","NGA","VNM","THA","BRB","IRQ","SUR","SWE","MWI","GMB","CRI","BIH","ZMB","TUR","TUN","MRT","MDV","BWA","BHR","ASM","KWT","MOZ","MAR","LSO","HND","KHM","UZB","TWN","PYF","GGY","CMR","AZE","FJI","SAU","CAN","PNG","CUW","TJK","CHL","GTM","URY","LAO","BOL","JOR","NIC","LBN","EGY","HUN","NAM","UGA","YEM","COK","COM","BEN","VUT","JAM","AUS","LIE","CHN","ISL","COD","MEX","TKM","DZA","SHN","KGZ"],"supported_currencies":["AUD","IQD","ILS","UGX","MAD","XPF","RSD","CZK","XOF","EGP","TRY","SGD","BYN","LSL","MVR","CRC","MYR","CNY","BND","GHS","AED","RWF","PAB","ZWL","IDR","GMD","ZAR","OMR","VES","PGK","BZD","NAD","DOP","ISK","PLN","BWP","ANG","MGA","GNF","BGN","BAM","CHF","ALL","GIP","HNL","BIF","BSD","SBD","BMD","BRL","MOP","HKD","TJS","CDF","FJD","TND","UYU","FKP","SAR","WST","SEK","JMD","THB","SHP","TTD","HUF","SCR","TZS","VUV","GEL","LAK","XAF","HTG","MXN","AFN","EUR","KHR","LRD","SRD","JOD","UZS","NGN","RON","KZT","VND","YER","KGS","CLP","GBP","PYG","MRU","TOP","NOK","BHD","AWG","BBD","MNT","SOS","TWD","CAD","MWK","KMF","NIO","MKD","SZL","COP","MZN","QAR","AOA","BOB","SVC","LBP","ARS","DKK","DZD","AMD","GTQ","KWD","KYD","MDL","NZD","ZMW","ETB","XCD","CVE","DJF","GYD","JPY","KRW","TMT","USD","AZN","HRK","PEN"]},{"payment_method":"wallet","payment_method_type":"apple_pay","payment_method_type_display_name":"Apple Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"wallet","payment_method_type":"google_pay","payment_method_type_display_name":"Google Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["MKD","SHN","ISR","NAM","NIC","GIN","TJK","HUN","MDV","ALB","MAC","BGR","EGY","GHA","DJI","LSO","UZB","BLR","UGA","MYS","DZA","KGZ","MWI","AZE","MRT","HKG","SWZ","MEX","TUN","SLV","JPN","CHL","YEM","PER","SOM","BHS","TON","ABW","VUT","DOM","MDG","PYF","COD","ISL","ARG","ETH","ARM","ZMB","ARE","PAN","PNG","GMB","MNG","COK","SAU","JOR","BMU","COL","FJI","VEN","AGO","URY","ZAF","KWT","WSM","ZWE","KHM","LBN","BHR","CPV","TZA","GIB","SWE","GEO","BRA","SYC","TTO","AFG","TKM","IDN","CMR","CRI","AND","LAO","VNM","COM","TWN","ROU","ASM","SRB","CHN","BEN","BVT","TUR","CYM","LIE","BOL","BIH","THA","GTM","CUW","AUS","JAM","IRQ","POL","GUY","BRB","CZE","PRY","OMN","MAR","SGP","BRN","DNK","LBR","CAN","SLB","RWA","MOZ","AIA","HTI","FLK","GGY","HRV","HND","BDI","SUR","BLZ","BWA","MDA","NGA","KAZ","QAT","KOR"],"supported_currencies":["TRY","ETB","SBD","BWP","THB","BAM","MGA","VND","CRC","ALL","BMD","MYR","FJD","MVR","NIO","CZK","TOP","CHF","NZD","LAK","SAR","AMD","MAD","XAF","GYD","TZS","AWG","BRL","CVE","RON","COP","JOD","LRD","PYG","UYU","WST","ISK","XCD","KMF","CNY","HTG","SEK","KRW","AFN","SCR","BYN","PAB","GMD","ILS","IDR","HKD","MXN","SGD","XPF","AED","AUD","NOK","MOP","GTQ","MNT","GNF","LSL","EUR","NAD","CAD","BSD","ANG","DJF","GHS","DKK","ZAR","MZN","DZD","SRD","IQD","TJS","PEN","BHD","SVC","HUF","VES","BOB","EGP","BZD","DOP","KWD","TND","OMR","YER","UGX","NGN","MRU","SZL","JPY","VUV","AZN","KZT","TMT","KGS","RWF","CDF","FKP","JMD","PGK","XOF","LBP","HNL","MKD","RSD","SHP","AOA","TWD","ARS","KHR","BND","SOS","MDL","ZMW","CLP","GIP","MWK","BGN","BIF","QAR","TTD","ZWL","HRK","BBD","GBP","KYD","PLN","UZS","USD","GEL"]}],"supported_webhook_flows":[]},{"name":"PLACETOPAY","display_name":"PlacetoPay","description":"PlacetoPay is a Latin American financial technology company's online payment platform, offering various payment methods and integrations for businesses","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","DinersClub","Mastercard","Visa"],"supported_countries":["CHE","BEL","ECU","URY","CRI","MEX","COL","HND","PRI","PAN"],"supported_currencies":["CLP","COP","USD"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","DinersClub","Mastercard","Visa"],"supported_countries":["URY","CRI","ECU","BEL","MEX","PRI","PAN","HND","COL","CHE"],"supported_currencies":["CLP","COP","USD"]}],"supported_webhook_flows":[]},{"name":"POWERTRANZ","display_name":"Powertranz","description":"Powertranz is a leading payment gateway serving the Caribbean and parts of Central America ","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard"],"supported_countries":["MDA","ITA","ETH","MNP","BRN","CXR","PRY","NLD","PNG","STP","MDV","MYT","JOR","BLR","CHE","SRB","KAZ","TUR","VAT","FJI","BVT","LSO","DZA","FSM","COK","USA","GBR","ERI","CAF","LUX","PRI","ZMB","MAC","BEL","CUW","PAK","SOM","MUS","VUT","JAM","POL","RUS","FRO","GNQ","GNB","REU","COM","GMB","FLK","GLP","GUM","TCA","ATA","SDN","BRB","PLW","TWN","IND","SGP","ROU","GRD","SWZ","KGZ","YEM","DNK","BMU","TCD","SAU","CYM","MCO","MAR","AFG","BIH","SWE","PSE","ARG","MHL","ASM","TTO","DOM","NCL","JEY","SUR","GUY","MLT","BRA","THA","CHN","PRK","CYP","CAN","SLE","QAT","SSD","MWI","MAF","LVA","BTN","PRT","TLS","BOL","ARM","TKM","AGO","LBR","GUF","MNG","MOZ","VEN","FRA","BHS","CZE","BHR","KNA","GTM","AIA","SVK","NGA","HKG","CCK","PYF","GRC","GAB","SYR","VGB","NPL","EGY","LKA","GHA","LIE","NFK","NER","ZAF","DEU","PHL","LTU","DJI","CRI","HUN","PCN","BES","URY","MYS","HRV","LBN","GIN","AUT","HND","JPN","CHL","GEO","SXM","VNM","BFA","ESP","FIN","HMD","SLV","AUS","BWA","SYC","RWA","MMR","BDI","LBY","KHM","VCT","OMN","COG","ECU","ALB","WSM","MEX","WLF","GRL","MTQ","BLM","MSR","COD","KWT","SJM","TGO","AZE","CPV","VIR","NIU","TUN","UGA","CIV","KEN","ALA","ATF","CMR","IRQ","NZL","SPM","ARE","BLZ","SHN","MRT","UZB","SMR","SLB","GIB","IOT","BGD","IMN","MKD","CUB","UMI","KOR","ISR","LAO","PER","BEN","SEN","TJK","MLI","TON","IDN","IRL","KIR","DMA","ZWE","MNE","NAM","IRN","UKR","SVN","HTI","BGR","PAN","NIC","EST","NOR","GGY","TZA","LCA","TUV","ABW","NRU","MDG","COL","ATG","ESH","ISL"],"supported_currencies":["BSD","USD","BMD","CRC","GTQ","HNL","KYD","BBD","TTD","JMD"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard"],"supported_countries":["ITA","GUM","MYS","TTO","REU","ALB","PRK","CHL","VEN","SSD","GGY","COG","CRI","PHL","YEM","DEU","EST","LAO","GRD","SXM","RUS","CPV","IRL","VUT","COD","BVT","FRO","AUT","GAB","HUN","KIR","MLI","FJI","PRI","MCO","BGD","GNQ","VIR","HTI","VNM","MAR","BLZ","WLF","BEN","PYF","COK","KWT","STP","UKR","SWZ","LCA","TUV","CIV","KOR","FRA","HKG","VGB","GLP","DOM","LKA","SLB","KEN","JEY","SVK","LUX","CHE","OMN","WSM","GUY","ARE","HND","GHA","MOZ","GTM","GUF","TZA","GRC","CCK","CAF","FSM","HMD","SGP","MAF","IMN","TWN","DMA","PER","DZA","SJM","MSR","TJK","PNG","POL","TUN","SLE","LBN","MLT","GRL","FIN","NPL","IDN","KNA","GIN","BWA","AZE","NIU","SWE","GMB","EGY","BEL","ZWE","NER","IOT","NGA","ATG","CZE","ZMB","HRV","KAZ","TON","AIA","THA","ASM","MNP","PCN","MKD","NLD","KGZ","LBY","PAN","LBR","JOR","BRA","NOR","ERI","BIH","ATA","GBR","SMR","MDG","ZAF","ATF","JAM","SRB","TGO","MNG","SYC","BLR","TCA","BES","BRB","ESP","BDI","MTQ","BTN","ECU","MDA","ALA","MUS","MEX","BRN","COL","GIB","CUW","ESH","SYR","ROU","NFK","CYP","LSO","BHR","GEO","UMI","BMU","SVN","TKM","IRN","BHS","NCL","TUR","DJI","GNB","TCD","SPM","MHL","PRY","LIE","ETH","LVA","PSE","VCT","SLV","SEN","UGA","BOL","MWI","PLW","IRQ","NAM","BLM","AFG","MNE","AUS","LTU","ABW","QAT","NZL","IND","UZB","CYM","SUR","KHM","VAT","PRT","PAK","CUB","NIC","CXR","SDN","CAN","ISR","SHN","BFA","USA","TLS","URY","SOM","ARM","ISL","MDV","NRU","JPN","CMR","CHN","DNK","MAC","FLK","MMR","COM","AGO","MYT","MRT","RWA","ARG","BGR","SAU"],"supported_currencies":["HNL","KYD","BBD","JMD","CRC","USD","BMD","BSD","GTQ","TTD"]}],"supported_webhook_flows":[]},{"name":"PROPHETPAY","display_name":"Prophetpay","description":"GlobePay Limited is a professional cross-border payment solution provider (WeChat Pay & Alipay) in the UK","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card_redirect","payment_method_type":"card_redirect","payment_method_type_display_name":"Card Redirect","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["USA"],"supported_currencies":["USD"]}],"supported_webhook_flows":[]},{"name":"RAPYD","display_name":"Rapyd","description":"Rapyd is a fintech company that enables businesses to collect payments in local currencies across the globe ","category":"payment_gateway","supported_payment_methods":[{"payment_method":"wallet","payment_method_type":"google_pay","payment_method_type_display_name":"Google Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["OMN","URY","HKG","DOM","USA","AZE","CAN","SMR","PAN","MCO","GEO","ISR","SGP","HUN","MAC","IRL","VAT","GTM","ECU","JOR","BGR","VNM","FIN","NZL","JPN","GRC","MAR","POL","BEL","SAU","HRV","KWT","SRB","GBR","LAO","SLV","MYS","NCL","MEX","MLT","DNK","MNG","KAZ","ISL","BIH","LIE","EGY","GRL","TWN","CHE","THA","HND","SWE","LUX","DEU","COL","CYP","CHN","CZE","ARM","AUS","ESP","EST","MDA","NOR","CHL","NLD","SVK","BLR","PRI","PER","ITA","UKR","SVN","LTU","LVA","ROU","PRT","IMN","QAT","MNE","FRA","CRI","AUT","ZAF","JEY"],"supported_currencies":["EUR","USD","ISK","GBP"]},{"payment_method":"wallet","payment_method_type":"apple_pay","payment_method_type_display_name":"Apple Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["USA","PAN","AUS","GGY","MLT","MCO","NZL","GRL","LUX","ISR","BMU","ASM","AZE","TJK","KHM","ISL","DNK","ROU","SWE","BIH","ESP","SVN","KGZ","ARM","VNM","BRA","IRL","COL","GBR","DEU","VIR","GUM","AND","GIB","MKD","JPN","IMN","MAC","CHE","BEL","ZAF","NLD","KAZ","MNE","SGP","FRO","HUN","CYM","CHL","THA","GTM","MAR","UKR","PER","LIE","CRI","SLV","LTU","CYP","GEO","MEX","NOR","ARE","SMR","TWN","ALB","PRT","LVA","PRY","MDA","EST","CZE","ECU","HRV","ITA","FRA","CAN","HKG","FIN","MNP","NIC","MYS","QAT","ARG","AUT","HND","PRI","DOM","SRB","KWT","URY","BHR","BGR","POL","SVK","GRC"],"supported_currencies":["USD","EUR","GBP","ISK"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","Visa","JCB","DinersClub","UnionPay","Mastercard","Discover"],"supported_countries":["SWZ","QAT","GTM","USA","GNQ","SJM","ITA","CIV","AGO","MTQ","LBY","POL","ASM","ARE","ABW","GHA","NPL","FJI","CMR","NOR","MYS","MHL","SEN","MNG","BLZ","CRI","DEU","COL","BMU","TUN","KEN","PRY","ARM","MNE","TCD","TKM","BFA","KWT","DOM","BTN","JAM","MYT","LBR","BGD","BES","TJK","ETH","GMB","BGR","SLV","GRL","CHE","AUS","PRI","NCL","AZE","LIE","TUR","NIU","BRN","SSD","FIN","MOZ","MLI","PLW","DNK","NGA","CUW","CXR","IRL","BLR","KNA","IND","TWN","MCO","SWE","MDV","UZB","LBN","MKD","HRV","TTO","MUS","UGA","LCA","JEY","NLD","UKR","PAK","WLF","GUY","MDA","MWI","DMA","GUF","GGY","SYC","HUN","PER","RWA","BVT","BEN","SPM","FRA","LTU","TCA","SRB","ALB","IDN","URY","THA","ISL","GNB","HMD","KHM","WSM","VEN","MEX","ROU","PAN","SLB","MAR","SVK","BHR","ZAF","GIN","VGB","AFG","SVN","KGZ","IRN","LUX","SGP","ARG","TON","IMN","COD","BRB","PSE","CZE","HTI","SYR","OMN","KOR","MSR","ESH","NER","KIR","LSO","MMR","CYM","VUT","GEO","VAT","ATF","EGY","ESP","AIA","VNM","FSM","PCN","PNG","COM","HND","BDI","FLK","ZMB","HKG","BWA","SXM","NIC","IRQ","BHS","BIH","NRU","VIR","TLS","RUS","YEM","NFK","JPN","ECU","CUB","MRT","COK","CPV","GRD","TGO","JOR","KAZ","CHL","SUR","BOL","SAU","UMI","GAB","ALA","GRC","MAC","EST","GIB","BLM","CHN","COG","IOT","CYP","ERI","REU","GLP","SHN","GUM","LKA","AUT","NAM","PYF","BEL","GBR","PRK","LVA","PRT","ATG","ISR","MLT","MDG","LAO","CAN","CCK","FRO","DJI","SLE","SMR","MNP","VCT","BRA","ATA","SDN","PHL","DZA","TZA","SOM","NZL","STP","TUV","MAF","ZWE","CAF"],"supported_currencies":["LKR","NZD","HKD","RUB","TRY","EUR","NGN","RON","LAK","FJD","CZK","BRL","KRW","NOK","PEN","USD","BDT","EGP","HUF","IRR","TZS","INR","VND","ZAR","SEK","RWF","NPR","XOF","BOB","CNY","IDR","ZMW","AUD","PKR","MWK","GBP","UYU","NAD","BWP","SAR","ILS","PLN","SGD","JPY","MYR","MAD","MMK","MOP","CHF","BGN","ISK","QAR","RSD","BND","UGX","AED","SLL","CAD","GHS","COP","KZT","UAH","XAF","KWD","GEL","MZN","PHP","DKK","THB","IQD","TWD","SCR","MDL","HRK","MXN","KES"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","Visa","JCB","DinersClub","UnionPay","Mastercard","Discover"],"supported_countries":["KIR","KOR","PRI","VCT","AIA","UKR","LBR","GIB","ABW","FIN","GUM","CIV","GNB","CCK","TKM","THA","PNG","CYM","SVK","NRU","BHS","KAZ","BTN","VEN","GBR","MWI","CHE","SWE","ECU","SXM","BVT","ETH","COM","ROU","KWT","PER","ERI","GNQ","AGO","NFK","ISL","BRB","MNP","COK","FJI","IMN","UMI","TTO","ZWE","CHL","STP","PSE","PCN","MHL","MOZ","IRN","GLP","SHN","TCD","IRL","MDG","NCL","ASM","GRL","NER","KNA","BGD","SEN","ITA","CAF","BIH","VIR","SOM","SYC","MSR","DOM","GUF","HRV","SAU","HUN","BDI","UGA","MRT","MMR","NAM","DMA","ATF","MCO","FLK","ARM","PHL","MAR","IDN","KHM","GIN","SSD","BES","BRA","MAF","QAT","GTM","SMR","PLW","SYR","CAN","WSM","BEL","TZA","MLT","BMU","KEN","SPM","VAT","JOR","PAK","TON","GUY","EGY","SJM","SGP","KGZ","MKD","BHR","CMR","USA","VNM","MYT","LCA","AZE","COG","ESH","CPV","SRB","ARE","DZA","TUV","TCA","HKG","WLF","MAC","GRC","TWN","GAB","JEY","UZB","SDN","SUR","MNG","LTU","GMB","FSM","LAO","NGA","SWZ","LKA","SVN","SLE","DNK","BRN","TLS","SLV","SLB","NIC","LVA","MYS","PRT","ZAF","IOT","NLD","MTQ","LBN","CHN","DEU","HND","TJK","AUT","BLM","CZE","ARG","IRQ","ATA","LSO","BFA","LBY","JPN","FRA","YEM","LIE","HTI","IND","BLR","CUB","CUW","BWA","AFG","JAM","BGR","NZL","EST","PRY","NPL","GRD","MUS","FRO","ZMB","OMN","GGY","ALB","HMD","PYF","ESP","ALA","RUS","NIU","BLZ","RWA","MNE","BOL","DJI","URY","TUN","CYP","GHA","TUR","VUT","NOR","MEX","MDV","TGO","MDA","BEN","ISR","POL","LUX","COL","PRK","ATG","AUS","COD","REU","MLI","VGB","CRI","PAN","GEO","CXR"],"supported_currencies":["NGN","IDR","ISK","SEK","UYU","EGP","AUD","KWD","TZS","BRL","RON","ZMW","QAR","BOB","HUF","MOP","MMK","NOK","MDL","VND","TRY","RSD","EUR","BND","GEL","USD","INR","MWK","PLN","FJD","MXN","TWD","DKK","NZD","HKD","UGX","IRR","SGD","XAF","XOF","CNY","IQD","LKR","JPY","SCR","SAR","COP","MYR","GHS","GBP","HRK","KES","KZT","LAK","PKR","CAD","CZK","PHP","NPR","KRW","MAD","SLL","MZN","RUB","THB","BDT","AED","UAH","RWF","BWP","PEN","CHF","ILS","ZAR","NAD","BGN"]}],"supported_webhook_flows":["payments","refunds","disputes"]},{"name":"RAZORPAY","display_name":"RAZORPAY","description":"Razorpay helps you accept online payments from customers across Desktop, Mobile web, Android & iOS. Additionally by using Razorpay Payment Links, you can collect payments across multiple channels like SMS, Email, Whatsapp, Chatbots & Messenger.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"upi","payment_method_type":"upi_collect","payment_method_type_display_name":"UPI Collect","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["IND"],"supported_currencies":["INR"]}],"supported_webhook_flows":["payments","refunds"]},{"name":"REDSYS","display_name":"Redsys","description":"Redsys is a Spanish payment gateway offering secure and innovative payment solutions for merchants and banks","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"three_ds":"supported","no_three_ds":"not_supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","JCB","DinersClub","UnionPay"],"supported_countries":["ESP"],"supported_currencies":["CAD","DKK","BGN","EUR","CHF","PEN","CZK","JPY","SGD","GBP","INR","NOK","NZD","ZAR","AUD","ILS","RUB","SAR","PLN","HRK","THB","MYR","HUF","SEK","USD","COP"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"three_ds":"supported","no_three_ds":"not_supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","JCB","DinersClub","UnionPay"],"supported_countries":["ESP"],"supported_currencies":["CHF","DKK","NZD","PEN","COP","HRK","GBP","EUR","MYR","NOK","SGD","CAD","USD","ILS","AUD","SAR","HUF","INR","SEK","CZK","JPY","PLN","THB","RUB","BGN","ZAR"]}],"supported_webhook_flows":[]},{"name":"SANTANDER","display_name":"Santander","description":"Santander is a leading private bank in Brazil, offering a wide range of financial services across retail and corporate segments. It is part of the global Santander Group, one of Europe’s largest financial institutions.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"bank_transfer","payment_method_type":"pix","payment_method_type_display_name":"Pix","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["BRA"],"supported_currencies":["BRL"]}],"supported_webhook_flows":[]},{"name":"SHIFT4","display_name":"Shift4","description":"Shift4 Payments, Inc. is an American payment processing company based in Allentown, Pennsylvania. ","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard"],"supported_countries":["GNB","BGR","GHA","KWT","BMU","TCA","HMD","TGO","NIU","CCK","LCA","IMN","COD","ATF","LBY","MEX","BGD","FLK","FJI","SVK","DJI","TLS","IOT","BRB","BES","BIH","CAN","ALA","SSD","YEM","RWA","ISL","SVN","PAN","SLV","TCD","ETH","BLM","KIR","MMR","AIA","ZAF","TZA","SLE","STP","MHL","MKD","IRN","MSR","ITA","BRA","GGY","COG","GTM","BOL","TWN","ARM","BTN","MDV","GUF","DNK","SLB","UGA","WLF","ECU","GEO","NRU","VNM","VIR","MAR","MYS","CUB","GIB","GUM","ISR","SGP","MOZ","UZB","BFA","CMR","EGY","GAB","SHN","WSM","ESH","PRT","MNG","BLR","OMN","MTQ","SJM","ABW","LIE","MAC","NOR","DMA","CHN","CUW","LAO","COK","FIN","PAK","MYT","KEN","BRN","MNE","UKR","MLI","TTO","ATG","PNG","KHM","PSE","CIV","VEN","BLZ","IND","SRB","MCO","KGZ","KNA","TUN","PER","PRI","BWA","FRO","NFK","BHS","BVT","IRL","VUT","COM","LTU","HUN","AUT","MDG","ZWE","PCN","ARE","GLP","JAM","MUS","SOM","JOR","PHL","EST","ROU","QAT","HKG","PRY","VGB","TUR","PYF","AND","USA","AZE","SWZ","BEN","GUY","NER","ARG","COL","BHR","KOR","BDI","PRK","UMI","AGO","TUV","SUR","NCL","CHE","REU","GBR","GRC","DOM","URY","SMR","TJK","ERI","NAM","GMB","CAF","IRQ","DZA","GIN","NGA","HRV","SYC","SAU","MAF","CPV","CYM","KAZ","LKA","HTI","SXM","CZE","RUS","NLD","VCT","CXR","GRD","DEU","NZL","TKM","PLW","SPM","BEL","ESP","ASM","GNQ","GRL","POL","THA","LUX","JEY","NPL","MLT","CHL","ZMB","SEN","LBN","TON","MRT","MNP","JPN","LBR","LSO","SWE","SDN","FSM","AFG","VAT","SYR","ATA","CRI","FRA","NIC","MDA","IDN","CYP","LVA","MWI","ALB","AUS","HND"],"supported_currencies":["GTQ","BMD","JMD","KMF","PGK","NPR","AOA","OMR","PLN","DZD","AFN","BGN","LYD","MWK","SBD","MYR","BSD","KYD","YER","AUD","CVE","TTD","TOP","WST","BDT","MGA","XOF","CZK","IQD","SLL","MOP","LRD","SYP","SZL","JPY","DKK","LAK","ALL","KWD","INR","NGN","NZD","BBD","PYG","TND","VND","ZAR","SHP","BND","KGS","AWG","XPF","PKR","DJF","CAD","XCD","BHD","BOB","FKP","GEL","MMK","SRD","MXN","SGD","SAR","EUR","SVC","TJS","XAF","ZWL","USD","MKD","GBP","ANG","VUV","KZT","GYD","ERN","TMT","KPW","TWD","MRU","RSD","FJD","KES","SCR","UAH","MDL","JOD","AED","TRY","MVR","SDG","HUF","BAM","RON","NIO","HRK","CNY","BTN","DOP","ETB","GMD","HKD","RUB","ZMW","BIF","BZD","NAD","THB","UGX","EGP","CUP","MAD","GNF","MUR","PAB","QAR","SOS","SEK","PEN","CRC","KRW","AMD","TZS","ARS","CDF","GIP","BWP","MZN","HTG","NOK","PHP","RWF","CLP","IRR","HNL","LKR","ILS","KHR","SSP","UYU","CHF","MNT","IDR","GHS","BYN","AZN","LSL","COP","ISK","UZS","LBP","BRL"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard"],"supported_countries":["SHN","CHE","VGB","PER","IRQ","IRL","RWA","MAC","MAF","UKR","THA","GHA","MTQ","LVA","MHL","AIA","CRI","VIR","MKD","ERI","TZA","LUX","SUR","COK","TLS","LBN","MMR","HRV","FSM","SWZ","KHM","COG","BDI","MCO","KGZ","MUS","HMD","TON","EST","LCA","HND","GRD","CIV","PAK","CXR","PSE","AZE","JAM","SXM","SJM","SLE","HUN","TUV","POL","MYS","BGR","UGA","SRB","WLF","MDV","NIU","KAZ","AFG","GBR","KOR","WSM","GNB","MNE","GEO","SGP","BRN","VNM","MNP","PRT","BRA","BVT","DEU","TCD","PLW","HKG","MLT","GRC","CYM","VCT","PYF","GRL","CAN","ITA","BTN","TJK","FLK","GGY","SEN","COD","NER","DZA","SVK","NLD","VUT","NAM","GLP","ETH","MEX","LIE","FIN","JPN","PRK","PCN","GUM","BEL","ROU","BIH","COL","IRN","JOR","TUN","CZE","CPV","CHL","BOL","CAF","FJI","NZL","IMN","KEN","CHN","PHL","GUY","LBR","NOR","PRI","LBY","TUR","DOM","FRO","BLR","UZB","TKM","BES","KWT","SDN","LTU","MYT","NFK","SMR","EGY","PRY","DNK","ISR","NGA","ALA","NPL","RUS","BHS","AGO","NIC","NCL","CYP","MSR","QAT","VAT","CCK","BEN","TCA","GIB","VEN","OMN","ARG","BFA","BLM","BHR","MOZ","SYR","ESH","SLB","MAR","BLZ","SYC","GIN","YEM","MNG","USA","CMR","SWE","ECU","ZMB","TWN","MWI","REU","SSD","BMU","MLI","GMB","HTI","ARM","SPM","ATG","SOM","PNG","KIR","GTM","IDN","ATF","URY","ZAF","SAU","PAN","UMI","GAB","BGD","COM","BWA","GNQ","IND","CUW","AUS","SLV","ALB","KNA","ZWE","GUF","JEY","ABW","ESP","DMA","LAO","NRU","ARE","TGO","DJI","FRA","BRB","IOT","AUT","MRT","LKA","ATA","ISL","SVN","ASM","CUB","MDG","STP","LSO","MDA","TTO","AND"],"supported_currencies":["TMT","UZS","NAD","BHD","USD","RON","GTQ","NGN","THB","BWP","AWG","KWD","CVE","MZN","LKR","ISK","BDT","FKP","KYD","GMD","JPY","PAB","PGK","SAR","HNL","BTN","LBP","ARS","AFN","GEL","BRL","TWD","BMD","DKK","LSL","COP","MDL","LAK","ERN","MRU","QAR","TJS","VND","XOF","BZD","GYD","SSP","TRY","CNY","AOA","JMD","VUV","UYU","GHS","SCR","SBD","ETB","UGX","CUP","AMD","IRR","PLN","SLL","TOP","CHF","GBP","LYD","BOB","XPF","SZL","MXN","AUD","BBD","GIP","KPW","MKD","MVR","ALL","KMF","RSD","ZAR","TND","BSD","MMK","UAH","KZT","SEK","TZS","AZN","IDR","MYR","ZMW","BND","JOD","KES","SDG","NOK","WST","PYG","DJF","MNT","MGA","EUR","MWK","ANG","SOS","PKR","ZWL","RWF","HUF","MOP","HTG","NIO","HRK","GNF","HKD","KRW","SYP","BIF","SGD","YER","NPR","DOP","KGS","BGN","RUB","SHP","BAM","CDF","IQD","PEN","SRD","LRD","XCD","AED","MUR","OMR","DZD","MAD","BYN","INR","CRC","NZD","CAD","FJD","CLP","EGP","XAF","TTD","KHR","SVC","CZK","PHP","ILS"]},{"payment_method":"crypto","payment_method_type":"crypto_currency","payment_method_type_display_name":"Crypto","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":null,"supported_currencies":["USD","AED","GBP"]},{"payment_method":"bank_redirect","payment_method_type":"sofort","payment_method_type_display_name":"Sofort","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["CHE","ITA","SWE","NLD","BEL","ESP","FRA","GBR","POL","DEU","FIN","AUT"],"supported_currencies":["EUR","CHF"]},{"payment_method":"bank_redirect","payment_method_type":"blik","payment_method_type_display_name":"BLIK","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["POL"],"supported_currencies":["PLN"]},{"payment_method":"bank_redirect","payment_method_type":"eps","payment_method_type_display_name":"EPS","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["AUT"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"trustly","payment_method_type_display_name":"Trustly","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":null,"supported_currencies":["EUR","DKK","NOK","SEK","CZK","GBP"]},{"payment_method":"bank_redirect","payment_method_type":"ideal","payment_method_type_display_name":"iDEAL","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["NLD"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"giropay","payment_method_type_display_name":"Giropay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["DEU"],"supported_currencies":["EUR"]},{"payment_method":"wallet","payment_method_type":"we_chat_pay","payment_method_type_display_name":"WeChat Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["CHN"],"supported_currencies":["CNY"]},{"payment_method":"wallet","payment_method_type":"skrill","payment_method_type_display_name":"Skrill","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":null,"supported_currencies":["USD"]},{"payment_method":"wallet","payment_method_type":"ali_pay","payment_method_type_display_name":"Alipay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["CHN"],"supported_currencies":["CNY"]},{"payment_method":"wallet","payment_method_type":"paysera","payment_method_type_display_name":"Paysera","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":null,"supported_currencies":["EUR"]},{"payment_method":"pay_later","payment_method_type":"klarna","payment_method_type_display_name":"Klarna","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":null,"supported_currencies":["SEK","EUR","CHF","GBP"]},{"payment_method":"voucher","payment_method_type":"boleto","payment_method_type_display_name":"Boleto Bancário","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["BRA"],"supported_currencies":["BRL"]}],"supported_webhook_flows":["payments","refunds"]},{"name":"SQUARE","display_name":"Square","description":"Square is the largest business technology platform serving all kinds of businesses.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","UnionPay","Interac","JCB"],"supported_countries":["FRA","USA","IRL","JPN","GBR","CAN","ESP","AUS"],"supported_currencies":["PLN","MUR","AZN","BHD","BTN","MWK","KYD","MMK","NIO","NZD","THB","ZAR","NOK","AED","AWG","CZK","ALL","FJD","MXN","KGS","CLP","AUD","CHF","BIF","BDT","TOP","XOF","GYD","ARS","CRC","UAH","OMR","BZD","BOB","TMT","USD","XCD","NAD","MZN","UZS","UYU","BRL","BAM","INR","PEN","SVC","DOP","PKR","KMF","SLE","ZMW","IRR","XAF","MAD","KRW","BBD","CDF","LRD","TJS","DKK","HNL","MKD","PHP","HRK","CUP","WST","XPF","SBD","PAB","HUF","ISK","JMD","GBP","SDG","MVR","TTD","KPW","GIP","RSD","LBP","SOS","HTG","MOP","JOD","IDR","KWD","LYD","RON","SCR","SGD","EGP","SAR","NGN","BMD","UGX","GHS","GNF","COP","KZT","NPR","QAR","SZL","VND","LAK","ILS","AFN","MDL","SEK","SRD","RWF","AMD","SHP","CNY","PYG","GMD","GEL","SLL","KES","MGA","AOA","SYP","IQD","RUB","YER","DZD","PGK","JPY","DJF","EUR","CAD","FKP","ERN","KHR","TWD","GTQ","CVE","MYR","LSL","BND","SSP","TND","TRY","MNT","ETB","BSD","LKR","BWP","ANG","HKD","TZS","VUV","BGN"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover","UnionPay","Interac","JCB"],"supported_countries":["GBR","FRA","AUS","JPN","USA","CAN","ESP","IRL"],"supported_currencies":["GIP","OMR","FKP","GTQ","RSD","PKR","UAH","SZL","AMD","HNL","CZK","PYG","ZAR","MMK","YER","XCD","PEN","BTN","HUF","MXN","IRR","MVR","DJF","MAD","RWF","GYD","NAD","AOA","MYR","BOB","PLN","SEK","UGX","CNY","GEL","AFN","NPR","SYP","ZMW","SGD","GBP","DZD","BWP","RON","SOS","JOD","SLL","BSD","AED","CLP","KHR","EUR","BND","KES","ETB","KYD","MDL","QAR","MKD","LRD","GNF","CHF","GMD","JMD","JPY","KWD","LSL","KPW","VND","VUV","BDT","SBD","LAK","NOK","AZN","BBD","EGP","SRD","BZD","TND","MZN","ANG","CAD","MNT","AUD","BAM","NIO","DOP","USD","TWD","PHP","MUR","SHP","WST","KRW","SAR","BHD","MOP","KZT","IDR","INR","ALL","ILS","ERN","THB","XPF","DKK","MWK","BRL","UYU","GHS","CUP","SLE","BMD","KMF","LBP","COP","IQD","SDG","TMT","CRC","RUB","PGK","TOP","PAB","HRK","HKD","NGN","BIF","LYD","BGN","LKR","TJS","UZS","HTG","ISK","TZS","CVE","FJD","AWG","NZD","ARS","CDF","TRY","SCR","XAF","TTD","MGA","XOF","KGS","SSP","SVC"]}],"supported_webhook_flows":["payments","refunds"]},{"name":"STAX","display_name":"Stax","description":"Stax is a payment processing platform that helps businesses accept payments and manage their payment ecosystem ","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover"],"supported_countries":["USA"],"supported_currencies":["USD"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","Discover"],"supported_countries":["USA"],"supported_currencies":["USD"]},{"payment_method":"bank_debit","payment_method_type":"ach","payment_method_type_display_name":"ACH Direct Debit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["USA"],"supported_currencies":["USD"]}],"supported_webhook_flows":["payments","refunds"]},{"name":"TOKENIO","display_name":"Token.io","description":"Token.io is a financial technology company that provides Open Banking and real-time payment solutions across Europe. They enable secure bank-to-bank transfers using various payment rails including SEPA, Faster Payments, and other regional payment systems.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"open_banking","payment_method_type":"open_banking_pis","payment_method_type_display_name":"Open Banking PIS","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":null,"supported_currencies":null}],"supported_webhook_flows":["payments"]},{"name":"TSYS","display_name":"Tsys","description":"TSYS, a Global Payments company, is the payment stack for the future, powered by unmatched expertise.","category":"bank_acquirer","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","AmericanExpress","Discover","JCB","UnionPay"],"supported_countries":["NAM"],"supported_currencies":["GHS","KZT","JMD","ERN","MGA","DKK","LSL","XOF","HNL","MKD","LKR","UZS","CLP","NIO","ISK","PAB","DOP","EUR","TJS","AMD","GNF","KYD","MVR","UGX","XPF","ILS","YER","AOA","SZL","OMR","BYN","ANG","SGD","GTQ","FJD","HUF","MOP","SVC","MNT","USD","BTN","CRC","DJF","TOP","BBD","LAK","LYD","CAD","PYG","STN","QAR","SDG","RWF","INR","KMF","PKR","BWP","LRD","BHD","VND","ALL","KPW","AUD","BND","PHP","CHF","SYP","BDT","TMT","ZWL","MYR","MUR","JPY","CVE","GBP","COP","GEL","MMK","BOB","AWG","IRR","DZD","VUV","XAF","ZMW","AZN","KES","TRY","MZN","HTG","SRD","BMD","SLE","MAD","CZK","JOD","KRW","LBP","MXN","CDF","SHP","TTD","SOS","UAH","NGN","SEK","HRK","EGP","KWD","AED","BIF","KHR","SSP","KGS","PEN","WST","BAM","UYU","RUB","ZAR","GIP","BGN","PLN","CNY","MWK","SCR","ETB","GYD","SAR","ARS","NAD","MDL","RON","TWD","RSD","PGK","BZD","THB","MRU","IDR","IQD","CUP","BSD","HKD","NOK","TZS","XCD","AFN","VES","SBD","NPR","GMD","FKP","BRL","NZD","TND"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","AmericanExpress","Discover","JCB","UnionPay"],"supported_countries":["NAM"],"supported_currencies":["ANG","BRL","PGK","ERN","RUB","TZS","PYG","VUV","CLP","KHR","MVR","RON","PKR","AUD","IRR","MGA","BSD","MKD","ZWL","MRU","AOA","BGN","CUP","IDR","MMK","AED","SVC","QAR","HUF","GEL","HTG","LSL","MXN","MAD","JMD","PEN","LBP","KMF","SBD","NGN","INR","OMR","MDL","ARS","UGX","VES","MOP","UAH","GMD","CZK","GNF","SHP","TRY","BDT","JPY","SOS","SDG","BZD","ETB","SAR","EUR","SGD","KES","RWF","UYU","LKR","THB","NAD","BIF","KGS","SLE","BND","ZAR","MWK","NIO","NOK","ILS","GHS","AZN","CNY","XCD","GYD","IQD","ISK","TWD","CAD","DJF","BMD","AFN","LAK","UZS","MNT","BAM","RSD","AWG","CVE","BOB","CDF","CHF","XAF","HRK","SSP","LRD","SZL","KYD","AMD","EGP","XOF","LYD","DOP","ZMW","GBP","TND","JOD","FJD","GIP","BBD","BTN","ALL","BHD","PHP","BYN","COP","GTQ","PAB","USD","XPF","SEK","VND","KZT","DZD","MYR","NZD","HKD","SYP","WST","HNL","KWD","TOP","STN","BWP","DKK","FKP","TMT","SCR","CRC","TTD","TJS","SRD","KRW","NPR","YER","PLN","MZN","KPW","MUR"]}],"supported_webhook_flows":[]},{"name":"VOLT","display_name":"VOLT","description":"Volt is a payment gateway operating in China, specializing in facilitating local bank transfers","category":"payment_gateway","supported_payment_methods":[{"payment_method":"bank_redirect","payment_method_type":"open_banking_uk","payment_method_type_display_name":"Open Banking UK","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic"],"supported_countries":["DNK","IRL","FIN","AUT","BGR","GRC","DEU","PRT","GBR","AUS","MLT","BRA","EST","LUX","SWE","POL","ESP","ITA","LTU","FRA","LVA","SVN","CZE","NLD","SVK","ROU","CYP","HRV","NOR","BEL","HUN"],"supported_currencies":["AUD","DKK","EUR","GBP","SEK","NOK","PLN","BRL"]}],"supported_webhook_flows":[]},{"name":"WELLSFARGO","display_name":"Wells Fargo","description":"Wells Fargo is a major bank offering retail, commercial, and wealth management services","category":"bank_acquirer","supported_payment_methods":[{"payment_method":"wallet","payment_method_type":"google_pay","payment_method_type_display_name":"Google Pay","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["USA"],"supported_currencies":["USD"]},{"payment_method":"wallet","payment_method_type":"apple_pay","payment_method_type_display_name":"Apple Pay","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["USA"],"supported_currencies":["USD"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","Discover","Mastercard","Visa"],"supported_countries":["ETH","GIB","MNG","ALB","CAN","TTO","YEM","MTQ","MKD","MRT","SHN","VAT","MLT","HMD","TUV","PER","BVT","SYC","BRA","MDG","PHL","GIN","ECU","NRU","SLE","EST","LBY","MMR","SVN","FIN","BGD","DZA","ZAF","TON","PAK","TWN","FJI","SYR","PYF","KWT","BEN","ARM","UKR","THA","LKA","AZE","JPN","NOR","TGO","COL","SVK","COD","MNE","NIU","TKL","GLP","PSE","HUN","IRN","POL","BEL","ARG","VGB","ASM","ATF","PLW","MNP","ABW","DJI","IDN","CIV","UGA","AFG","BWA","MAF","IND","IRL","JOR","HND","PRY","JAM","LCA","MAR","PRT","TUN","CYM","TZA","ESH","SUR","VEN","MAC","SMR","ESP","HRV","MDV","BHR","CHL","PRK","ISL","FSM","SGP","ZMB","TLS","CUB","EGY","IMN","NLD","TKM","NZL","SAU","SWE","KGZ","LVA","CUW","NCL","DOM","NIC","JEY","OMN","NAM","USA","TJK","BOL","KEN","NGA","NFK","GTM","REU","HKG","BMU","BLM","GNB","COM","ERI","NPL","LBR","GRD","VNM","GBR","BFA","ATG","SXM","MLI","MWI","LBN","BRB","MOZ","DMA","RUS","SRB","MEX","ROU","RWA","PNG","AUT","ISR","TCD","COK","COG","AGO","BES","GMB","LAO","MYS","BTN","SJM","VCT","GUY","STP","PAN","CZE","BDI","BHS","DEU","UMI","GGY","MHL","ITA","CRI","NER","BGR","SGS","KNA","GUM","LUX","KAZ","ARE","GAB","MYT","CPV","ATA","SLB","CYP","CHE","FRO","SDN","KHM","IRQ","SOM","AND","LSO","UZB","GNQ","FRA","ALA","AUS","CXR","GHA","TCA","SSD","URY","WLF","MDA","BLR","DNK","CCK","SWZ","AIA","GRL","SPM","QAT","GEO","GUF","CMR","BRN","GRC","HTI","CHN","MSR","MUS","BLZ","VIR","TUR","PCN","SEN","MCO","LTU","PRI","SLV","ZWE","IOT","VUT","KOR","BIH","WSM","LIE","KIR","CAF","FLK"],"supported_currencies":["MDL","AOA","ETB","HNL","LAK","MXN","SYP","MRU","LSL","SAR","AWG","ERN","VES","ANG","EUR","VUV","SBD","TOP","ZAR","PLN","KWD","XPF","SRD","AED","BBD","WST","SOS","SEK","BOB","MNT","ZMW","NAD","BMD","SDG","INR","BWP","BGN","VND","CUP","MGA","IQD","BTN","MZN","HKD","BHD","THB","SGD","RON","UYU","KGS","FKP","CDF","YER","MOP","QAR","EGP","TZS","KES","MWK","BRL","CRC","KYD","UAH","GHS","BDT","ALL","KMF","AMD","IDR","KZT","CVE","CZK","XOF","AFN","SHP","IRR","LKR","DOP","AUD","NPR","BSD","TTD","BAM","CLP","MVR","PAB","BIF","LYD","MKD","RSD","USD","CHF","DJF","XAF","TRY","PGK","AZN","GEL","GMD","HTG","ZWL","GYD","PYG","ISK","BYN","BZD","JOD","HRK","HUF","JPY","SLE","DKK","DZD","RUB","TWD","CNY","SVC","PKR","STN","TND","CAD","UZS","KRW","NZD","GIP","LBP","RWF","SLL","NOK","JMD","LRD","MMK","SZL","ARS","NIO","SCR","UGX","ILS","SSP","XCD","GNF","GBP","MAD","TJS","MUR","PEN","PHP","KPW","MYR","NGN","OMR","BND","COP","GTQ","FJD","TMT","KHR"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","Discover","Mastercard","Visa"],"supported_countries":["TKL","PCN","VEN","NLD","CHL","SXM","MSR","BMU","UMI","FRO","BLM","SDN","BES","MUS","URY","FIN","TWN","ERI","BTN","QAT","UZB","SMR","HMD","TUN","JEY","PRK","USA","BHS","OMN","TKM","NZL","ATG","TZA","SJM","THA","NGA","SWZ","ZWE","MOZ","EGY","MLI","MCO","MNG","NIC","CRI","AFG","LBN","ZAF","ALB","CAN","HRV","ALA","TJK","BDI","SYR","WLF","ABW","DOM","SSD","NRU","MAC","SRB","KHM","GRL","NPL","COK","SVN","FJI","JAM","CMR","PSE","UGA","CPV","BWA","SOM","MAF","JPN","MDG","BRN","GIN","WSM","GEO","MYT","ASM","BVT","GNQ","BHR","TUV","VIR","FLK","VUT","IND","VGB","BGR","PRY","NER","SUR","LVA","TTO","KAZ","IOT","ISR","SLB","COL","MTQ","SPM","POL","LBY","MDA","VAT","PYF","CUW","AZE","SLE","CHN","MHL","LAO","DNK","VCT","LIE","NIU","JOR","PHL","AIA","SGP","CHE","NCL","ISL","BLR","EST","DMA","LTU","DZA","SWE","MEX","LSO","CUB","FSM","NAM","PAK","HUN","MRT","FRA","ETH","MDV","GLP","REU","GHA","CIV","BGD","SVK","MMR","TUR","SAU","IRL","GAB","IRQ","AUT","UKR","SLV","SGS","COM","RWA","VNM","LUX","NOR","CCK","PRI","YEM","DJI","GUY","GTM","MYS","ZMB","CAF","HKG","ATA","SHN","COD","KNA","BEN","MWI","RUS","ROU","LBR","BOL","IMN","TCA","SEN","KWT","HND","KEN","TGO","PNG","SYC","BFA","KGZ","CYP","COG","BLZ","GRC","GIB","TON","BRA","ATF","DEU","LKA","KIR","MAR","ARM","PRT","BRB","AND","GNB","ITA","ARG","MNP","AGO","TCD","GBR","ESH","GMB","NFK","CYM","IDN","PAN","AUS","CZE","PER","STP","MKD","MNE","GUF","HTI","TLS","ECU","BIH","GGY","LCA","KOR","IRN","BEL","MLT","ARE","ESP","GUM","PLW","GRD","CXR"],"supported_currencies":["LYD","BGN","GBP","GIP","NOK","UYU","TZS","KGS","TJS","LKR","TTD","YER","PYG","EGP","MWK","NPR","AWG","HTG","IRR","HNL","CAD","PLN","INR","SHP","OMR","SAR","PGK","BOB","BND","SBD","AMD","CZK","IDR","NIO","SRD","MZN","SSP","SVC","VUV","XCD","XPF","BZD","KZT","BYN","DOP","AED","QAR","ARS","TRY","EUR","ZMW","KMF","XAF","MXN","SOS","BSD","JPY","PEN","TWD","XOF","CUP","TMT","FJD","WST","FKP","ZAR","MOP","UAH","ETB","MUR","UGX","VES","KRW","MVR","SLL","NAD","KES","MKD","MMK","SGD","RON","LRD","CVE","CHF","DJF","TOP","DKK","TND","BMD","LAK","UZS","JMD","AFN","LSL","PAB","ANG","PKR","RSD","DZD","SEK","IQD","ALL","GYD","CRC","THB","RUB","KHR","KWD","SLE","MYR","MNT","SZL","CNY","MGA","COP","GTQ","JOD","SDG","SCR","KYD","CLP","LBP","AOA","NZD","USD","BDT","SYP","BIF","BBD","ERN","MRU","MAD","STN","BTN","ZWL","BHD","ILS","VND","AZN","NGN","GMD","KPW","RWF","BWP","AUD","GHS","CDF","ISK","GNF","PHP","HKD","GEL","BAM","BRL","MDL","HRK","HUF"]},{"payment_method":"bank_debit","payment_method_type":"ach","payment_method_type_display_name":"ACH Direct Debit","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["USA"],"supported_currencies":["USD"]}],"supported_webhook_flows":[]},{"name":"WORLDLINE","display_name":"Worldline","description":"Worldline, Europe's leading payment service provider","category":"payment_gateway","supported_payment_methods":[{"payment_method":"bank_redirect","payment_method_type":"ideal","payment_method_type_display_name":"iDEAL","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["NLD"],"supported_currencies":["EUR"]},{"payment_method":"bank_redirect","payment_method_type":"giropay","payment_method_type_display_name":"Giropay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["DEU"],"supported_currencies":["EUR"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","Discover","Mastercard","Visa"],"supported_countries":["PAK","SDN","SVK","ITA","BDI","MNP","ZMB","PRT","BES","TWN","VCT","VGB","COM","ARM","REU","CHN","MSR","GMB","KAZ","WLF","POL","BIH","DMA","CAF","GRD","BWA","NCL","KEN","UMI","DEU","BGR","AND","THA","ARG","MEX","TZA","AUT","LBR","VIR","SYC","ABW","BOL","MDA","MNE","GGY","NAM","ZWE","KHM","ESP","MLT","HRV","ALB","LCA","IRQ","SMR","SXM","MYS","SPM","SWZ","BRB","GLP","FJI","SSD","VNM","SJM","TTO","GUF","OMN","COL","BRN","PAN","IRN","MNG","SGP","PER","SLB","ZAF","PLW","MMR","KNA","DZA","JOR","BFA","MAR","LKA","TCA","SYR","JEY","JAM","EST","NIU","STP","GUY","DNK","RUS","LAO","CYP","SOM","BVT","GRC","PSE","NFK","SVN","ALA","AFG","ERI","PYF","MUS","COD","COG","BMU","SWE","UZB","SUR","KWT","AGO","EGY","IMN","ROU","DOM","JPN","UGA","GUM","TUR","NOR","TJK","BGD","KOR","ATG","NGA","RWA","MTQ","FRO","IDN","LTU","CIV","MCO","GIB","NER","BLZ","TGO","PHL","SEN","FIN","MRT","VUT","ARE","CPV","IRL","CYM","VEN","NIC","TUN","GHA","MAF","MDG","BLR","ETH","SLE","BHR","PRK","GEO","BTN","DJI","SHN","HMD","COK","FLK","LBY","LBN","IOT","GIN","WSM","CXR","USA","CMR","AZE","ISL","NRU","TUV","ASM","PNG","PRI","BEN","GAB","LVA","LUX","MOZ","TON","SAU","URY","CZE","LIE","FSM","AUS","SRB","CHE","TCD","BHS","BLM","MHL","UKR","VAT","IND","CHL","CRI","HKG","MDV","HND","QAT","BRA","HTI","PRY","ISR","GRL","FRA","GBR","TKM","BEL","MKD","CCK","MAC","TLS","LSO","ECU","PCN","CUW","GTM","GNQ","KIR","YEM","NZL","MLI","ATA","AIA","KGZ","ATF","SLV","CUB","CAN","MYT","GNB","MWI","ESH","NLD","NPL","HUN"],"supported_currencies":["ETB","SYP","LSL","BYN","DOP","VND","FJD","NOK","KES","MNT","BBD","CZK","HNL","MMK","WST","AED","JOD","CVE","CHF","BHD","IDR","NPR","NAD","GEL","BOB","DJF","MGA","CLP","EGP","BTN","YER","NZD","DZD","MVR","UAH","XOF","MAD","SDG","INR","LAK","SLL","ALL","BSD","UZS","KGS","KRW","SHP","SZL","SBD","GYD","ISK","HTG","IQD","SCR","KMF","AOA","QAR","MUR","PLN","RON","PHP","UYU","CNY","BIF","BGN","ZAR","XPF","AMD","TZS","BND","BAM","SGD","AFN","AWG","COP","CRC","KZT","SEK","CAD","SOS","XCD","GNF","KHR","PYG","MWK","BDT","LBP","HRK","ARS","BWP","TND","ZWL","LYD","TOP","FKP","GBP","MKD","PAB","GHS","HKD","TWD","MOP","HUF","TRY","IRR","KWD","MZN","TMT","RWF","MDL","TTD","CDF","VUV","GTQ","ERN","JPY","MXN","NIO","RUB","XAF","MYR","AZN","GMD","ILS","RSD","SRD","GIP","SSP","USD","BMD","BRL","PEN","PGK","TJS","AUD","DKK","NGN","THB","SAR","SVC","MRU","CUP","EUR","JMD","LKR","BZD","ANG","LRD","OMR","UGX","ZMW","KYD","KPW","PKR"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","Discover","Mastercard","Visa"],"supported_countries":["CMR","PCN","SLV","ALA","PAK","SDN","VUT","CRI","DOM","LBY","CUW","IRQ","MAC","CHL","GRC","PER","TKM","TON","PRY","PRT","BTN","TUV","AGO","MYS","SSD","GUY","LKA","CHN","RUS","MCO","BRB","MHL","KOR","LTU","MTQ","GHA","ASM","COM","TCD","SAU","USA","CAF","ATF","HUN","GIN","DZA","SYC","CYP","MLT","WLF","NZL","AFG","DMA","SWE","BHR","NPL","ABW","BRN","UMI","HTI","MEX","ATG","QAT","MYT","CYM","ESH","NAM","REU","ROU","FIN","BIH","SMR","UZB","SLE","MNE","PLW","ETH","FLK","IOT","POL","MNG","SHN","NOR","NGA","SYR","SJM","BWA","SGP","VEN","GBR","TGO","BEL","SVK","KEN","PRI","BLM","TWN","VNM","HND","IDN","LCA","VCT","BMU","FSM","VGB","BLR","CCK","FRO","EST","ZMB","GMB","SWZ","ARM","IRL","BEN","BOL","TUN","TCA","GNQ","ZWE","CHE","GRD","AUS","FRA","NER","NCL","KAZ","BGR","DJI","GIB","MDV","BES","CPV","LBN","BGD","STP","MNP","PRK","ISR","ERI","GGY","MRT","PSE","SEN","HMD","URY","KGZ","MSR","LIE","BLZ","COD","GUM","UGA","FJI","ITA","ATA","ARE","BRA","BVT","MLI","NLD","GEO","AIA","SPM","SXM","LSO","BHS","MKD","GAB","TZA","ESP","PAN","JOR","SLB","NFK","KIR","MDA","COG","COL","CAN","JAM","GRL","VAT","KNA","SRB","COK","TLS","GLP","MUS","HRV","CXR","VIR","MAR","NIC","NRU","ISL","TTO","YEM","HKG","GNB","LBR","DNK","RWA","JPN","SUR","IRN","LUX","PHL","EGY","GTM","PNG","IMN","BDI","MDG","AUT","MMR","ZAF","TJK","PYF","BFA","ARG","THA","KWT","MWI","LAO","UKR","OMN","KHM","CZE","CIV","JEY","ALB","SOM","TUR","GUF","AND","NIU","MAF","AZE","IND","ECU","SVN","WSM","DEU","CUB","MOZ","LVA"],"supported_currencies":["MXN","NIO","BHD","BBD","HKD","CZK","SYP","BMD","NZD","UGX","GNF","MYR","PGK","DKK","ETB","KZT","SSP","TRY","IDR","BSD","FJD","KGS","ARS","GEL","MGA","RUB","SOS","CHF","ILS","MVR","PEN","ISK","RWF","SZL","TJS","UAH","UZS","TND","USD","VUV","MAD","UYU","XPF","COP","LRD","SDG","RON","CDF","BZD","GHS","INR","SBD","BAM","ANG","MNT","AWG","MRU","TMT","TTD","KHR","BGN","GIP","LAK","CLP","LBP","VND","AOA","OMR","JPY","JMD","TZS","ZAR","PKR","IRR","NAD","NPR","BND","CAD","CRC","SHP","EGP","XAF","MOP","QAR","KYD","NOK","HTG","BWP","MDL","ZMW","AFN","CNY","SVC","LYD","SAR","EUR","HRK","IQD","BDT","XCD","GMD","BOB","AUD","BIF","TOP","KWD","GYD","MMK","ERN","YER","DJF","DZD","PLN","GBP","KPW","DOP","CVE","NGN","ZWL","SRD","SLL","HUF","MWK","PYG","BTN","WST","AED","SGD","PAB","MUR","THB","BYN","SEK","HNL","AZN","PHP","XOF","JOD","KMF","MKD","AMD","GTQ","TWD","FKP","BRL","CUP","KES","MZN","RSD","ALL","KRW","SCR","LSL","LKR"]}],"supported_webhook_flows":["payments"]},{"name":"WORLDPAY","display_name":"Worldpay","description":"Worldpay is a payment gateway and PSP enabling secure online transactions","category":"payment_gateway","supported_payment_methods":[{"payment_method":"wallet","payment_method_type":"google_pay","payment_method_type_display_name":"Google Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["ISR","MEX","DNK","IRL","QAT","ZAF","BGR","LVA","NLD","USA","FIN","CHL","KEN","URY","KAZ","DZA","NZL","COL","ALB","AZE","ARE","LUX","SGP","HRV","TUR","SWE","JOR","AUS","ESP","MYS","BEL","CHE","ATG","POL","NOR","UKR","DEU","LBN","AGO","IDN","FRA","VNM","ARG","PHL","BHR","TWN","CZE","EST","BRA","PRT","ITA","JPN","THA","ROU","PAK","HUN","BLR","OMN","CAN","EGY","KWT","PER","IND","DOM","SAU","GRC","GBR","LKA","HKG","SVK","RUS","AUT","LTU","ASM","PAN"],"supported_currencies":["BDT","ILS","FJD","LSL","MMK","TWD","SHP","HKD","MKD","DJF","ERN","BWP","BIF","UYU","RUB","ARS","AWG","BND","ZAR","DOP","KRW","GEL","SCR","PEN","NGN","YER","MXN","SVC","IQD","WST","AZN","BGN","GMD","CAD","ETB","HUF","JOD","MUR","MDL","MAD","NOK","RSD","HTG","KZT","XOF","TOP","ZMW","KMF","IDR","UGX","AUD","USD","NZD","ZWL","CLP","AED","GTQ","MWK","SLL","TMT","STN","EGP","MRU","GBP","PAB","JPY","BOB","SRD","TZS","MNT","VUV","ANG","BTN","XAF","INR","DKK","HNL","IRR","LAK","MZN","BHD","PYG","SEK","NIO","KES","SAR","THB","LYD","SGD","SOS","JMD","UAH","CHF","COP","CNY","LRD","NPR","QAR","VND","EUR","XPF","LKR","CDF","BAM","MGA","DZD","SZL","GNF","PKR","CRC","UZS","TTD","FKP","CZK","AFN","PLN","GHS","XCD","GYD","PHP","MYR","SYP","PGK","SDG","KPW","RWF","SBD","GIP","ISK","KHR","LBP","NAD","OMR","MOP","TJS","TND","KWD","RON","BZD","TRY","KYD","BSD","BBD","BMD","BRL","MVR","CVE"]},{"payment_method":"wallet","payment_method_type":"apple_pay","payment_method_type_display_name":"Apple Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["ROU","MNE","JOR","GGY","CZE","BHR","QAT","ITA","LUX","CYP","ESP","GRC","BRA","CAN","NOR","AZE","UMI","POL","BGR","ISL","JPN","EST","IMN","NZL","UKR","SRB","BEL","LTU","FIN","AUS","IRL","NLD","DEU","GEO","PRT","HRV","SWE","DNK","LVA","CHN","GRL","MYS","SGP","MDA","ARG","AUT","USA","PER","HUN","LIE","PSE","KWT","GBR","ARM","SVN","FRA","FRO","SMR","HKG","COL","CRI","MLT","JEY","CHE","TWN","MAC","MEX","BLR","ISR","MCO","SVK","KAZ","ARE","SAU"],"supported_currencies":["XPF","BSD","BHD","MGA","BAM","KYD","RON","XAF","KRW","SYP","TZS","TOP","BGN","EUR","AED","UAH","MUR","PLN","KWD","PHP","CAD","RSD","ANG","HNL","MAD","BWP","ARS","GMD","LYD","CRC","ERN","BDT","MNT","CVE","JOD","MVR","LAK","PAB","UYU","PEN","TMT","SVC","AUD","CLP","KZT","NGN","ILS","NIO","PGK","IRR","MOP","TRY","MZN","SBD","SDG","SRD","CHF","BMD","MKD","ETB","PYG","SGD","KMF","BTN","INR","JMD","ZAR","VND","XCD","USD","BND","DZD","AZN","MYR","TWD","GEL","DJF","MDL","SOS","YER","ISK","SZL","TTD","FKP","MXN","AFN","GHS","AWG","LRD","CNY","HTG","BIF","UZS","LKR","SLL","BOB","IQD","MMK","SEK","ZWL","CZK","WST","JPY","XOF","TND","KES","GTQ","SAR","MWK","PKR","HUF","ZMW","COP","GYD","RWF","IDR","GBP","DOP","QAR","GIP","DKK","BZD","CDF","BBD","STN","LSL","KPW","BRL","OMR","THB","GNF","SHP","KHR","LBP","UGX","EGP","NAD","VUV","SCR","FJD","HKD","NPR","MRU","NOK","TJS","RUB","NZD"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","CartesBancaires","DinersClub","JCB","Maestro","Mastercard","Visa"],"supported_countries":["KWT","MUS","VEN","ZAF","NOR","BHR","IRL","BHS","MAR","JOR","UKR","OMN","CPV","GIN","RWA","LBN","COM","PRY","PRK","TJK","PAK","PNG","MRT","ISR","AZE","CAN","BTN","IRN","MMR","SLV","IND","PER","KEN","HND","BDI","MNG","TUR","COD","SGP","CHE","GBR","VUT","ITA","NIC","MKD","MEX","IDN","IRQ","LBY","LTU","TTO","UGA","CRI","BRN","GEO","SHN","TWN","TUN","MAC","HUN","ISL","LKA","BRA","BOL","COL","KAZ","PHL","ROU","CHL","ERI","FLK","LAO","TZA","MYS","ZMB","DJI","WSM","QAT","DNK","KHM","GTM","JPN","URY","GIB","BGD","CYM","JAM","RUS","LBR","GHA","STP","MDG","AFG","HTI","ETH","MOZ","ARG","LSO","ABW","POL","THA","BWA","ZWE","BIH","DZA","HKG","GUY","SWZ","SDN","NGA","SYR","GMB","MDA","AUS","NZL","USA","KOR","BGR","NAM","BRB","BMU","MDV","CZE","ECU","VNM","UZB","DOM","BLZ","SWE","MWI","FJI","SUR","EGY"],"supported_currencies":["IDR","MZN","LRD","JMD","ILS","KRW","SHP","BGN","ZAR","YER","SAR","KMF","NGN","JOD","KZT","AED","WST","INR","BDT","ETB","PAB","PLN","RSD","MUR","SDG","ANG","BOB","KHR","NZD","GEL","KES","ARS","COP","RWF","AUD","LYD","MKD","XOF","GIP","SYP","NPR","IRR","SOS","SRD","CHF","KWD","UGX","UAH","EUR","SZL","KPW","XAF","TND","UZS","CLP","GTQ","HKD","KYD","IQD","SLL","JPY","RUB","LSL","MXN","SBD","DKK","LKR","CVE","AWG","BWP","TTD","CNY","USD","DZD","GHS","HNL","NOK","BMD","CZK","PYG","HUF","MGA","HTG","VUV","STN","VND","XPF","GYD","MWK","TOP","BAM","TJS","GBP","UYU","SCR","ZWL","MVR","NIO","DOP","SVC","PKR","PEN","CAD","QAR","SEK","THB","BHD","ISK","ZMW","BTN","BBD","NAD","MRU","BZD","BRL","LAK","GNF","MYR","PHP","MDL","SGD","ERN","BSD","BND","XCD","EGP","PGK","TWD","TRY","TZS","TMT","CRC","GMD","FJD","LBP","CDF","MOP","RON","AZN","OMR","MNT","MAD","BIF","AFN","FKP","MMK","DJF"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","CartesBancaires","DinersClub","JCB","Maestro","Mastercard","Visa"],"supported_countries":["NIC","VUT","SGP","TWN","MDV","HTI","ZAF","URY","ECU","IDN","BTN","MWI","SHN","CZE","SDN","BHS","BRA","MDG","BRN","PRK","STP","UZB","OMN","ERI","MUS","PNG","PRY","GIB","TUN","GTM","COD","PHL","NOR","BOL","KHM","NAM","ETH","SUR","MNG","ZWE","BIH","MAC","SWZ","BHR","ARG","JOR","RUS","LSO","TTO","ROU","EGY","FJI","LBY","BRB","CRI","CHL","PAK","CYM","GIN","KAZ","QAT","MMR","IRQ","NZL","PER","JAM","IRL","USA","COL","KWT","DJI","BLZ","BGD","DZA","IND","KEN","ISL","WSM","ISR","HND","TZA","CHE","RWA","LBR","VEN","BDI","POL","HKG","KOR","AFG","ITA","CAN","ZMB","BGR","GUY","AZE","TUR","NGA","AUS","GEO","GHA","FLK","SYR","BMU","UGA","GBR","MOZ","MDA","JPN","UKR","CPV","SLV","DOM","LBN","VNM","COM","DNK","MAR","MEX","GMB","SWE","TJK","THA","LTU","MKD","LKA","MRT","BWA","IRN","HUN","MYS","LAO","ABW"],"supported_currencies":["KPW","NPR","MNT","UGX","TTD","TWD","KMF","USD","VUV","DOP","MWK","OMR","DZD","MOP","MAD","JMD","BGN","AED","BOB","CLP","SHP","ISK","MDL","BAM","ETB","BMD","SLL","CNY","NOK","NZD","BDT","HKD","XOF","JOD","LYD","PLN","HNL","GYD","RUB","BND","RWF","NIO","SOS","AWG","KWD","HTG","DKK","BRL","RON","LBP","CHF","UAH","BWP","PEN","KRW","DJF","SZL","EUR","YER","CZK","ZWL","LKR","COP","BTN","HUF","ERN","MKD","MXN","ZMW","SVC","AUD","PHP","GEL","LRD","AFN","NGN","SAR","MYR","SEK","VND","XCD","MGA","GTQ","AZN","THB","TMT","WST","BZD","FKP","TND","CRC","JPY","GIP","STN","TRY","UZS","PYG","BIF","CDF","IRR","IQD","ILS","MZN","GBP","KYD","MMK","BBD","GNF","PKR","SGD","SBD","IDR","NAD","TZS","MRU","KHR","BHD","FJD","LAK","RSD","INR","ARS","SCR","KZT","PAB","SYP","TOP","MUR","BSD","SRD","QAR","SDG","MVR","GHS","XAF","EGP","GMD","ANG","CAD","UYU","XPF","PGK","CVE","ZAR","LSL","TJS","KES"]}],"supported_webhook_flows":["payments"]},{"name":"WORLDPAYVANTIV","display_name":"Worldpay Vantiv","description":"Worldpay Vantiv, also known as the Worldpay CNP API, is a robust XML-based interface used to process online (card-not-present) transactions such as e-commerce purchases, subscription billing, and digital payments","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","DinersClub","JCB","Mastercard","Visa","Discover"],"supported_countries":["KOR","MWI","CHL","LAO","HND","IRN","BTN","GHA","JPN","SUR","DNK","CYM","ARG","DJI","BOL","QAT","GIN","BRN","FJI","SGP","COM","MAR","STP","SWZ","WSM","BGD","ISL","VNM","RUS","TUN","TTO","CZE","AFG","BGR","ETH","SDN","CPV","IND","MDA","BHS","BRB","MYS","HTI","NAM","LBN","NGA","URY","MEX","IRL","COL","MDG","ERI","DZA","BRA","PHL","PRY","PER","NOR","SYR","ROU","LBR","IRQ","PNG","PRK","MDV","PAK","COD","CRI","ECU","TZA","KAZ","UGA","RWA","BDI","BLZ","HUN","MRT","MAC","KWT","LSO","GIB","POL","SWE","ZWE","ZMB","GBR","ABW","OMN","AZE","TUR","ITA","TJK","FLK","BIH","NIC","ZAF","USA","LTU","GMB","UZB","GTM","VUT","BWA","BHR","MOZ","BMU","HKG","SHN","EGY","THA","NZL","CHE","IDN","KHM","KEN","GUY","CAN","MUS","AUS","JOR","UKR","LBY","ISR","LKA","SLV","TWN","MMR","JAM","VEN","DOM","MKD","GEO","MNG"],"supported_currencies":["TND","AZN","BMD","DOP","TWD","KMF","GBP","FKP","BRL","HNL","MUR","BSD","SGD","BTN","BDT","JOD","CVE","MZN","GIP","ZAR","SZL","LBP","TRY","UAH","AWG","MOP","XOF","CHF","PKR","SDG","ERN","BGN","LAK","JPY","LRD","GNF","MRU","BIF","SVC","EUR","GMD","CDF","MAD","FJD","HUF","SLL","MGA","VND","KZT","CAD","NIO","MWK","USD","NZD","SCR","KES","TTD","BAM","BZD","IDR","GYD","RSD","LKR","OMR","IRR","JMD","PEN","ISK","BHD","NPR","TOP","NOK","KHR","SHP","MXN","MMK","INR","PAB","MDL","KYD","PGK","PLN","CLP","RWF","GEL","ILS","ZMW","CZK","XPF","XAF","SOS","ZWL","RON","SEK","AUD","BBD","GTQ","NAD","UGX","COP","TJS","HKD","DZD","KWD","MVR","SAR","PHP","QAR","NGN","DJF","XCD","LYD","VUV","BOB","CNY","PYG","HTG","LSL","KPW","SYP","ETB","STN","ARS","KRW","SRD","THB","UZS","IQD","MKD","DKK","MNT","SBD","RUB","BWP","GHS","BND","AED","EGP","ANG","CRC","MYR","UYU","TZS","TMT","AFN","WST","YER"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","DinersClub","JCB","Mastercard","Visa","Discover"],"supported_countries":["ROU","MAR","PRY","MRT","MWI","VEN","COD","SYR","MDA","TUR","GTM","AFG","SLV","WSM","BGD","DZA","DJI","MEX","MAC","USA","LKA","CPV","HND","ETH","PER","BRN","MDG","GIN","LBY","TJK","TTO","BOL","CAN","ERI","KWT","ZWE","COM","BRB","KAZ","PRK","BGR","FLK","SWE","KOR","MKD","HKG","POL","ARG","AZE","SDN","MMR","NIC","HTI","CHL","BDI","TUN","CRI","GBR","NAM","UKR","ECU","HUN","BIH","IND","ZAF","IRN","GEO","JAM","MOZ","IRL","STP","BTN","CZE","ISL","KEN","URY","FJI","OMN","GHA","GUY","DNK","NZL","THA","TWN","SWZ","BRA","ISR","GIB","SHN","VUT","LBN","AUS","PAK","JPN","ITA","NGA","LBR","IDN","KHM","CHE","BHS","LTU","COL","JOR","PHL","GMB","RWA","LSO","ABW","PNG","BLZ","BWA","MYS","BMU","CYM","BHR","QAT","RUS","SUR","EGY","MUS","MDV","LAO","SGP","IRQ","TZA","MNG","UZB","VNM","DOM","UGA","NOR","ZMB"],"supported_currencies":["MKD","ETB","WST","CLP","BRL","KHR","GHS","ARS","DZD","LYD","HTG","VND","UAH","ILS","JMD","FJD","EUR","BTN","AFN","TZS","MYR","SOS","KPW","ZWL","ERN","HNL","ISK","KES","QAR","RWF","MOP","MVR","LRD","TRY","SBD","KWD","RON","ZMW","BDT","VUV","NGN","UZS","LKR","LSL","YER","BAM","HUF","PHP","XCD","STN","GIP","JOD","PEN","TTD","GTQ","RUB","BGN","PKR","AED","GBP","SVC","AZN","MMK","SGD","AWG","GNF","BSD","BMD","MDL","XPF","JPY","GMD","XAF","GYD","INR","LBP","CZK","PYG","KRW","BIF","NAD","TMT","BHD","ZAR","SHP","BZD","KYD","MAD","SCR","SDG","BWP","THB","ANG","SEK","CNY","SRD","MUR","TOP","LAK","CDF","NPR","SAR","HKD","DKK","MRU","DOP","CRC","AUD","MWK","IRR","CAD","COP","CHF","BND","NOK","BOB","PGK","XOF","TND","UGX","MZN","USD","IDR","FKP","DJF","CVE","MXN","NIO","OMR","SYP","TWD","SLL","KMF","EGP","BBD","NZD","IQD","KZT","PAB","SZL","UYU","TJS","GEL","PLN","MGA","MNT","RSD"]}],"supported_webhook_flows":[]},{"name":"WORLDPAYXML","display_name":"Worldpay XML","description":"Worldpay is a payment gateway and PSP enabling secure online transactions","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","CartesBancaires","DinersClub","JCB","Maestro","Mastercard","Visa"],"supported_countries":["COM","WSM","SHN","BLZ","SDN","ETH","STP","KAZ","ITA","BOL","MKD","PAK","HND","LBR","PNG","ZAF","MYS","SYR","BTN","MEX","KEN","MAC","UZB","ECU","NOR","SGP","COL","LBN","NGA","NZL","THA","FJI","DOM","VEN","JPN","RWA","COD","DZA","AUS","DJI","JOR","GHA","IRL","GBR","ROU","LAO","SUR","CPV","GIB","TWN","CYM","UKR","ISR","KOR","BMU","NAM","HKG","JAM","VNM","ARG","CHL","BIH","ZMB","UGA","SWE","IND","BRB","DNK","MWI","AFG","GEO","ABW","GTM","POL","CZE","HTI","PHL","TUR","CAN","EGY","LTU","MAR","PRK","TUN","OMN","BRN","GIN","BGR","BHR","QAT","IDN","GMB","NIC","TJK","URY","USA","MDV","BWA","GUY","SLV","KWT","MUS","TTO","CHE","HUN","AZE","MRT","FLK","BHS","CRI","BGD","IRQ","BDI","BRA","TZA","MDA","PER","MNG","MMR","KHM","MOZ","SWZ","MDG","LBY","IRN","ISL","PRY","LSO","RUS","ZWE","ERI","VUT","LKA"],"supported_currencies":["MNT","CVE","TMT","BSD","IQD","TWD","MKD","DJF","FKP","KRW","BWP","MMK","VND","CLP","ANG","SAR","BHD","TZS","STN","JMD","BTN","FJD","MXN","PEN","TTD","XAF","XPF","XOF","GMD","BAM","CRC","MGA","LSL","GYD","UGX","MVR","RUB","MRU","TOP","EUR","MDL","LBP","BGN","SVC","OMR","CHF","PYG","KHR","MYR","CNY","AFN","PGK","TND","COP","KMF","USD","EGP","LAK","NGN","WST","RSD","KPW","ZMW","GBP","HKD","DZD","AWG","NPR","SGD","SCR","GEL","SZL","TJS","BMD","ERN","SRD","CZK","BDT","IDR","MZN","SHP","INR","AED","DKK","HTG","MAD","AZN","LKR","ARS","SOS","NIO","BRL","PHP","JOD","CDF","XCD","LRD","LYD","IRR","ILS","AUD","SLL","JPY","SBD","TRY","THB","MWK","ZWL","VUV","GHS","BIF","DOP","NZD","NOK","SYP","CAD","YER","ZAR","UAH","QAR","KWD","PAB","BBD","PKR","KYD","RON","SEK","HNL","BZD","HUF","MOP","PLN","UZS","UYU","KZT","MUR","SDG","RWF","GTQ","GNF","NAD","BOB","GIP","ISK","KES","BND","ETB"]},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["AmericanExpress","CartesBancaires","DinersClub","JCB","Maestro","Mastercard","Visa"],"supported_countries":["LBN","LAO","LBY","BMU","BRA","CPV","ECU","BGR","IRN","MMR","PRK","JPN","BDI","ZMB","SGP","MDG","TZA","IND","ZAF","AZE","DZA","VEN","MDV","NOR","NGA","GIN","GTM","ARG","GIB","ZWE","WSM","BRN","UZB","VNM","PNG","MYS","BWA","TTO","LTU","CAN","ITA","PAK","DOM","JOR","BOL","CZE","MNG","COM","BHR","RUS","GHA","KOR","ABW","MKD","GMB","SDN","IRL","STP","BGD","AUS","KEN","UKR","URY","CHL","DJI","COL","VUT","IDN","KWT","CYM","BHS","GEO","MUS","MEX","SHN","HND","FJI","MWI","MOZ","BRB","TJK","SLV","NZL","KAZ","BIH","USA","SYR","BLZ","TWN","LSO","NAM","FLK","ISR","ISL","RWA","BTN","LKA","SWE","CHE","HUN","HKG","LBR","TUN","MAR","EGY","SWZ","ROU","PER","POL","SUR","DNK","MAC","GUY","JAM","CRI","THA","MRT","QAT","MDA","GBR","PHL","UGA","IRQ","NIC","ERI","PRY","HTI","OMN","COD","AFG","KHM","ETH","TUR"],"supported_currencies":["SGD","SEK","KHR","RSD","BGN","PEN","EGP","FJD","MWK","MUR","NGN","PAB","PHP","XPF","MXN","SHP","DJF","OMR","GTQ","ARS","PKR","GMD","AFN","MGA","UZS","VUV","FKP","BND","QAR","NOK","SZL","HKD","NZD","MDL","DOP","JPY","MVR","CDF","SVC","BOB","MKD","NPR","PGK","WST","BIF","IQD","BTN","BRL","BHD","ZAR","SRD","LRD","TJS","XOF","CLP","NIO","USD","CZK","CNY","KZT","ISK","SBD","LYD","RWF","MNT","CRC","MAD","BAM","NAD","EUR","ETB","GEL","LSL","SLL","STN","TOP","KYD","BWP","BBD","HUF","MYR","SYP","VND","ZWL","RUB","MMK","RON","LBP","UGX","BDT","SOS","JMD","AZN","LAK","MRU","LKR","TWD","COP","DKK","MZN","XAF","GBP","CVE","ERN","KPW","TZS","ILS","UYU","AWG","MOP","TRY","IRR","AED","HTG","CHF","KES","ANG","SAR","UAH","GYD","BZD","GHS","CAD","HNL","BMD","INR","SCR","ZMW","KRW","THB","YER","BSD","SDG","PLN","GNF","KWD","KMF","IDR","TND","DZD","JOD","PYG","TMT","TTD","GIP","XCD","AUD"]}],"supported_webhook_flows":[]},{"name":"XENDIT","display_name":"Xendit","description":"Xendit is a financial technology company that provides payment solutions and simplifies the payment process for businesses in Indonesia, the Philippines and Southeast Asia, from SMEs and e-commerce startups to large enterprises.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["IDN","PHL"],"supported_currencies":["PHP","USD","SGD","IDR","MYR"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"three_ds":"supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["PHL","IDN"],"supported_currencies":["USD","MYR","PHP","IDR","SGD"]}],"supported_webhook_flows":["payments"]},{"name":"ZEN","display_name":"Zen","description":"Zen Payment Gateway is a secure and scalable payment solution that enables businesses to accept online payments globally with various methods and currencies.","category":"payment_gateway","supported_payment_methods":[{"payment_method":"voucher","payment_method_type":"red_compra","payment_method_type_display_name":"RedCompra","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["CHL"],"supported_currencies":["CLP"]},{"payment_method":"voucher","payment_method_type":"red_pagos","payment_method_type_display_name":"RedPagos","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["URY"],"supported_currencies":["UYU"]},{"payment_method":"voucher","payment_method_type":"efecty","payment_method_type_display_name":"Efecty","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["COL"],"supported_currencies":["COP"]},{"payment_method":"voucher","payment_method_type":"pago_efectivo","payment_method_type_display_name":"PagoEfectivo","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["PER"],"supported_currencies":["PEN"]},{"payment_method":"voucher","payment_method_type":"boleto","payment_method_type_display_name":"Boleto Bancário","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["BRA"],"supported_currencies":["BRL"]},{"payment_method":"card","payment_method_type":"credit","payment_method_type_display_name":"Credit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","DinersClub","Discover","Interac","JCB","CartesBancaires","UnionPay"],"supported_countries":null,"supported_currencies":null},{"payment_method":"card","payment_method_type":"debit","payment_method_type_display_name":"Debit Card","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"three_ds":"not_supported","no_three_ds":"supported","supported_card_networks":["Visa","Mastercard","AmericanExpress","DinersClub","Discover","Interac","JCB","CartesBancaires","UnionPay"],"supported_countries":null,"supported_currencies":null},{"payment_method":"bank_transfer","payment_method_type":"pse","payment_method_type_display_name":"PSE","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["COL"],"supported_currencies":["COP"]},{"payment_method":"bank_transfer","payment_method_type":"pix","payment_method_type_display_name":"Pix","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["BRA"],"supported_currencies":["BRL"]},{"payment_method":"bank_transfer","payment_method_type":"multibanco","payment_method_type_display_name":"Multibanco","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["PRT"],"supported_currencies":["EUR"]},{"payment_method":"wallet","payment_method_type":"apple_pay","payment_method_type_display_name":"Apple Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":null,"supported_currencies":null},{"payment_method":"wallet","payment_method_type":"google_pay","payment_method_type_display_name":"Google Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":null,"supported_currencies":null}],"supported_webhook_flows":["payments","refunds"]},{"name":"ZSL","display_name":"ZSL","description":"Zsl is a payment gateway operating in China, specializing in facilitating local bank transfers","category":"payment_gateway","supported_payment_methods":[{"payment_method":"bank_transfer","payment_method_type":"local_bank_transfer","payment_method_type_display_name":"Local Bank Transfer","mandates":"not_supported","refunds":"not_supported","supported_capture_methods":["automatic"],"supported_countries":["CHN"],"supported_currencies":["CNY"]}],"supported_webhook_flows":[]}]}
```
</details>
<details>
<summary>Paysera</summary>
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_zaOEi3uU0QO8qKVMYSMNOGBmPpHA6Xdz8saqDCsBfHbHUQXPQgf8Au4dwwtEmRv0' \
--data '{
"amount": 300,
"currency": "USD",
"confirm": true,
"capture_method": "automatic",
"capture_on": "2022-09-10T10:11:12Z",
"amount_to_capture": 300,
"customer_id": "StripeCustomer",
"name": "John Doe",
"phone": "999999999",
"phone_country_code": "+1",
"description": "Its my first payment request",
"authentication_type": "no_three_ds",
"return_url": "https://google.com",
"payment_method": "wallet",
"payment_method_type": "paysera",
"payment_method_data": {
"wallet": {
"paysera": {}
}
},
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
},
"billing": {
"address": {
"first_name": "Sweta",
"country":"EE"
}
}
}'
```
Solution
```
{"payment_id":"pay_HtCT7Ua6fmYNq4qcVJyc","merchant_id":"merchant_1751133361","status":"requires_customer_action","amount":300,"net_amount":300,"shipping_cost":null,"amount_capturable":300,"amount_received":null,"connector":"shift4","client_secret":"pay_HtCT7Ua6fmYNq4qcVJyc_secret_IwD9mQhboG1vdPVQuUUd","created":"2025-06-28T18:29:28.731Z","currency":"USD","customer_id":"StripeCustomer","customer":{"id":"StripeCustomer","name":"John Doe","email":null,"phone":"999999999","phone_country_code":"+1"},"description":"Its my first payment request","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"wallet","payment_method_data":{"wallet":{},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":null,"country":"EE","line1":null,"line2":null,"line3":null,"zip":null,"state":null,"first_name":"Sweta","last_name":null},"phone":null,"email":null},"order_details":null,"email":null,"name":"John Doe","phone":"999999999","return_url":"https://google.com/","authentication_type":"no_three_ds","statement_descriptor_name":"joseph","statement_descriptor_suffix":"JS","next_action":{"type":"redirect_to_url","redirect_to_url":"http://localhost:8080/payments/redirect/pay_HtCT7Ua6fmYNq4qcVJyc/merchant_1751133361/pay_HtCT7Ua6fmYNq4qcVJyc_1"},"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"paysera","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"StripeCustomer","created_at":1751135368,"expires":1751138968,"secret":"epk_26b923576435480d8ae7ddaaf402f910"},"manual_retry_allowed":null,"connector_transaction_id":"char_R9kkQMC2Ux8pLllEXBRMvDvG","frm_message":null,"metadata":{"udf1":"value1","login_date":"2019-09-10T10:11:12Z","new_customer":"true"},"connector_metadata":null,"feature_metadata":null,"reference_id":"char_R9kkQMC2Ux8pLllEXBRMvDvG","payment_link":null,"profile_id":"pro_gWUNB0G611lVygUbSJiK","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_uz1gkCtRR1335L0kDaWe","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-06-28T18:44:28.731Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-06-28T18:29:29.806Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":null,"force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null}
```
</details>
<details>
<summary>Skrill</summary>
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_zaOEi3uU0QO8qKVMYSMNOGBmPpHA6Xdz8saqDCsBfHbHUQXPQgf8Au4dwwtEmRv0' \
--data '{
"amount": 300,
"currency": "USD",
"confirm": true,
"capture_method": "automatic",
"capture_on": "2022-09-10T10:11:12Z",
"amount_to_capture": 300,
"customer_id": "StripeCustomer",
"name": "John Doe",
"phone": "999999999",
"phone_country_code": "+1",
"description": "Its my first payment request",
"authentication_type": "no_three_ds",
"return_url": "https://google.com",
"payment_method": "wallet",
"payment_method_type": "paysera",
"payment_method_data": {
"wallet": {
"skrill": {}
}
},
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
},
"billing": {
"address": {
"first_name": "Sweta",
"country":"US"
}
}
}'
```
Solution
```
{"payment_id":"pay_uoFqfra2fHBIGmDC6Vjh","merchant_id":"merchant_1751133361","status":"requires_customer_action","amount":300,"net_amount":300,"shipping_cost":null,"amount_capturable":300,"amount_received":null,"connector":"shift4","client_secret":"pay_uoFqfra2fHBIGmDC6Vjh_secret_8MjQzy4rHQ2GWxFEZ0uE","created":"2025-06-28T18:30:00.435Z","currency":"USD","customer_id":"StripeCustomer","customer":{"id":"StripeCustomer","name":"John Doe","email":null,"phone":"999999999","phone_country_code":"+1"},"description":"Its my first payment request","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"wallet","payment_method_data":{"wallet":{},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":null,"country":"US","line1":null,"line2":null,"line3":null,"zip":null,"state":null,"first_name":"Sweta","last_name":null},"phone":null,"email":null},"order_details":null,"email":null,"name":"John Doe","phone":"999999999","return_url":"https://google.com/","authentication_type":"no_three_ds","statement_descriptor_name":"joseph","statement_descriptor_suffix":"JS","next_action":{"type":"redirect_to_url","redirect_to_url":"http://localhost:8080/payments/redirect/pay_uoFqfra2fHBIGmDC6Vjh/merchant_1751133361/pay_uoFqfra2fHBIGmDC6Vjh_1"},"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"paysera","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"StripeCustomer","created_at":1751135400,"expires":1751139000,"secret":"epk_201de63d1aa94a10b8361436d28a2957"},"manual_retry_allowed":null,"connector_transaction_id":"char_Yh8323f4cCVDMKupU3Q06FX0","frm_message":null,"metadata":{"udf1":"value1","login_date":"2019-09-10T10:11:12Z","new_customer":"true"},"connector_metadata":null,"feature_metadata":null,"reference_id":"char_Yh8323f4cCVDMKupU3Q06FX0","payment_link":null,"profile_id":"pro_gWUNB0G611lVygUbSJiK","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_uz1gkCtRR1335L0kDaWe","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-06-28T18:45:00.435Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-06-28T18:30:01.435Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":null,"force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null}
```
</details>
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/payment_method_data.rs`
**3. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/aci/transformers.rs`
- `crates/hyperswitch_connectors/src/connectors/adyen.rs`
- `crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs`
- ... and 28 more files
**4. Type Definitions**
- `crates/router/src/types/transformers.rs`
**5. Utils**
- `crates/kgraph_utils/src/mca.rs`
- `crates/kgraph_utils/src/transformers.rs`
- `crates/payment_methods/src/helpers.rs`
**6. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**7. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
**8. Other**
- `api-reference/v1/openapi_spec_v1.json`
- `api-reference/v2/openapi_spec_v2.json`
- `crates/common_enums/src/enums.rs`
- ... and 6 more files
**Code Patterns Applied:**
- Define new data structures (5 changes)
- Extend existing types with new fields (8 changes)
**Detailed Identifier Changes:**
Commit 45e2d5c1:
Files to modify:
**crates/api_models/src/payments.rs**
Add:
- struct: private::SkrillData
- struct: pub::PayseraData
**crates/common_enums/src/enums.rs**
Modify existing code
**crates/common_enums/src/transformers.rs**
Modify existing code
**crates/euclid/src/frontend/dir/enums.rs**
Modify existing code
**crates/euclid/src/frontend/dir/lowering.rs**
Modify existing code
**crates/euclid/src/frontend/dir/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/aci/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/adyen.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/boku/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/globepay/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/klarna.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/noon/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/payme/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/shift4.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/square/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/zen/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/utils.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payment_method_data.rs**
Modify existing code
**crates/kgraph_utils/src/mca.rs**
Modify existing code
**crates/kgraph_utils/src/transformers.rs**
Modify existing code
**crates/openapi/src/openapi.rs**
Modify existing code
**crates/openapi/src/openapi_v2.rs**
Modify existing code
**crates/payment_methods/src/helpers.rs**
Modify existing code
**crates/router/src/connector/utils.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
|
{"pr_number": 8487, "pr_title": "feat(payment_methods): [Paysera, Skrill] Add support to paysera and skrill wallets and in shift4 ", "merged_at": "2025-07-15T08:13:50Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "domain": ["crates/hyperswitch_domain_models/src/payment_method_data.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/aci/transformers.rs", "crates/hyperswitch_connectors/src/connectors/adyen.rs", "crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs", "crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs", "crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs", "crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs", "crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs", "crates/hyperswitch_connectors/src/connectors/boku/transformers.rs", "crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs", "crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs", "crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs", "crates/hyperswitch_connectors/src/connectors/globepay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/klarna.rs", "crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs", "crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs", "crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs", "crates/hyperswitch_connectors/src/connectors/noon/transformers.rs", "crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs", "crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs", "crates/hyperswitch_connectors/src/connectors/payme/transformers.rs", "crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs", "crates/hyperswitch_connectors/src/connectors/shift4.rs", "crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs", "crates/hyperswitch_connectors/src/connectors/square/transformers.rs", "crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs", "crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs", "crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/zen/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/connector/utils.rs"], "types": ["crates/router/src/types/transformers.rs"], "utils": ["crates/kgraph_utils/src/mca.rs", "crates/kgraph_utils/src/transformers.rs", "crates/payment_methods/src/helpers.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"], "other": ["api-reference/v1/openapi_spec_v1.json", "api-reference/v2/openapi_spec_v2.json", "crates/common_enums/src/enums.rs", "crates/common_enums/src/transformers.rs", "crates/euclid/src/frontend/dir/enums.rs", "crates/euclid/src/frontend/dir/lowering.rs", "crates/euclid/src/frontend/dir/transformers.rs", "crates/openapi/src/openapi.rs", "crates/openapi/src/openapi_v2.rs"]}, "change_types": {"structs_added": 5, "fields_added": 8}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(connector): [Fiuu] Consume transaction id for error cases for Fiuu
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [X] Bugfix
- [ ] New feature
- [X] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
To consume transaction id for some error cases , where currently its not consumed. This PR addresses this issue.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Tested manually by hitting payments retrieve
###
> After
### cURL
```
curl --location --request GET 'http://localhost:8080/payments/pay_9EIH03YnsLSJAqfoYkxU' \
--header 'Accept: application/json' \
--header 'api-key: dev_laI3IG0iKD2bmhZIwT5b0kq1VrWDKoCZ3eJqkWbWeHGEEUpzSy7rg2ZjjlV7JRhy'
```
### Response
`{
"payment_id": "pay_9EIH03YnsLSJAqfoYkxU",
"merchant_id": "merchant_1736151941",
"status": "failed",
"amount": 1000,
"net_amount": 1000,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": null,
"connector": "fiuu",
"client_secret": "pay_9EIH03YnsLSJAqfoYkxU_secret_CXYmUD5F0wg8tQbExwjE",
"created": "2025-01-06T10:45:23.087Z",
"currency": "MYR",
"customer_id": "exampel3rewfdsvc2",
"customer": {
"id": "exampel3rewfdsvc2",
"name": null,
"email": null,
"phone": "999999999",
"phone_country_code": "+1"
},
"description": "Its my first payment request",
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": null,
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": "card",
"payment_method_data": {
"card": {
"last4": "5100",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "510510",
"card_extended_bin": null,
"card_exp_month": "12",
"card_exp_year": "2030",
"card_holder_name": "Max Mustermann",
"payment_checks": null,
"authentication_data": null
},
"billing": null
},
"payment_token": null,
"shipping": null,
"billing": null,
"order_details": null,
"email": null,
"name": null,
"phone": "999999999",
"return_url": "https://google.com/",
"authentication_type": "three_ds",
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"next_action": null,
"cancellation_reason": null,
"error_code": "",
"error_message": "",
"unified_code": "UE_9000",
"unified_message": "Something went wrong",
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": null,
"manual_retry_allowed": true,
"connector_transaction_id": "30926945",
"frm_message": null,
"metadata": {
"udf1": "value1",
"login_date": "2019-09-10T10:11:12Z",
"new_customer": "true"
},
"connector_metadata": null,
"feature_metadata": null,
"reference_id": null,
"payment_link": null,
"profile_id": "pro_ne27DW6cFOwPOUdMLTLY",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_tfcWJii5BjqSKlxoqbdJ",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-01-06T11:00:23.086Z",
"fingerprint": null,
"browser_info": {
"language": "nl-NL",
"time_zone": 0,
"ip_address": "103.77.139.95",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",
"color_depth": 24,
"java_enabled": true,
"screen_width": 1536,
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8",
"screen_height": 723,
"java_script_enabled": true
},
"payment_method_id": null,
"payment_method_status": null,
"updated": "2025-01-06T10:45:29.931Z",
"split_payments": null,
"frm_metadata": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null
}`
<img width="903" alt="Screenshot 2025-01-06 at 16 34 39" src="https://github.com/user-attachments/assets/0f4f5f37-9d7c-498c-aee0-e5af365d9482" />
(connector_transaction_id present in response)
###
> Before
<img width="1153" alt="Screenshot 2025-01-06 at 16 27 42" src="https://github.com/user-attachments/assets/064e30dd-13f0-4877-b946-7a77de08f633" />
<img width="903" alt="Screenshot 2025-01-06 at 16 47 22" src="https://github.com/user-attachments/assets/fb423029-024f-4867-9ea2-38f08cbb3c73" />
(connector_transaction_id not present in response)
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [X] I formatted the code `cargo +nightly fmt --all`
- [X] I addressed lints thrown by `cargo clippy`
- [X] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (12 changes)
**Detailed Identifier Changes:**
Commit 6b1e5b0a:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs**
Modify existing code
|
{"pr_number": 6998, "pr_title": "feat(connector): [Fiuu] Consume transaction id for error cases for Fiuu", "merged_at": "2025-01-07T08:04:42Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs"]}, "change_types": {"fields_added": 12}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
ci(cypress): Add Nuvei connector test in cypress
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [x] CI/CD
## Description
Enhanced Nuvei Connector in cypress for Comprehensive Testing.
## How did you test it?
<img width="685" alt="Screenshot 2025-06-21 at 3 53 16 AM" src="https://github.com/user-attachments/assets/298be3ca-e563-4b30-ab7a-6c2259c8996a" />## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **connector_integration** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/configs/Payment/Nuvei.js`
- `cypress-tests/cypress/e2e/configs/Payment/Utils.js`
- `cypress-tests/cypress/support/redirectionHandler.js`
**Code Patterns Applied:**
- Extend existing types with new fields (525 changes)
- Add conditional logic for feature flags or filtering (16 changes)
|
{"pr_number": 8414, "pr_title": "ci(cypress): Add Nuvei connector test in cypress", "merged_at": "2025-07-15T12:05:53Z", "intent": {"feature_type": "connector_integration", "action": "add_feature", "entities": ["user", "connector"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/configs/Payment/Nuvei.js", "cypress-tests/cypress/e2e/configs/Payment/Utils.js", "cypress-tests/cypress/support/redirectionHandler.js"]}, "change_types": {"fields_added": 525, "conditionals_added": 16}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
ci(cypress): add Braintree connector configs for cypress test flows
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [x] CI/CD
## Description
<!-- Describe your changes in detail -->
Adding Cypress Test Case Flows related Configs for the `Braintree` Payment Processor.
~_Note: The Connector Update Test will fail until https://github.com/juspay/hyperswitch/pull/7622 is not merged to the `main` branch._~ (#7622 is Merged)
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
Missing Configs for `Braintree` Connector.
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
<img width="700" alt="image" src="https://github.com/user-attachments/assets/28d84bc1-1890-4b22-baf4-e94de421c233" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/configs/Payment/Braintree.js`
- `cypress-tests/cypress/e2e/configs/Payment/Utils.js`
- `cypress-tests/cypress/support/commands.js`
**Code Patterns Applied:**
- Extend existing types with new fields (388 changes)
|
{"pr_number": 7266, "pr_title": "ci(cypress): add Braintree connector configs for cypress test flows", "merged_at": "2025-04-24T07:23:48Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/configs/Payment/Braintree.js", "cypress-tests/cypress/e2e/configs/Payment/Utils.js", "cypress-tests/cypress/support/commands.js"]}, "change_types": {"fields_added": 388}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
feat(connectors): [Worldpayvantiv] add card support
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Add worldpay vantiv as a payment connector. Integrated non 3ds cards flow.
> Note: Report Group for each transaction is collected from the payment's metadata. If not provided - then the default report group provided in the MCA is used
> Note: Currency for the transaction is not passed in the payment request to the connector. As the connector process payments based on the creds. The currency for a transaction is not included in the payment request sent to the connector. Instead, the connector determines the currency based on the credentials (merchant account) used for processing. Pass the merchant_config_currency field in the MCA metadata
> Note: Performing a psync after a void, capture, or refund may return an incorrect status. This is because Worldpay Vantiv does not support retrieving the status of void or capture operations, and the response will reflect the status of the original authorization instead.
MCA Metadata - required
```
"metadata": {
"report_group" : "Hello",
"merchant_config_currency":"USD"
}
```
Payments Metadata - optional
```
"metadata": {
"report_group" : "Hello"
}
```
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Find the PR for cypress testcases here https://github.com/juspay/hyperswitch/pull/8234
<details>
<summary>MCA Create</summary>
> Note: Add Metadata
```
curl --location 'http://localhost:8080/account/postman_merchant_GHAction_0e943b6a-2420-40b9-9038-014526c6d5c4/connectors' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_f5rS4tT7dwe1ASV4c9vswu99Exi1XhbtkQkq8WlQ4kJkwggWd1j5PMlyMOBRxC7X' \
--data-raw '{
"connector_type": "payment_processor",
"connector_name": "worldpayvantiv",
"business_country": "US",
"business_label": "default",
"connector_account_details": {
"auth_type": "SignatureKey",
"api_key": "***********8",
"key1": "***********",
"api_secret": "********"
},
"test_mode": false,
"disabled": false,
"payment_methods_enabled": [
{
"payment_method": "card",
"payment_method_types": [
{
"payment_method_type": "credit",
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
},
{
"payment_method": "card",
"payment_method_types": [
{
"payment_method_type": "debit",
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
}
],
"metadata": {
"report_group" : "Hello",
"merchant_config_currency":"EUR"
}
}'
```
Response
```
{"connector_type":"payment_processor","connector_name":"worldpayvantiv","connector_label":"worldpayvantiv_US_default","merchant_connector_id":"mca_mDfUiiycKohM3lhqPzmF","profile_id":"pro_sKicDP92EtTBg8xTcMvo","connector_account_details":{"auth_type":"SignatureKey","api_key":"YA****************AG","key1":"e@************{S","api_secret":"VI*******ST"},"payment_methods_enabled":[{"payment_method":"pay_later","payment_method_types":[{"payment_method_type":"affirm","payment_experience":"redirect_to_url","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"pay_later","payment_method_types":[{"payment_method_type":"afterpay_clearpay","payment_experience":"redirect_to_url","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"pay_later","payment_method_types":[{"payment_method_type":"klarna","payment_experience":"redirect_to_url","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"pay_later","payment_method_types":[{"payment_method_type":"klarna","payment_experience":"invoke_sdk_client","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"bank_redirect","payment_method_types":[{"payment_method_type":"ideal","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"bancontact_card","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"przelewy24","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"giropay","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"sofort","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"eps","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"bank_debit","payment_method_types":[{"payment_method_type":"ach","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"becs","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"sepa","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"bacs","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"bank_transfer","payment_method_types":[{"payment_method_type":"ach","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"bacs","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"sepa","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"card","payment_method_types":[{"payment_method_type":"credit","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"card","payment_method_types":[{"payment_method_type":"debit","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"wallet","payment_method_types":[{"payment_method_type":"apple_pay","payment_experience":"invoke_sdk_client","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"wallet","payment_method_types":[{"payment_method_type":"google_pay","payment_experience":"invoke_sdk_client","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]}],"connector_webhook_details":null,"metadata":{"google_pay":{"merchant_info":{"merchant_name":"Narayan Bhat"},"allowed_payment_methods":[{"type":"CARD","parameters":{"allowed_auth_methods":["PAN_ONLY","CRYPTOGRAM_3DS"],"allowed_card_networks":["AMEX","DISCOVER","INTERAC","JCB","MASTERCARD","VISA"]},"tokenization_specification":{"type":"PAYMENT_GATEWAY","parameters":{"gateway":"example","gateway_merchant_id":"{{gateway_merchant_id}}"}}}]},"report_group":"Hello"},"test_mode":false,"disabled":false,"frm_configs":null,"business_country":"US","business_label":"default","business_sub_label":null,"applepay_verified_domains":null,"pm_auth_config":null,"status":"active","additional_merchant_data":null,"connector_wallets_details":null}
```
</details>
<details>
<summary> Payment - Automatic Capture</summary>
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_f5rS4tT7dwe1ASV4c9vswu99Exi1XhbtkQkq8WlQ4kJkwggWd1j5PMlyMOBRxC7X' \
--data-raw '{
"return_url": "https://example.com",
"confirm": true,
"customer_acceptance": null,
"description": "Test Payment",
"email": "[email protected]",
"browser_info": {
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"language": "en-US",
"color_depth": 32,
"screen_height": 1117,
"screen_width": 1728,
"time_zone": -330,
"java_enabled": true,
"java_script_enabled": true,
"ip_address": "127.0.0.1"
},
"payment_method": "card",
"amount": 5000,
"authentication_type": "no_three_ds",
"payment_method_data": {
"card": {
"card_number": "4470330769941000",
"card_exp_month": "01",
"card_exp_year": "27",
"card_cvc": "123"
}
},
"currency": "EUR"
}'
```
Response
```
{"payment_id":"pay_0DS5p4fWlx7o3YrJImLd","merchant_id":"postman_merchant_GHAction_0e943b6a-2420-40b9-9038-014526c6d5c4","status":"succeeded","amount":5000,"net_amount":5000,"shipping_cost":null,"amount_capturable":0,"amount_received":5000,"connector":"worldpayvantiv","client_secret":"pay_0DS5p4fWlx7o3YrJImLd_secret_nxG6CBMA6jyl2GJCwLQo","created":"2025-06-03T10:00:29.128Z","currency":"EUR","customer_id":null,"customer":{"id":null,"name":null,"email":"[email protected]","phone":null,"phone_country_code":null},"description":"Test Payment","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":null,"payment_method":"card","payment_method_data":{"card":{"last4":"1000","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"447033","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"27","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"309835803353942786","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_0DS5p4fWlx7o3YrJImLd","payment_link":null,"profile_id":"pro_sKicDP92EtTBg8xTcMvo","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_mDfUiiycKohM3lhqPzmF","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-06-03T10:15:29.128Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-06-03T10:00:29.551Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null}
```
</details>
<details>
<summary> Payment - Manual Capture</summary>
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_f5rS4tT7dwe1ASV4c9vswu99Exi1XhbtkQkq8WlQ4kJkwggWd1j5PMlyMOBRxC7X' \
--data-raw '{
"return_url": "https://example.com",
"confirm": true,
"customer_acceptance": null,
"description": "Test Payment",
"capture_method": "manual",
"email": "[email protected]",
"browser_info": {
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"language": "en-US",
"color_depth": 32,
"screen_height": 1117,
"screen_width": 1728,
"time_zone": -330,
"java_enabled": true,
"java_script_enabled": true,
"ip_address": "127.0.0.1"
},
"payment_method": "card",
"amount": 5000,
"authentication_type": "no_three_ds",
"payment_method_data": {
"card": {
"card_number": "4470330769941000",
"card_exp_month": "01",
"card_exp_year": "27",
"card_cvc": "123"
}
},
"currency": "EUR"
}'
```
Response
```
{"payment_id":"pay_w1skMTTK9fahKyRPaxFn","merchant_id":"postman_merchant_GHAction_0e943b6a-2420-40b9-9038-014526c6d5c4","status":"requires_capture","amount":5000,"net_amount":5000,"shipping_cost":null,"amount_capturable":5000,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_w1skMTTK9fahKyRPaxFn_secret_riJAK83eAjjroVnvZpom","created":"2025-06-03T10:01:55.966Z","currency":"EUR","customer_id":null,"customer":{"id":null,"name":null,"email":"[email protected]","phone":null,"phone_country_code":null},"description":"Test Payment","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"manual","payment_method":"card","payment_method_data":{"card":{"last4":"1000","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"447033","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"27","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"037145635133998069","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_w1skMTTK9fahKyRPaxFn","payment_link":null,"profile_id":"pro_sKicDP92EtTBg8xTcMvo","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_mDfUiiycKohM3lhqPzmF","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-06-03T10:16:55.966Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-06-03T10:01:56.302Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null}
```
Capture
```
curl --location 'http://localhost:8080/payments/pay_w1skMTTK9fahKyRPaxFn/capture' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_f5rS4tT7dwe1ASV4c9vswu99Exi1XhbtkQkq8WlQ4kJkwggWd1j5PMlyMOBRxC7X' \
--data '{
"amount_to_capture": 10,
"statement_descriptor_name": "Joseph",
"statement_descriptor_suffix": "JS"
}'
```
Response
```
{"payment_id":"pay_w1skMTTK9fahKyRPaxFn","merchant_id":"postman_merchant_GHAction_0e943b6a-2420-40b9-9038-014526c6d5c4","status":"partially_captured","amount":5000,"net_amount":5000,"shipping_cost":null,"amount_capturable":0,"amount_received":10,"connector":"worldpayvantiv","client_secret":"pay_w1skMTTK9fahKyRPaxFn_secret_riJAK83eAjjroVnvZpom","created":"2025-06-03T10:01:55.966Z","currency":"EUR","customer_id":null,"customer":{"id":null,"name":null,"email":"[email protected]","phone":null,"phone_country_code":null},"description":"Test Payment","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"manual","payment_method":"card","payment_method_data":{"card":{"last4":"1000","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"447033","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"27","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"507635677444597930","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_w1skMTTK9fahKyRPaxFn","payment_link":null,"profile_id":"pro_sKicDP92EtTBg8xTcMvo","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_mDfUiiycKohM3lhqPzmF","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-06-03T10:16:55.966Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-06-03T10:02:35.795Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null}
```
</details>
<details>
<summary> Payment - Manual and Void</summary>
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_f5rS4tT7dwe1ASV4c9vswu99Exi1XhbtkQkq8WlQ4kJkwggWd1j5PMlyMOBRxC7X' \
--data-raw '{
"return_url": "https://example.com",
"confirm": true,
"customer_acceptance": null,
"description": "Test Payment",
"capture_method": "manual",
"email": "[email protected]",
"browser_info": {
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"language": "en-US",
"color_depth": 32,
"screen_height": 1117,
"screen_width": 1728,
"time_zone": -330,
"java_enabled": true,
"java_script_enabled": true,
"ip_address": "127.0.0.1"
},
"payment_method": "card",
"amount": 5000,
"authentication_type": "no_three_ds",
"payment_method_data": {
"card": {
"card_number": "4470330769941000",
"card_exp_month": "01",
"card_exp_year": "27",
"card_cvc": "123"
}
},
"currency": "EUR"
}'
```
Response
```
{"payment_id":"pay_1VguBrodKij7MjODXDUx","merchant_id":"postman_merchant_GHAction_0e943b6a-2420-40b9-9038-014526c6d5c4","status":"requires_capture","amount":5000,"net_amount":5000,"shipping_cost":null,"amount_capturable":5000,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_1VguBrodKij7MjODXDUx_secret_0NK6mTyzXyIksKIscFdg","created":"2025-06-03T10:03:40.285Z","currency":"EUR","customer_id":null,"customer":{"id":null,"name":null,"email":"[email protected]","phone":null,"phone_country_code":null},"description":"Test Payment","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"manual","payment_method":"card","payment_method_data":{"card":{"last4":"1000","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"447033","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"27","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"811673778835197805","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_1VguBrodKij7MjODXDUx","payment_link":null,"profile_id":"pro_sKicDP92EtTBg8xTcMvo","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_mDfUiiycKohM3lhqPzmF","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-06-03T10:18:40.285Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-06-03T10:03:40.653Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null}
```
Void
```
curl --location 'http://localhost:8080/payments/pay_qRZdNBi5Uqbub8TPwW4g/cancel' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_f5rS4tT7dwe1ASV4c9vswu99Exi1XhbtkQkq8WlQ4kJkwggWd1j5PMlyMOBRxC7X' \
--data '{"cancellation_reason":"requested_by_customer"}'
```
Response
```
{"payment_id":"pay_qRZdNBi5Uqbub8TPwW4g","merchant_id":"postman_merchant_GHAction_0e943b6a-2420-40b9-9038-014526c6d5c4","status":"cancelled","amount":5000,"net_amount":5000,"shipping_cost":null,"amount_capturable":0,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_qRZdNBi5Uqbub8TPwW4g_secret_3pTlx8WqwVgOzNL13YRZ","created":"2025-06-03T10:11:25.750Z","currency":"EUR","customer_id":null,"customer":{"id":null,"name":null,"email":"[email protected]","phone":null,"phone_country_code":null},"description":"Test Payment","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"manual","payment_method":"card","payment_method_data":{"card":{"last4":"1000","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"447033","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"27","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":"requested_by_customer","error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"274134101692557291","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_qRZdNBi5Uqbub8TPwW4g","payment_link":null,"profile_id":"pro_sKicDP92EtTBg8xTcMvo","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_mDfUiiycKohM3lhqPzmF","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-06-03T10:26:25.750Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-06-03T10:11:35.087Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null}
```
</details>
<details>
<summary> Payment and Refund </summary>
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_f5rS4tT7dwe1ASV4c9vswu99Exi1XhbtkQkq8WlQ4kJkwggWd1j5PMlyMOBRxC7X' \
--data-raw '{
"return_url": "https://example.com",
"confirm": true,
"customer_acceptance": null,
"description": "Test Payment",
"email": "[email protected]",
"browser_info": {
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"language": "en-US",
"color_depth": 32,
"screen_height": 1117,
"screen_width": 1728,
"time_zone": -330,
"java_enabled": true,
"java_script_enabled": true,
"ip_address": "127.0.0.1"
},
"payment_method": "card",
"amount": 5000,
"authentication_type": "no_three_ds",
"payment_method_data": {
"card": {
"card_number": "4470330769941000",
"card_exp_month": "01",
"card_exp_year": "27",
"card_cvc": "123"
}
},
"currency": "EUR"
}'
```
Response
```
{"payment_id":"pay_zRc36Lj42iKAOFxZgSxo","merchant_id":"postman_merchant_GHAction_0e943b6a-2420-40b9-9038-014526c6d5c4","status":"succeeded","amount":5000,"net_amount":5000,"shipping_cost":null,"amount_capturable":0,"amount_received":5000,"connector":"worldpayvantiv","client_secret":"pay_zRc36Lj42iKAOFxZgSxo_secret_IrmD7ftImm8kFInOIdmr","created":"2025-06-03T10:06:14.096Z","currency":"EUR","customer_id":null,"customer":{"id":null,"name":null,"email":"[email protected]","phone":null,"phone_country_code":null},"description":"Test Payment","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":null,"payment_method":"card","payment_method_data":{"card":{"last4":"1000","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"447033","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"27","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"615543068718754950","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_zRc36Lj42iKAOFxZgSxo","payment_link":null,"profile_id":"pro_sKicDP92EtTBg8xTcMvo","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_mDfUiiycKohM3lhqPzmF","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-06-03T10:21:14.096Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-06-03T10:06:14.472Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null}
```
Refund
```
curl --location 'http://localhost:8080/refunds' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_f5rS4tT7dwe1ASV4c9vswu99Exi1XhbtkQkq8WlQ4kJkwggWd1j5PMlyMOBRxC7X' \
--data '{
"payment_id": "pay_zRc36Lj42iKAOFxZgSxo",
"amount": 10,
"reason": "Customer returned product",
"refund_type": "instant",
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
}
}'
```
Response
```
{"refund_id":"ref_u50Ektt5srnf8HobAdxT","payment_id":"pay_zRc36Lj42iKAOFxZgSxo","amount":10,"currency":"EUR","status":"succeeded","reason":"Customer returned product","metadata":{"udf1":"value1","new_customer":"true","login_date":"2019-09-10T10:11:12Z"},"error_message":null,"error_code":null,"unified_code":null,"unified_message":null,"created_at":"2025-06-03T10:06:40.909Z","updated_at":"2025-06-03T10:06:41.300Z","connector":"worldpayvantiv","profile_id":"pro_sKicDP92EtTBg8xTcMvo","merchant_connector_id":"mca_mDfUiiycKohM3lhqPzmF","split_refunds":{"stripe_split_refund":{"revert_platform_fee":true,"revert_transfer":true}},"issuer_error_code":null,"issuer_error_message":null}
```
</details>
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/admin.rs`
**2. External Connector Integration**
- `crates/common_enums/src/connector_enums.rs`
- `crates/connector_configs/src/connector.rs`
- `crates/connector_configs/toml/development.toml`
- ... and 7 more files
**3. Type Definitions**
- `crates/router/src/types/api.rs`
- `crates/router/src/types/transformers.rs`
**4. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**5. Configuration Files**
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- `config/development.toml`
- ... and 1 more files
**6. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
**Code Patterns Applied:**
- Define new data structures (21 changes)
- Implement new functions (28 changes)
- Extend existing types with new fields (516 changes)
- Add conditional logic for feature flags or filtering (16 changes)
**Detailed Identifier Changes:**
Commit f5c4f610:
Files to modify:
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/connector_configs/src/connector.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs**
Remove:
- function: private::from
- struct: pub::WorldpayvantivPaymentsRequest
- struct: pub::WorldpayvantivAuthType
- impl: impl From<(StringMinorUnit, T)> for WorldpayvantivRouterData<T>
Add:
- function: private::from
- function: private::try_from
- function: private::try_from
- function: private::try_from
- function: private::try_from
- function: private::try_from
- function: private::try_from
- function: private::get_attempt_status
- struct: pub::WorldpayvantivAuthType
- struct: pub::WorldpayvantivPaymentMetadata
- struct: pub::WorldpayvantivMetadataObject
- struct: pub::CnpOnlineRequest
- struct: pub::Void
- struct: pub::Capture
- struct: pub::Authorization
- struct: pub::Sale
- struct: pub::RefundRequest
- struct: pub::TransactionQuery
- struct: pub::WorldpayvantivCardData
- struct: pub::CnpOnlineResponse
- struct: pub::CaptureResponse
- struct: pub::AuthorizationResponse
- struct: pub::SaleResponse
- struct: pub::VoidResponse
- struct: pub::QueryTransactionResponse
- struct: pub::ResultsMax10
- struct: pub::CreditResponse
- enum: pub::OrderSource
- enum: pub::WorldpayvativCardType
- enum: pub::WorldpayvantivPaymentFlow
- impl: impl From<(MinorUnit, T)> for WorldpayvantivRouterData<T>
- impl: impl TryFrom<&Option<common_utils::pii::SecretSerdeValue>> for change_context
- impl: impl TryFrom<common_enums::CardNetwork> for WorldpayvativCardType
- impl: impl TryFrom<&WorldpayvantivRouterData<&PaymentsAuthorizeRouterData>> for CnpOnlineRequest
- impl: impl TryFrom<&WorldpayvantivRouterData<&PaymentsCaptureRouterData>> for CnpOnlineRequest
- impl: impl TryFrom<&WorldpayvantivRouterData<&RefundsRouterData<F>>> for CnpOnlineRequest
- impl: impl TryFrom<&RefundSyncRouterData> for CnpOnlineRequest
- impl: impl TryFrom<RefundsResponseRouterData<Execute, CnpOnlineResponse>> for RefundsRouterData<Execute>
- mod: pub::worldpayvantiv_constants
**crates/hyperswitch_connectors/src/connectors/worldpayxml.rs**
Modify existing code
**crates/hyperswitch_connectors/src/utils.rs**
Modify existing code
**crates/payment_methods/src/configs/payment_connector_required_fields.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/types/api.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
|
{"pr_number": 8219, "pr_title": "feat(connectors): [Worldpayvantiv] add card support", "merged_at": "2025-06-04T14:32:32Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/admin.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/connector_configs/src/connector.rs", "crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml", "crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs", "crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs", "crates/hyperswitch_connectors/src/connectors/worldpayxml.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/payment_methods/src/configs/payment_connector_required_fields.rs"], "types": ["crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {"structs_added": 21, "functions_added": 28, "enums_added": 4, "fields_added": 516, "imports_added": 6, "conditionals_added": 16}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(subscriptions): Add client secret auth support in subscriptions APIs
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
This pull request introduces several enhancements and refactors to the subscription API, focusing on improving authentication, response structure, and data handling. The main changes include adding payment and invoice details to subscription responses, updating authentication logic to support client secrets in queries, and refactoring handler methods for better error handling and extensibility.
**Subscription Response Improvements**
* Added `payment` and `invoice` fields to the `SubscriptionResponse` struct to provide more detailed information about payments and invoices associated with a subscription.
* Updated the `PaymentResponseData` struct to use a `Secret<String>` for the `client_secret` field, improving security and consistency.
**Authentication and Query Handling**
* Introduced a new `GetSubscriptionQuery` struct to allow passing a client secret when fetching subscription details, and implemented `ClientSecretFetch` for relevant subscription request/query types. [[1]](diffhunk://#diff-3d85d9e288cc67856867986ee406a3102ce1d0cf9fe5c8f9efed3a578608f817R206-R215) [[2]](diffhunk://#diff-c66a703d6e518900240c7296a4d6f9c55c9787ea8f490a419dd0395dc0b36d70R4329-R4349)
* Refactored authentication logic in subscription route handlers (`get_subscription`, `get_subscription_plans`, and `confirm_subscription`) to extract and validate client secrets from query payloads, improving security and flexibility. [[1]](diffhunk://#diff-d737ada25c830476b3867c693bd362d4b1142773f1b0d971556518b5c04691a3R104-R122) [[2]](diffhunk://#diff-d737ada25c830476b3867c693bd362d4b1142773f1b0d971556518b5c04691a3R149-R172) [[3]](diffhunk://#diff-d737ada25c830476b3867c693bd362d4b1142773f1b0d971556518b5c04691a3R184-R199) [[4]](diffhunk://#diff-d737ada25c830476b3867c693bd362d4b1142773f1b0d971556518b5c04691a3L205-R216)
**Handler and Response Refactoring**
* Refactored the `to_subscription_response` method in `SubscriptionWithHandler` to accept optional payment and invoice parameters, and handle invoice conversion with error reporting for invalid currency values. [[1]](diffhunk://#diff-1d71cc03e82ba9b3c7478b6304bd763431e20cc723881a1623ab3127301b8976L253-R258) [[2]](diffhunk://#diff-1d71cc03e82ba9b3c7478b6304bd763431e20cc723881a1623ab3127301b8976R268-R295)
* Updated core subscription logic to use the new response structure and refactored method signatures for consistency, including changes to how responses are generated and returned. [[1]](diffhunk://#diff-adea1b33060886c62616ea56c46edb8f356525cbacea004da12e8819334cf27cL34-R31) [[2]](diffhunk://#diff-adea1b33060886c62616ea56c46edb8f356525cbacea004da12e8819334cf27cL71-R68) [[3]](diffhunk://#diff-adea1b33060886c62616ea56c46edb8f356525cbacea004da12e8819334cf27cL94-R91) [[4]](diffhunk://#diff-adea1b33060886c62616ea56c46edb8f356525cbacea004da12e8819334cf27cL420-R412)
These changes collectively improve the robustness and extensibility of the subscription API, making it easier to integrate payment and invoice details while strengthening authentication mechanisms.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
1. Subscription create
```
curl --location 'http://localhost:8080/subscriptions/create' \
--header 'Content-Type: application/json' \
--header 'X-Profile-Id: pro_CohRshEanxkKSMHgyu6a' \
--header 'api-key: dev_tV0O30052zhBCqdrhGMfQxMN0DerXwnMkNHX6ndCbs0BovewetTaXznBQOCLGAi2' \
--data '{
"customer_id": "cus_d64F9yomaDMqbTDlxw3g",
"amount": 14100,
"currency": "USD",
"payment_details": {
"authentication_type": "no_three_ds",
"setup_future_usage": "off_session",
"capture_method": "automatic",
"return_url": "https://google.com"
}
}'
```
Response -
```
{"id":"sub_8zxmAZAfS0eTL8zRJRk7","merchant_reference_id":null,"status":"created","plan_id":null,"profile_id":"pro_CohRshEanxkKSMHgyu6a","client_secret":"sub_8zxmAZAfS0eTL8zRJRk7_secret_IGg9yCNzrzoziV3odFLt","merchant_id":"merchant_1759849271","coupon_code":null,"customer_id":"cus_d64F9yomaDMqbTDlxw3g","payment":{"payment_id":"pay_pPn6Tz2m3WrOIzANMF2g","status":"requires_payment_method","amount":14100,"currency":"USD","connector":null,"payment_method_id":null,"payment_experience":null,"error_code":null,"error_message":null,"payment_method_type":null,"client_secret":"pay_pPn6Tz2m3WrOIzANMF2g_secret_Wxi6r52cBxz0ujhcWpAh"},"invoice":{"id":"invoice_nEqu7GMVqNMRzBorC9BS","subscription_id":"sub_8zxmAZAfS0eTL8zRJRk7","merchant_id":"merchant_1759849271","profile_id":"pro_CohRshEanxkKSMHgyu6a","merchant_connector_id":"mca_S0OzkqOOhMZs2jJQPSZo","payment_intent_id":"pay_pPn6Tz2m3WrOIzANMF2g","payment_method_id":null,"customer_id":"cus_d64F9yomaDMqbTDlxw3g","amount":14100,"currency":"USD","status":"invoice_created"}}
```
2. Get plans
```
curl --location 'http://localhost:8080/subscriptions/plans?limit=2&offset=0&client_secret=sub_8zxmAZAfS0eTL8zRJRk7_secret_IGg9yCNzrzoziV3odFLt' \
--header 'Content-Type: application/json' \
--header 'api-key: pk_dev_febeb0fab3be43c79024efaf99764d63' \
--header 'X-Profile-Id: pro_CohRshEanxkKSMHgyu6a'
```
Response -
```
[{"plan_id":"cbdemo_enterprise-suite","name":"Enterprise Suite","description":"High-end customer support suite with enterprise-grade solutions.","price_id":[{"price_id":"cbdemo_enterprise-suite-monthly","plan_id":"cbdemo_enterprise-suite","amount":14100,"currency":"INR","interval":"Month","interval_count":1,"trial_period":null,"trial_period_unit":null},{"price_id":"cbdemo_enterprise-suite-annual","plan_id":"cbdemo_enterprise-suite","amount":169000,"currency":"INR","interval":"Year","interval_count":1,"trial_period":null,"trial_period_unit":null}]},{"plan_id":"cbdemo_business-suite","name":"Business Suite","description":"Advanced customer support plan with premium features.","price_id":[{"price_id":"cbdemo_business-suite-monthly","plan_id":"cbdemo_business-suite","amount":9600,"currency":"INR","interval":"Month","interval_count":1,"trial_period":null,"trial_period_unit":null},{"price_id":"cbdemo_business-suite-annual","plan_id":"cbdemo_business-suite","amount":115000,"currency":"INR","interval":"Year","interval_count":1,"trial_period":null,"trial_period_unit":null}]}]
```
3. Confirm subscription -
```
curl --location 'http://localhost:8080/subscriptions/sub_8zxmAZAfS0eTL8zRJRk7/confirm' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'X-Profile-Id: pro_CohRshEanxkKSMHgyu6a' \
--header 'api-key: pk_dev_febeb0fab3be43c79024efaf99764d63' \
--data '{
"item_price_id": "cbdemo_enterprise-suite-monthly",
"description": "Hello this is description",
"client_secret": "sub_8zxmAZAfS0eTL8zRJRk7_secret_IGg9yCNzrzoziV3odFLt",
"shipping": {
"address": {
"state": "zsaasdas",
"city": "Banglore",
"country": "US",
"line1": "sdsdfsdf",
"line2": "hsgdbhd",
"line3": "alsksoe",
"zip": "571201",
"first_name": "joseph",
"last_name": "doe"
},
"phone": {
"number": "123456789",
"country_code": "+1"
}
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "123456789",
"country_code": "+1"
}
},
"payment_details": {
"payment_method": "card",
"payment_method_type": "credit",
"payment_method_data": {
"card": {
"card_number": "4111111111111111",
"card_exp_month": "03",
"card_exp_year": "2030",
"card_holder_name": "CLBRW dffdg",
"card_cvc": "737"
}
},
"customer_acceptance": {
"acceptance_type": "online",
"accepted_at": "1963-05-03T04:07:52.723Z",
"online": {
"ip_address": "127.0.0.1",
"user_agent": "amet irure esse"
}
}
}
}'
```
Response -
```
{"id":"sub_8zxmAZAfS0eTL8zRJRk7","merchant_reference_id":null,"status":"active","plan_id":null,"price_id":null,"coupon":null,"profile_id":"pro_CohRshEanxkKSMHgyu6a","payment":{"payment_id":"pay_pPn6Tz2m3WrOIzANMF2g","status":"succeeded","amount":14100,"currency":"USD","connector":"stripe","payment_method_id":"pm_ZAtcND5u4SoRq6DnTQET","payment_experience":null,"error_code":null,"error_message":null,"payment_method_type":"credit","client_secret":"pay_pPn6Tz2m3WrOIzANMF2g_secret_Wxi6r52cBxz0ujhcWpAh"},"customer_id":"cus_d64F9yomaDMqbTDlxw3g","invoice":{"id":"invoice_nEqu7GMVqNMRzBorC9BS","subscription_id":"sub_8zxmAZAfS0eTL8zRJRk7","merchant_id":"merchant_1759849271","profile_id":"pro_CohRshEanxkKSMHgyu6a","merchant_connector_id":"mca_S0OzkqOOhMZs2jJQPSZo","payment_intent_id":"pay_pPn6Tz2m3WrOIzANMF2g","payment_method_id":"pm_ZAtcND5u4SoRq6DnTQET","customer_id":"cus_d64F9yomaDMqbTDlxw3g","amount":14100,"currency":"USD","status":"payment_pending"},"billing_processor_subscription_id":"sub_8zxmAZAfS0eTL8zRJRk7"}
```
invoice -
<img width="942" height="409" alt="image" src="https://github.com/user-attachments/assets/c674745e-428d-4a69-9c74-4732e160fb31" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/subscription.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/invoice.rs`
- `crates/diesel_models/src/schema.rs`
- `crates/diesel_models/src/schema_v2.rs`
**3. Core Business Logic**
- `crates/router/src/core/subscription.rs`
- `crates/router/src/core/subscription/invoice_handler.rs`
- `crates/router/src/core/subscription/subscription_handler.rs`
- ... and 1 more files
**4. External Connector Integration**
- `migrations/2025-10-07-130304_add_connector_invoice_id/down.sql`
- `migrations/2025-10-07-130304_add_connector_invoice_id/up.sql`
**5. Other**
- `crates/router/src/routes/subscription.rs`
- `crates/router/src/services/authentication.rs`
- `crates/router/src/workflows/invoice_sync.rs`
**Code Patterns Applied:**
- Implement new functions (5 changes)
- Extend existing types with new fields (36 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 01b4d6ae:
Files to modify:
**crates/api_models/src/subscription.rs**
Add:
- function: pub::as_string
**crates/diesel_models/src/invoice.rs**
Modify existing code
**crates/diesel_models/src/schema.rs**
Modify existing code
**crates/diesel_models/src/schema_v2.rs**
Modify existing code
**crates/router/src/core/subscription.rs**
Modify existing code
**crates/router/src/core/subscription/invoice_handler.rs**
Modify existing code
**crates/router/src/core/subscription/subscription_handler.rs**
Add:
- function: private::foreign_try_from
- impl: impl ForeignTryFrom<&diesel_models::invoice::Invoice> for subscription_types::Invoice
**crates/router/src/core/webhooks/incoming.rs**
Modify existing code
**crates/router/src/routes/subscription.rs**
Modify existing code
**crates/router/src/services/authentication.rs**
Add:
- function: private::get_client_secret
- function: private::get_client_secret
- impl: impl ClientSecretFetch for api_models::subscription::ConfirmSubscriptionRequest
- impl: impl ClientSecretFetch for api_models::subscription::GetPlansQuery
**crates/router/src/workflows/invoice_sync.rs**
Modify existing code
|
{"pr_number": 9713, "pr_title": "feat(subscriptions): Add client secret auth support in subscriptions APIs", "merged_at": "2025-10-08T15:44:43Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/subscription.rs"], "database": ["crates/diesel_models/src/invoice.rs", "crates/diesel_models/src/schema.rs", "crates/diesel_models/src/schema_v2.rs"], "core_business": ["crates/router/src/core/subscription.rs", "crates/router/src/core/subscription/invoice_handler.rs", "crates/router/src/core/subscription/subscription_handler.rs", "crates/router/src/core/webhooks/incoming.rs"], "connectors": ["migrations/2025-10-07-130304_add_connector_invoice_id/down.sql", "migrations/2025-10-07-130304_add_connector_invoice_id/up.sql"], "other": ["crates/router/src/routes/subscription.rs", "crates/router/src/services/authentication.rs", "crates/router/src/workflows/invoice_sync.rs"]}, "change_types": {"functions_added": 5, "fields_added": 36, "imports_added": 1, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(connector): [SANTANDER] Added Authorize, PSync, Void, Refund & RSync Flows for Pix QR Code Bank Transfer
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
Ref Doc : https://developer.santander.com.br/api/documentacao/pix-visao-geral#/api/documentacao/pix-visao-geral/
https://developer.santander.com.br/api/user-guide/pix-visao-geral
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
This PR cannot be tested because we are still awaiting on creds
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
**2. Core Business Logic**
- `crates/router/src/core/admin.rs`
- `crates/router/src/core/payments/transformers.rs`
**3. External Connector Integration**
- `crates/common_enums/src/connector_enums.rs`
- `crates/connector_configs/src/connector.rs`
- `crates/connector_configs/toml/development.toml`
- ... and 6 more files
**4. Type Definitions**
- `crates/router/src/types/api.rs`
- `crates/router/src/types/transformers.rs`
**5. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**6. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
**7. Other**
- `Cargo.lock`
- `api-reference/v1/openapi_spec_v1.json`
- `api-reference/v2/openapi_spec_v2.json`
**Code Patterns Applied:**
- Define new data structures (17 changes)
- Implement new functions (27 changes)
- Extend existing types with new fields (201 changes)
- Add conditional logic for feature flags or filtering (3 changes)
**Detailed Identifier Changes:**
Commit 28d63575:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/connector_configs/src/connector.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/santander.rs**
Remove:
- function: private::get_auth_header
- impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Santander
- impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Santander
- impl: impl ConnectorSpecifications for Santander
Add:
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::build_request
- function: private::handle_response
- function: private::build_request
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::get_request_body
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_connector_about
- function: private::get_supported_payment_methods
- function: private::get_supported_webhook_flows
- impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Santander
- impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Santander
- impl: impl ConnectorSpecifications for Santander
**crates/hyperswitch_connectors/src/connectors/santander/transformers.rs**
Remove:
- struct: pub::SantanderPaymentsRequest
- struct: pub::SantanderAuthType
- enum: pub::RefundStatus
Add:
- function: private::try_from
- function: pub::format_emv_field
- function: pub::generate_emv_string
- function: private::try_from
- function: private::try_from
- function: private::try_from
- function: private::try_from
- function: private::try_from
- function: private::get_qr_code_data
- struct: pub::SantanderAuthUpdateResponse
- struct: pub::SantanderPaymentRequest
- struct: pub::SantanderPixQRPaymentRequest
- struct: pub::SantanderDebtor
- struct: pub::SantanderValue
- struct: pub::SantanderAdditionalInfo
- struct: pub::SantanderVoidResponse
- struct: pub::SantanderCalendar
- struct: pub::SantanderPaymentsSyncResponse
- struct: pub::SantanderPix
- struct: pub::SantanderPaymentsCancelRequest
- enum: pub::SantanderVoidStatus
- enum: pub::SantanderRefundStatus
- impl: impl TryFrom<&Option<common_utils::pii::SecretSerdeValue>> for SantanderMetadataObject
- impl: impl TryFrom<&ConnectorAuthType> for SantanderAuthType
- impl: impl TryFrom<ResponseRouterData<F, SantanderAuthUpdateResponse, T, AccessToken>> for RouterData<F, T, AccessToken>
- impl: impl TryFrom<&SantanderRouterData<&PaymentsAuthorizeRouterData>> for SantanderPaymentRequest
- impl: impl TryFrom<(
&SantanderRouterData<&PaymentsAuthorizeRouterData>,
&BankTransferData,
)> for SantanderPaymentRequest
- impl: impl TryFrom<ResponseRouterData<F, SantanderPaymentsSyncResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData>
- impl: impl TryFrom<&PaymentsCancelRouterData> for SantanderPaymentsCancelRequest
**crates/payment_methods/src/configs/payment_connector_required_fields.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/types/api.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
|
{"pr_number": 8463, "pr_title": "feat(connector): [SANTANDER] Added Authorize, PSync, Void, Refund & RSync Flows for Pix QR Code Bank Transfer ", "merged_at": "2025-07-01T14:51:00Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/payments/transformers.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/connector_configs/src/connector.rs", "crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml", "crates/hyperswitch_connectors/Cargo.toml", "crates/hyperswitch_connectors/src/connectors/santander.rs", "crates/hyperswitch_connectors/src/connectors/santander/transformers.rs", "crates/payment_methods/src/configs/payment_connector_required_fields.rs"], "types": ["crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"], "other": ["Cargo.lock", "api-reference/v1/openapi_spec_v1.json", "api-reference/v2/openapi_spec_v2.json"]}, "change_types": {"structs_added": 17, "functions_added": 27, "enums_added": 2, "fields_added": 201, "imports_added": 14, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(payments): filter total count by card-network value
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [X] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
The total count in the payments response was incorrect when the card-network filter was applied. With this PR, the count will now be accurately filtered as well.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
Closes issues https://github.com/juspay/hyperswitch-cloud/issues/7206
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Request :
```
curl 'http://localhost:8080/payments/list' \
-H 'authorization: Bearer JWT token' \
-H 'sec-ch-ua: "Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
--data-raw '{"offset":0,"limit":50,"start_time":"2024-09-21T18:30:00Z","card_network":["Visa"]}'
```
Response
Lets say the total number of payments are 50 , when you apply filter the total_count and count should come as the filtered number . For Eg: When card-network filter = Visa , then the count = 4 and total_count =4
```
{
"count": 4,
"total_count": 4,
"data": [
{
"payment_id": "test_RoHcgHs3m6ZsJ0Y5MEMU",
"merchant_id": "merchant_1729190909",
"status": "failed",
"amount": 10200,
"net_amount": 10200,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": null,
"connector": "stripe_test",
"client_secret": "test_RoHcgHs3m6ZsJ0Y5MEMU_secret_wQHDmUUPatRIfmY8P8VO",
"created": "2024-10-22T00:08:58.000Z",
"currency": "USD",
"customer_id": "hs-dashboard-user",
"customer": null,
"description": "This is a sample payment",
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": null,
"off_session": null,
"capture_on": null,
"capture_method": null,
"payment_method": "card",
"payment_method_data": null,
"payment_token": null,
"shipping": null,
"billing": null,
"order_details": null,
"email": null,
"name": null,
"phone": null,
"return_url": null,
"authentication_type": "three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": null,
"manual_retry_allowed": null,
"connector_transaction_id": "test_RoHcgHs3m6ZsJ0Y5MEMU_1",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": null,
"reference_id": null,
"payment_link": null,
"profile_id": "pro_lqOYR8GAg2uTrz5WaqA5",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": null,
"incremental_authorization_allowed": null,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": null,
"expires_on": null,
"fingerprint": null,
"browser_info": null,
"payment_method_id": null,
"payment_method_status": null,
"updated": null,
"charges": null,
"frm_metadata": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null
},
{
"payment_id": "test_EEe6rS8Mkv2vVDxZWowp",
"merchant_id": "merchant_1729190909",
"status": "succeeded",
"amount": 18600,
"net_amount": 18600,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": null,
"connector": "stripe_test",
"client_secret": "test_EEe6rS8Mkv2vVDxZWowp_secret_fvEF0uo7CYqPOgasFSrQ",
"created": "2024-10-21T02:51:29.000Z",
"currency": "USD",
"customer_id": "hs-dashboard-user",
"customer": null,
"description": "This is a sample payment",
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": null,
"off_session": null,
"capture_on": null,
"capture_method": null,
"payment_method": "card",
"payment_method_data": null,
"payment_token": null,
"shipping": null,
"billing": null,
"order_details": null,
"email": null,
"name": null,
"phone": null,
"return_url": null,
"authentication_type": "three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "debit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": null,
"manual_retry_allowed": null,
"connector_transaction_id": "test_EEe6rS8Mkv2vVDxZWowp_1",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": null,
"reference_id": null,
"payment_link": null,
"profile_id": "pro_lqOYR8GAg2uTrz5WaqA5",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": null,
"incremental_authorization_allowed": null,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": null,
"expires_on": null,
"fingerprint": null,
"browser_info": null,
"payment_method_id": null,
"payment_method_status": null,
"updated": null,
"charges": null,
"frm_metadata": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null
},
{
"payment_id": "test_46x3ZcQVz6U9RtJitDO4",
"merchant_id": "merchant_1729190909",
"status": "succeeded",
"amount": 18200,
"net_amount": 18200,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": null,
"connector": "stripe_test",
"client_secret": "test_46x3ZcQVz6U9RtJitDO4_secret_hrOArvzAKBpwXvShhHo4",
"created": "2024-10-20T18:06:38.000Z",
"currency": "USD",
"customer_id": "hs-dashboard-user",
"customer": null,
"description": "This is a sample payment",
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": null,
"off_session": null,
"capture_on": null,
"capture_method": null,
"payment_method": "card",
"payment_method_data": null,
"payment_token": null,
"shipping": null,
"billing": null,
"order_details": null,
"email": null,
"name": null,
"phone": null,
"return_url": null,
"authentication_type": "three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": null,
"manual_retry_allowed": null,
"connector_transaction_id": "test_46x3ZcQVz6U9RtJitDO4_1",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": null,
"reference_id": null,
"payment_link": null,
"profile_id": "pro_lqOYR8GAg2uTrz5WaqA5",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": null,
"incremental_authorization_allowed": null,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": null,
"expires_on": null,
"fingerprint": null,
"browser_info": null,
"payment_method_id": null,
"payment_method_status": null,
"updated": null,
"charges": null,
"frm_metadata": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null
},
{
"payment_id": "test_pghhoGT9kuPuXf2yopXO",
"merchant_id": "merchant_1729190909",
"status": "succeeded",
"amount": 11800,
"net_amount": 11800,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": null,
"connector": "paypal_test",
"client_secret": "test_pghhoGT9kuPuXf2yopXO_secret_R0uu1JcxCBN1UFyMDVal",
"created": "2024-10-16T05:26:35.000Z",
"currency": "USD",
"customer_id": "hs-dashboard-user",
"customer": null,
"description": "This is a sample payment",
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": null,
"off_session": null,
"capture_on": null,
"capture_method": null,
"payment_method": "card",
"payment_method_data": null,
"payment_token": null,
"shipping": null,
"billing": null,
"order_details": null,
"email": null,
"name": null,
"phone": null,
"return_url": null,
"authentication_type": "no_three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": null,
"manual_retry_allowed": null,
"connector_transaction_id": "test_pghhoGT9kuPuXf2yopXO_1",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": null,
"reference_id": null,
"payment_link": null,
"profile_id": "pro_lqOYR8GAg2uTrz5WaqA5",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": null,
"incremental_authorization_allowed": null,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": null,
"expires_on": null,
"fingerprint": null,
"browser_info": null,
"payment_method_id": null,
"payment_method_status": null,
"updated": null,
"charges": null,
"frm_metadata": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null
}
]
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/query/payment_attempt.rs`
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs`
**4. Core Business Logic**
- `crates/router/src/core/payments.rs`
**5. Other**
- `crates/router/src/db/kafka_store.rs`
- `crates/storage_impl/src/mock_db/payment_attempt.rs`
- `crates/storage_impl/src/payments/payment_attempt.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (6 changes)
- Add conditional logic for feature flags or filtering (1 changes)
- Modify database queries (2 changes)
**Detailed Identifier Changes:**
Commit ca325e96:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/diesel_models/src/query/payment_attempt.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payments/payment_attempt.rs**
Modify existing code
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/db/kafka_store.rs**
Modify existing code
**crates/storage_impl/src/mock_db/payment_attempt.rs**
Modify existing code
**crates/storage_impl/src/payments/payment_attempt.rs**
Modify existing code
|
{"pr_number": 6397, "pr_title": "fix(payments): filter total count by card-network value", "merged_at": "2024-10-24T14:32:45Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/query/payment_attempt.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments/payment_attempt.rs"], "core_business": ["crates/router/src/core/payments.rs"], "other": ["crates/router/src/db/kafka_store.rs", "crates/storage_impl/src/mock_db/payment_attempt.rs", "crates/storage_impl/src/payments/payment_attempt.rs"]}, "change_types": {"fields_added": 6, "conditionals_added": 1, "database_queries": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(common_utils): Prevent logging sensitive information on deserialization failure
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
- Modified `parse_value` method in `ValueExt` trait to log the JSON object after masking on deserialization failure.
- Modified `parse_struct` method in `BytesExt`, `ByteSliceExt` and `StringExt` to log values after converting them into a `serde_json::Value` and then masking
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
Closes #8969
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Tested by supplying malformed data to the method and verified it logs data after masking.
Object:
<img width="1079" height="49" alt="image" src="https://github.com/user-attachments/assets/a7f917af-b356-475d-b3d8-c29fcae29fc0" />
String:
<img width="1079" height="47" alt="image" src="https://github.com/user-attachments/assets/d009c43d-f114-4d0b-bda2-4fc8797ee45d" />
Array:
<img width="728" height="47" alt="image" src="https://github.com/user-attachments/assets/10929436-aec4-45ef-bec3-8f653dc48cb3" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Utils**
- `crates/common_utils/src/ext_traits.rs`
**Detailed Identifier Changes:**
Commit 00872828:
Files to modify:
**crates/common_utils/src/ext_traits.rs**
Modify existing code
|
{"pr_number": 8970, "pr_title": "fix(common_utils): Prevent logging sensitive information on deserialization failure", "merged_at": "2025-09-24T13:24:48Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"utils": ["crates/common_utils/src/ext_traits.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(router): implement post_update_tracker for SessionUpdate Flow and add support for session_update_flow for Paypal
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
- implement session update flow for Paypal
- implement post_update_tracker for SessionUpdate Flow
hotfix for [PR](https://github.com/juspay/hyperswitch/pull/6299)
### Additional Changes
- [x] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
1. Create Merchant Account
```
curl --location 'http://localhost:8080/accounts' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: test_admin' \
--data-raw '{
"merchant_id": "merchant_1728546485",
"locker_id": "m0010",
"merchant_name": "NewAge Retailer",
"merchant_details": {
"primary_contact_person": "John Test",
"primary_email": "[email protected]",
"primary_phone": "sunt laborum",
"secondary_contact_person": "John Test2",
"secondary_email": "[email protected]",
"secondary_phone": "cillum do dolor id",
"website": "https://www.example.com",
"about_business": "Online Retail with a wide selection of organic products for North America",
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US"
}
},
"return_url": "https://google.com/success",
"webhook_details": {
"webhook_version": "1.0.1",
"webhook_username": "ekart_retail",
"webhook_password": "password_ekart@123",
"payment_created_enabled": true,
"payment_succeeded_enabled": true,
"payment_failed_enabled": true
},
"sub_merchants_enabled": false,
"metadata": {
"city": "NY",
"unit": "245"
},
"primary_business_details": [
{
"country": "US",
"business": "food"
}
]
}'
```
2. Create API Key
```
curl --location 'http://localhost:8080/api_keys/merchant_1728540504' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: test_admin' \
--data '{
"name": "API Key 1",
"description": null,
"expiration": "2025-09-23T01:02:03.000Z"
}'
```
3. Create MCA
```
curl --location 'http://localhost:8080/account/merchant_1728540504/connectors?=' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: test_admin' \
--data '{
"connector_type": "payment_processor",
"connector_name": "paypal",
"connector_account_details": {
"auth_type": "BodyKey",
"api_key": "_",
"key1": "_"
},
"test_mode": false,
"disabled": false,
"payment_methods_enabled": [
{
"payment_method": "card",
"payment_method_types": [
{
"payment_method_type": "credit",
"card_networks": [
"Visa",
"Mastercard"
],
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "debit",
"card_networks": [
"Visa",
"Mastercard"
],
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
},
{
"payment_method": "wallet",
"payment_method_types": [
{
"payment_method_type": "paypal",
"payment_experience": "redirect_to_url",
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": false,
"installment_payment_enabled": false
},
{
"payment_method_type": "paypal",
"payment_experience": "invoke_sdk_client",
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": false,
"installment_payment_enabled": false
}
]
},
{
"payment_method": "bank_redirect",
"payment_method_types": [
{
"payment_method_type": "giropay",
"recurring_enabled": true,
"installment_payment_enabled": true,
"payment_experience": "redirect_to_url"
},
{
"payment_method_type": "ideal",
"recurring_enabled": true,
"installment_payment_enabled": true,
"payment_experience": "redirect_to_url"
},
{
"payment_method_type": "eps",
"recurring_enabled": true,
"installment_payment_enabled": true,
"payment_experience": "redirect_to_url"
},
{
"payment_method_type": "sofort",
"recurring_enabled": true,
"installment_payment_enabled": true,
"payment_experience": "redirect_to_url"
}
]
}
],
"metadata": {
"paypal_sdk": {
"client_id": "___"
}
},
"business_country": "US",
"business_label": "food"
}'
```
4. Create Payment
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_MTxKOCiP8GOiXv955xYCMuW0MUzl1anEbVVkxBBR87wfDUObqYqOsCqpogsFFnCd' \
--data-raw '{
"amount": 6540,
"currency": "USD",
"confirm": false,
"capture_method": "automatic",
"capture_on": "2022-09-10T10:11:12Z",
"amount_to_capture": 6540,
"customer_id": "StripeCustomer",
"email": "[email protected]",
"name": "John Doe",
"phone": "999999999",
"phone_country_code": "+1",
"description": "Its my first payment request",
"authentication_type": "no_three_ds",
"return_url": "https://duck.com",
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "PiX"
}
},
"shipping": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "PiX"
}
},
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
}
}'
```
5. Create Session token
```
curl --location 'http://localhost:8080/payments/session_tokens' \
--header 'Content-Type: application/json' \
--header 'api-key: pk_dev_10cfee22267a4184a3d45665920788ea' \
--data '{
"payment_id": "pay_J3IXGvol8nNvUkSRTcwQ",
"wallets": [],
"client_secret": "pay_J3IXGvol8nNvUkSRTcwQ_secret_VN76rK4oCqTghQ1kwNcO"
}'
```
Response
```
{
"payment_id": "pay_mcVzUMZws5KmEKbGkZ0g",
"client_secret": "pay_mcVzUMZws5KmEKbGkZ0g_secret_RMWlmy1jSdlp9VOMX1qc",
"session_token": [
{
"wallet_name": "paypal",
"connector": "paypal",
"session_token": "ASKAGh2WXgqfQ5TzjpZzLsfhVGlFbjq5VrV5IOX8KXDD2N_XqkGeYNDkWyr_UXnfhXpEkABdmP284b_2",
"sdk_next_action": {
"next_action": "post_session_tokens"
}
}
]
}
```
In Response Check for Next action - It should be `post_session_tokens`
6. List Payment Methods for merchant - Check for required fields (shipping_details)
```
curl --location 'http://localhost:8080/account/payment_methods?client_secret=pay_J3IXGvol8nNvUkSRTcwQ_secret_VN76rK4oCqTghQ1kwNcO' \
--header 'Accept: application/json' \
--header 'api-key: pk_dev_10cfee22267a4184a3d45665920788ea'
```
Response
```
{
"redirect_url": "https://google.com/success",
"currency": "USD",
"payment_methods": [
{
"payment_method": "wallet",
"payment_method_types": [
{
"payment_method_type": "paypal",
"payment_experience": [
{
"payment_experience_type": "invoke_sdk_client",
"eligible_connectors": [
"paypal"
]
},
{
"payment_experience_type": "redirect_to_url",
"eligible_connectors": [
"paypal"
]
}
],
"card_networks": null,
"bank_names": null,
"bank_debits": null,
"bank_transfers": null,
"required_fields": {
"shipping.address.country": {
"required_field": "shipping.address.country",
"display_name": "country",
"field_type": {
"user_shipping_address_country": {
"options": [
"ALL"
]
}
},
"value": "US"
},
"shipping.address.first_name": {
"required_field": "shipping.address.first_name",
"display_name": "shipping_first_name",
"field_type": "user_shipping_name",
"value": "PiX"
},
"shipping.address.zip": {
"required_field": "shipping.address.zip",
"display_name": "zip",
"field_type": "user_shipping_address_pincode",
"value": "94122"
},
"shipping.address.state": {
"required_field": "shipping.address.state",
"display_name": "state",
"field_type": "user_shipping_address_state",
"value": "California"
},
"shipping.address.city": {
"required_field": "shipping.address.city",
"display_name": "city",
"field_type": "user_shipping_address_city",
"value": "San Fransico"
},
"shipping.address.last_name": {
"required_field": "shipping.address.last_name",
"display_name": "shipping_last_name",
"field_type": "user_shipping_name",
"value": null
},
"shipping.address.line1": {
"required_field": "shipping.address.line1",
"display_name": "line1",
"field_type": "user_shipping_address_line1",
"value": "1467"
}
},
"surcharge_details": null,
"pm_auth_connector": null
}
]
},
],
"mandate_payment": null,
"merchant_name": "NewAge Retailer",
"show_surcharge_breakup_screen": false,
"payment_type": "normal",
"request_external_three_ds_authentication": false,
"collect_shipping_details_from_wallets": false,
"collect_billing_details_from_wallets": false,
"is_tax_calculation_enabled": false
}
```
7. Create Post Session Tokens for Paypal
```
curl --location 'http://localhost:8080/payments/pay_J3IXGvol8nNvUkSRTcwQ/post_session_tokens' \
--header 'Content-Type: application/json' \
--header 'api-key: pk_dev_10cfee22267a4184a3d45665920788ea' \
--data '{
"client_secret": "pay_J3IXGvol8nNvUkSRTcwQ_secret_VN76rK4oCqTghQ1kwNcO",
"payment_method_type": "paypal",
"payment_method": "wallet"
}'
```
Response
```
{
"payment_id": "pay_mcVzUMZws5KmEKbGkZ0g",
"next_action": {
"type": "invoke_sdk_client",
"next_action_data": {
"next_action": "confirm",
"order_id": "2KW93090954330301"
}
}
}
```
In Response Check for Next action - It should be confirm
8. Call /calculate_tax - SessionUpdate
```
curl --location 'http://localhost:8080/payments/pay_mcVzUMZws5KmEKbGkZ0g/calculate_tax' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: pk_dev_43922dfcb2694e09929891b0f4f7b6dc' \
--data-raw '{
"client_secret": "_",
"shipping": {
"address": {
"line1": "1335",
"line2": "E 103rd St",
"city": "Los Angeles",
"state": "California",
"zip": "90002",
"country": "US",
"first_name": "Test",
"last_name": "Person-us"
},
"phone": {
"number": "5551234",
"country_code": "+1"
},
"email": "[email protected]"
},
"payment_method_type": "paypal"
}
'
```
Response
```
{
"payment_id": "pay_mcVzUMZws5KmEKbGkZ0g",
"net_amount": 3284,
"order_tax_amount": 285,
"shipping_cost": null,
"display_amount": {
"net_amount": "32.84",
"order_tax_amount": "2.85",
"shipping_cost": null
}
}
```
9. Confirm Request
```
curl 'http://localhost:8080/payments/pay_6oSZ2utmkjgdOlfrZ53E/confirm' \
-X 'POST' \
-H 'Content-Type: application/json' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'Sec-Fetch-Mode: cors' \
-H 'x-payment-confirm-source: sdk' \
-H 'x-client-source: ExpressCheckoutElement' \
-H 'api-key: pk_dev_43922dfcb2694e09929891b0f4f7b6dc' \
-H 'x-browser-version: 605.1.15' \
--data-binary '{"client_secret":"pay_6oSZ2utmkjgdOlfrZ53E_secret_EFrF7Izc98NHygNyG51x","return_url":"http://localhost:9060","retry_action":"manual_retry","shipping":{"address":{"country":"US","state":"California","zip":"94588","first_name":"Jagan","city":"Pleasanton","last_name":"Elavarasan","line1":"4141"}},"payment_method":"wallet","payment_method_type":"paypal","payment_experience":"invoke_sdk_client","connector":["paypal"],"payment_method_data":{"wallet":{"paypal_sdk":{"token":""}}},"browser_info":{"user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1.2 Safari/605.1.15","accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","language":"en-US","color_depth":24,"screen_height":1117,"screen_width":1728,"time_zone":-330,"java_enabled":true,"java_script_enabled":true},"payment_type":"normal"}'
```
Response
```{
"payment_id": "pay_6oSZ2utmkjgdOlfrZ53E",
"merchant_id": "merchant_1728844379",
"status": "succeeded",
"amount": 2999,
"net_amount": 3284,
"amount_capturable": 0,
"amount_received": 3284,
"connector": "paypal",
"client_secret": "pay_6oSZ2utmkjgdOlfrZ53E_secret_EFrF7Izc98NHygNyG51x",
"created": "2024-10-14T09:09:36.340Z",
"currency": "USD",
"customer_id": "hyperswitch_sdk_demo_id",
"customer": {
"id": "hyperswitch_sdk_demo_id",
"name": null,
"email": "[email protected]",
"phone": null,
"phone_country_code": null
},
"description": "Hello this is description",
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": null,
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": "wallet",
"payment_method_data": {
"wallet": {},
"billing": null
},
"payment_token": null,
"shipping": {
"address": {
"city": "Pleasanton",
"country": "US",
"line1": "4141",
"line2": "Amsterdam Ave",
"line3": "alsksoe",
"zip": "94588",
"state": "California",
"first_name": "Jagan",
"last_name": "Elavarasan"
},
"phone": {
"number": "5551234",
"country_code": "+1"
},
"email": "[email protected]"
},
"billing": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "_",
"country_code": "+91"
},
"email": "[email protected]"
},
"order_details": [
{
"brand": null,
"amount": 2999,
"category": null,
"quantity": 1,
"product_id": null,
"product_name": "Apple iPhone 15",
"product_type": null,
"sub_category": null,
"product_img_link": null,
"product_tax_code": null,
"requires_shipping": null
}
],
"email": "[email protected]",
"name": null,
"phone": null,
"return_url": "http://localhost:9060/",
"authentication_type": "three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": "invoke_sdk_client",
"payment_method_type": "paypal",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": null,
"manual_retry_allowed": false,
"connector_transaction_id": "1SV0561343891340C",
"frm_message": null,
"metadata": {
"udf1": "value1",
"login_date": "2019-09-10T10:11:12Z",
"new_customer": "true"
},
"connector_metadata": null,
"feature_metadata": null,
"reference_id": "pay_6oSZ2utmkjgdOlfrZ53E_1",
"payment_link": null,
"profile_id": "pro_03iBylVoOpuldQsVZKtO",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_frKbF7wxB3Rt7tAFbpJA",
"incremental_authorization_allowed": null,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2024-10-14T09:24:36.340Z",
"fingerprint": null,
"browser_info": {
"language": "en-US",
"time_zone": -330,
"ip_address": "::1",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1.2 Safari/605.1.15",
"color_depth": 24,
"java_enabled": true,
"screen_width": 1728,
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"screen_height": 1117,
"java_script_enabled": true
},
"payment_method_id": null,
"payment_method_status": null,
"updated": "2024-10-14T09:10:19.289Z",
"charges": null,
"frm_metadata": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null
}
```
For end to end testing, we need to do the payment via SDK
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/router_request_types.rs`
- `crates/hyperswitch_domain_models/src/router_response_types.rs`
**3. Core Business Logic**
- `crates/router/src/core/payments.rs`
- `crates/router/src/core/payments/flows.rs`
- `crates/router/src/core/payments/operations/payment_approve.rs`
- ... and 15 more files
**4. External Connector Integration**
- `crates/router/src/connector/paypal.rs`
- `crates/router/src/connector/paypal/transformers.rs`
- `crates/router/tests/connectors/utils.rs`
**5. Type Definitions**
- `crates/hyperswitch_interfaces/src/types.rs`
- `crates/router/src/types.rs`
**6. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
- `crates/common_enums/src/enums.rs`
**Code Patterns Applied:**
- Define new data structures (2 changes)
- Implement new functions (16 changes)
- Extend existing types with new fields (95 changes)
- Add conditional logic for feature flags or filtering (3 changes)
**Detailed Identifier Changes:**
Commit d9adbb37:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/common_enums/src/enums.rs**
Add:
- enum: pub::SessionUpdateStatus
**crates/hyperswitch_domain_models/src/router_request_types.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_response_types.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/types.rs**
Modify existing code
**crates/router/src/connector/paypal.rs**
Add:
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::build_request
- function: private::get_request_body
- function: private::handle_response
- function: private::get_error_response
- impl: impl api::PaymentSessionUpdate for Paypal
- impl: impl ConnectorIntegration<
api::SdkSessionUpdate,
types::SdkPaymentsSessionUpdateData,
types::PaymentsResponseData,
> for Paypal
**crates/router/src/connector/paypal/transformers.rs**
Add:
- function: private::try_from
- function: private::try_from
- function: pub::get_inner_value
- function: private::try_from
- struct: pub::PaypalUpdateOrderRequest
- struct: pub::Operation
- enum: pub::PaypalOperationType
- enum: pub::Value
- impl: impl TryFrom<&PaypalRouterData<&types::SdkSessionUpdateRouterData>> for OrderRequestAmount
- impl: impl TryFrom<&PaypalRouterData<&types::SdkSessionUpdateRouterData>> for ItemDetails
- impl: impl PaypalUpdateOrderRequest
- impl: impl TryFrom<&PaypalRouterData<&types::SdkSessionUpdateRouterData>> for PaypalUpdateOrderRequest
**crates/router/src/core/payments.rs**
Add:
- function: private::should_update_in_post_update_tracker
- function: private::should_update_in_update_tracker
- trait: pub::PaymentMethodChecker
- impl: impl PaymentMethodChecker<F> for PaymentData<F>
**crates/router/src/core/payments/flows.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_approve.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_cancel.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_capture.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_complete_authorize.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_confirm.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_create.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_post_session_tokens.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_reject.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_response.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_session.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_start.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_status.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_update.rs**
Modify existing code
**crates/router/src/core/payments/operations/payments_incremental_authorization.rs**
Modify existing code
**crates/router/src/core/payments/operations/tax_calculation.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/types.rs**
Modify existing code
**crates/router/tests/connectors/utils.rs**
Modify existing code
|
{"pr_number": 6328, "pr_title": "feat(router): implement post_update_tracker for SessionUpdate Flow and add support for session_update_flow for Paypal", "merged_at": "2024-10-15T20:37:06Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "domain": ["crates/hyperswitch_domain_models/src/router_request_types.rs", "crates/hyperswitch_domain_models/src/router_response_types.rs"], "core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/flows.rs", "crates/router/src/core/payments/operations/payment_approve.rs", "crates/router/src/core/payments/operations/payment_cancel.rs", "crates/router/src/core/payments/operations/payment_capture.rs", "crates/router/src/core/payments/operations/payment_complete_authorize.rs", "crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/payments/operations/payment_create.rs", "crates/router/src/core/payments/operations/payment_post_session_tokens.rs", "crates/router/src/core/payments/operations/payment_reject.rs", "crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/operations/payment_session.rs", "crates/router/src/core/payments/operations/payment_start.rs", "crates/router/src/core/payments/operations/payment_status.rs", "crates/router/src/core/payments/operations/payment_update.rs", "crates/router/src/core/payments/operations/payments_incremental_authorization.rs", "crates/router/src/core/payments/operations/tax_calculation.rs", "crates/router/src/core/payments/transformers.rs"], "connectors": ["crates/router/src/connector/paypal.rs", "crates/router/src/connector/paypal/transformers.rs", "crates/router/tests/connectors/utils.rs"], "types": ["crates/hyperswitch_interfaces/src/types.rs", "crates/router/src/types.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/common_enums/src/enums.rs"]}, "change_types": {"structs_added": 2, "functions_added": 16, "enums_added": 3, "fields_added": 95, "imports_added": 2, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
refactor(users): modify query to list only v1 merchant_accounts for list v1 merchant accounts API
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Hotfix PR
Original PR: [https://github.com/juspay/hyperswitch/pull/7782](https://github.com/juspay/hyperswitch/pull/7782)
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/query/merchant_account.rs`
**Code Patterns Applied:**
- Modify database queries (3 changes)
**Detailed Identifier Changes:**
Commit 0676341b:
Files to modify:
**crates/diesel_models/src/query/merchant_account.rs**
Modify existing code
|
{"pr_number": 7788, "pr_title": "refactor(users): modify query to list only v1 merchant_accounts for list v1 merchant accounts API", "merged_at": "2025-04-10T14:12:38Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"database": ["crates/diesel_models/src/query/merchant_account.rs"]}, "change_types": {"imports_added": 2, "database_queries": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(payments): [Payment links] add configs for payment link
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [X] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
1. Added config `skip_status_screen` in payment links to decide whether to skip status screen after payment completion
- If config is true user will be redirected to return url directly
- If config is false,or not passed redirect user to status screen and then to return url `(default flow)`
2. Added config `background_color` to customize background color for payment links
3. Added config `payment_button_text_color` to customize text color for payment button in payment link
Note: Hotfix raised against https://github.com/juspay/hyperswitch/pull/7340
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
Tested locally
### Update business_profile configs (with `skip_status_screen` as true)
```
curl --location --request POST 'http://localhost:8080/account/merchant_1740126811/business_profile/pro_FirWioMrQWWbdkcvq1V5' \
--header 'Content-Type: application/json' \
--header 'api-key: test_admin' \
--data-raw '{
"payment_link_config": {
"allowed_domains": [
"*"
],
"payment_button_text": "PAY DG1",
"skip_status_screen": true
}
}'
```
### Create payment link
```
curl --location --request POST 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_14r0EBUTsBKDXLKPkxf0tU3qoz9YC79uqyGc75OETdwHdLBKVDZA3QcOX1svOmay' \
--data-raw '{
"amount": 700,
"customer_id": "cus_5CPXeuPb98HjRkbQifzd",
"currency": "USD",
"payment_link": true,
"session_expiry": 1000000,
"return_url": "https://google.com",
"payment_link_config": {
"logo": "https://cdn.pixabay.com/photo/2021/08/28/08/48/deer-geface-6580415_1280.png",
"seller_name": "Cookie Inc."
}
}'
```
**Payment link**
https://github.com/user-attachments/assets/62efdb99-405a-4d7f-aa4b-52d981c26afa
### Update business_profile configs (with `background_color` , `payment_button_text_color`)
```
curl --location --request POST 'http://localhost:8080/account/merchant_1740396251/business_profile/pro_BqO3rMoGzXliePMyBIY2' \
--header 'Content-Type: application/json' \
--header 'api-key: test_admin' \
--data-raw '{
"payment_link_config": {
"allowed_domains": [
"*"
],
"payment_button_text": "PAY DG1",
"display_status_screen": false,
"background_color": "#afff7b",
"payment_button_color": "#000000",
"payment_button_text_color": "#ff0000"
}
}'
```
### Create payment link
```
curl --location --request POST 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_14r0EBUTsBKDXLKPkxf0tU3qoz9YC79uqyGc75OETdwHdLBKVDZA3QcOX1svOmay' \
--data-raw '{
"amount": 700,
"customer_id": "cus_5CPXeuPb98HjRkbQifzd",
"currency": "USD",
"payment_link": true,
"session_expiry": 1000000,
"return_url": "https://google.com",
"payment_link_config": {
"logo": "https://cdn.pixabay.com/photo/2021/08/28/08/48/deer-geface-6580415_1280.png",
"seller_name": "Cookie Inc."
}
}'
```
**Payment link**
<img width="1661" alt="Screenshot 2025-02-27 at 12 38 22" src="https://github.com/user-attachments/assets/f8b854a1-4e39-4e56-accc-a802ccab0df3" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [X] I formatted the code `cargo +nightly fmt --all`
- [X] I addressed lints thrown by `cargo clippy`
- [X] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/admin.rs`
- `crates/api_models/src/payments.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/business_profile.rs`
- `crates/diesel_models/src/payment_intent.rs`
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/lib.rs`
**4. Core Business Logic**
- `crates/router/src/core/payment_link.rs`
- `crates/router/src/core/payment_link/payment_link_initiate/payment_link.js`
- `crates/router/src/core/payments/transformers.rs`
**5. Type Definitions**
- `crates/router/src/types/transformers.rs`
**6. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
**Code Patterns Applied:**
- Extend existing types with new fields (47 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 0960f3ea:
Files to modify:
**crates/api_models/src/admin.rs**
Modify existing code
**crates/api_models/src/payments.rs**
Modify existing code
**crates/diesel_models/src/business_profile.rs**
Modify existing code
**crates/diesel_models/src/payment_intent.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/lib.rs**
Modify existing code
**crates/router/src/core/payment_link.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
|
{"pr_number": 7410, "pr_title": "feat(payments): [Payment links] add configs for payment link", "merged_at": "2025-03-03T17:25:06Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/admin.rs", "crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/business_profile.rs", "crates/diesel_models/src/payment_intent.rs"], "domain": ["crates/hyperswitch_domain_models/src/lib.rs"], "core_business": ["crates/router/src/core/payment_link.rs", "crates/router/src/core/payment_link/payment_link_initiate/payment_link.js", "crates/router/src/core/payments/transformers.rs"], "types": ["crates/router/src/types/transformers.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {"fields_added": 47, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
refactor(currency_conversion): re frame the currency_conversion crate to make api calls on background thread
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Due to redis lock being held for a long time, which made the forex api-calls synchronous, we had to re-frame the way how things were being operated for forex rates fetch, The changes includes:
1. Acquiring redis lock, just before api-call and releasing it once data is written on redis.
2. Always responding back with stale-data and operating everything (redis-write, update, api call) on background thread.
3. Throwing error, if api_keys are missing in configs, whenever call is being made.
4. Greater log coverage.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
5. `crates/router/src/configs`
6. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
1. Testing for first call when there is no data present in cache as well as redis:

```
curl --location 'http://127.0.0.1:8080/forex/rates' \
--header 'api-key: xxxxxxx' \
--data ''
```
<img width="822" alt="Screenshot 2025-01-03 at 5 13 35 PM" src="https://github.com/user-attachments/assets/ad2f4104-98cd-42d8-beba-305a5ba096e9" />
2. Testing for the case, when data is present in cache and/or redis:
<img width="821" alt="Screenshot 2025-01-03 at 5 14 59 PM" src="https://github.com/user-attachments/assets/13a7e292-bff5-4b2a-a32d-985a3a7e1066" />
3. For cases when data is expired in cache, it will provide us with the stale data and a background thread will be spun which will update the data on cache as well as redis.
Full response:
```
{
"data": {
"base_currency": "USD",
"conversion": {
"TWD": {
"to_factor": "32.939501",
"from_factor": "0.0303586869758591667797274767"
},
......
"MOP": {
"to_factor": "8.011576",
"from_factor": "0.1248193863479545098242842607"
}
}
},
"timestamp": 1735904610
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/currency.rs`
**2. Utils**
- `crates/router/src/utils/currency.rs`
**3. Tests**
- `loadtest/config/development.toml`
**4. Configuration Files**
- `config/config.example.toml`
- `config/deployments/env_specific.toml`
- `config/development.toml`
- ... and 2 more files
**5. Other**
- `crates/analytics/docs/README.md`
**Code Patterns Applied:**
- Implement new functions (11 changes)
- Extend existing types with new fields (2 changes)
- Add conditional logic for feature flags or filtering (3 changes)
**Detailed Identifier Changes:**
Commit 858866f9:
Files to modify:
**crates/router/src/configs/settings.rs**
Modify existing code
**crates/router/src/core/currency.rs**
Modify existing code
**crates/router/src/utils/currency.rs**
Remove:
- function: private::save_forex_to_local
|
{"pr_number": 6906, "pr_title": "refactor(currency_conversion): re frame the currency_conversion crate to make api calls on background thread", "merged_at": "2025-01-28T18:59:14Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"core_business": ["crates/router/src/core/currency.rs"], "utils": ["crates/router/src/utils/currency.rs"], "tests": ["loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/env_specific.toml", "config/development.toml", "config/docker_compose.toml", "crates/router/src/configs/settings.rs"], "other": ["crates/analytics/docs/README.md"]}, "change_types": {"functions_added": 11, "fields_added": 2, "imports_added": 3, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
ci: remove cargo check
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [x] CI/CD
## Description
<!-- Describe your changes in detail -->
this pr cleans up the ci-pr check. ci hack consumes a lot of time to execute hogging up runners. ci check should be more than enough.
also, this pr removes the commented out code since its been the same since like last 2+ years.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
this is being done as a part of ci optimization to reduce time consumption and usage of runners
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
ci in this pr should not run `just ci_hack`
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Configuration Files**
- `.github/workflows/CI-pr.yml`
**Code Patterns Applied:**
- Extend existing types with new fields (2 changes)
|
{"pr_number": 9819, "pr_title": "ci: remove cargo check", "merged_at": "2025-10-15T16:19:48Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"config": [".github/workflows/CI-pr.yml"]}, "change_types": {"fields_added": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
fix(payment_link): sanitize embedded payment link data
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
This PR addresses below issues specifically for payment links
- improper use of innerHTML for API inputs - for rendering transaction details
- improper use of receiving event (isFormReadyForSubmission) from HS SDK
Overall, this PR sanitizes API text based inputs which are rendered in the payment link UI using URI encoding before rendering the payment link HTML response. The URI encoded data is decoded in JS runtime (browser) and consumed whenever required.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
Tested locally
<details>
<summary>1. Create payment links and process redirection based txns (3DS)</summary>
cURL
curl --location --request POST 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_ML2p8kRGcMvi4oQ3cPnIfz5R2rO31efjWKXzgMnbRCnj5pUpjiki8K2HONlmMAb4' \
--data-raw '{"authentication_type":"three_ds","customer_id":"cus_9SCrW9x19m2WbGYHprJS","profile_id":"pro_jZ4ix0hYxn8qi2NSSYih","amount":100,"currency":"EUR","payment_link":true,"setup_future_usage":"off_session","capture_method":"automatic","billing":{"address":{"line1":"1467","line2":"Harrison Street","line3":"Harrison Street","city":"San Fransico","state":"CA","zip":"94122","country":"NL","first_name":"John","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"return_url":"https://example.com","payment_link_config":{"theme":"#003264","skip_status_screen":true,"transaction_details":[{"key":"a","value":"<script href=\"https://www.somesite.com\"></script>","ui_configuration":{"is_key_bold":true,"is_value_bold":true}}],"background_image":{"url":"https://img.freepik.com/free-photo/abstract-blue-geometric-shapes-background_24972-1841.jpg","position":"bottom","size":"cover"}}}'
Response
{"payment_id":"pay_DrqIRGsc6hs4BP3GVe56","merchant_id":"merchant_1743758708","status":"requires_payment_method","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":100,"amount_received":null,"connector":null,"client_secret":"pay_DrqIRGsc6hs4BP3GVe56_secret_5g2zaDCBZlK5ebBSQnF7","created":"2025-04-07T10:11:02.890Z","currency":"EUR","customer_id":"cus_9SCrW9x19m2WbGYHprJS","customer":{"id":"cus_9SCrW9x19m2WbGYHprJS","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":"off_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":null,"payment_method_data":null,"payment_token":null,"shipping":null,"billing":{"address":{"city":"San Fransico","country":"NL","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":"CA","first_name":"John","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.com/","authentication_type":"three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"cus_9SCrW9x19m2WbGYHprJS","created_at":1744020662,"expires":1744024262,"secret":"epk_e9bec308a59f4550adf8dd6b7b57506f"},"manual_retry_allowed":null,"connector_transaction_id":null,"frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":null,"payment_link":{"link":"http://localhost:8080/payment_link/merchant_1743758708/pay_DrqIRGsc6hs4BP3GVe56?locale=en","secure_link":"http://localhost:8080/payment_link/s/merchant_1743758708/pay_DrqIRGsc6hs4BP3GVe56?locale=en","payment_link_id":"plink_qOUNfvUvtkTK7K8sXBoU"},"profile_id":"pro_jZ4ix0hYxn8qi2NSSYih","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":null,"incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-04-07T10:26:02.875Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-04-07T10:11:02.944Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":null,"issuer_error_code":null,"issuer_error_message":null}
Verify below things
1. Redirection works as expected
2. Payment journey is as expected
</details>
<details>
<summary>2. Create payment links and process redirection based txns (3DS)</summary>
cURL
curl --location --request POST 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_ML2p8kRGcMvi4oQ3cPnIfz5R2rO31efjWKXzgMnbRCnj5pUpjiki8K2HONlmMAb4' \
--data-raw '{"authentication_type":"three_ds","customer_id":"cus_9SCrW9x19m2WbGYHprJS","profile_id":"pro_jZ4ix0hYxn8qi2NSSYih","amount":100,"currency":"EUR","payment_link":true,"setup_future_usage":"off_session","capture_method":"automatic","billing":{"address":{"line1":"1467","line2":"Harrison Street","line3":"Harrison Street","city":"San Fransico","state":"CA","zip":"94122","country":"NL","first_name":"John","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"return_url":"https://example.com","payment_link_config":{"theme":"#003264","skip_status_screen":true,"transaction_details":[{"key":"a","value":"<script href=\"https://www.somesite.com\"></script>","ui_configuration":{"is_key_bold":true,"is_value_bold":true}}],"background_image":{"url":"https://img.freepik.com/free-photo/abstract-blue-geometric-shapes-background_24972-1841.jpg","position":"bottom","size":"cover"}}}'
Response
{"payment_id":"pay_Gw2avLXsTOJUSvESS1ig","merchant_id":"merchant_1743758708","status":"requires_payment_method","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":100,"amount_received":null,"connector":null,"client_secret":"pay_Gw2avLXsTOJUSvESS1ig_secret_XthFTGPAmHOvIG4wf0lf","created":"2025-04-07T10:12:36.809Z","currency":"EUR","customer_id":"cus_9SCrW9x19m2WbGYHprJS","customer":{"id":"cus_9SCrW9x19m2WbGYHprJS","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":"off_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":null,"payment_method_data":null,"payment_token":null,"shipping":null,"billing":{"address":{"city":"San Fransico","country":"NL","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":"CA","first_name":"John","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.com/","authentication_type":"three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"cus_9SCrW9x19m2WbGYHprJS","created_at":1744020756,"expires":1744024356,"secret":"epk_4baa462e06a34161875cda39626e0612"},"manual_retry_allowed":null,"connector_transaction_id":null,"frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":null,"payment_link":{"link":"http://localhost:8080/payment_link/merchant_1743758708/pay_Gw2avLXsTOJUSvESS1ig?locale=en","secure_link":"http://localhost:8080/payment_link/s/merchant_1743758708/pay_Gw2avLXsTOJUSvESS1ig?locale=en","payment_link_id":"plink_kN6v8N8kffrl3cdX3sf7"},"profile_id":"pro_jZ4ix0hYxn8qi2NSSYih","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":null,"incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-04-07T10:27:36.806Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-04-07T10:12:36.831Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":null,"issuer_error_code":null,"issuer_error_message":null}
Verify below things
1. Payment journey is as expected
</details>
<details>
<summary>3. Give improper data for the text fields to be rendered in transaction_details</summary>
cURL
curl --location --request POST 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_ML2p8kRGcMvi4oQ3cPnIfz5R2rO31efjWKXzgMnbRCnj5pUpjiki8K2HONlmMAb4' \
--data-raw '{"authentication_type":"three_ds","customer_id":"cus_9SCrW9x19m2WbGYHprJS","profile_id":"pro_jZ4ix0hYxn8qi2NSSYih","amount":100,"currency":"EUR","payment_link":true,"setup_future_usage":"off_session","capture_method":"automatic","billing":{"address":{"line1":"1467","line2":"Harrison Street","line3":"Harrison Street","city":"San Fransico","state":"CA","zip":"94122","country":"NL","first_name":"John","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"return_url":"https://example.com","payment_link_config":{"theme":"#003264","skip_status_screen":true,"transaction_details":[{"key":"a","value":"<script href=\"https://www.somesite.com\"></script>","ui_configuration":{"is_key_bold":true,"is_value_bold":true}}],"background_image":{"url":"https://img.freepik.com/free-photo/abstract-blue-geometric-shapes-background_24972-1841.jpg","position":"bottom","size":"cover"}}}'
Response
{"payment_id":"pay_U31G1jOtO9PLlEAhaCnh","merchant_id":"merchant_1743758708","status":"requires_payment_method","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":100,"amount_received":null,"connector":null,"client_secret":"pay_U31G1jOtO9PLlEAhaCnh_secret_pdVAtxEgm8M2EXyvQekZ","created":"2025-04-07T10:13:54.256Z","currency":"EUR","customer_id":"cus_9SCrW9x19m2WbGYHprJS","customer":{"id":"cus_9SCrW9x19m2WbGYHprJS","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":"off_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":null,"payment_method_data":null,"payment_token":null,"shipping":null,"billing":{"address":{"city":"San Fransico","country":"NL","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":"CA","first_name":"John","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"},"email":"[email protected]"},"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.com/","authentication_type":"three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"cus_9SCrW9x19m2WbGYHprJS","created_at":1744020834,"expires":1744024434,"secret":"epk_4e5e8c040ef24d22841731b62003d0cb"},"manual_retry_allowed":null,"connector_transaction_id":null,"frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":null,"payment_link":{"link":"http://localhost:8080/payment_link/merchant_1743758708/pay_U31G1jOtO9PLlEAhaCnh?locale=en","secure_link":"http://localhost:8080/payment_link/s/merchant_1743758708/pay_U31G1jOtO9PLlEAhaCnh?locale=en","payment_link_id":"plink_PH1XXvtv2yl3N9Kh9It8"},"profile_id":"pro_jZ4ix0hYxn8qi2NSSYih","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":null,"incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-04-07T10:28:54.250Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-04-07T10:13:54.276Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":null,"issuer_error_code":null,"issuer_error_message":null}
Verify below things
1. Giving any malformed script or any other tags in `transaction_details` renders it as a text
<img width="658" alt="Screenshot 2025-04-07 at 3 44 37 PM" src="https://github.com/user-attachments/assets/973c69d4-c429-45af-9d06-9559faffca26" />
</details>
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/api.rs`
**2. Core Business Logic**
- `crates/router/src/core/payment_link.rs`
- `crates/router/src/core/payment_link/payment_link_initiate/payment_link.js`
- `crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js`
- ... and 4 more files
**3. Configuration Files**
- `crates/router/src/configs/settings.rs`
**4. Other**
- `crates/router/src/services/api.rs`
**Code Patterns Applied:**
- Implement new functions (3 changes)
- Extend existing types with new fields (6 changes)
- Add conditional logic for feature flags or filtering (9 changes)
**Detailed Identifier Changes:**
Commit 0f43aa43:
Files to modify:
**crates/hyperswitch_domain_models/src/api.rs**
Modify existing code
**crates/router/src/configs/settings.rs**
Add:
- function: private::default
- impl: impl Default for PaymentLink
**crates/router/src/core/payment_link.rs**
Modify existing code
**crates/router/src/core/payment_methods.rs**
Modify existing code
**crates/router/src/core/payout_link.rs**
Modify existing code
**crates/router/src/services/api.rs**
Modify existing code
|
{"pr_number": 7736, "pr_title": "fix(payment_link): sanitize embedded payment link data", "merged_at": "2025-05-29T08:22:03Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/api.rs"], "core_business": ["crates/router/src/core/payment_link.rs", "crates/router/src/core/payment_link/payment_link_initiate/payment_link.js", "crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js", "crates/router/src/core/payment_link/payment_link_initiate/secure_payment_link_initiator.js", "crates/router/src/core/payment_link/payment_link_status/status.js", "crates/router/src/core/payment_methods.rs", "crates/router/src/core/payout_link.rs"], "config": ["crates/router/src/configs/settings.rs"], "other": ["crates/router/src/services/api.rs"]}, "change_types": {"functions_added": 3, "fields_added": 6, "conditionals_added": 9}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(router): Add support for confirm-intent external vault proxy flow
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Add support for confirm-intent proxy flow which accepts Card payment method data with card number vault token instead of raw card number.
new route - `http://localhost:8080/v2/payments/{{payment_id}}/confirm-intent/external-vault-proxy`
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
1 - Configure connectors that are supported in UCS as well
2 - Create Payment Intent
3 - Confirm payment intent - new route is introduced
```
curl --location 'http://localhost:8080/v2/payments/12345_pay_0198b2f8b2097bb1b89ed926ed595948/confirm-intent/external-vault-proxy' \
--header 'x-client-secret: cs_0198b2f8b22477219adfddbc357c5735' \
--header 'x-profile-id: pro_TAeRj5f26C6FgRecUj1U' \
--header 'Authorization: api-key=api key' \
--header 'Content-Type: application/json' \
--data '{
"payment_method_data": {
"vault_data_card": {
"card_holder_name": "John Doe",
"card_cvc": "737",
"card_number": "tok_sandbox_ZgPN54WU8y8tDjc6qfEsH", //token reference to the card number stored in external vault
"card_exp_month": "12",
"card_exp_year": "30"
}
},
"payment_method_type": "card",
"payment_method_subtype": "credit",
"customer_acceptance": {
"acceptance_type": "online",
"accepted_at": "2025-05-10T10:11:12Z",
"online": null
}
}'
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/payment_method_data.rs`
- `crates/hyperswitch_domain_models/src/payments.rs`
- `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs`
- ... and 6 more files
**3. Core Business Logic**
- `crates/router/src/core/payments.rs`
- `crates/router/src/core/payments/flows.rs`
- `crates/router/src/core/payments/flows/authorize_flow.rs`
- ... and 9 more files
**4. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs`
- `crates/hyperswitch_connectors/src/default_implementations.rs`
- `crates/hyperswitch_connectors/src/default_implementations_v2.rs`
- ... and 1 more files
**5. Type Definitions**
- `crates/router/src/types.rs`
- `crates/router/src/types/api/payments.rs`
**6. Configuration Files**
- `crates/external_services/Cargo.toml`
- `crates/router/Cargo.toml`
**7. Other**
- `Cargo.lock`
- `crates/hyperswitch_interfaces/src/api/payments.rs`
- `crates/hyperswitch_interfaces/src/api/payments_v2.rs`
- ... and 4 more files
**Code Patterns Applied:**
- Define new data structures (8 changes)
- Implement new functions (57 changes)
- Extend existing types with new fields (568 changes)
- Add conditional logic for feature flags or filtering (3 changes)
- Modify database queries (1 changes)
**Detailed Identifier Changes:**
Commit 7f648379:
Files to modify:
**crates/api_models/src/payments.rs**
Add:
- struct: pub::ProxyPaymentMethodDataRequest
- struct: pub::ProxyCardData
- struct: pub::ExternalVaultProxyPaymentsRequest
- enum: pub::ProxyPaymentMethodData
**crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations.rs**
Add:
- impl: impl ExternalVaultProxyPaymentsCreateV1 for connectors::DummyConnector<T>
- impl: impl ConnectorIntegration<ExternalVaultProxy, ExternalVaultProxyPaymentsData, PaymentsResponseData> for connectors::DummyConnector<T>
**crates/hyperswitch_connectors/src/default_implementations_v2.rs**
Modify existing code
**crates/hyperswitch_connectors/src/utils.rs**
Add:
- function: private::get_split_payment_data
- impl: impl SplitPaymentData for ExternalVaultProxyPaymentsData
**crates/hyperswitch_domain_models/src/payment_method_data.rs**
Add:
- function: private::from
- function: private::from
- struct: pub::ExternalVaultCard
- enum: pub::ExternalVaultPaymentMethodData
- impl: impl From<api_models::payments::ProxyPaymentMethodData> for ExternalVaultPaymentMethodData
- impl: impl From<api_models::payments::ProxyCardData> for ExternalVaultCard
**crates/hyperswitch_domain_models/src/payments.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payments/payment_attempt.rs**
Add:
- function: pub::external_vault_proxy_create_domain_model
**crates/hyperswitch_domain_models/src/router_data.rs**
Add:
- function: private::get_payment_intent_update
- function: private::get_payment_attempt_update
- function: private::get_attempt_status_for_db_update
- function: private::get_amount_capturable
- function: private::get_captured_amount
- impl: impl TrackerPostUpdateObjects<
router_flow_types::ExternalVaultProxy,
router_request_types::ExternalVaultProxyPaymentsData,
payments::PaymentConfirmData<router_flow_types::ExternalVaultProxy>,
> for RouterData<
router_flow_types::ExternalVaultProxy,
router_request_types::ExternalVaultProxyPaymentsData,
router_response_types::PaymentsResponseData,
>
**crates/hyperswitch_domain_models/src/router_data_v2.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs**
Add:
- struct: pub::ExternalVaultProxyFlowData
**crates/hyperswitch_domain_models/src/router_flow_types/payments.rs**
Add:
- struct: pub::ExternalVaultProxy
**crates/hyperswitch_domain_models/src/router_request_types.rs**
Add:
- function: private::try_from
- function: private::try_from
- function: private::try_from
- struct: pub::ExternalVaultProxyPaymentsData
- impl: impl TryFrom<
&RouterData<
flows::ExternalVaultProxy,
ExternalVaultProxyPaymentsData,
response_types::PaymentsResponseData,
>,
> for ConnectorCustomerData
- impl: impl TryFrom<ExternalVaultProxyPaymentsData> for PaymentMethodTokenizationData
- impl: impl TryFrom<ExternalVaultProxyPaymentsData> for CreateOrderRequestData
**crates/hyperswitch_domain_models/src/types.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/api/payments.rs**
Add:
- trait: private::ExternalVaultProxyPaymentsCreateV1
**crates/hyperswitch_interfaces/src/api/payments_v2.rs**
Add:
- trait: pub::ExternalVaultProxyPaymentsCreate
**crates/hyperswitch_interfaces/src/conversion_impls.rs**
Add:
- function: private::from_old_router_data
- function: private::to_old_router_data
- impl: impl RouterDataConversion<T, Req, Resp> for ExternalVaultProxyFlowData
**crates/router/src/core/payments.rs**
Add:
- function: pub::external_vault_proxy_for_payments_operation_core
- function: pub::external_vault_proxy_for_payments_core
- function: pub::call_unified_connector_service_for_external_proxy
- function: pub::call_connector_service_for_external_vault_proxy
**crates/router/src/core/payments/flows.rs**
Add:
- mod: pub::external_proxy_flow
**crates/router/src/core/payments/flows/authorize_flow.rs**
Modify existing code
**crates/router/src/core/payments/flows/external_proxy_flow.rs**
Add:
- function: private::construct_router_data
- function: private::decide_flows
- function: private::add_access_token
- function: private::add_session_token
- function: private::add_payment_method_token
- function: private::preprocessing_steps
- function: private::postprocessing_steps
- function: private::create_connector_customer
- function: private::build_flow_specific_connector_request
- function: private::create_order_at_connector
- function: private::update_router_data_with_create_order_response
- function: private::call_unified_connector_service
- impl: impl ConstructFlowSpecificData<
api::ExternalVaultProxy,
types::ExternalVaultProxyPaymentsData,
types::PaymentsResponseData,
> for PaymentConfirmData<api::ExternalVaultProxy>
- impl: impl Feature<api::ExternalVaultProxy, types::ExternalVaultProxyPaymentsData> for types::ExternalVaultProxyPaymentsRouterData
**crates/router/src/core/payments/operations.rs**
Add:
- mod: pub::external_vault_proxy_payment_intent
**crates/router/src/core/payments/operations/external_vault_proxy_payment_intent.rs**
Add:
- function: private::validate_status_for_operation
- function: private::to_validate_request
- function: private::to_get_tracker
- function: private::to_domain
- function: private::to_update_tracker
- function: private::to_validate_request
- function: private::to_get_tracker
- function: private::to_domain
- function: private::to_update_tracker
- function: private::validate_request
- function: private::get_trackers
- function: private::get_customer_details
- function: private::make_pm_data
- function: private::populate_payment_data
- function: private::perform_routing
- function: private::update_trackers
- function: private::update_tracker
- struct: pub::ExternalVaultProxyPaymentIntent
- impl: impl ValidateStatusForOperation for ExternalVaultProxyPaymentIntent
- impl: impl Operation<F, ExternalVaultProxyPaymentsRequest> for &ExternalVaultProxyPaymentIntent
- impl: impl Operation<F, ExternalVaultProxyPaymentsRequest> for ExternalVaultProxyPaymentIntent
- impl: impl ValidateRequest<F, ExternalVaultProxyPaymentsRequest, PaymentConfirmData<F>> for ExternalVaultProxyPaymentIntent
- impl: impl GetTracker<F, PaymentConfirmData<F>, ExternalVaultProxyPaymentsRequest> for ExternalVaultProxyPaymentIntent
- impl: impl Domain<F, ExternalVaultProxyPaymentsRequest, PaymentConfirmData<F>> for ExternalVaultProxyPaymentIntent
- impl: impl UpdateTracker<F, PaymentConfirmData<F>, ExternalVaultProxyPaymentsRequest> for ExternalVaultProxyPaymentIntent
- impl: impl PostUpdateTracker<F, PaymentConfirmData<F>, types::PaymentsAuthorizeData> for ExternalVaultProxyPaymentIntent
**crates/router/src/core/payments/operations/payment_confirm_intent.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_response.rs**
Add:
- function: private::to_post_update_tracker
- function: private::to_post_update_tracker
- function: private::update_tracker
- impl: impl Operation<
hyperswitch_domain_models::router_flow_types::ExternalVaultProxy,
hyperswitch_domain_models::router_request_types::ExternalVaultProxyPaymentsData,
> for PaymentResponse
- impl: impl Operation<
hyperswitch_domain_models::router_flow_types::ExternalVaultProxy,
hyperswitch_domain_models::router_request_types::ExternalVaultProxyPaymentsData,
> for &PaymentResponse
- impl: impl PostUpdateTracker<
hyperswitch_domain_models::router_flow_types::ExternalVaultProxy,
PaymentConfirmData<hyperswitch_domain_models::router_flow_types::ExternalVaultProxy>,
hyperswitch_domain_models::router_request_types::ExternalVaultProxyPaymentsData,
> for PaymentResponse
**crates/router/src/core/payments/operations/proxy_payments_intent.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Add:
- function: pub::construct_external_vault_proxy_router_data_v2
- function: pub::construct_external_vault_proxy_payment_router_data
**crates/router/src/core/unified_connector_service.rs**
Add:
- function: pub::build_unified_connector_service_payment_method_for_external_proxy
**crates/router/src/core/unified_connector_service/transformers.rs**
Modify existing code
**crates/router/src/routes/app.rs**
Modify existing code
**crates/router/src/routes/payments.rs**
Add:
- function: pub::confirm_intent_with_external_vault_proxy
**crates/router/src/services/api.rs**
Add:
- impl: impl Authenticate for api_models::payments::ExternalVaultProxyPaymentsRequest
**crates/router/src/types.rs**
Add:
- function: private::foreign_from
- function: private::set_session_token
- impl: impl ForeignFrom<&ExternalVaultProxyPaymentsRouterData> for AuthorizeSessionTokenData
- impl: impl Tokenizable for ExternalVaultProxyPaymentsData
**crates/router/src/types/api/payments.rs**
Modify existing code
|
{"pr_number": 8923, "pr_title": "feat(router): Add support for confirm-intent external vault proxy flow", "merged_at": "2025-08-18T11:23:48Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "domain": ["crates/hyperswitch_domain_models/src/payment_method_data.rs", "crates/hyperswitch_domain_models/src/payments.rs", "crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "crates/hyperswitch_domain_models/src/router_data.rs", "crates/hyperswitch_domain_models/src/router_data_v2.rs", "crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs", "crates/hyperswitch_domain_models/src/router_flow_types/payments.rs", "crates/hyperswitch_domain_models/src/router_request_types.rs", "crates/hyperswitch_domain_models/src/types.rs"], "core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/flows.rs", "crates/router/src/core/payments/flows/authorize_flow.rs", "crates/router/src/core/payments/flows/external_proxy_flow.rs", "crates/router/src/core/payments/operations.rs", "crates/router/src/core/payments/operations/external_vault_proxy_payment_intent.rs", "crates/router/src/core/payments/operations/payment_confirm_intent.rs", "crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/operations/proxy_payments_intent.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/unified_connector_service.rs", "crates/router/src/core/unified_connector_service/transformers.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/hyperswitch_connectors/src/utils.rs"], "types": ["crates/router/src/types.rs", "crates/router/src/types/api/payments.rs"], "config": ["crates/external_services/Cargo.toml", "crates/router/Cargo.toml"], "other": ["Cargo.lock", "crates/hyperswitch_interfaces/src/api/payments.rs", "crates/hyperswitch_interfaces/src/api/payments_v2.rs", "crates/hyperswitch_interfaces/src/conversion_impls.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/payments.rs", "crates/router/src/services/api.rs"]}, "change_types": {"structs_added": 8, "functions_added": 57, "enums_added": 2, "fields_added": 568, "imports_added": 27, "conditionals_added": 3, "database_queries": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(users): refactor `ProdIntent` to support product-type context and merchant-scope
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
This PR introduces support for associating ProdIntent with specific product_types and transitions the feature from being user-scoped to merchant-scoped, enabling more flexible usage across different products.
## Changes Introduced
### 1. New V2 Routes for Dashboard Metadata
- Added v2 routes to support `ProdIntent` creation and retrieval with respect to `product_type`.
### 2. Product-Type Context for ProdIntent
- While inserting the `ProdIntent` into the `dashboard_metadata` table (for both **v1** and **v2** schemas), the `product_type` is now included in the metadata.
### 3. Merchant-Scoped ProdIntent
- **Before:** `ProdIntent` was **user-scoped**, allowing a single request per user.
- **Now:** It is **merchant-scoped**, allowing a user to raise separate `ProdIntent` requests for different merchant accounts for each product by the same user.
### 4. Enhanced Email Body
- The email body sent for `ProdIntent` now includes the `product_type` context, helping understand for which product the prod intent was raised.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
Enable requesting for Production Access for every product type merchant account.
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Hit the curl:
- Dashboard Metadata - ProdIntent (POST):
```bash
curl --location 'http://localhost:8080/user/data' \
--header 'accept: */*' \
--header 'accept-language: en-US,en;q=0.9' \
--header 'api-key: hyperswitch' \
--header 'content-type: application/json' \
--header 'origin: https://app.hyperswitch.io' \
--header 'priority: u=1, i' \
--header 'referer: https://app.hyperswitch.io/dashboard/home' \
--header 'sec-ch-ua: "Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'sec-ch-ua-platform: "macOS"' \
--header 'sec-fetch-dest: empty' \
--header 'sec-fetch-mode: cors' \
--header 'sec-fetch-site: same-origin' \
--header 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' \
--header 'x-merchant-id: merchant_1715600622' \
--header 'x-profile-id: pro_CqAdpUQBUUam1n0g56mB' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiOWExMGExMTYtZDc1Ny00MjBlLTkzNWQtZWRlZmQ5ZmQ3NTFmIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQzMDUxMDM3Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc0MzIyMzg0Mywib3JnX2lkIjoib3JnX1h5ZmR4eUttS1RGTEtuNTJ1clBVIiwicHJvZmlsZV9pZCI6InByb190Y3NsZWJDNDhmN1pkNG9mVlRqWCIsInRlbmFudF9pZCI6InB1YmxpYyJ9.NuvkkzrYPcba0JKUUrlM39NfyD2rHZ_jHIkHgPyM39s' \
--header 'Cookie: login_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMzcwZWUwYWUtZDI0ZS00ODJhLTlmNDktZDYzYmZkNGE0ZjVhIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF9qdmMzb1dXRmxkb0xHNG1GbFc0UCIsInJvbGVfaWQiOiJvcmdfYWRtaW4iLCJleHAiOjE3NDMxMDQxMzcsIm9yZ19pZCI6Im9yZ19hU3NCOWozTWVJcWxVS0YwbDJxRCIsInByb2ZpbGVfaWQiOiJwcm9fcGdrWUkzcnl6TlU2NlBLa3A4ZjciLCJ0ZW5hbnRfaWQiOiJwdWJsaWMifQ.oRERTxTsgrZWNXwSJ5w8CvDHOW1qB2GV3wBQ5Mv-BC8' \
--data-raw '{
"ProdIntent": {
"poc_email": "[email protected]",
"is_completed": true,
"legal_business_name": "blueberry",
"business_location": "IN",
"business_website": "https://google.com",
"poc_name": "berry",
"comments": "tx123",
"product_type": "orchestration"
}
}'
```
Dashboard Metadata table should get inserted/updated with the record along with the product_type in the json body.
Sample entry to table:
<img width="1211" alt="image" src="https://github.com/user-attachments/assets/3312b990-6fcf-4a13-af95-cb63d4e5bb4c" />
Also, product_type should also be sent in the email body to the configured recepient email-id.

- Dashboard Metadata - ProdIntent (GET):
```bash
curl --location 'http://localhost:8080/user/data?keys=ProdIntent' \
--header 'X-Merchant-Id: ddcd_oBuAVsHl0XMLag9JsHCV' \
--header 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiM2RlMDFhYWYtOWVkMi00YTY5LTg3YWItNWU1YmI2ZWFiNGQ5IiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQyMjEyMzQxIiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc0Mjk4MDgyOCwib3JnX2lkIjoib3JnX3pMQmRNTnpLaDZrNmhiT2tockdJIiwicHJvZmlsZV9pZCI6InByb19LWnhHZ21rUHFkMldQdXBFa2psWCIsInRlbmFudF9pZCI6InB1YmxpYyJ9.aD185AZEOcIjHnLnZZ9GJ2ujSHIdRPbPtrYhzNo0V4M' \
--header 'sec-ch-ua-platform: "macOS"' \
--header 'Referer: https://integ.hyperswitch.io/dashboard/v2/recon' \
--header 'sec-ch-ua: "Not(A:Brand";v="99", "Google Chrome";v="133", "Chromium";v="133"' \
--header 'X-Profile-Id: pro_UaxaxwTw4A0a9D0QNBrf' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'api-key: hyperswitch' \
--header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36' \
--header 'Content-Type: application/json'
```
Expected Output:
```json
[
{
"ProdIntent": {
"legal_business_name": "blueberry",
"business_label": null,
"business_location": "IN",
"display_name": null,
"poc_email": "[email protected]",
"business_type": null,
"business_identifier": null,
"business_website": "https://google.com",
"poc_name": "berry",
"poc_contact": null,
"comments": "tx123",
"is_completed": true,
"product_type": "orchestration"
}
}
]
```
Similarly v2 routes:
`http://localhost:8080/v2/user/data` (POST)
`http://localhost:8080/v2/user/data?keys=ProdIntent` (GET)
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/user/dashboard_metadata.rs`
**2. Core Business Logic**
- `crates/router/src/core/user.rs`
- `crates/router/src/core/user/dashboard_metadata.rs`
**3. Type Definitions**
- `crates/router/src/services/email/types.rs`
- `crates/router/src/types/domain/user.rs`
**4. Utils**
- `crates/router/src/utils/user/dashboard_metadata.rs`
**5. Other**
- `crates/common_enums/src/enums/accounts.rs`
- `crates/router/src/routes/app.rs`
- `crates/router/src/routes/user.rs`
- ... and 1 more files
**Code Patterns Applied:**
- Extend existing types with new fields (9 changes)
**Detailed Identifier Changes:**
Commit bbd21022:
Files to modify:
**crates/api_models/src/user/dashboard_metadata.rs**
Modify existing code
**crates/common_enums/src/enums/accounts.rs**
Modify existing code
**crates/router/src/core/user.rs**
Modify existing code
**crates/router/src/core/user/dashboard_metadata.rs**
Modify existing code
**crates/router/src/routes/app.rs**
Modify existing code
**crates/router/src/routes/user.rs**
Modify existing code
**crates/router/src/services/email/types.rs**
Modify existing code
**crates/router/src/types/domain/user.rs**
Modify existing code
**crates/router/src/utils/user/dashboard_metadata.rs**
Modify existing code
|
{"pr_number": 7638, "pr_title": "feat(users): refactor `ProdIntent` to support product-type context and merchant-scope", "merged_at": "2025-04-10T10:14:36Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["merchant", "user", "token"]}, "hierarchy": {"api_models": ["crates/api_models/src/user/dashboard_metadata.rs"], "core_business": ["crates/router/src/core/user.rs", "crates/router/src/core/user/dashboard_metadata.rs"], "types": ["crates/router/src/services/email/types.rs", "crates/router/src/types/domain/user.rs"], "utils": ["crates/router/src/utils/user/dashboard_metadata.rs"], "other": ["crates/common_enums/src/enums/accounts.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/user.rs", "crates/router/src/services/email/assets/bizemailprod.html"]}, "change_types": {"fields_added": 9, "imports_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
refactor(connector): [Fiuu] enable refund ORF feature [RedSys] fix the request structure
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
Hotfix for https://github.com/juspay/hyperswitch/pull/8079
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
This change fixes the issues for Fiuu and RedSys integrations. Fiuu for refunds flow, and RedSys for 3ds card transactions.
## How did you test it?
Can only be tested in production.
<img width="856" alt="Screenshot 2025-05-20 at 9 17 33 PM" src="https://github.com/user-attachments/assets/5487a615-16b5-4e2f-9226-daabc25d2c1a" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs`
- `crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (2 changes)
**Detailed Identifier Changes:**
Commit 4363f69a:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs**
Modify existing code
|
{"pr_number": 8087, "pr_title": "refactor(connector): [Fiuu] enable refund ORF feature [RedSys] fix the request structure", "merged_at": "2025-05-20T15:56:12Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "refund", "card"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs", "crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs"]}, "change_types": {"fields_added": 2, "imports_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
refactor(connector): implement amount converter framework for coinbase, dummyconnector and gocardless
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
the existing amount conversion framework for certain connector is outdated. we need to migrate those connector to using the latest and greatest amount converter framework.
base - float/string major unit
minor - minor unit / string minor unit
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
get_currency_unit is outdated. use convert_amount instead.
closes https://github.com/juspay/hyperswitch/issues/8877
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
<details>
<summary>Coinbase</summary>
```curl
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_hMtOlbVAaUeuXK1vptc7ar0MtC0oVwmF1KsT7KLVw8ZGqS4AgYUzje2K3c5UUm6Y' \
--data-raw '{
"amount": 650,
"currency": "USD",
"confirm": true,
"capture_method": "automatic",
"capture_on": "2022-09-10T10:11:12Z",
"amount_to_capture": 650,
"customer_id": "StripeCustomer",
"email": "[email protected]",
"name": "John Doe",
"phone": "999999999",
"phone_country_code": "+1",
"description": "Its my first payment request",
"authentication_type": "no_three_ds",
"return_url": "https://duck.com",
"payment_method": "crypto",
"payment_method_type": "crypto_currency",
"payment_method_data": {
"crypto": {}
},
"connector_metadata": {
"noon": {
"order_category": "applepay"
}
},
"browser_info": {
"user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/70.0.3538.110 Safari\/537.36",
"accept_header": "text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/webp,image\/apng,*\/*;q=0.8",
"language": "nl-NL",
"color_depth": 24,
"screen_height": 723,
"screen_width": 1536,
"time_zone": 0,
"java_enabled": true,
"java_script_enabled": true,
"ip_address": "128.0.0.1"
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
},
"shipping": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
},
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
},
"routing": {
"type": "single",
"data": "cybersource"
}
}'
```
```json
{
"payment_id": "pay_CLNI5uKf7oPwBpouxOW7",
"merchant_id": "postman_merchant_GHAction_da839d55-615f-45ca-8173-8b2c1ee2450d",
"status": "requires_customer_action",
"amount": 650,
"net_amount": 650,
"shipping_cost": null,
"amount_capturable": 650,
"amount_received": null,
"connector": "coinbase",
"client_secret": "pay_CLNI5uKf7oPwBpouxOW7_secret_SVuY4GDzZnKanqhta9WT",
"created": "2025-08-13T08:47:10.408Z",
"currency": "USD",
"customer_id": "StripeCustomer",
"customer": {
"id": "StripeCustomer",
"name": "John Doe",
"email": "[email protected]",
"phone": "999999999",
"phone_country_code": "+1"
},
"description": "Its my first payment request",
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": null,
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": "crypto",
"payment_method_data": {
"crypto": {
"pay_currency": null,
"network": null
},
"billing": null
},
"payment_token": null,
"shipping": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "joseph",
"last_name": "Doe",
"origin_zip": null
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": null
},
"billing": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "joseph",
"last_name": "Doe",
"origin_zip": null
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": null
},
"order_details": null,
"email": "[email protected]",
"name": "John Doe",
"phone": "999999999",
"return_url": "https://duck.com/",
"authentication_type": "no_three_ds",
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"next_action": {
"type": "redirect_to_url",
"redirect_to_url": "http://localhost:8080/payments/redirect/pay_CLNI5uKf7oPwBpouxOW7/postman_merchant_GHAction_da839d55-615f-45ca-8173-8b2c1ee2450d/pay_CLNI5uKf7oPwBpouxOW7_1"
},
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "crypto_currency",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "StripeCustomer",
"created_at": 1755074830,
"expires": 1755078430,
"secret": "epk_ec8855ba7f224bbf9d0dde760cfe8dcf"
},
"manual_retry_allowed": null,
"connector_transaction_id": "9db49127-2475-492f-9350-27922af302a5",
"frm_message": null,
"metadata": {
"udf1": "value1",
"login_date": "2019-09-10T10:11:12Z",
"new_customer": "true"
},
"connector_metadata": {
"apple_pay": null,
"airwallex": null,
"noon": {
"order_category": "applepay"
},
"braintree": null,
"adyen": null
},
"feature_metadata": null,
"reference_id": "9db49127-2475-492f-9350-27922af302a5",
"payment_link": null,
"profile_id": "pro_nrrYrNEsGYdk0dX9vNRw",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_KOTaF0wTjrtYec6h5jzN",
"incremental_authorization_allowed": null,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-08-13T09:02:10.408Z",
"fingerprint": null,
"browser_info": {
"language": "nl-NL",
"time_zone": 0,
"ip_address": "128.0.0.1",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",
"color_depth": 24,
"java_enabled": true,
"screen_width": 1536,
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"screen_height": 723,
"java_script_enabled": true
},
"payment_channel": null,
"payment_method_id": null,
"network_transaction_id": null,
"payment_method_status": null,
"updated": "2025-08-13T08:47:11.188Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": null,
"capture_before": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null,
"card_discovery": null,
"force_3ds_challenge": false,
"force_3ds_challenge_trigger": false,
"issuer_error_code": null,
"issuer_error_message": null,
"is_iframe_redirection_enabled": null,
"whole_connector_response": null,
"enable_partial_authorization": null
}
```
<img width="1445" height="77" alt="image" src="https://github.com/user-attachments/assets/2ea46794-c5bf-4437-ae33-dee4ba0ff01a" />
<img width="337" height="318" alt="image" src="https://github.com/user-attachments/assets/2b036896-4714-4196-9d29-30cb79724962" />
</details>
<details>
<summary>DummyConnector (PhonyPay)</summary>
```curl
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Accept-Language: ja' \
--header 'api-key: dev_9qZpeVSzCHfs9FxgFv8RqIZbFSGMDNLC72XjbxMUdm0xjjgEpn1dHzQo0mZJNpJ7' \
--data-raw '{
"amount": 40,
"currency": "USD",
"confirm": true,
"capture_method": "automatic",
"capture_on": "2022-09-10T10:11:12Z",
"amount_to_capture": 40,
"customer_id": "customer",
"email": "[email protected]",
"phone": "999999999",
"phone_country_code": "+1",
"description": "Its my first payment request",
"authentication_type": "no_three_ds",
"return_url": "https://duck.com",
"payment_method": "card",
"payment_method_data": {
"card": {
"card_number": "4111111111111111",
"card_exp_month": "10",
"card_exp_year": "25",
"card_holder_name": "Joseph Doe",
"card_cvc": "123"
}
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US"
,
"first_name": "PiX"
,
"last_name": "THE"
}
},
"shipping": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "PiX"
}
},
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
},
"browser_info": {
"color_depth": 24,
"java_enabled": true,
"java_script_enabled": true,
"language": "en-GB",
"screen_height": 720,
"screen_width": 1280,
"time_zone": -330,
"ip_address": "208.127.127.193",
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0"
}
}'
```
```json
{
"payment_id": "pay_7ccFxKOV1Fw3Y1rS0Wg7",
"merchant_id": "postman_merchant_GHAction_1754996489",
"status": "succeeded",
"amount": 40,
"net_amount": 40,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": 40,
"connector": "phonypay",
"client_secret": "pay_7ccFxKOV1Fw3Y1rS0Wg7_secret_Mdgrth3Tau4x7PN2GBT5",
"created": "2025-08-12T11:03:14.100Z",
"currency": "USD",
"customer_id": "customer",
"customer": {
"id": "customer",
"name": null,
"email": "[email protected]",
"phone": "999999999",
"phone_country_code": "+1"
},
"description": "Its my first payment request",
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": null,
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": "card",
"payment_method_data": {
"card": {
"last4": "1111",
"card_type": "CREDIT",
"card_network": "Visa",
"card_issuer": "JP Morgan",
"card_issuing_country": "INDIA",
"card_isin": "411111",
"card_extended_bin": null,
"card_exp_month": "10",
"card_exp_year": "25",
"card_holder_name": "Joseph Doe",
"payment_checks": null,
"authentication_data": null
},
"billing": null
},
"payment_token": null,
"shipping": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "PiX",
"last_name": null,
"origin_zip": null
},
"phone": null,
"email": null
},
"billing": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "PiX",
"last_name": "THE",
"origin_zip": null
},
"phone": null,
"email": null
},
"order_details": null,
"email": "[email protected]",
"name": null,
"phone": "999999999",
"return_url": "https://duck.com/",
"authentication_type": "no_three_ds",
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "customer",
"created_at": 1754996594,
"expires": 1755000194,
"secret": "epk_5c5d052c027543fda6f7857d0b58eabd"
},
"manual_retry_allowed": false,
"connector_transaction_id": "pay_mhSQIXOGVoHUAFByseO9",
"frm_message": null,
"metadata": {
"udf1": "value1",
"login_date": "2019-09-10T10:11:12Z",
"new_customer": "true"
},
"connector_metadata": null,
"feature_metadata": null,
"reference_id": null,
"payment_link": null,
"profile_id": "pro_cO45PqZAnqU4jvOHxs3b",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_082Yi6aV6Rk3lH0XatmN",
"incremental_authorization_allowed": null,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-08-12T11:18:14.100Z",
"fingerprint": null,
"browser_info": {
"language": "en-GB",
"time_zone": -330,
"ip_address": "208.127.127.193",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0",
"color_depth": 24,
"java_enabled": true,
"screen_width": 1280,
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"screen_height": 720,
"java_script_enabled": true
},
"payment_channel": null,
"payment_method_id": null,
"network_transaction_id": null,
"payment_method_status": null,
"updated": "2025-08-12T11:03:15.151Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": null,
"capture_before": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null,
"card_discovery": "manual",
"force_3ds_challenge": false,
"force_3ds_challenge_trigger": false,
"issuer_error_code": null,
"issuer_error_message": null,
"is_iframe_redirection_enabled": null,
"whole_connector_response": null,
"enable_partial_authorization": null
}
```
<img width="1844" height="101" alt="image" src="https://github.com/user-attachments/assets/5115346d-cd10-4ff0-a6e7-94b13a42d527" />
</details>
<details>
<summary>GoCardless</summary>
Intent:
```curl
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_dwPkDRuiWvG66PXcZwy1vPnhMOY70udlkMbtumYOTDoXlePbdfGoB92sTsMsoDwl' \
--data-raw '{
"amount": 0,
"order_details": null,
"currency": "USD",
"confirm": false,
"capture_method": "automatic",
"authentication_type": "three_ds",
"customer_id": "arjun",
"email": "[email protected]",
"description": "Hello this is description",
"shipping": {
"address": {
"state": "zsaasdas",
"city": "Banglore",
"country": "US",
"line1": "sdsdfsdf",
"line2": "hsgdbhd",
"line3": "alsksoe",
"zip": "571201",
"first_name": "joseph",
"last_name": "doe"
},
"phone": {
"number": "123456789",
"country_code": "+1"
}
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
},
"metadata": {},
"setup_future_usage": "off_session",
"mandate_data": {
"mandate_type": {
"multi_use": {
"amount": 1000,
"currency": "USD"
}
}
}
}'
```
```json
{
"payment_id": "pay_iScvaZkPjMotWE72H3J2",
"merchant_id": "postman_merchant_GHAction_966c0a0d-45fc-4342-a264-f5592644bb1d",
"status": "requires_payment_method",
"amount": 0,
"net_amount": 0,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": null,
"connector": null,
"client_secret": "pay_iScvaZkPjMotWE72H3J2_secret_HdEL8dGgoTm7Tqs8uz7P",
"created": "2025-08-12T10:33:27.540Z",
"currency": "USD",
"customer_id": "arjun",
"customer": {
"id": "arjun",
"name": null,
"email": "[email protected]",
"phone": null,
"phone_country_code": null
},
"description": "Hello this is description",
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": {
"update_mandate_id": null,
"customer_acceptance": null,
"mandate_type": {
"multi_use": {
"amount": 1000,
"currency": "USD",
"start_date": null,
"end_date": null,
"metadata": null
}
}
},
"setup_future_usage": "off_session",
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": null,
"payment_method_data": null,
"payment_token": null,
"shipping": {
"address": {
"city": "Banglore",
"country": "US",
"line1": "sdsdfsdf",
"line2": "hsgdbhd",
"line3": "alsksoe",
"zip": "571201",
"state": "zsaasdas",
"first_name": "joseph",
"last_name": "doe",
"origin_zip": null
},
"phone": {
"number": "123456789",
"country_code": "+1"
},
"email": null
},
"billing": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "joseph",
"last_name": "Doe",
"origin_zip": null
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": null
},
"order_details": null,
"email": "[email protected]",
"name": null,
"phone": null,
"return_url": null,
"authentication_type": "three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": null,
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "arjun",
"created_at": 1754994807,
"expires": 1754998407,
"secret": "epk_4fa6ae0c645f4c689976ad5a72083808"
},
"manual_retry_allowed": null,
"connector_transaction_id": null,
"frm_message": null,
"metadata": {},
"connector_metadata": null,
"feature_metadata": null,
"reference_id": null,
"payment_link": null,
"profile_id": "pro_OnhGgkfSOBKAWXPCyIPD",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": null,
"incremental_authorization_allowed": null,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-08-12T10:48:27.540Z",
"fingerprint": null,
"browser_info": null,
"payment_channel": null,
"payment_method_id": null,
"network_transaction_id": null,
"payment_method_status": null,
"updated": "2025-08-12T10:33:27.568Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": null,
"capture_before": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null,
"card_discovery": null,
"force_3ds_challenge": false,
"force_3ds_challenge_trigger": false,
"issuer_error_code": null,
"issuer_error_message": null,
"is_iframe_redirection_enabled": null,
"whole_connector_response": null,
"enable_partial_authorization": null
}
```
Confirm:
```curl
curl --location 'http://localhost:8080/payments/pay_lDdcUJa6ZfVPjQdnBZAk/confirm' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: pk_dev_5ef09ec288ad4c27a5217e34cdb722a1' \
--data-raw '{
"client_secret": "pay_lDdcUJa6ZfVPjQdnBZAk_secret_YPsvvAFQutsJaGVFefvg",
"return_url": "https://duck.com/completion",
"payment_method": "bank_debit",
"setup_future_usage": "off_session",
"payment_method_type": "ach",
"payment_type": "setup_mandate",
"payment_method_data": {
"bank_debit": {
"ach_bank_debit": {
"billing_details": {
"name": "Shivam S",
"email": "[email protected]",
"address": {
"line1": "123",
"line2": "123",
"city": "vjnsf",
"state": "Alaska",
"zip": "10001",
"country": "US"
}
},
"account_number": "27155003358",
"bank_account_holder_name": "tests tests",
"routing_number": "026073150",
"bank_type": "checking"
}
}
},
"mandate_data": {
"customer_acceptance": {
"acceptance_type": "online",
"accepted_at": "2023-12-07T12:16:08.622Z",
"online": {
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
}
}
},
"browser_info": {
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36",
"accept_header": "text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,*\\/*;q=0.8",
"language": "en-GB",
"color_depth": 24,
"screen_height": 1440,
"screen_width": 2560,
"time_zone": -330,
"java_enabled": true,
"java_script_enabled": true,
"ip_address": "0.0.0.0"
}
}'
```
```json
{
"payment_id": "pay_iScvaZkPjMotWE72H3J2",
"merchant_id": "postman_merchant_GHAction_966c0a0d-45fc-4342-a264-f5592644bb1d",
"status": "succeeded",
"amount": 0,
"net_amount": 0,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": null,
"connector": "gocardless",
"client_secret": "pay_iScvaZkPjMotWE72H3J2_secret_HdEL8dGgoTm7Tqs8uz7P",
"created": "2025-08-12T10:33:27.540Z",
"currency": "USD",
"customer_id": "arjun",
"customer": {
"id": "arjun",
"name": null,
"email": "[email protected]",
"phone": null,
"phone_country_code": null
},
"description": "Hello this is description",
"refunds": null,
"disputes": null,
"mandate_id": "man_TxfmzwCyOWnkaOJLD8uZ",
"mandate_data": {
"update_mandate_id": null,
"customer_acceptance": {
"acceptance_type": "online",
"accepted_at": "2023-12-07T12:16:08.622Z",
"online": {
"ip_address": "::1",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
}
},
"mandate_type": {
"multi_use": {
"amount": 1000,
"currency": "USD",
"start_date": null,
"end_date": null,
"metadata": null
}
}
},
"setup_future_usage": "off_session",
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": "bank_debit",
"payment_method_data": {
"bank_debit": {
"ach": {
"account_number": "*******3358",
"routing_number": "026***150",
"card_holder_name": null,
"bank_account_holder_name": "tests tests",
"bank_name": null,
"bank_type": "checking",
"bank_holder_type": null
}
},
"billing": null
},
"payment_token": null,
"shipping": {
"address": {
"city": "Banglore",
"country": "US",
"line1": "sdsdfsdf",
"line2": "hsgdbhd",
"line3": "alsksoe",
"zip": "571201",
"state": "zsaasdas",
"first_name": "joseph",
"last_name": "doe",
"origin_zip": null
},
"phone": {
"number": "123456789",
"country_code": "+1"
},
"email": null
},
"billing": {
"address": {
"city": "San Fransico",
"country": "US",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "California",
"first_name": "joseph",
"last_name": "Doe",
"origin_zip": null
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": null
},
"order_details": null,
"email": "[email protected]",
"name": null,
"phone": null,
"return_url": "https://duck.com/completion",
"authentication_type": "three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "ach",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": null,
"manual_retry_allowed": false,
"connector_transaction_id": null,
"frm_message": null,
"metadata": {},
"connector_metadata": null,
"feature_metadata": null,
"reference_id": null,
"payment_link": null,
"profile_id": "pro_OnhGgkfSOBKAWXPCyIPD",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_MiDByOyz51vpnOHVrF1G",
"incremental_authorization_allowed": null,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-08-12T10:48:27.540Z",
"fingerprint": null,
"browser_info": {
"os_type": null,
"language": "en-GB",
"time_zone": -330,
"ip_address": "0.0.0.0",
"os_version": null,
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36",
"color_depth": 24,
"device_model": null,
"java_enabled": true,
"screen_width": 2560,
"accept_header": "text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/webp,image\/apng,*\/*;q=0.8",
"screen_height": 1440,
"accept_language": "en",
"java_script_enabled": true
},
"payment_channel": null,
"payment_method_id": "pm_4QOeVz4wx5SO9j68yN9D",
"network_transaction_id": null,
"payment_method_status": "active",
"updated": "2025-08-12T10:33:32.724Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": null,
"capture_before": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": "MD01K2EXF9H2PY3AA028PJX23E0T",
"card_discovery": null,
"force_3ds_challenge": false,
"force_3ds_challenge_trigger": false,
"issuer_error_code": null,
"issuer_error_message": null,
"is_iframe_redirection_enabled": null,
"whole_connector_response": null,
"enable_partial_authorization": null
}
```
Recurring:
```curl
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_dwPkDRuiWvG66PXcZwy1vPnhMOY70udlkMbtumYOTDoXlePbdfGoB92sTsMsoDwl' \
--data-raw '{
"amount": 499,
"currency": "USD",
"confirm": true,
"capture_method": "automatic",
"customer_id": "arjun",
"email": "[email protected]",
"off_session": true,
"recurring_details": {
"type": "mandate_id",
"data": "man_TxfmzwCyOWnkaOJLD8uZ"
},
"authentication_type": "no_three_ds"
}'
```
```json
{
"payment_id": "pay_lDdcUJa6ZfVPjQdnBZAk",
"merchant_id": "postman_merchant_GHAction_966c0a0d-45fc-4342-a264-f5592644bb1d",
"status": "processing",
"amount": 499,
"net_amount": 499,
"shipping_cost": null,
"amount_capturable": 499,
"amount_received": null,
"connector": "gocardless",
"client_secret": "pay_lDdcUJa6ZfVPjQdnBZAk_secret_YPsvvAFQutsJaGVFefvg",
"created": "2025-08-12T10:34:49.349Z",
"currency": "USD",
"customer_id": "arjun",
"customer": {
"id": "arjun",
"name": null,
"email": "[email protected]",
"phone": null,
"phone_country_code": null
},
"description": null,
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": null,
"off_session": true,
"capture_on": null,
"capture_method": "automatic",
"payment_method": "bank_debit",
"payment_method_data": null,
"payment_token": null,
"shipping": null,
"billing": null,
"order_details": null,
"email": "[email protected]",
"name": null,
"phone": null,
"return_url": null,
"authentication_type": "no_three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "ach",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "arjun",
"created_at": 1754994889,
"expires": 1754998489,
"secret": "epk_ea150cc2e9e741038c9146944d272dba"
},
"manual_retry_allowed": false,
"connector_transaction_id": "PM01K2EXHMYHWGSTD2TRAK0CYFCE",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": null,
"reference_id": null,
"payment_link": null,
"profile_id": "pro_OnhGgkfSOBKAWXPCyIPD",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_MiDByOyz51vpnOHVrF1G",
"incremental_authorization_allowed": null,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-08-12T10:49:49.349Z",
"fingerprint": null,
"browser_info": null,
"payment_channel": null,
"payment_method_id": "pm_4QOeVz4wx5SO9j68yN9D",
"network_transaction_id": null,
"payment_method_status": "active",
"updated": "2025-08-12T10:34:49.953Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": null,
"capture_before": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": "MD01K2EXF9H2PY3AA028PJX23E0T",
"card_discovery": null,
"force_3ds_challenge": false,
"force_3ds_challenge_trigger": false,
"issuer_error_code": null,
"issuer_error_message": null,
"is_iframe_redirection_enabled": null,
"whole_connector_response": null,
"enable_partial_authorization": null
}
```
<img width="1845" height="74" alt="image" src="https://github.com/user-attachments/assets/57e87a52-0f14-468d-9511-05a8b0426458" />
</details>
<details>
<summary>Refunds should work too!</summary>
```curl
curl --location 'http://localhost:8080/refunds' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_9qZpeVSzCHfs9FxgFv8RqIZbFSGMDNLC72XjbxMUdm0xjjgEpn1dHzQo0mZJNpJ7' \
--data '{
"payment_id": "pay_7ccFxKOV1Fw3Y1rS0Wg7",
"amount": 35,
"reason": "Customer returned product",
"refund_type": "instant",
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
}
}'
```
```json
{
"refund_id": "ref_ns4BEGOnyDUr6KSapqgg",
"payment_id": "pay_7ccFxKOV1Fw3Y1rS0Wg7",
"amount": 35,
"currency": "USD",
"status": "succeeded",
"reason": "Customer returned product",
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
},
"error_message": null,
"error_code": null,
"unified_code": null,
"unified_message": null,
"created_at": "2025-08-12T11:04:21.944Z",
"updated_at": "2025-08-12T11:04:22.993Z",
"connector": "phonypay",
"profile_id": "pro_cO45PqZAnqU4jvOHxs3b",
"merchant_connector_id": "mca_082Yi6aV6Rk3lH0XatmN",
"split_refunds": null,
"issuer_error_code": null,
"issuer_error_message": null
}
```
<img width="895" height="106" alt="image" src="https://github.com/user-attachments/assets/6dee14f5-cca1-446a-a038-4ddf5a6862c4" />
</details>
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `just clippy && just clippy_v2`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/coinbase.rs`
- `crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs`
- `crates/hyperswitch_connectors/src/connectors/dummyconnector.rs`
- ... and 7 more files
**Code Patterns Applied:**
- Define new data structures (6 changes)
- Implement new functions (10 changes)
- Extend existing types with new fields (44 changes)
**Detailed Identifier Changes:**
Commit 79dcec46:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/coinbase.rs**
Remove:
- struct: pub::Coinbase
Add:
- function: pub::new
- struct: pub::Coinbase
- impl: impl Coinbase
**crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs**
Add:
- function: private::from
- struct: pub::CoinbaseRouterData
- struct: pub::Redirects
- impl: impl From<(StringMajorUnit, T)> for CoinbaseRouterData<T>
**crates/hyperswitch_connectors/src/connectors/dummyconnector.rs**
Remove:
- struct: pub::DummyConnector
Add:
- function: pub::new
- struct: pub::DummyConnector
- impl: impl DummyConnector<T>
**crates/hyperswitch_connectors/src/connectors/dummyconnector/transformers.rs**
Add:
- function: private::from
- struct: pub::DummyConnectorRouterData
- impl: impl From<(MinorUnit, T)> for DummyConnectorRouterData<T>
**crates/hyperswitch_connectors/src/connectors/gocardless.rs**
Remove:
- struct: pub::Gocardless
Add:
- function: pub::new
- struct: pub::Gocardless
- impl: impl Gocardless
**crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs**
Modify existing code
**crates/router/src/types/api/connector_mapping.rs**
Modify existing code
**crates/router/tests/connectors/coinbase.rs**
Modify existing code
**crates/router/tests/connectors/dummyconnector.rs**
Modify existing code
**crates/router/tests/connectors/gocardless.rs**
Modify existing code
|
{"pr_number": 8915, "pr_title": "refactor(connector): implement amount converter framework for coinbase, dummyconnector and gocardless", "merged_at": "2025-08-18T14:45:50Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/coinbase.rs", "crates/hyperswitch_connectors/src/connectors/coinbase/transformers.rs", "crates/hyperswitch_connectors/src/connectors/dummyconnector.rs", "crates/hyperswitch_connectors/src/connectors/dummyconnector/transformers.rs", "crates/hyperswitch_connectors/src/connectors/gocardless.rs", "crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs", "crates/router/src/types/api/connector_mapping.rs", "crates/router/tests/connectors/coinbase.rs", "crates/router/tests/connectors/dummyconnector.rs", "crates/router/tests/connectors/gocardless.rs"]}, "change_types": {"structs_added": 6, "functions_added": 10, "fields_added": 44, "imports_added": 5}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
fix(connectors): [Nexixpay] handle optional fields in nexixpay payments requests.
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Optional billing details should be used for non-mandatory billing fields. Billing address is optional field for making requests to nexixpay. Either billing.first_name or billing.second_name should be present mandatorily.
Includes ENV changes related to support of currency and country for nexixpay connector.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
- Curl to test the optional billing address.
```
curl --location 'localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_RFY4WCFOFu2eEmA13QTQGzHyyjIvaTgdTqKsp2yBy4ofwyZ7fdyIMIJKHcHzGbC5' \
--data-raw '{
"amount": 3545,
"currency": "EUR",
"amount_to_capture": 3545,
"confirm": true,
"profile_id": "pro_56hlX3G8qT0Fz4qlqO2J",
"capture_method": "automatic",
"capture_on": "2022-09-10T10:11:12Z",
"authentication_type": "three_ds",
"setup_future_usage": "off_session",
"customer": {
"id": "customer123",
"name": "John Doe",
"email": "[email protected]",
"phone": "9999999999",
"phone_country_code": "+1"
},
"customer_id": "customer123",
"phone_country_code": "+1",
"description": "Its my first payment request",
"return_url": "https://google.com",
"payment_method": "card",
"payment_method_type": "credit",
"payment_method_data": {
"card": {
"card_number": "4349940199004549",
"card_exp_month": "12",
"card_exp_year": "30",
"card_cvc": "396"
}
},
"billing": {
"address": {
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": "[email protected]"
},
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"order_details": [
{
"product_name": "Apple iphone 15",
"quantity": 1,
"amount": 3545,
"account_name": "transaction_processing"
}
],
"browser_info": {
"user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/70.0.3538.110 Safari\/537.36",
"accept_header": "text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/webp,image\/apng,*\/*;q=0.8",
"language": "nl-NL",
"color_depth": 24,
"screen_height": 723,
"screen_width": 1536,
"time_zone": 0,
"java_enabled": true,
"java_script_enabled": true,
"ip_address": "128.0.0.1"
},
"customer_acceptance": {
"acceptance_type": "online",
"accepted_at":"1963-05-03T04:07:52.723Z",
"online": {
"ip_address":"127.0.0.1",
"user_agent": "amet irure esse"
}
},
"connector":["nexixpay"],
"connector_metadata": {
"noon": {
"order_category": "pay"
}
},
"payment_link": false,
"payment_link_config": {
"theme": "",
"logo": "",
"seller_name": "",
"sdk_layout": "",
"display_sdk_only": false,
"enabled_saved_payment_method": false
},
"payment_type": "normal",
"request_incremental_authorization": false,
"merchant_order_reference_id": "test_ord",
"session_expiry": 900
}'
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs`
- `crates/router/src/configs/defaults/payment_connector_required_fields.rs`
**2. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**3. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
**Code Patterns Applied:**
- Extend existing types with new fields (16 changes)
**Detailed Identifier Changes:**
Commit fc596eaf:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs**
Modify existing code
**crates/router/src/configs/defaults/payment_connector_required_fields.rs**
Modify existing code
|
{"pr_number": 7465, "pr_title": "fix(connectors): [Nexixpay] handle optional fields in nexixpay payments requests.", "merged_at": "2025-03-17T09:43:04Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs", "crates/router/src/configs/defaults/payment_connector_required_fields.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {"fields_added": 16}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(connector): add template code for recurly
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
connector integration template code for recurly.
Issue: This PR closes the issue #7283
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
No testing required since its a template code
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments/connector_integration_v2_impls.rs`
- `crates/router/src/core/payments/flows.rs`
**2. External Connector Integration**
- `crates/common_enums/src/connector_enums.rs`
- `crates/hyperswitch_connectors/src/connectors.rs`
- `crates/hyperswitch_connectors/src/connectors/recurly.rs`
- ... and 9 more files
**3. Type Definitions**
- `crates/router/src/types/api.rs`
- `crates/router/src/types/transformers.rs`
**4. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**5. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 3 more files
**Code Patterns Applied:**
- Define new data structures (10 changes)
- Implement new functions (78 changes)
- Extend existing types with new fields (153 changes)
**Detailed Identifier Changes:**
Commit a1691d1b:
Files to modify:
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors.rs**
Add:
- mod: pub::recurly
**crates/hyperswitch_connectors/src/connectors/recurly.rs**
Add:
- function: pub::new
- function: private::build_headers
- function: private::id
- function: private::get_currency_unit
- function: private::common_get_content_type
- function: private::base_url
- function: private::get_auth_header
- function: private::build_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::get_request_body
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::get_request_body
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::get_request_body
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_headers
- function: private::get_content_type
- function: private::get_url
- function: private::build_request
- function: private::handle_response
- function: private::get_error_response
- function: private::get_webhook_object_reference_id
- function: private::get_webhook_event_type
- function: private::get_webhook_resource_object
- struct: pub::Recurly
- impl: impl Recurly
- impl: impl api::Payment for Recurly
- impl: impl api::PaymentSession for Recurly
- impl: impl api::ConnectorAccessToken for Recurly
- impl: impl api::MandateSetup for Recurly
- impl: impl api::PaymentAuthorize for Recurly
- impl: impl api::PaymentSync for Recurly
- impl: impl api::PaymentCapture for Recurly
- impl: impl api::PaymentVoid for Recurly
- impl: impl api::Refund for Recurly
- impl: impl api::RefundExecute for Recurly
- impl: impl api::RefundSync for Recurly
- impl: impl api::PaymentToken for Recurly
- impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Recurly
- impl: impl ConnectorCommonExt<Flow, Request, Response> for Recurly
- impl: impl ConnectorCommon for Recurly
- impl: impl ConnectorValidation for Recurly
- impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Recurly
- impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Recurly
- impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Recurly
- impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Recurly
- impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Recurly
- impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Recurly
- impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Recurly
- impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Recurly
- impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Recurly
- impl: impl webhooks::IncomingWebhook for Recurly
- impl: impl ConnectorSpecifications for Recurly
- mod: pub::transformers
**crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs**
Add:
- function: private::from
- function: private::try_from
- function: private::try_from
- function: private::from
- function: private::try_from
- function: private::try_from
- function: private::from
- function: private::try_from
- function: private::try_from
- struct: pub::RecurlyRouterData
- struct: pub::RecurlyPaymentsRequest
- struct: pub::RecurlyCard
- struct: pub::RecurlyAuthType
- struct: pub::RecurlyPaymentsResponse
- struct: pub::RecurlyRefundRequest
- struct: pub::RefundResponse
- struct: pub::RecurlyErrorResponse
- enum: pub::RecurlyPaymentStatus
- enum: pub::RefundStatus
- impl: impl From<(StringMinorUnit, T)> for RecurlyRouterData<T>
- impl: impl TryFrom<&RecurlyRouterData<&PaymentsAuthorizeRouterData>> for RecurlyPaymentsRequest
- impl: impl TryFrom<&ConnectorAuthType> for RecurlyAuthType
- impl: impl From<RecurlyPaymentStatus> for common_enums::AttemptStatus
- impl: impl TryFrom<ResponseRouterData<F, RecurlyPaymentsResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData>
- impl: impl TryFrom<&RecurlyRouterData<&RefundsRouterData<F>>> for RecurlyRefundRequest
- impl: impl From<RefundStatus> for enums::RefundStatus
- impl: impl TryFrom<RefundsResponseRouterData<Execute, RefundResponse>> for RefundsRouterData<Execute>
- impl: impl TryFrom<RefundsResponseRouterData<RSync, RefundResponse>> for RefundsRouterData<RSync>
**crates/hyperswitch_connectors/src/default_implementations.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations_v2.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/configs.rs**
Modify existing code
**crates/router/src/connector.rs**
Modify existing code
**crates/router/src/core/payments/connector_integration_v2_impls.rs**
Modify existing code
**crates/router/src/core/payments/flows.rs**
Modify existing code
**crates/router/src/types/api.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
**crates/router/tests/connectors/main.rs**
Add:
- mod: private::recurly
**crates/router/tests/connectors/recurly.rs**
Add:
- function: private::get_data
- function: private::get_auth_token
- function: private::get_name
- function: private::get_default_payment_info
- function: private::payment_method_details
- function: private::should_only_authorize_payment
- function: private::should_capture_authorized_payment
- function: private::should_partially_capture_authorized_payment
- function: private::should_sync_authorized_payment
- function: private::should_void_authorized_payment
- function: private::should_refund_manually_captured_payment
- function: private::should_partially_refund_manually_captured_payment
- function: private::should_sync_manually_captured_refund
- function: private::should_make_payment
- function: private::should_sync_auto_captured_payment
- function: private::should_refund_auto_captured_payment
- function: private::should_partially_refund_succeeded_payment
- function: private::should_refund_succeeded_payment_multiple_times
- function: private::should_sync_refund
- function: private::should_fail_payment_for_incorrect_cvc
- function: private::should_fail_payment_for_invalid_exp_month
- function: private::should_fail_payment_for_incorrect_expiry_year
- function: private::should_fail_void_payment_for_auto_capture
- function: private::should_fail_capture_for_invalid_payment
- function: private::should_fail_for_refund_amount_higher_than_payment_amount
- struct: private::RecurlyTest
- impl: impl ConnectorActions for RecurlyTest
- impl: impl utils::Connector for RecurlyTest
**crates/test_utils/src/connector_auth.rs**
Modify existing code
|
{"pr_number": 7284, "pr_title": "feat(connector): add template code for recurly", "merged_at": "2025-03-05T10:40:40Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/connector_integration_v2_impls.rs", "crates/router/src/core/payments/flows.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/hyperswitch_connectors/src/connectors.rs", "crates/hyperswitch_connectors/src/connectors/recurly.rs", "crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/router/src/connector.rs", "crates/router/tests/connectors/main.rs", "crates/router/tests/connectors/recurly.rs", "crates/router/tests/connectors/sample_auth.toml", "crates/test_utils/src/connector_auth.rs", "scripts/add_connector.sh"], "types": ["crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml", "crates/hyperswitch_interfaces/src/configs.rs"]}, "change_types": {"structs_added": 10, "functions_added": 78, "enums_added": 2, "fields_added": 153, "imports_added": 20}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
chore: added explicit docker.io registry to all images in docker-compose.yml
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Added `docker.io` registry prefix to all images in the `docker-compose.yml` to avoid confusions when the host machine has a different default registry set.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
This pr fixes this issue https://github.com/juspay/hyperswitch/issues/9187#issuecomment-3374477052
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Ran `docker-compose up` for all services:
<img width="1235" height="466" alt="Screenshot 2025-10-09 at 6 09 01 PM" src="https://github.com/user-attachments/assets/62f03273-8e93-457e-b75a-286b2f4347f4" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Configuration Files**
- `docker-compose-development.yml`
- `docker-compose.yml`
**Code Patterns Applied:**
- Extend existing types with new fields (36 changes)
|
{"pr_number": 9771, "pr_title": "chore: added explicit docker.io registry to all images in docker-compose.yml", "merged_at": "2025-10-15T12:08:32Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"config": ["docker-compose-development.yml", "docker-compose.yml"]}, "change_types": {"fields_added": 36}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
fix(analytics): fix `authentication_type` and `card_last_4` fields serialization for payment_intent_filters
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
There is a serialization issue for `card_last_4` and `authentication_type` fields when filters are getting applied for `PaymentIntentFilters`.
`card_last_4` was being processed as `card_last4` .
`auth_type` is being used to add the filters and not serialized into `Authentication_type`.
Made the changes to properly serialize `card_last_4` and `authentication_type` filters for `PaymentIntentFilters` now.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
Fix the filters issue for some fields for Payment Intents.
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
`authentication_type`:
Hit the curl for any metric of payment_intents (sessionized metrics):
```bash
curl --location 'http://localhost:8080/analytics/v2/org/metrics/payments' \
--header 'Accept: */*' \
--header 'Accept-Language: en-US,en;q=0.9' \
--header 'Connection: keep-alive' \
--header 'Content-Type: application/json' \
--header 'Origin: http://localhost:9000' \
--header 'QueryType: SingleStatTimeseries' \
--header 'Referer: http://localhost:9000/' \
--header 'Sec-Fetch-Dest: empty' \
--header 'Sec-Fetch-Mode: cors' \
--header 'Sec-Fetch-Site: same-site' \
--header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36' \
--header 'api-key: dev_LZcIA7XeMpnK5satp4CDvjcnHCaeKTBcosyuBBJaknZu1odhFo96cwS0nSdfzuJF' \
--header 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTQ5ZTNkMmItMTY5Yi00NzUzLWJmNTQtZDcxMTM2YjRiN2JkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzI2MDQ2MzI4Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTczMjA4NzM4Miwib3JnX2lkIjoib3JnX1ZwU0hPanNZZkR2YWJWWUpnQ0FKIiwicHJvZmlsZV9pZCI6InByb192NXNGb0hlODBPZWlVbElvbm9jTSIsInRlbmFudF9pZCI6InB1YmxpYyJ9.3bV2aTF7uFAtELFBuKe-_hIZHY35Zv5ij51F-slCYIg' \
--header 'sec-ch-ua: "Chromium";v="128", "Not;A=Brand";v="24", "Google Chrome";v="128"' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'sec-ch-ua-platform: "macOS"' \
--data '[
{
"timeRange": {
"startTime": "2024-10-14T18:30:00Z",
"endTime": "2024-10-22T15:24:00Z"
},
"groupByNames": [
"currency"
],
"filters": {
"auth_type": [
"no_three_ds"
]
},
"timeSeries": {
"granularity": "G_ONEDAY"
},
"mode": "ORDER",
"source": "BATCH",
"metrics": [
"sessionized_payment_processed_amount"
]
}
]'
```
You can see the `authentication_type` filter that is getting applied in the query.

`card_last_4`:
Hit the curl for any metric of payment_intents (sessionized metrics):
```bash
curl --location 'http://localhost:8080/analytics/v2/org/metrics/payments' \
--header 'Accept: */*' \
--header 'Accept-Language: en-US,en;q=0.9' \
--header 'Connection: keep-alive' \
--header 'Content-Type: application/json' \
--header 'Origin: http://localhost:9000' \
--header 'QueryType: SingleStatTimeseries' \
--header 'Referer: http://localhost:9000/' \
--header 'Sec-Fetch-Dest: empty' \
--header 'Sec-Fetch-Mode: cors' \
--header 'Sec-Fetch-Site: same-site' \
--header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36' \
--header 'api-key: dev_LZcIA7XeMpnK5satp4CDvjcnHCaeKTBcosyuBBJaknZu1odhFo96cwS0nSdfzuJF' \
--header 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTQ5ZTNkMmItMTY5Yi00NzUzLWJmNTQtZDcxMTM2YjRiN2JkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzI2MDQ2MzI4Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTczMjA4NzM4Miwib3JnX2lkIjoib3JnX1ZwU0hPanNZZkR2YWJWWUpnQ0FKIiwicHJvZmlsZV9pZCI6InByb192NXNGb0hlODBPZWlVbElvbm9jTSIsInRlbmFudF9pZCI6InB1YmxpYyJ9.3bV2aTF7uFAtELFBuKe-_hIZHY35Zv5ij51F-slCYIg' \
--header 'sec-ch-ua: "Chromium";v="128", "Not;A=Brand";v="24", "Google Chrome";v="128"' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'sec-ch-ua-platform: "macOS"' \
--data '[
{
"timeRange": {
"startTime": "2024-10-14T18:30:00Z",
"endTime": "2024-10-22T15:24:00Z"
},
"groupByNames": [
"currency"
],
"filters": {
"card_last_4": [
"4242"
]
},
"timeSeries": {
"granularity": "G_ONEDAY"
},
"mode": "ORDER",
"source": "BATCH",
"metrics": [
"sessionized_payment_processed_amount"
]
}
]'
```
You can see the `card_last_4` filter that is getting applied in the query.

## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/analytics/payment_intents.rs`
**Detailed Identifier Changes:**
Commit 0302c303:
Files to modify:
**crates/api_models/src/analytics/payment_intents.rs**
Modify existing code
|
{"pr_number": 6595, "pr_title": "fix(analytics): fix `authentication_type` and `card_last_4` fields serialization for payment_intent_filters", "merged_at": "2024-11-19T20:39:12Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "order"]}, "hierarchy": {"api_models": ["crates/api_models/src/analytics/payment_intents.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(router): Add external vault support in v1 payments flow
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Add external vault support in v1 payments flow.
Currently we only save card in hs-card-vault
Added new support to save card in external vault based merchant-profile configuration.
Changes in code -
During First CIT (fresh card for a customer c1 - setup future usage - on_session with customer acceptance)
- based on profile level config, vault is decided, vault creds are fetched from MCA. payment method data is stored in respective vault.
During Repeat CIT (Saved card for a customer c1 - payment token for c1)
- based on pm entry - vault type, and vault mca id, if external, mca creds are fetched, if internal, default flow.
DB changes -
In business profile in api level & db level-
```
is_external_vault_enabled: Option<bool>, //Indicates if external vault is enabled or not.
external_vault_connector_details: Option<ExternalVaultConnectorDetails>,// holds the active External Vault Connector Details
```
In Payment method table in db level (diesel model) -
```
pub external_vault_source: Option<common_utils::id_type::MerchantConnectorAccountId>, //holds the mca of external vault with which payment method data has been stored
pub vault_type: Option<storage_enums::VaultType>, //enum variant whether it is ext vault or internal vault
```
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
- Create Vault Connector MCA (Eg - VGS)
```
curl --location 'http://localhost:8080/account/merchant_1758632854/connectors' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_jN7RVfxJgyz3GB7OASKFved09yY2lA17xEJSBbj47tBN03inP9rCADUooCF5Ozz6' \
--data '{
"connector_type": "vault_processor",
"connector_name": "vgs",
"connector_account_details": {
"auth_type": "SignatureKey",
"api_key": "api key",
"key1": "key 1",
"api_secret": "api_secret"
},
"test_mode": true,
"disabled": false,
"business_country": "US",
"business_label": "default",
"payment_methods_enabled": [
],
"metadata": {
"endpoint_prefix": "ghjg",
"google_pay": {
"allowed_payment_methods": [
{
"type": "CARD",
"parameters": {
"allowed_auth_methods": [
"PAN_ONLY",
"CRYPTOGRAM_3DS"
],
"allowed_card_networks": [
"AMEX",
"DISCOVER",
"INTERAC",
"JCB",
"MASTERCARD",
"VISA"
]
},
"tokenization_specification": {
"type": "PAYMENT_GATEWAY"
}
}
],
"merchant_info": {
"merchant_name": "Narayan Bhat"
}
}
},
"connector_webhook_details": {
"merchant_secret": "7091687210DF6DCA38B2E670B3D68EB53516A26CA85590E29024FFBD7CD23980"
},
"profile_id":"pro_KH7MujUjH2miLhfzGlAB"
}'
```
- Update Profile with below config to enable external vault
```
"is_external_vault_enabled": "enable",
"external_vault_connector_details": {
"vault_connector_id": "mca_lRJXlrSQ557zrIJUalxK"
}
```
- Create payment with customer acceptance, and setup_future_usage - on_session/off_session
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key:api key' \
--data-raw '
{
"amount": 1000,
"currency": "USD",
"confirm": true,
"capture_method": "automatic",
"capture_on": "2022-09-10T10:11:12Z",
"customer_id": "cu_1758488194",
"email": "[email protected]",
"name": "John Doe",
"phone": "999999999",
"phone_country_code": "+65",
"description": "Its my first payment request",
"authentication_type": "no_three_ds",
"return_url": "https://google.com",
"payment_method": "card",
"payment_method_type": "credit",
"payment_method_data": {
"card": {
"card_number": "card_number",
"card_exp_month": "03",
"card_exp_year": "2030",
"card_holder_name": "joseph Doe",
"card_cvc": "737"
}
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "PiX",
"last_name": "ss"
}
},
"shipping": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "John",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
},
"browser_info": {
"user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/70.0.3538.110 Safari\/537.36",
"accept_header": "text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/webp,image\/apng,*\/*;q=0.8",
"language": "nl-NL",
"color_depth": 24,
"screen_height": 723,
"screen_width": 1536,
"time_zone": 0,
"java_enabled": true,
"java_script_enabled": true,
"ip_address": "125.0.0.1"
},
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"metadata": {},
"order_details": [
{
"product_name": "Apple iphone 15",
"quantity": 1,
"amount": 0,
"account_name": "transaction_processing"
}
],
"profile_id": "pro_KH7MujUjH2miLhfzGlAB"
}'
```
- Payment method should be saved with
external_vault_source - mca_lRJXlrSQ557zrIJUalxK (VGS mca id)
vault_type - external
<img width="1536" height="587" alt="Screenshot 2025-09-22 at 2 35 04 AM" src="https://github.com/user-attachments/assets/a7837f92-fd4f-4ddb-a887-190f3f1b3bc3" />
- If VGS is not enabled, then
external_vault_source - <Empty>
vault_type - internal
<img width="1466" height="583" alt="Screenshot 2025-09-22 at 2 36 08 AM" src="https://github.com/user-attachments/assets/69b98983-1cae-478c-bc55-8fc1997e44ca" />
- make repeat CIT
Please note, test backward compatibility
how to -make a payment with existing customer's saved payment method
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/admin.rs`
- `crates/api_models/src/payment_methods.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/business_profile.rs`
- `crates/diesel_models/src/payment_method.rs`
- `crates/diesel_models/src/schema.rs`
- ... and 1 more files
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/business_profile.rs`
- `crates/hyperswitch_domain_models/src/merchant_connector_account.rs`
- `crates/hyperswitch_domain_models/src/payment_method_data.rs`
- ... and 1 more files
**4. Core Business Logic**
- `crates/payment_methods/src/core/migration/payment_methods.rs`
- `crates/router/src/core/admin.rs`
- `crates/router/src/core/errors/utils.rs`
- ... and 10 more files
**5. External Connector Integration**
- `crates/router/src/types/api/connector_mapping.rs`
**6. Type Definitions**
- `crates/router/src/types/api/admin.rs`
- `crates/router/src/types/domain.rs`
- `crates/router/src/types/payment_methods.rs`
**7. Other**
- `api-reference/v1/openapi_spec_v1.json`
- `crates/common_enums/src/enums.rs`
- `crates/openapi/src/openapi.rs`
- ... and 4 more files
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Implement new functions (22 changes)
- Extend existing types with new fields (259 changes)
- Add conditional logic for feature flags or filtering (4 changes)
**Detailed Identifier Changes:**
Commit e410af26:
Files to modify:
**crates/api_models/src/admin.rs**
Modify existing code
**crates/api_models/src/payment_methods.rs**
Add:
- function: private::from
- impl: impl From<CardDetail> for CardDetailFromLocker
**crates/common_enums/src/enums.rs**
Add:
- enum: pub::VaultType
- enum: pub::ExternalVaultEnabled
**crates/diesel_models/src/business_profile.rs**
Modify existing code
**crates/diesel_models/src/payment_method.rs**
Modify existing code
**crates/diesel_models/src/schema.rs**
Modify existing code
**crates/diesel_models/src/schema_v2.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/business_profile.rs**
Add:
- function: pub::is_external_vault_enabled
- function: private::try_from
- function: private::try_from
- function: private::from
- function: private::from
- enum: pub::ExternalVaultDetails
- impl: impl ExternalVaultDetails
- impl: impl TryFrom<(
Option<common_enums::ExternalVaultEnabled>,
Option<ExternalVaultConnectorDetails>,
)> for ExternalVaultDetails
- impl: impl TryFrom<(Option<bool>, Option<ExternalVaultConnectorDetails>)> for ExternalVaultDetails
- impl: impl From<ExternalVaultDetails> for (
Option<common_enums::ExternalVaultEnabled>,
Option<ExternalVaultConnectorDetails>,
)
**crates/hyperswitch_domain_models/src/merchant_connector_account.rs**
Add:
- function: pub::get_connector_name_as_string
- function: pub::get_connector_name
**crates/hyperswitch_domain_models/src/payment_method_data.rs**
Add:
- function: private::from
- impl: impl From<(
payment_methods::CardDetail,
Option<&CardToken>,
Option<payment_methods::CoBadgedCardData>,
)> for Card
**crates/hyperswitch_domain_models/src/payment_methods.rs**
Add:
- function: private::try_from
- function: private::from
- enum: pub::PaymentMethodVaultSourceDetails
- impl: impl TryFrom<(
Option<storage_enums::VaultType>,
Option<id_type::MerchantConnectorAccountId>,
)> for PaymentMethodVaultSourceDetails
- impl: impl From<PaymentMethodVaultSourceDetails> for (
Option<storage_enums::VaultType>,
Option<id_type::MerchantConnectorAccountId>,
)
**crates/openapi/src/openapi.rs**
Modify existing code
**crates/payment_methods/src/controller.rs**
Modify existing code
**crates/payment_methods/src/core/migration/payment_methods.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/core/errors/utils.rs**
Modify existing code
**crates/router/src/core/payment_methods.rs**
Modify existing code
**crates/router/src/core/payment_methods/cards.rs**
Modify existing code
**crates/router/src/core/payment_methods/tokenize/card_executor.rs**
Modify existing code
**crates/router/src/core/payment_methods/vault.rs**
Add:
- function: pub::retrieve_payment_method_from_vault_external_v1
- function: pub::get_vault_response_for_retrieve_payment_method_data_v1
**crates/router/src/core/payments/helpers.rs**
Add:
- function: pub::fetch_card_details_from_internal_locker
**crates/router/src/core/payments/tokenization.rs**
Add:
- function: private::save_in_locker
- function: pub::save_in_locker_internal
**crates/router/src/core/payments/vault_session.rs**
Modify existing code
**crates/router/src/core/payouts/helpers.rs**
Modify existing code
**crates/router/src/core/pm_auth.rs**
Modify existing code
**crates/router/src/core/utils.rs**
Modify existing code
**crates/router/src/db/events.rs**
Modify existing code
**crates/router/src/types/api/admin.rs**
Modify existing code
**crates/router/src/types/api/connector_mapping.rs**
Modify existing code
**crates/router/src/types/domain.rs**
Add:
- mod: private::business_profile
**crates/router/src/types/payment_methods.rs**
Modify existing code
Commit 1a24787b:
Files to modify:
**crates/diesel_models/src/schema_v2.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/business_profile.rs**
Modify existing code
**crates/router/src/types/api/admin.rs**
Modify existing code
|
{"pr_number": 9274, "pr_title": "feat(router): Add external vault support in v1 payments flow", "merged_at": "2025-09-23T07:20:31Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/admin.rs", "crates/api_models/src/payment_methods.rs"], "database": ["crates/diesel_models/src/business_profile.rs", "crates/diesel_models/src/payment_method.rs", "crates/diesel_models/src/schema.rs", "crates/diesel_models/src/schema_v2.rs"], "domain": ["crates/hyperswitch_domain_models/src/business_profile.rs", "crates/hyperswitch_domain_models/src/merchant_connector_account.rs", "crates/hyperswitch_domain_models/src/payment_method_data.rs", "crates/hyperswitch_domain_models/src/payment_methods.rs"], "core_business": ["crates/payment_methods/src/core/migration/payment_methods.rs", "crates/router/src/core/admin.rs", "crates/router/src/core/errors/utils.rs", "crates/router/src/core/payment_methods.rs", "crates/router/src/core/payment_methods/cards.rs", "crates/router/src/core/payment_methods/tokenize/card_executor.rs", "crates/router/src/core/payment_methods/vault.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/tokenization.rs", "crates/router/src/core/payments/vault_session.rs", "crates/router/src/core/payouts/helpers.rs", "crates/router/src/core/pm_auth.rs", "crates/router/src/core/utils.rs"], "connectors": ["crates/router/src/types/api/connector_mapping.rs"], "types": ["crates/router/src/types/api/admin.rs", "crates/router/src/types/domain.rs", "crates/router/src/types/payment_methods.rs"], "other": ["api-reference/v1/openapi_spec_v1.json", "crates/common_enums/src/enums.rs", "crates/openapi/src/openapi.rs", "crates/payment_methods/src/controller.rs", "crates/router/src/db/events.rs", "migrations/2025-09-20-190742_add_external_vault_source_in_payment_method_and_is_external_vault_enabled_in_profile/down.sql", "migrations/2025-09-20-190742_add_external_vault_source_in_payment_method_and_is_external_vault_enabled_in_profile/up.sql"]}, "change_types": {"structs_added": 1, "functions_added": 22, "enums_added": 4, "fields_added": 259, "imports_added": 10, "conditionals_added": 4}, "has_identifier_data": true, "commits_matched": 2, "match_method": "pr_number"}
|
fix(authorizedotnet): refund via ucs missing connector_metadata
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
- RELATED PR : https://github.com/juspay/hyperswitch/pull/9581
- Refunds via authorizedot net are getting into `pending` state where no connector call is made
- This happens when `connector_metadata` is empty in attempt table
- In usual cases `connector_metadata` is not empty but this happened via ucs.
### solution
- `connector_metadata` contains last4 digits which can be fetched form payment_method_data
## how did i test
- make payment from old code , delete connector metadata in attempt table and make refund
1. make payment
```json
{
"amount": 689,
"customer_id": "hello_world",
"currency": "USD",
"confirm": true,
"capture_method": "automatic",
"payment_method": "card",
"payment_method_type": "debit",
"authentication_type": "no_three_ds",
"setup_future_usage": "off_session",
"customer_acceptance": {
"acceptance_type": "online",
"accepted_at": "1963-05-03T04:07:52.723Z",
"online": {
"ip_address": "127.0.0.1",
"user_agent": "amet irure esse"
}
},
"email": "[email protected]",
"description": "hellow world",
"connector": [
"authorizedotnet"
],
"billing": {
"address": {
"zip": "560095",
"country": "US",
"first_name": "Sakil",
"last_name": "Mostak",
"line1": "Fasdf",
"line2": "Fasdf",
"city": "Fasdf"
}
},
"payment_method_data": {
"card": {
"card_number": "4111111111111111",
"card_exp_month": "12",
"card_exp_year": "2029",
"card_holder_name": "John Doe",
"card_cvc": "123",
"card_network": "Visa"
}
}
}
```
```json
{
"payment_id": "pay_n4mGvzhDDxV8ontN4pNa",
"merchant_id": "merchant_1759037295",
"status": "succeeded",
"amount": 689,
"net_amount": 689,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": 689,
"connector": "authorizedotnet",
"client_secret": "pay_n4mGvzhDDxV8ontN4pNa_secret_nJprHzvgyCnAQQxGeSD9",
"created": "2025-09-28T07:38:56.792Z",
"currency": "USD",
"customer_id": "hello_world",
"customer": {
"id": "hello_world",
"name": null,
"email": "[email protected]",
"phone": null,
"phone_country_code": null
},
"description": "hellow world",
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": "off_session",
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": "card",
"payment_method_data": {
"card": {
"last4": "1111",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "411111",
"card_extended_bin": null,
"card_exp_month": "12",
"card_exp_year": "2029",
"card_holder_name": "John Doe",
"payment_checks": {
"description": "The street address and postal code matched.",
"avs_result_code": "Y"
},
"authentication_data": null
},
"billing": null
},
"payment_token": null,
"shipping": null,
"billing": {
"address": {
"city": "Fasdf",
"country": "US",
"line1": "Fasdf",
"line2": "Fasdf",
"line3": null,
"zip": "560095",
"state": null,
"first_name": "Sakil",
"last_name": "Mostak",
"origin_zip": null
},
"phone": null,
"email": null
},
"order_details": null,
"email": "[email protected]",
"name": null,
"phone": null,
"return_url": null,
"authentication_type": "no_three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "debit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "hello_world",
"created_at": 1759045136,
"expires": 1759048736,
"secret": "epk_d109625edc44483a9a0d6e034153633f"
},
"manual_retry_allowed": null,
"connector_transaction_id": "120071750406",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": null,
"gateway_system": "direct"
},
"reference_id": "120071750406",
"payment_link": null,
"profile_id": "pro_KP1SMsZKdiOrioYnjKO2",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_Ym77o958MRzqZWCyOQXt",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-09-28T07:53:56.792Z",
"fingerprint": null,
"browser_info": null,
"payment_channel": null,
"payment_method_id": "pm_BS4qjY5VS1ARCBexzcfb",
"network_transaction_id": "ZKS4CMGOARXYQR4IVKIRAOE",
"payment_method_status": "active",
"updated": "2025-09-28T07:38:59.120Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": null,
"capture_before": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": "932841928-932130361",
"card_discovery": "manual",
"force_3ds_challenge": false,
"force_3ds_challenge_trigger": false,
"issuer_error_code": null,
"issuer_error_message": null,
"is_iframe_redirection_enabled": null,
"whole_connector_response": null,
"enable_partial_authorization": null,
"enable_overcapture": null,
"is_overcapture_enabled": null,
"network_details": null
}
```
Delete connector metadata
<img width="1233" height="503" alt="Screenshot 2025-09-28 at 1 12 00 PM" src="https://github.com/user-attachments/assets/6fd10bd3-87a1-4798-81f3-e3707ee61ccc" />
<img width="1136" height="944" alt="Screenshot 2025-09-28 at 1 12 22 PM" src="https://github.com/user-attachments/assets/84d13528-a37f-4f2e-ab74-79f70344d49d" />
- manual update refund status into failed
```sh
curl --location --request PUT 'localhost:8080/refunds/ref_Ut6eGBd4ZUKJXMhn3NZz/manual-update' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: test_admin' \
--data '{
"status": "failed",
"merchant_id": "merchant_1759037295"
}'
```
- retrigger refund with new code
```json
curl --location 'localhost:8080/refunds' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_IbxeUnL1qB3Fre0mdogERYiA4O4rQttdcxtzqzMjzWpVR6zafoOzCYvIdRz9X5bu' \
--data '{
"payment_id": "pay_n4mGvzhDDxV8ontN4pNa",
"amount":689,
"reason":"pause"
}'
```
### NOTE THAT in sbx we cannot make successful refund , its skipped in cypress too. Now the api call is goign
```json
{
"refund_id": "ref_KlllCvhIs4k7Twk6teXh",
"payment_id": "pay_n4mGvzhDDxV8ontN4pNa",
"amount": 689,
"currency": "USD",
"status": "failed",
"reason": "pause",
"metadata": null,
"error_message": "The referenced transaction does not meet the criteria for issuing a credit.",
"error_code": "54",
"unified_code": "UE_9000",
"unified_message": "Something went wrong",
"created_at": "2025-09-28T07:46:51.621Z",
"updated_at": "2025-09-28T07:46:53.144Z",
"connector": "authorizedotnet",
"profile_id": "pro_KP1SMsZKdiOrioYnjKO2",
"merchant_connector_id": "mca_Ym77o958MRzqZWCyOQXt",
"split_refunds": null,
"issuer_error_code": null,
"issuer_error_message": null
}
```
### Additional Changes
- [x] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs`
**Code Patterns Applied:**
- Implement new functions (2 changes)
- Extend existing types with new fields (5 changes)
**Detailed Identifier Changes:**
Commit b3ed9af4:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs**
Add:
- enum: private::PaymentDetailAccountNumber
|
{"pr_number": 9599, "pr_title": "fix(authorizedotnet): refund via ucs missing connector_metadata", "merged_at": "2025-09-30T06:37:14Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs"]}, "change_types": {"functions_added": 2, "enums_added": 1, "fields_added": 5, "imports_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
feat(connector): [Peach Payments] add network token support for connector
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
add network token support for peach payments connector
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
- Create MCA for peach payments
- Enable network tokenization for profile
```
curl --location 'http://localhost:8080/account/merchant_id/business_profile/prof_id' \
--header 'Content-Type: application/json' \
--header 'api-key: api key' \
--data '{
"profile_name": "US_default",
"is_network_tokenization_enabled": true
}'
```
- Create payment
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_CNdykrXQ50vzfqwZtbakrK0awo6TkkdQHDXv0QnpB8tA05z3sVIKLAEUGqIEXWE8' \
--data-raw '
{
"amount": 200,
"currency": "EUR",
"confirm": true,
"capture_method": "manual",
"capture_on": "2022-09-10T10:11:12Z",
"customer_id": "<customer_id>",
"email": "[email protected]",
"name": "John Doe",
"phone": "999999999",
"phone_country_code": "+65",
"description": "Its my first payment request",
"authentication_type": "no_three_ds",
"return_url": "https://google.com",
"payment_method": "card",
"payment_method_type": "credit",
"payment_method_data": {
"card": {
"card_number": "card_number",
"card_exp_month": "12",
"card_exp_year": "2026",
"card_holder_name": "joseph Doe",
"card_cvc": "123",
"card_network": "VISA"
}
},
"setup_future_usage": "on_session",
"customer_acceptance": {
"acceptance_type": "offline",
"accepted_at": "1963-05-03T04:07:52.723Z",
"online": {
"ip_address": "in sit",
"user_agent": "amet irure esse"
}
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "PiX",
"last_name": "ss"
}
},
"shipping": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US",
"first_name": "John",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
},
"browser_info": {
"user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/70.0.3538.110 Safari\/537.36",
"accept_header": "text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/webp,image\/apng,*\/*;q=0.8",
"language": "nl-NL",
"color_depth": 24,
"screen_height": 723,
"screen_width": 1536,
"time_zone": 0,
"java_enabled": true,
"java_script_enabled": true,
"ip_address": "125.0.0.1"
},
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"metadata": {},
"order_details": [
{
"product_name": "Apple iphone 15",
"quantity": 1,
"amount": 0,
"account_name": "transaction_processing"
}
],
"profile_id": "<profile_id>"
}'
```
- Do repeat CIT [Saved Card flow]
using saved card,
payment method data sent to connector in logs should be network token data.
ps. please search for raw_connector_request
create payment-
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_CNdykrXQ50vzfqwZtbakrK0awo6TkkdQHDXv0QnpB8tA05z3sVIKLAEUGqIEXWE8' \
--data '{
"amount": 200,
"currency": "EUR",
"capture_method": "manual",
"authentication_type": "no_three_ds",
"confirm": false,
"setup_future_usage": "on_session",
"customer_id": "cu_1760091918",
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "California",
"zip": "94122",
"country": "US"
}
},
"profile_id": "pro_55Ey3rupyS9BnqWKLkG3"
}'
```
confirm -
```
curl --location 'http://localhost:8080/payments/<payment_id>/confirm' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: api key' \
--data '
{
"payment_token": "payment_token",
"client_secret": "client_secret",
"browser_info": {
"user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/70.0.3538.110 Safari\/537.36",
"accept_header": "text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/webp,image\/apng,*\/*;q=0.8",
"language": "nl-NL",
"color_depth": 24,
"screen_height": 723,
"screen_width": 1536,
"time_zone": 0,
"java_enabled": true,
"java_script_enabled": true,
"ip_address": "125.0.0.1"
},
"payment_method": "card",
"payment_method_data":{
"card_token":{
"card_cvc": "737"
}
}
}'
```
<img width="1728" height="140" alt="Screenshot 2025-10-13 at 3 58 40 PM" src="https://github.com/user-attachments/assets/e75f7977-77cd-4022-b99f-e13ec478913a" />
<img width="952" height="576" alt="Screenshot 2025-10-13 at 4 42 39 PM" src="https://github.com/user-attachments/assets/64623865-5fbb-4152-8e48-68909809f439" />
<img width="876" height="739" alt="Screenshot 2025-10-13 at 4 42 58 PM" src="https://github.com/user-attachments/assets/69fb00b2-4183-4187-b5f5-b2b3d7b8f366" />
three test cases are failing due to incorrect assertion. this is currently on main.
How to replicate this -
in create call, confirm is set to falsem capture method to automatic, and payment method data is not sent. in create response, requires_payment_method status is given.
now in confirm api, send payment method data.
expected - Throw error saying automatic capture is not supported
current output - Trying to make a call to connector.
Can be taken up in seperate pr.
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payment_methods/network_tokenization.rs`
**2. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/peachpayments/transformers.rs`
**3. Tests**
- `config/deployments/integration_test.toml`
**4. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
**Code Patterns Applied:**
- Define new data structures (5 changes)
- Implement new functions (3 changes)
- Extend existing types with new fields (88 changes)
**Detailed Identifier Changes:**
Commit c2da9db9:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/peachpayments/transformers.rs**
Remove:
- struct: pub::PeachpaymentsPaymentsRequest
Add:
- function: private::from
- function: private::try_from
- function: private::try_from
- struct: pub::PeachpaymentsPaymentsCardRequest
- struct: pub::CardOnFileData
- struct: pub::EcommerceNetworkTokenPaymentOnlyTransactionData
- struct: pub::NetworkTokenDetails
- enum: pub::PeachpaymentsPaymentsRequest
- enum: pub::EcommercePaymentOnlyTransactionData
- enum: pub::CardNetworkLowercase
- impl: impl From<common_enums::CardNetwork> for CardNetworkLowercase
- impl: impl TryFrom<(
&PeachpaymentsRouterData<&PaymentsAuthorizeRouterData>,
NetworkTokenData,
)> for PeachpaymentsPaymentsRequest
- impl: impl TryFrom<(&PeachpaymentsRouterData<&PaymentsAuthorizeRouterData>, Card)> for PeachpaymentsPaymentsRequest
**crates/router/src/core/payment_methods/network_tokenization.rs**
Modify existing code
|
{"pr_number": 9754, "pr_title": "feat(connector): [Peach Payments] add network token support for connector", "merged_at": "2025-10-13T12:38:13Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payment_methods/network_tokenization.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/peachpayments/transformers.rs"], "tests": ["config/deployments/integration_test.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {"structs_added": 5, "functions_added": 3, "enums_added": 3, "fields_added": 88}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
docs: update connector guide
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [x] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
Updating the connector documentation
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
Make it easier for developers to contribute
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `add_connector.md`
**2. Configuration Files**
- `.typos.toml`
**Code Patterns Applied:**
- Define new data structures (2 changes)
- Implement new functions (14 changes)
- Extend existing types with new fields (29 changes)
- Add conditional logic for feature flags or filtering (1 changes)
|
{"pr_number": 8739, "pr_title": "docs: update connector guide", "merged_at": "2025-08-19T11:00:18Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"connectors": ["add_connector.md"], "config": [".typos.toml"]}, "change_types": {"structs_added": 2, "functions_added": 14, "enums_added": 1, "fields_added": 29, "imports_added": 1, "conditionals_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
feat(connector): [Stripebilling] add incoming webhook support
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
Adds support of consuming the incoming webhook and verifying it.
### Additional Changes
- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
our end point will be "base_url/{merchant_id}/{profile_id}/{mca_id}"
Here the mca id is of billing connector. We need create a billing mca and the id should be used here.
billing mca curl :
```
curl --location 'http://localhost:8080/v2/connector-accounts' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-merchant-id: cloth_seller_h9HasHmX699lmUaPr3cB' \
--header 'x-profile-id: pro_BE9gbCmMbuNdP3yzZath' \
--header 'api-key: test_admin' \
--data '{
"connector_type": "billing_processor",
"connector_name": "stripebilling",
"connector_account_details": {
"auth_type": "HeaderKey",
"api_key": "{{connector_api_key}}"
},
"payment_methods_enabled": [
{
"payment_method_type": "card",
"payment_method_subtypes": [
{
"payment_method_subtype": "credit",
"payment_experience": null,
"card_networks": [
"Visa",
"Mastercard"
],
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": -1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_subtype": "debit",
"payment_experience": null,
"card_networks": [
"Visa",
"Mastercard"
],
"accepted_currencies": null,
"accepted_countries": null,
"minimum_amount": -1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
}
],
"metadata": {
"status_url": "https://2753-2401-4900-1cb8-2ff9-24dd-1ccf-ed12-b464.in.ngrok.io/webhooks/merchant_1678699058/globalpay",
"account_name": "transaction_processing",
"pricing_type": "fixed_price",
"acquirer_bin": "438309",
"acquirer_merchant_id": "00002000000"
},
"frm_configs": null,
"connector_webhook_details": {
"merchant_secret": ""
},
"profile_id": "pro_BE9gbCmMbuNdP3yzZath"
}'
```
place the test api key in the curl and create an billing mca.
Manual testing
1. Go to stripe dashboard
2. Register our webhook endpoint there for "invoice.payment_failed,invoice.payment_succeded" events.
3. update the billing mca merchant webhook secret key.(The key will be available after you register your webhook in stripe dashboard)
4. create a test subscription with a test card(use this card which will decline after attaching: 4000000000000341) and move forward using test clock to the billing date.
5. Therefore events can be triggered and can be caught in our webhook endpoint.
6. See whether the verification is successful or not.
Triggered webhook events from stripe and passed them to our endpoint and checked whether source is verified or not.
<img width="1500" alt="Screenshot 2025-03-05 at 12 41 14 PM" src="https://github.com/user-attachments/assets/633b0e5a-c62e-41fd-bb60-3fbf7a4a846e" />
<img width="1531" alt="Screenshot 2025-03-05 at 12 40 44 PM" src="https://github.com/user-attachments/assets/b87a9654-36d1-46c0-bd76-c4452f408cee" />
<img width="1518" alt="Screenshot 2025-03-05 at 12 39 57 PM" src="https://github.com/user-attachments/assets/fc2d22d9-340b-4ed9-842b-18cadea5a0b5" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/admin.rs`
**2. External Connector Integration**
- `crates/connector_configs/src/connector.rs`
- `crates/hyperswitch_connectors/src/connectors/stripebilling.rs`
- `crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs`
- ... and 1 more files
**3. Type Definitions**
- `crates/router/src/types/api.rs`
**Code Patterns Applied:**
- Define new data structures (8 changes)
- Implement new functions (11 changes)
- Extend existing types with new fields (32 changes)
**Detailed Identifier Changes:**
Commit 32824441:
Files to modify:
**crates/connector_configs/src/connector.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/stripebilling.rs**
Add:
- function: private::get_webhook_source_verification_algorithm
- function: private::get_webhook_source_verification_signature
- function: private::get_webhook_source_verification_message
- function: private::get_webhook_object_reference_id
- function: private::get_webhook_event_type
- function: private::get_webhook_resource_object
**crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs**
Add:
- function: pub::get_webhook_object_from_body
- function: pub::get_invoice_webhook_data_from_body
- function: private::try_from
- struct: pub::StripebillingWebhookBody
- struct: pub::StripebillingInvoiceBody
- struct: pub::StripebillingWebhookData
- struct: pub::StripebillingInvoiceData
- struct: pub::StripebillingWebhookObject
- struct: pub::StripebillingInvoiceObject
- struct: pub::StripePaymentMethodDetails
- struct: pub::StripeCardFundingTypeDetails
- enum: pub::StripebillingEventType
- enum: pub::StripebillingPaymentMethod
- enum: pub::StripebillingFundingTypes
- enum: pub::StripebillingChargeStatus
- impl: impl StripebillingWebhookBody
- impl: impl StripebillingInvoiceBody
- impl: impl TryFrom<StripebillingInvoiceBody> for revenue_recovery::RevenueRecoveryInvoiceData
**crates/hyperswitch_connectors/src/utils.rs**
Add:
- function: pub::convert_uppercase
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/types/api.rs**
Modify existing code
|
{"pr_number": 7417, "pr_title": "feat(connector): [Stripebilling] add incoming webhook support", "merged_at": "2025-03-17T15:22:33Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"core_business": ["crates/router/src/core/admin.rs"], "connectors": ["crates/connector_configs/src/connector.rs", "crates/hyperswitch_connectors/src/connectors/stripebilling.rs", "crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs"], "types": ["crates/router/src/types/api.rs"]}, "change_types": {"structs_added": 8, "functions_added": 11, "enums_added": 4, "fields_added": 32, "imports_added": 10}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
refactor(dynamic_routing): add col payment_method_type in dynamic_routing_stats
## Type of Change
<!-- Put an `x` in the boxes that apply -->
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
## Description
<!-- Describe your changes in detail -->
This change will add `payment_method_type` in dynamic_routing_stats.
### Additional Changes
- [ ] This PR modifies the API contract
- [x] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables
<!--
Provide links to the files with corresponding changes.
Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Testing can be done in following way:
1. Enable Success based routing for a profile with feature as metrics.
2. Make a payment.
3. Search the `dynamic_routing_stats` table for the new col. `payment_method_type` for that payment.
<img width="441" alt="Screenshot 2024-12-16 at 5 38 33 PM" src="https://github.com/user-attachments/assets/24e47a6c-e06b-43a4-b3d4-dea5bab432ba" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/dynamic_routing_stats.rs`
- `crates/diesel_models/src/schema.rs`
- `crates/diesel_models/src/schema_v2.rs`
**2. Core Business Logic**
- `crates/router/src/core/routing/helpers.rs`
**3. Other**
- `migrations/2024-12-16-111228_add_new_col_payment_method_type_in_dynamic_routing_stats/down.sql`
- `migrations/2024-12-16-111228_add_new_col_payment_method_type_in_dynamic_routing_stats/up.sql`
**Code Patterns Applied:**
- Extend existing types with new fields (3 changes)
**Detailed Identifier Changes:**
Commit 492fd871:
Files to modify:
**crates/diesel_models/src/dynamic_routing_stats.rs**
Modify existing code
**crates/diesel_models/src/schema.rs**
Modify existing code
**crates/diesel_models/src/schema_v2.rs**
Modify existing code
**crates/router/src/core/routing/helpers.rs**
Modify existing code
|
{"pr_number": 6853, "pr_title": "refactor(dynamic_routing): add col payment_method_type in dynamic_routing_stats", "merged_at": "2024-12-20T08:33:42Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user"]}, "hierarchy": {"database": ["crates/diesel_models/src/dynamic_routing_stats.rs", "crates/diesel_models/src/schema.rs", "crates/diesel_models/src/schema_v2.rs"], "core_business": ["crates/router/src/core/routing/helpers.rs"], "other": ["migrations/2024-12-16-111228_add_new_col_payment_method_type_in_dynamic_routing_stats/down.sql", "migrations/2024-12-16-111228_add_new_col_payment_method_type_in_dynamic_routing_stats/up.sql"]}, "change_types": {"fields_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.