prompt
stringlengths
83
247k
response
stringlengths
121
36.1k
metadata
stringlengths
314
42.3k
refactor(router): add revenue_recovery_metadata to payment intent in diesel and api model for v2 flow ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Adds the following fields to the api and diesel models Feature meta data retry_count: Total number of billing connector + recovery retries for a payment intent. payment_connector_transmission: It's supposed to tell if the payment_connector has been called or not. billing_connector_id: To update the invoice at billing connector. active_attempt_payment_connector_id : Process tracker needs payment merchant connector account id to schedule the retry attempt. billing_connector_mit_token_details: MIT related information given by billing connector contains two fields. 1. customer_id : Customer Id of the customer in billing connector 2. payment_processor_token : The token used by the payment processor to retry the payment. payment_method_type: This represents payment Method type like Card,Crypto,Mandate etc.. payment_method_subtype : This represents the subtype of the payment method like Credit, CryptoCurrency etc.. Note This PR closes #7177 ### Additional Changes - [ ] This PR modifies the API contract - [x] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables ## Motivation and Context ## How did you test it? Create Intent Request ``` curl --location 'http://localhost:8080/v2/payments/create-intent' \ --header 'api-key: dev_7iySXObGOGY3S9g2OgXlwnQIYJACCsn72FDRXcs6lNlSpheMRHD8bzg0WcUpb9KL' \ --header 'Content-Type: application/json' \ --header 'x-profile-id: pro_vxOhrwYLpaKZXp6llHo1' \ --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": "example@example.com" }, "shipping": { "address": { "first_name": "John", "last_name": "Dough", "city": "Karwar", "zip": "581301", "state": "Karnataka" }, "email": "example@example.com" }, "feature_metadata":{ "revenue_recovery_metadata" : { "retry_count": 3, "payment_connector_transmission" : true, "billing_connector_id" : "test12345678", "active_attempt_payment_connector_id" : "test123456", "billing_connector_mit_token_details":{ "payment_processor_token":"payment_12312466363", "connector_customer_id" : "customer_id123" }, "payment_method_type" : "card", "payment_method_subtype": "credit" } } }' ``` create-intent response ``` { "id": "12345_pay_0194cccc5bdd74f0bcd98e2fe0800208", "status": "requires_payment_method", "amount_details": { "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 }, "client_secret": "12345_pay_0194cccc5bdd74f0bcd98e2fe0800208_secret_0194cccc5bf17ac3b8513527e11145c5", "profile_id": "pro_vxOhrwYLpaKZXp6llHo1", "merchant_reference_id": null, "routing_algorithm_id": null, "capture_method": "manual", "authentication_type": "no_three_ds", "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": "example@example.com" }, "shipping": { "address": { "city": "Karwar", "country": null, "line1": null, "line2": null, "line3": null, "zip": "581301", "state": "Karnataka", "first_name": "John", "last_name": "Dough" }, "phone": null, "email": "example@example.com" }, "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": { "redirect_response": null, "search_tags": null, "apple_pay_recurring_details": null, "revenue_recovery_metadata": { "retry_count": 3, "payment_connector_transmission": true, "billing_connector_id": "test12345678", "active_attempt_payment_connector_id": "test123456", "billing_connector_mit_token_details": { "payment_processor_token": "payment_12312466363", "connector_customer_id": "customer_id123" }, "payment_method_type": "card", "payment_method_subtype": "credit" } }, "payment_link_enabled": "Skip", "payment_link_config": null, "request_incremental_authorization": "default", "expires_on": "2025-02-03T17:27:12.529Z", "frm_metadata": null, "request_external_three_ds_authentication": "Skip" } ``` get intent response ``` { "id": "12345_pay_0194cccc5bdd74f0bcd98e2fe0800208", "status": "requires_payment_method", "amount_details": { "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 }, "client_secret": "12345_pay_0194cccc5bdd74f0bcd98e2fe0800208_secret_0194cccc5bf17ac3b8513527e11145c5", "profile_id": "pro_vxOhrwYLpaKZXp6llHo1", "merchant_reference_id": null, "routing_algorithm_id": null, "capture_method": "manual", "authentication_type": "no_three_ds", "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": "example@example.com" }, "shipping": { "address": { "city": "Karwar", "country": null, "line1": null, "line2": null, "line3": null, "zip": "581301", "state": "Karnataka", "first_name": "John", "last_name": "Dough" }, "phone": null, "email": "example@example.com" }, "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": { "redirect_response": null, "search_tags": null, "apple_pay_recurring_details": null, "revenue_recovery_metadata": { "retry_count": 3, "payment_connector_transmission": true, "billing_connector_id": "test12345678", "active_attempt_payment_connector_id": "test123456", "billing_connector_mit_token_details": { "payment_processor_token": "payment_12312466363", "connector_customer_id": "customer_id123" }, "payment_method_type": "card", "payment_method_subtype": "credit" } }, "payment_link_enabled": "Skip", "payment_link_config": null, "request_incremental_authorization": "default", "expires_on": "2025-02-03T17:27:12.529Z", "frm_metadata": null, "request_external_three_ds_authentication": "Skip" } ``` ## 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. API Request/Response Models** - `crates/api_models/src/payments.rs` **2. Database Layer (Queries & Schema)** - `crates/diesel_models/src/types.rs` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/lib.rs` **4. Other** - `api-reference-v2/openapi_spec.json` - `crates/common_enums/src/enums.rs` - `crates/openapi/src/openapi_v2.rs` **Code Patterns Applied:** - Define new data structures (6 changes) - Implement new functions (6 changes) - Extend existing types with new fields (50 changes) **Detailed Identifier Changes:** Commit 2ee22cdf: Files to modify: **crates/api_models/src/payments.rs** Add: - struct: pub::FeatureMetadata - struct: pub::PaymentRevenueRecoveryMetadata - struct: pub::BillingConnectorPaymentDetails **crates/common_enums/src/enums.rs** Add: - enum: pub::PaymentConnectorTransmission **crates/diesel_models/src/types.rs** Add: - struct: pub::FeatureMetadata - struct: pub::PaymentRevenueRecoveryMetadata - struct: pub::BillingConnectorPaymentDetails **crates/hyperswitch_domain_models/src/lib.rs** Add: - function: private::convert_from - function: private::convert_back - function: private::convert_from - function: private::convert_back - function: private::convert_from - function: private::convert_back - impl: impl ApiModelToDieselModelConvertor<ApiFeatureMetadata> for FeatureMetadata - impl: impl ApiModelToDieselModelConvertor<ApiRevenueRecoveryMetadata> for PaymentRevenueRecoveryMetadata - impl: impl ApiModelToDieselModelConvertor<ApiBillingConnectorPaymentDetails> for BillingConnectorPaymentDetails **crates/openapi/src/openapi_v2.rs** Modify existing code
{"pr_number": 7176, "pr_title": "refactor(router): add revenue_recovery_metadata to payment intent in diesel and api model for v2 flow", "merged_at": "2025-02-14T11:41:35Z", "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/types.rs"], "domain": ["crates/hyperswitch_domain_models/src/lib.rs"], "other": ["api-reference-v2/openapi_spec.json", "crates/common_enums/src/enums.rs", "crates/openapi/src/openapi_v2.rs"]}, "change_types": {"structs_added": 6, "functions_added": 6, "enums_added": 1, "fields_added": 50, "imports_added": 5}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(connector): [Paysafe] add wasm changes ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Add wasm changes for , interac , skrill and paysafe card ### 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/connector_configs/toml/development.toml` - `crates/connector_configs/toml/production.toml` - `crates/connector_configs/toml/sandbox.toml`
{"pr_number": 9455, "pr_title": "feat(connector): [Paysafe] add wasm changes", "merged_at": "2025-09-19T14:25:22Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["card"]}, "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"}
docs: Added desc. for wallets other than AP, GP ## 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 --> Closes #5305 ### 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. Other** - `api-reference-v2/openapi_spec.json` - `api-reference/openapi_spec.json` **Detailed Identifier Changes:** Commit 55a81eb4: Files to modify: **crates/api_models/src/payments.rs** Modify existing code
{"pr_number": 6452, "pr_title": "docs: Added desc. for wallets other than AP, GP", "merged_at": "2024-10-29T07:56:09Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
chore(dashboard): update dashboard toml ## 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 --> Updated dashboard.toml to reflect the latest dashboard changes for open-source users. ![image](https://github.com/user-attachments/assets/c8077ea0-fb75-43f5-bf41-75f5f4f3a6f6) ### 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)? --> Test by running these commands locally **docker-compose up -d** ```curl http://localhost:9000/dashboard/config/feature\?domain\= ``` ## 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. Configuration Files** - `config/dashboard.toml`
{"pr_number": 7707, "pr_title": "chore(dashboard): update dashboard toml", "merged_at": "2025-04-03T07:10:34Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"config": ["config/dashboard.toml"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
feat(injector): adding tracing to injector for dependency issues ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> When adding the injector as a crate in connector-service, getting following ```bash Compiling injector v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/injector) error[E0433]: failed to resolve: could not find `tracing` in the list of imported crates --> /Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/injector/src/injector.rs:60:5 | 60 | #[instrument(skip_all)] | ^^^^^^^^^^^^^^^^^^^^^^^ could not find `tracing` in the list of imported crates | = note: this error originates in the attribute macro `instrument` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: could not find `tracing` in the list of imported crates --> /Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/injector/src/injector.rs:152:5 | 152 | #[instrument(skip_all)] | ^^^^^^^^^^^^^^^^^^^^^^^ could not find `tracing` in the list of imported crates | = note: this error originates in the attribute macro `instrument` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0433]: failed to resolve: could not find `tracing` in the list of imported crates --> /Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/injector/src/injector.rs:257:9 | 257 | #[instrument(skip_all)] | ^^^^^^^^^^^^^^^^^^^^^^^ could not find `tracing` in the list of imported crates | = note: this error originates in the attribute macro `instrument` (in Nightly builds, run with -Z macro-backtrace for more info) ``` Also some requried changes for passing on certificate and proxy url to injector from connector-service ### 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` --> `crates/injector/Cargo.toml` has the additional changes ## 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). --> For using the crate in any other place, would need to take care of the ## 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)? --> ```bash + set +x + cargo clippy --all-targets --no-default-features --features accounts_cache,actix_web,alloc,ast_parser,async_ext,aws_kms,aws_s3,bytes,cassandra,common_default,control_center_theme,crypto_openssl,detailed_errors,diesel,dummy_connector,dynamic_routing,email,encryption_service,errors,external_access_dc,frm,hashicorp-vault,injector,keymanager,keymanager_create,keymanager_mtls,km_forward_x_request_id,kv_store,log_active_span_json,log_custom_entries_to_extra,log_extra_implicit_fields,logs,metrics,mimalloc,multitenancy_fallback,olap,oltp,openapi,partial-auth,payout_retry,payouts,preserve_order,production,proto_tonic,recon,release,retry,revenue_recovery,sandbox,serde,signals,stripe,time,tls,tokenization_v2,tracing-actix-web,v2,valued_jit,vergen,viz -- -D warnings -Aunused -Aclippy::todo -Aclippy::diverging_sub_expression Checking masking v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/masking) Compiling router_derive v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/router_derive) Compiling router_env v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/router_env) Compiling euclid_macros v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/euclid_macros) Checking hyperswitch_constraint_graph v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/hyperswitch_constraint_graph) Checking hsdev v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/hsdev) Checking config_importer v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/config_importer) Checking common_enums v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/common_enums) Checking events v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/events) Checking common_utils v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/common_utils) Checking currency_conversion v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/currency_conversion) Checking test_utils v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/test_utils) Compiling external_services v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/external_services) Compiling router v0.2.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/router) Compiling drainer v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/drainer) Checking euclid v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/euclid) Checking cards v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/cards) Checking redis_interface v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/redis_interface) Checking injector v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/injector) Checking common_types v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/common_types) Checking api_models v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/api_models) Checking diesel_models v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/diesel_models) Checking kgraph_utils v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/kgraph_utils) Checking pm_auth v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/pm_auth) Checking openapi v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/openapi) Checking connector_configs v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/connector_configs) Checking euclid_wasm v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/euclid_wasm) Checking hyperswitch_domain_models v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/hyperswitch_domain_models) Checking hyperswitch_interfaces v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/hyperswitch_interfaces) Checking storage_impl v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/storage_impl) Checking hyperswitch_connectors v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/hyperswitch_connectors) Checking scheduler v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/scheduler) Checking analytics v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/analytics) Checking payment_methods v0.1.0 (/Users/shivansh.mathur/Desktop/VS_Code/hyperswitch/crates/payment_methods) Finished `dev` profile [unoptimized + debuginfo] target(s) in 7m 20s ``` ## 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. Type Definitions** - `crates/injector/src/types.rs` **2. Configuration Files** - `crates/injector/Cargo.toml` **3. Other** - `Cargo.lock` - `crates/injector/src/injector.rs` **Code Patterns Applied:** - Implement new functions (4 changes) - Extend existing types with new fields (20 changes) - Add conditional logic for feature flags or filtering (6 changes) **Detailed Identifier Changes:** Commit aae1994e: Files to modify: **crates/injector/src/injector.rs** Add: - function: pub::create_identity_from_certificate_and_key - function: pub::create_certificate - function: private::get_client_builder - function: pub::create_client - enum: pub::HttpClientError **crates/injector/src/types.rs** Modify existing code
{"pr_number": 9124, "pr_title": "feat(injector): adding tracing to injector for dependency issues", "merged_at": "2025-09-01T09:29:32Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "order"]}, "hierarchy": {"types": ["crates/injector/src/types.rs"], "config": ["crates/injector/Cargo.toml"], "other": ["Cargo.lock", "crates/injector/src/injector.rs"]}, "change_types": {"functions_added": 4, "enums_added": 1, "fields_added": 20, "imports_added": 1, "conditionals_added": 6}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(connector): [INESPAY] add Connector 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 <!-- Describe your changes in detail --> Template code added for new connector Inespay This PR is related to issue: https://github.com/juspay/hyperswitch-cloud/issues/7514 ### 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)? --> Only template PR, hence no testing required. ## 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/connector_enums.rs` **2. 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` **3. 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 **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 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 710186f0: Files to modify: **crates/api_models/src/connector_enums.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.rs** Add: - mod: pub::inespay **crates/hyperswitch_connectors/src/connectors/inespay.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::Inespay - impl: impl Inespay - impl: impl api::Payment for Inespay - impl: impl api::PaymentSession for Inespay - impl: impl api::ConnectorAccessToken for Inespay - impl: impl api::MandateSetup for Inespay - impl: impl api::PaymentAuthorize for Inespay - impl: impl api::PaymentSync for Inespay - impl: impl api::PaymentCapture for Inespay - impl: impl api::PaymentVoid for Inespay - impl: impl api::Refund for Inespay - impl: impl api::RefundExecute for Inespay - impl: impl api::RefundSync for Inespay - impl: impl api::PaymentToken for Inespay - impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Inespay - impl: impl ConnectorCommonExt<Flow, Request, Response> for Inespay - impl: impl ConnectorCommon for Inespay - impl: impl ConnectorValidation for Inespay - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Inespay - impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Inespay - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Inespay - impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Inespay - impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Inespay - impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Inespay - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Inespay - impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Inespay - impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Inespay - impl: impl webhooks::IncomingWebhook for Inespay - mod: pub::transformers **crates/hyperswitch_connectors/src/connectors/inespay/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::InespayRouterData - struct: pub::InespayPaymentsRequest - struct: pub::InespayCard - struct: pub::InespayAuthType - struct: pub::InespayPaymentsResponse - struct: pub::InespayRefundRequest - struct: pub::RefundResponse - struct: pub::InespayErrorResponse - enum: pub::InespayPaymentStatus - enum: pub::RefundStatus - impl: impl From<(StringMinorUnit, T)> for InespayRouterData<T> - impl: impl TryFrom<&InespayRouterData<&PaymentsAuthorizeRouterData>> for InespayPaymentsRequest - impl: impl TryFrom<&ConnectorAuthType> for InespayAuthType - impl: impl From<InespayPaymentStatus> for common_enums::AttemptStatus - impl: impl TryFrom<ResponseRouterData<F, InespayPaymentsResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData> - impl: impl TryFrom<&InespayRouterData<&RefundsRouterData<F>>> for InespayRefundRequest - 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/inespay.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::InespayTest - impl: impl ConnectorActions for InespayTest - impl: impl utils::Connector for InespayTest **crates/router/tests/connectors/main.rs** Add: - mod: private::inespay **crates/test_utils/src/connector_auth.rs** Modify existing code
{"pr_number": 6614, "pr_title": "feat(connector): [INESPAY] add Connector Template Code", "merged_at": "2024-11-26T07:40:31Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/connector_enums.rs"], "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/inespay.rs", "crates/hyperswitch_connectors/src/connectors/inespay/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/inespay.rs", "crates/router/tests/connectors/main.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"}
fix: replace deprecated backticks with $(...) for command substitution ## 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 --> Use $(...) notation instead of legacy `...` in the shell files. Removes the use of deprecated backticks notation (cf. [SC2006](https://www.shellcheck.net/wiki/SC2006)). ### 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). --> Fixes https://github.com/juspay/hyperswitch/issues/6271 ## 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** - `scripts/add_connector.sh` **2. Other** - `INSTALL_dependencies.sh` - `aws/hyperswitch_aws_setup.sh` - `aws/hyperswitch_cleanup_setup.sh` **Code Patterns Applied:** - Add conditional logic for feature flags or filtering (2 changes)
{"pr_number": 6337, "pr_title": "fix: replace deprecated backticks with $(...) for command substitution", "merged_at": "2024-11-05T08:29:48Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"connectors": ["scripts/add_connector.sh"], "other": ["INSTALL_dependencies.sh", "aws/hyperswitch_aws_setup.sh", "aws/hyperswitch_cleanup_setup.sh"]}, "change_types": {"conditionals_added": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
fix(connector): [Cybersource] change commerce indicator for applepay ## 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 --> Change the commerce indicator for cybersource applepay payment which was failing payment in production Hotfix correspond to PR - [#6634](https://github.com/juspay/hyperswitch/pull/6634) Note: This pr is crucial for flowbird ### 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 for Cybersource: - Create a Payment with Applepay: ``` { "amount": 650, "currency": "USD", "confirm": true, "amount_to_capture": 650, "customer_id": "test_fb", "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "authentication_type": "three_ds", "return_url": "https://google.com", "email": "something@gmail.com", "name": "Joseph Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "statement_descriptor_name": "Juspay", "statement_descriptor_suffix": "Router", "payment_method": "wallet", "payment_method_type": "apple_pay", "payment_method_data": { "wallet": { "apple_pay": { "payment_data": "{{payment_data}}", "payment_method": { "display_name": "MasterCard 7599", "network": "MasterCard", "type": "credit" }, "transaction_identifier": "{{transaction_identifier}}" } }, "billing": { "address": { "line1": "jhkdsa", "zip": "10000", "last_name": "chikke", "city": "adf", "country": "US", "first_name": "srujan", "state": "Alabama" }, "email": "chikke.srujan@juspay.in" } } } ``` - The payment should `succeed` ## 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` **Detailed Identifier Changes:** Commit b397a85a: Files to modify: **crates/router/src/connector/cybersource/transformers.rs** Modify existing code
{"pr_number": 6675, "pr_title": "fix(connector): [Cybersource] change commerce indicator for applepay", "merged_at": "2024-11-27T11:30:18Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "card"]}, "hierarchy": {"connectors": ["crates/router/src/connector/cybersource/transformers.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(connector): [Adyenplatform] process payouts using PSP tokens ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR adds support for Adyen tokenized card payouts in the AdyenPlatform connector. This enables processing payouts using stored PSP tokens - Restructured `AdyenCardIdentification` as an enum supporting both raw card data and stored payment method IDs - Added `StoredPaymentCounterparty` and `RawPaymentCounterparty` for handling different payment method types - Implemented fallback logic: stored payment method ID → raw card details - Added `fetch_payout_method_data` helper function to centralize payout method data retrieval - Enhanced validator to check for stored transfer method IDs before fetching raw card details ### 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 Enables merchants to process Adyen payouts using previously stored PSP tokens without requiring raw card data. This is helpful for migrated PSP tokens (created outside of HS). ## How did you test it? <details> <summary>1. Create a payment CIT</summary> cURL curl --location --request POST 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_ACto5kMwzvZvAZCM5LMfFoDaBxAKHNeQkYVRuitCrf2Q30DrqxbPr6YFOe8c2f3l' \ --data-raw '{"amount":4500,"currency":"EUR","confirm":true,"profile_id":"pro_S5yvh1TfnZi2Gjv7uSUQ","capture_method":"automatic","authentication_type":"three_ds","setup_future_usage":"off_session","customer_id":"cus_payment_cit_1","email":"abc@example.com","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_cvc":"737"}},"billing":{"address":{"line1":"1467","line2":"Harrison Street","line3":"Harrison Street","city":"San Fransico","zip":"94122","country":"SG","first_name":"joseph","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"},"email":"guest@example.com"},"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_funVtY7kQ3avj2SN3Lzm","merchant_id":"merchant_1755863240","status":"succeeded","amount":4500,"net_amount":4500,"shipping_cost":null,"amount_capturable":0,"amount_received":4500,"connector":"adyen","client_secret":"pay_funVtY7kQ3avj2SN3Lzm_secret_cR7UTM6j2h1jabVHAFHq","created":"2025-08-22T12:57:49.884Z","currency":"EUR","customer_id":"cus_uRtCHhDU0C2hafZMVHx1","customer":{"id":"cus_uRtCHhDU0C2hafZMVHx1","name":"Albert Klaassen","email":"abc@example.com","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":"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":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":"San Fransico","country":"SG","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":"guest@example.com"},"order_details":null,"email":"abc@example.com","name":"Albert Klaassen","phone":"6168205362","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_uRtCHhDU0C2hafZMVHx1","created_at":1755867469,"expires":1755871069,"secret":"epk_fdc03a4797ef451a98b2929bcfc398ca"},"manual_retry_allowed":false,"connector_transaction_id":"VCV7F35F2L3C37V5","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":"pay_funVtY7kQ3avj2SN3Lzm_1","payment_link":null,"profile_id":"pro_sHtakSPxfG6JnK0wpCKG","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_A3zlBnD9y8WvakW0ratr","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-22T13:45:59.884Z","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_L6rQCpfqi5f1OAG4DHIG","network_transaction_id":"056847192959811","payment_method_status":"active","updated":"2025-08-22T12:57:50.457Z","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":"X99D3DNTHP447NV5","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} Manually update `connector_mandate_detail` to include payout MCA as well { "mca_A3zlBnD9y8WvakW0ratr": { "mandate_metadata": null, "payment_method_type": "debit", "connector_mandate_id": "X99D3DNTHP447NV5", "connector_mandate_status": "active", "original_payment_authorized_amount": 4500, "original_payment_authorized_currency": "EUR", "connector_mandate_request_reference_id": "GOSHRSEHXi2emhKCLC" } } Updated to { "mca_A3zlBnD9y8WvakW0ratr": { "mandate_metadata": null, "payment_method_type": "debit", "connector_mandate_id": "X99D3DNTHP447NV5", "connector_mandate_status": "active", "original_payment_authorized_amount": 4500, "original_payment_authorized_currency": "EUR", "connector_mandate_request_reference_id": "GOSHRSEHXi2emhKCLC" }, "payouts": { "mca_NsHlFe2GsWvK9CdftrLt": { "transfer_method_id": "X99D3DNTHP447NV5" } } } </details> <details> <summary>2. Create a payout using payout_method_id</summary> cURL curl --location --request POST 'http://localhost:8080/payouts/create' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_XKQaI34jBT7ZKVNZtpbrc1feIuijxd7MgPf8GMFvqLxniEGUdbNoKPcm0r8aHZhg' \ --data '{"payout_method_id":"pm_L6rQCpfqi5f1OAG4DHIG","amount":100,"currency":"EUR","customer_id":"cus_CzI1yN5av9n1nICj0ofl","connector":["adyenplatform"],"billing":{"address":{"line1":"1467","line2":"Harrison Street","line3":"Harrison Street","city":"San Fransico","state":"CA","zip":"94122","country":"DE","first_name":"Albert","last_name":"Klassen"},"phone":{"number":"8056594427","country_code":"+91"}},"entity_type":"Individual","recurring":true,"metadata":{"ref":"123"},"confirm":true,"auto_fulfill":true}' Response {"payout_id":"payout_wJvyBtv3lJXXYe2f2Zlo","merchant_id":"merchant_1755867774","merchant_order_reference_id":null,"amount":100,"currency":"EUR","connector":"adyenplatform","payout_type":"card","payout_method_data":null,"billing":{"address":{"city":"San Fransico","country":"DE","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":"CA","first_name":"Albert","last_name":"Klassen","origin_zip":null},"phone":{"number":"8056594427","country_code":"+91"},"email":null},"auto_fulfill":true,"customer_id":"cus_CzI1yN5av9n1nICj0ofl","customer":{"id":"cus_CzI1yN5av9n1nICj0ofl","name":"Albert Klaassen","email":"abc@example.com","phone":"6168205362","phone_country_code":"+1"},"client_secret":"payout_payout_wJvyBtv3lJXXYe2f2Zlo_secret_jgJ0TCCA8exlXEeh5KsK","return_url":null,"business_country":null,"business_label":null,"description":null,"entity_type":"Individual","recurring":true,"metadata":{"ref":"123"},"merchant_connector_id":"mca_8gi7OlijF22Wv9ImMR4w","status":"initiated","error_message":null,"error_code":null,"profile_id":"pro_8lrTNA9EX88OGfPXiElF","created":"2025-08-22T14:57:13.628Z","connector_transaction_id":"38EBH7682DK7VMVK","priority":null,"payout_link":null,"email":"abc@example.com","name":"Albert Klaassen","phone":"6168205362","phone_country_code":"+1","unified_code":null,"unified_message":null,"payout_method_id":"pm_L6rQCpfqi5f1OAG4DHIG"} </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/payments/routing.rs` - `crates/router/src/core/payouts.rs` - `crates/router/src/core/payouts/helpers.rs` - ... and 1 more files **2. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs` **3. Type Definitions** - `crates/router/src/types/transformers.rs` **4. Other** - `nix/modules/flake/devshell.nix` **Code Patterns Applied:** - Define new data structures (4 changes) - Implement new functions (5 changes) - Extend existing types with new fields (38 changes) - Add conditional logic for feature flags or filtering (3 changes) **Detailed Identifier Changes:** Commit b8c5bf3f: Files to modify: **crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs** Remove: - struct: pub::AdyenCardIdentification Add: - function: private::try_from - function: private::try_from - struct: pub::AdyenRawCardIdentification - struct: pub::StoredPaymentCounterparty - struct: pub::RawPaymentCounterparty - enum: pub::AdyenCardIdentification - impl: impl TryFrom<StoredPaymentCounterparty<'_, F>> for (AdyenPayoutMethodDetails, Option<AdyenPayoutPriority>) - impl: impl TryFrom<RawPaymentCounterparty<'_, F>> for (AdyenPayoutMethodDetails, Option<AdyenPayoutPriority>) **crates/router/src/core/payments/routing.rs** Modify existing code **crates/router/src/core/payouts.rs** Modify existing code **crates/router/src/core/payouts/helpers.rs** Add: - function: pub::fetch_payout_method_data **crates/router/src/core/payouts/validator.rs** Modify existing code **crates/router/src/types/transformers.rs** Add: - function: private::foreign_try_from - impl: impl ForeignTryFrom<api_enums::PaymentMethod> for api_models::enums::PayoutType
{"pr_number": 9040, "pr_title": "feat(connector): [Adyenplatform] process payouts using PSP tokens", "merged_at": "2025-08-25T13:10:04Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/routing.rs", "crates/router/src/core/payouts.rs", "crates/router/src/core/payouts/helpers.rs", "crates/router/src/core/payouts/validator.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs"], "types": ["crates/router/src/types/transformers.rs"], "other": ["nix/modules/flake/devshell.nix"]}, "change_types": {"structs_added": 4, "functions_added": 5, "enums_added": 1, "fields_added": 38, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
ci(configs): remove vault private key from configs This PR removes the `vault_private_key` from the configs.
To implement this **unknown** feature, you'll need to modify these architectural layers: **1. Configuration Files** - `config/development.toml`
{"pr_number": 7825, "pr_title": "ci(configs): remove vault private key from configs", "merged_at": "2025-04-16T08:26:05Z", "intent": {"feature_type": "unknown", "action": "unknown", "entities": []}, "hierarchy": {"config": ["config/development.toml"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
fix(user_role): Filter out internal roles in list roles API ## 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 an issue where internal user roles were being displayed in the dashboard. With this change, all internal roles are filtered out, ensuring only relevant user-facing roles are visible. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables ## Motivation and Context Internal roles (used for system or service-level operations) were unintentionally shown in the dashboard UI. This could cause confusion for users and clutter the role management section. By filtering out roles marked as `is_internal`, the dashboard now only shows roles meaningful to end-users. ## How did you test it? Executed the following API call to fetch the list of roles: ```bash curl 'http://localhost:9000/api/user/role/list?groups=true&entity_type=merchant' \ -H 'Accept: */*' \ -H 'Accept-Language: en-US,en;q=0.9' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json' \ -b 'login_token=...' \ -H 'Referer: http://localhost:9000/dashboard/users' \ -H 'Sec-Fetch-Dest: empty' \ -H 'Sec-Fetch-Mode: cors' \ -H 'Sec-Fetch-Site: same-origin' \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36' \ -H 'X-Merchant-Id: merchant_1757947392' \ -H 'X-Profile-Id: pro_Q4eUMp5JpOMZOCeUQ9go' \ -H 'api-key: hyperswitch' \ -H 'authorization: Bearer ...' \ -H 'sec-ch-ua: "Chromium";v="140", "Not=A?Brand";v="24", "Google Chrome";v="140"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'sec-ch-ua-platform: "macOS"' ``` Response (internal roles filtered out successfully): ```json [ { "role_id": "merchant_view_only", "role_name": "merchant_view_only", "entity_type": "merchant", "parent_groups": [ { "name": "Workflows", "description": "Routing, 3DS Decision Manager, Surcharge Decision Manager, Merchant Account, Revenue Recovery", "scopes": [ "read" ] }, { "name": "ReconReports", "description": "Generate & Verify Reconciliation Token, Reconciliation Analytics, Reconciliation Reports, Merchant Account", "scopes": [ "read" ] }, { "name": "Users", "description": "Users, Merchant Account", "scopes": [ "read" ] }, { "name": "ReconOps", "description": "Generate & Verify Reconciliation Token, Reconciliation Process Manager, Reconciliation File Upload, Run Reconciliation Process, Reconciliation Configurations, Reconciliation Analytics, Reconciliation Reports, Merchant Account", "scopes": [ "read" ] }, { "name": "Account", "description": "Merchant Account, Api Keys, Webhook Events", "scopes": [ "read" ] }, { "name": "Operations", "description": "Payments, Refunds, Mandates, Disputes, Customers, Payouts, Operation Reports, Merchant Account", "scopes": [ "read" ] }, { "name": "Analytics", "description": "Analytics, Operation Reports, Merchant Account", "scopes": [ "read" ] }, { "name": "Connectors", "description": "Payment Processors, Payout Processors, Fraud & Risk Managers, Merchant Account", "scopes": [ "read" ] } ], "role_scope": "organization" }, { "role_id": "merchant_developer", "role_name": "merchant_developer", "entity_type": "merchant", "parent_groups": [ { "name": "Account", "description": "Merchant Account, Api Keys, Webhook Events", "scopes": [ "write", "read" ] }, { "name": "Users", "description": "Users, Merchant Account", "scopes": [ "read" ] }, { "name": "ReconOps", "description": "Generate & Verify Reconciliation Token, Reconciliation Process Manager, Reconciliation File Upload, Run Reconciliation Process, Reconciliation Configurations, Reconciliation Analytics, Reconciliation Reports, Merchant Account", "scopes": [ "read" ] }, { "name": "ReconReports", "description": "Generate & Verify Reconciliation Token, Reconciliation Analytics, Reconciliation Reports, Merchant Account", "scopes": [ "read" ] }, { "name": "Analytics", "description": "Analytics, Operation Reports, Merchant Account", "scopes": [ "read" ] }, { "name": "Operations", "description": "Payments, Refunds, Mandates, Disputes, Customers, Payouts, Operation Reports, Merchant Account", "scopes": [ "read" ] }, { "name": "Connectors", "description": "Payment Processors, Payout Processors, Fraud & Risk Managers, Merchant Account", "scopes": [ "read" ] } ], "role_scope": "organization" }, { "role_id": "merchant_operator", "role_name": "merchant_operator", "entity_type": "merchant", "parent_groups": [ { "name": "Connectors", "description": "Payment Processors, Payout Processors, Fraud & Risk Managers, Merchant Account", "scopes": [ "read" ] }, { "name": "Account", "description": "Merchant Account, Api Keys, Webhook Events", "scopes": [ "read" ] }, { "name": "ReconOps", "description": "Generate & Verify Reconciliation Token, Reconciliation Process Manager, Reconciliation File Upload, Run Reconciliation Process, Reconciliation Configurations, Reconciliation Analytics, Reconciliation Reports, Merchant Account", "scopes": [ "read", "write" ] }, { "name": "Analytics", "description": "Analytics, Operation Reports, Merchant Account", "scopes": [ "read" ] }, { "name": "Workflows", "description": "Routing, 3DS Decision Manager, Surcharge Decision Manager, Merchant Account, Revenue Recovery", "scopes": [ "read" ] }, { "name": "Users", "description": "Users, Merchant Account", "scopes": [ "read" ] }, { "name": "Operations", "description": "Payments, Refunds, Mandates, Disputes, Customers, Payouts, Operation Reports, Merchant Account", "scopes": [ "read", "write" ] }, { "name": "ReconReports", "description": "Generate & Verify Reconciliation Token, Reconciliation Analytics, Reconciliation Reports, Merchant Account", "scopes": [ "read" ] } ], "role_scope": "organization" }, { "role_id": "merchant_iam_admin", "role_name": "merchant_iam", "entity_type": "merchant", "parent_groups": [ { "name": "Operations", "description": "Payments, Refunds, Mandates, Disputes, Customers, Payouts, Operation Reports, Merchant Account", "scopes": [ "read" ] }, { "name": "Account", "description": "Merchant Account, Api Keys, Webhook Events", "scopes": [ "read" ] }, { "name": "Connectors", "description": "Payment Processors, Payout Processors, Fraud & Risk Managers, Merchant Account", "scopes": [ "read" ] }, { "name": "Analytics", "description": "Analytics, Operation Reports, Merchant Account", "scopes": [ "read" ] }, { "name": "Users", "description": "Users, Merchant Account", "scopes": [ "read", "write" ] } ], "role_scope": "organization" }, { "role_id": "merchant_customer_support", "role_name": "customer_support", "entity_type": "merchant", "parent_groups": [ { "name": "Operations", "description": "Payments, Refunds, Mandates, Disputes, Customers, Payouts, Operation Reports, Merchant Account", "scopes": [ "read" ] }, { "name": "ReconReports", "description": "Generate & Verify Reconciliation Token, Reconciliation Analytics, Reconciliation Reports, Merchant Account", "scopes": [ "read" ] }, { "name": "Connectors", "description": "Payment Processors, Payout Processors, Fraud & Risk Managers, Merchant Account", "scopes": [ "read" ] }, { "name": "Users", "description": "Users, Merchant Account", "scopes": [ "read" ] }, { "name": "Analytics", "description": "Analytics, Operation Reports, Merchant Account", "scopes": [ "read" ] }, { "name": "ReconOps", "description": "Generate & Verify Reconciliation Token, Reconciliation Process Manager, Reconciliation File Upload, Run Reconciliation Process, Reconciliation Configurations, Reconciliation Analytics, Reconciliation Reports, Merchant Account", "scopes": [ "read" ] }, { "name": "Account", "description": "Merchant Account, Api Keys, Webhook Events", "scopes": [ "read" ] } ], "role_scope": "organization" }, { "role_id": "merchant_admin", "role_name": "merchant_admin", "entity_type": "merchant", "parent_groups": [ { "name": "Operations", "description": "Payments, Refunds, Mandates, Disputes, Customers, Payouts, Operation Reports, Merchant Account", "scopes": [ "read", "write" ] }, { "name": "Analytics", "description": "Analytics, Operation Reports, Merchant Account", "scopes": [ "read" ] }, { "name": "Connectors", "description": "Payment Processors, Payout Processors, Fraud & Risk Managers, Merchant Account", "scopes": [ "write", "read" ] }, { "name": "ReconOps", "description": "Generate & Verify Reconciliation Token, Reconciliation Process Manager, Reconciliation File Upload, Run Reconciliation Process, Reconciliation Configurations, Reconciliation Analytics, Reconciliation Reports, Merchant Account", "scopes": [ "write", "read" ] }, { "name": "Users", "description": "Users, Merchant Account", "scopes": [ "read", "write" ] }, { "name": "Account", "description": "Merchant Account, Api Keys, Webhook Events", "scopes": [ "write", "read" ] }, { "name": "ReconReports", "description": "Generate & Verify Reconciliation Token, Reconciliation Analytics, Reconciliation Reports, Merchant Account", "scopes": [ "write", "read" ] }, { "name": "Workflows", "description": "Routing, 3DS Decision Manager, Surcharge Decision Manager, Merchant Account, Revenue Recovery", "scopes": [ "read", "write" ] } ], "role_scope": "organization" } ] ``` ### Screenshots **Before (Internal roles visible):** <img width="1364" height="889" alt="Screenshot 2025-09-16 at 2 40 08 PM" src="https://github.com/user-attachments/assets/9318e620-c223-4bbe-b73a-bf9500093870" /> **After (Only user-facing roles visible):** <img width="1349" height="896" alt="Screenshot 2025-09-16 at 2 40 56 PM" src="https://github.com/user-attachments/assets/5386ad68-730d-4a1e-8bad-f96472bc0426" /> ## 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 - [x] 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_role/role.rs` **Code Patterns Applied:** - Modify database queries (1 changes) **Detailed Identifier Changes:** Commit d7e468f9: Files to modify: **crates/router/src/core/user_role/role.rs** Modify existing code
{"pr_number": 9402, "pr_title": "fix(user_role): Filter out internal roles in list roles API", "merged_at": "2025-09-22T18:36:13Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/user_role/role.rs"]}, "change_types": {"imports_added": 1, "database_queries": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
refactor(core): introduce new field in payment_intent to handle longer return_url ## 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 --> - A new field in introduced in payment_intent table called extended_return_url - This deprecate the existing return_url field since it can take string only upto length 255 - extended_return_url can now take length upto 2048 size - write is done into the new field (extended_return_url) - read is backward compatible (return_url as fallback) Note: The hotfix is raised against https://github.com/juspay/hyperswitch/pull/8135 ### 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 Payment with return url length smaller than 2048 ``` curl --location '{{baseUrl}}/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key:{{api_key}}' \ --data-raw '{ "amount": 499, "currency": "USD", "confirm": true, "capture_method": "automatic", "customer_id": "test_rec7", "email": "guest@example.com", "customer_acceptance": { "acceptance_type": "online" }, "return_url": "https://www.duckduckgo.com", "payment_method": "card", "payment_method_type": "credit", "payment_method_data": { "card": { "card_number": "4242424242424242", "card_exp_month": "02", "card_exp_year": "26", "card_holder_name": "Joseph Doe", "card_cvc": "999" }, "billing": { "address": { "line1": "8th block", "line2": "8th block", "line3": "8th block", "city": "Bengaluru", "state": "Karnataka", "zip": "560095", "country": "IN", "first_name": "Sakil", "last_name": "Mostak" } } }, "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": "CA", "first_name": "Sakil", "last_name": "Mostak" }, "phone": { "number": "1234567890", "country_code": "+1" }, "email": "guest@example.com" }, "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": "127.0.0.1" }, "authentication_type": "three_ds" }' ``` - Create a Payment with return url length greater than 2048 ``` curl --location '{{baseUrl}}/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key:{{api_key}}' \ --data-raw '{ "amount": 499, "currency": "USD", "confirm": true, "capture_method": "automatic", "customer_id": "test_rec7", "email": "guest@example.com", "customer_acceptance": { "acceptance_type": "online" }, "return_url": "https://www.duckduckgo.comaaaqaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "payment_method": "card", "payment_method_type": "credit", "payment_method_data": { "card": { "card_number": "4242424242424242", "card_exp_month": "02", "card_exp_year": "26", "card_holder_name": "Joseph Doe", "card_cvc": "999" }, "billing": { "address": { "line1": "8th block", "line2": "8th block", "line3": "8th block", "city": "Bengaluru", "state": "Karnataka", "zip": "560095", "country": "IN", "first_name": "Sakil", "last_name": "Mostak" } } }, "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": "CA", "first_name": "Sakil", "last_name": "Mostak" }, "phone": { "number": "1234567890", "country_code": "+1" }, "email": "guest@example.com" }, "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": "127.0.0.1" }, "authentication_type": "three_ds" }' ``` ## 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. Database Layer (Queries & Schema)** - `crates/diesel_models/src/payment_intent.rs` - `crates/diesel_models/src/schema.rs` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/payments/payment_intent.rs` **4. Tests** - `cypress-tests/cypress/e2e/configs/Payment/Commons.js` - `cypress-tests/cypress/e2e/spec/Payment/00022-Variations.cy.js` **5. Other** - `api-reference/openapi_spec.json` - `migrations/2025-05-25-185220_add-merchant_return_url-column-to-payment_intent/down.sql` - `migrations/2025-05-25-185220_add-merchant_return_url-column-to-payment_intent/up.sql` - ... and 1 more files **Code Patterns Applied:** - Extend existing types with new fields (30 changes) **Detailed Identifier Changes:** Commit 7b5459f2: Files to modify: **crates/api_models/src/payments.rs** Modify existing code **crates/diesel_models/src/payment_intent.rs** Modify existing code **crates/diesel_models/src/schema.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_intent.rs** Modify existing code
{"pr_number": 8322, "pr_title": "refactor(core): introduce new field in payment_intent to handle longer return_url", "merged_at": "2025-06-12T10:07:57Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "user"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/payment_intent.rs", "crates/diesel_models/src/schema.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments/payment_intent.rs"], "tests": ["cypress-tests/cypress/e2e/configs/Payment/Commons.js", "cypress-tests/cypress/e2e/spec/Payment/00022-Variations.cy.js"], "other": ["api-reference/openapi_spec.json", "migrations/2025-05-25-185220_add-merchant_return_url-column-to-payment_intent/down.sql", "migrations/2025-05-25-185220_add-merchant_return_url-column-to-payment_intent/up.sql", "v2_migrations/2025-01-13-081847_drop_v1_columns/up.sql"]}, "change_types": {"fields_added": 30}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(connector): [BHN] Add BHN GiftCard Flow( Alpha) ## 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 --> Alpha Integ Added Gift Card Payments Flow ### 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)? --> Alpha Connector : For GIftCards We don't have Cypress ## 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` - `crates/api_models/src/payments/additional_info.rs` **2. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/payment_method_data.rs` **3. Core Business Logic** - `crates/router/src/core/connector_validation.rs` **4. External Connector Integration** - `crates/common_enums/src/connector_enums.rs` - `crates/connector_configs/src/connector.rs` - `crates/connector_configs/toml/development.toml` - ... and 16 more files **5. Type Definitions** - `crates/router/src/types/api/feature_matrix.rs` - `crates/router/src/types/transformers.rs` **6. Utils** - `crates/kgraph_utils/src/mca.rs` - `crates/kgraph_utils/src/transformers.rs` **7. 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 (9 changes) - Implement new functions (21 changes) - Extend existing types with new fields (152 changes) **Detailed Identifier Changes:** Commit cb34ec51: Files to modify: **crates/api_models/src/payments.rs** Add: - struct: pub::BHNGiftCardDetails **crates/api_models/src/payments/additional_info.rs** Modify existing code **crates/common_enums/src/connector_enums.rs** Modify existing code **crates/common_enums/src/enums.rs** Modify existing code **crates/common_enums/src/transformers.rs** Modify existing code **crates/connector_configs/src/connector.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/adyen.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs** Remove: - impl: impl (req, connectors) Add: - 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::build_request - impl: impl api::PaymentsPreProcessing for Blackhawknetwork - impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Blackhawknetwork **crates/hyperswitch_connectors/src/connectors/blackhawknetwork/transformers.rs** Remove: - struct: pub::BlackhawknetworkPaymentsRequest - struct: pub::BlackhawknetworkAuthType - enum: pub::BlackhawknetworkPaymentStatus Add: - function: private::from - function: private::try_from - function: private::try_from - struct: pub::BlackhawknetworkAuthType - struct: pub::BlackhawknetworkAccessTokenRequest - enum: pub::BlackhawknetworkAttemptStatus - impl: impl From<(StringMajorUnit, T)> for BlackhawknetworkRouterData<T> - impl: impl TryFrom<ResponseRouterData<F, BlackhawknetworkTokenResponse, T, AccessToken>> for Ok(Self { response: Ok(AccessToken { token: item.response.access_token, expires: item.response.expires_in, }), ..item.data }) #[derive(Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct BlackhawknetworkVerifyAccountRequest { pub account_number: Secret<String>, pub product_line_id: Secret<String>, pub account_type: AccountType, #[serde(skip_serializing_if = "Option::is_none")] pub pin: Option<Secret<String>>, #[serde(skip_serializing_if = "Option::is_none")] pub cvv2: Option<Secret<String>>, #[serde(skip_serializing_if = "Option::is_none")] pub expiration_date: Option<Secret<String>>, impl TryFrom<&PaymentsPreProcessingRouterData> for BlackhawknetworkVerifyAccountRequest { type Error = error_stack::Report<errors::ConnectorError>; fn try_from(item: &PaymentsPreProcessingRouterData) -> Result<Self, Self::Error> { let auth = BlackhawknetworkAuthType::try_from(&item.connector_auth_type) .change_context(errors::ConnectorError::FailedToObtainAuthType)?; let gift_card_data = match &item.request.payment_method_data { Some(PaymentMethodData::GiftCard(gc)) => match gc.as_ref() { GiftCardData::BhnCardNetwork(data) => data, _ => { return Err(errors::ConnectorError::FlowNotSupported { flow: "Balance".to_string(), connector: "BlackHawkNetwork".to_string(), } .into()) } }, _ => { return Err(errors::ConnectorError::FlowNotSupported { flow: "Balance".to_string(), connector: "BlackHawkNetwork".to_string(), } .into()) **crates/hyperswitch_connectors/src/connectors/klarna.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/zen/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/default_implementations.rs** Modify existing code **crates/hyperswitch_connectors/src/utils.rs** Modify existing code **crates/hyperswitch_domain_models/src/payment_method_data.rs** Add: - struct: pub::BHNGiftCardDetails **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/router/src/connector/utils.rs** Modify existing code **crates/router/src/core/connector_validation.rs** Modify existing code **crates/router/src/types/api/connector_mapping.rs** Modify existing code **crates/router/src/types/api/feature_matrix.rs** Modify existing code **crates/router/src/types/connector_transformers.rs** Modify existing code **crates/router/src/types/transformers.rs** Modify existing code
{"pr_number": 8701, "pr_title": "feat(connector): [BHN] Add BHN GiftCard Flow( Alpha)", "merged_at": "2025-08-22T16:43:32Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "connector", "card"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs", "crates/api_models/src/payments/additional_info.rs"], "domain": ["crates/hyperswitch_domain_models/src/payment_method_data.rs"], "core_business": ["crates/router/src/core/connector_validation.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/adyen.rs", "crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs", "crates/hyperswitch_connectors/src/connectors/blackhawknetwork.rs", "crates/hyperswitch_connectors/src/connectors/blackhawknetwork/transformers.rs", "crates/hyperswitch_connectors/src/connectors/klarna.rs", "crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs", "crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs", "crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs", "crates/hyperswitch_connectors/src/connectors/zen/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/connector/utils.rs", "crates/router/src/types/api/connector_mapping.rs", "crates/router/src/types/connector_transformers.rs"], "types": ["crates/router/src/types/api/feature_matrix.rs", "crates/router/src/types/transformers.rs"], "utils": ["crates/kgraph_utils/src/mca.rs", "crates/kgraph_utils/src/transformers.rs"], "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": 9, "functions_added": 21, "enums_added": 4, "fields_added": 152, "imports_added": 6}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(debit_routing): add debit routing support for apple pay ## 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 adds debit routing support for Apple Pay. In the Apple Pay decryption flow, if debit routing is enabled by the merchant and the card type is debit, a call will be made to the decision engine to retrieve the supported card networks and the potential debit routing savings. Among these networks, the lowest-cost network will be selected to process the Apple Pay 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)? --> -> enable debit routing and make a apple pay payment ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_tT5kUVUp7uaQHR2Z824Iy7393nL5sEWLxAvJblCxxmttLizAkJbWtsdgoIjdGQE2' \ --data-raw '{ "amount": 650, "currency": "USD", "confirm": true, "business_country": "US", "business_label": "default", "amount_to_capture": 650, "customer_id": "cu_1752747625", "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "setup_future_usage": "on_session", "authentication_type": "no_three_ds", "return_url": "https://google.com", "email": "something@gmail.com", "name": "Joseph Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "statement_descriptor_name": "Juspay", "statement_descriptor_suffix": "Router", "payment_method": "wallet", "payment_method_type": "apple_pay", "billing": { "address": { "line1": "1467", "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": "in sit", "user_agent": "amet irure esse" } } , "payment_method_data": { "wallet": { "apple_pay": { "payment_data": "==", "payment_method": { "display_name": "Discover 9319", "network": "Discover", "type": "debit" }, "transaction_identifier": "c635c5b3af900d7bd81fecd7028f1262f9d030754ee65ec7afd988a678194751" } } } }' ``` ``` { "payment_id": "pay_O0EoroDslloH3cVj5Xc5", "merchant_id": "merchant_1752747413", "status": "succeeded", "amount": 650, "net_amount": 650, "shipping_cost": null, "amount_capturable": 0, "amount_received": 650, "connector": "adyen", "client_secret": "pay_O0EoroDslloH3cVj5Xc5_secret_mEciQ25Sjl46cuShfITO", "created": "2025-07-17T10:18:35.495Z", "currency": "USD", "customer_id": "cu_1752747515", "customer": { "id": "cu_1752747515", "name": "Joseph Doe", "email": "something@gmail.com", "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": "on_session", "off_session": null, "capture_on": null, "capture_method": "automatic", "payment_method": "wallet", "payment_method_data": { "wallet": { "apple_pay": { "last4": "9319", "card_network": "Accel", "type": "debit" } }, "billing": null }, "payment_token": null, "shipping": null, "billing": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": null, "line3": null, "zip": "94122", "state": "California", "first_name": "joseph", "last_name": "Doe" }, "phone": { "number": "8056594427", "country_code": "+91" }, "email": null }, "order_details": null, "email": "something@gmail.com", "name": "Joseph Doe", "phone": "999999999", "return_url": "https://google.com/", "authentication_type": "no_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": "apple_pay", "connector_label": "adyen_US_default", "business_country": "US", "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": { "customer_id": "cu_1752747515", "created_at": 1752747515, "expires": 1752751115, "secret": "epk_e7dc207a6f124b47a191ba2daf803e6b" }, "manual_retry_allowed": false, "connector_transaction_id": "P3TQQMQMMQ6M5375", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pay_O0EoroDslloH3cVj5Xc5_1", "payment_link": null, "profile_id": "pro_0BT05CUisTpwMzBcK4wf", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_dITrhiR4JCNaaJFsaPGH", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-07-17T10:33:35.495Z", "fingerprint": null, "browser_info": null, "payment_method_id": null, "payment_method_status": null, "updated": "2025-07-17T10:18:40.793Z", "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 } ``` -> Decision engine lookup using 8 digits bin with padded 0s for lookup <img width="1382" height="303" alt="image" src="https://github.com/user-attachments/assets/84305a47-c56c-46e5-bb4e-685e51d7e736" /> ## 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/debit_routing.rs` - `crates/router/src/core/payments.rs` - `crates/router/src/core/payments/operations/payment_approve.rs` - ... and 15 more files **3. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs` **4. Other** - `crates/common_enums/src/enums.rs` **Code Patterns Applied:** - Define new data structures (4 changes) - Implement new functions (55 changes) - Extend existing types with new fields (79 changes) - Add conditional logic for feature flags or filtering (11 changes) **Detailed Identifier Changes:** Commit d42fad73: Files to modify: **crates/common_enums/src/enums.rs** Add: - enum: pub::ApplePayPaymentMethodType **crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs** Modify existing code **crates/hyperswitch_domain_models/src/payment_method_data.rs** Add: - function: pub::get_payment_method_type - impl: impl ApplePayWalletData **crates/router/src/core/debit_routing.rs** Add: - function: private::request_validation - function: private::is_currency_supported - function: private::new - function: private::empty - function: private::extract_card_info - function: private::extract_from_payment_method_data - struct: private::ExtractedCardInfo - impl: impl ExtractedCardInfo **crates/router/src/core/payments.rs** Modify existing code
{"pr_number": 8673, "pr_title": "feat(debit_routing): add debit routing support for apple pay", "merged_at": "2025-07-18T14:54:09Z", "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/debit_routing.rs", "crates/router/src/core/payments.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_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/payment_update_metadata.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/tokenization.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs"], "other": ["crates/common_enums/src/enums.rs"]}, "change_types": {"structs_added": 4, "functions_added": 55, "enums_added": 2, "fields_added": 79, "imports_added": 1, "conditionals_added": 11}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
chore: Update apple pay currency filter configs ## 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 --> Apple pay payments for noon were failing due to PR#7921. Adding AED to the currency list for apple pay is a temporary fix for this failure. ### 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 #8216 ## 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. Configuration Files** - `config/deployments/production.toml`
{"pr_number": 8217, "pr_title": "chore: Update apple pay currency filter configs", "merged_at": "2025-06-09T07:57:15Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment"]}, "hierarchy": {"config": ["config/deployments/production.toml"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
feat(connector): [shift4] Boleto, Trustly, Alipay, Wechatpay PMs added ## 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 --> `Boleto`, `Trustly`, `Alipay`, `Wechatpay` PMs added in connector `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>Boleo</summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_1CJh3H9QWZNTcGz7LDx0uLqBqyMjjoTWkD3J5qCodpxKYS7tG82BLl63O0lYkZVV' \ --data-raw '{ "amount": 1000, "currency": "BRL", "confirm": true, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 1000, "phone_country_code": "+1", "description": "Its my first payment request", "authentication_type": "no_three_ds", "return_url": "https://duck.com", "payment_method": "voucher", "profile_id":"pro_6cc098jC4WYr7cTE498T", "payment_method_type": "boleto", "email": "sweta@example.com", "payment_method_data": { "voucher": { "boleto": { "social_security_number": "999.999.999-99" } }, "billing": { "address": { "line1": "1467", "line2": "Harrison Street", "city": "San Fransico", "state": "SP", "zip": "04386040", "country": "BR", "first_name": "joseph", "last_name": "Doe" } } } }' ``` Response ``` { "payment_id": "pay_qpuaa2sA3CfH40bhpwGb", "merchant_id": "merchant_1750919175", "status": "requires_customer_action", "amount": 1000, "net_amount": 1000, "shipping_cost": null, "amount_capturable": 1000, "amount_received": null, "connector": "shift4", "client_secret": "pay_qpuaa2sA3CfH40bhpwGb_secret_2tQpNe2zJe4VdNXVitgZ", "created": "2025-06-27T05:43:28.898Z", "currency": "BRL", "customer_id": null, "customer": { "id": null, "name": null, "email": "sweta@example.com", "phone": null, "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": "voucher", "payment_method_data": { "voucher": { "boleto": { "social_security_number": "999.999.999-99" } }, "billing": { "address": { "city": "San Fransico", "country": "BR", "line1": "1467", "line2": "Harrison Street", "line3": null, "zip": "04386040", "state": "SP", "first_name": "joseph", "last_name": "Doe" }, "phone": null, "email": null } }, "payment_token": null, "shipping": null, "billing": null, "order_details": null, "email": null, "name": null, "phone": null, "return_url": "https://duck.com/", "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_qpuaa2sA3CfH40bhpwGb/merchant_1750919175/pay_qpuaa2sA3CfH40bhpwGb_1" }, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "boleto", "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": "char_gwG3HSG55bEwNt2q6Hw2OTnE", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "char_gwG3HSG55bEwNt2q6Hw2OTnE", "payment_link": null, "profile_id": "pro_6cc098jC4WYr7cTE498T", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_5zyJbla7P8mj9gK02vRz", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-06-27T05:58:28.897Z", "fingerprint": null, "browser_info": null, "payment_method_id": null, "payment_method_status": null, "updated": "2025-06-27T05:43:29.433Z", "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>Trustly</summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_1CJh3H9QWZNTcGz7LDx0uLqBqyMjjoTWkD3J5qCodpxKYS7tG82BLl63O0lYkZVV' \ --data-raw '{ "amount": 1000, "currency": "BRL", "confirm": true, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 1000, "phone_country_code": "+1", "description": "Its my first payment request", "authentication_type": "no_three_ds", "return_url": "https://duck.com", "profile_id": "pro_6cc098jC4WYr7cTE498T", "email": "sweta@example.com", "payment_method": "bank_redirect", "payment_method_type": "trustly", "retry_action": "manual_retry", "payment_method_data": { "bank_redirect": { "trustly": { "billing_details": { "billing_name": "John Doe" }, "bank_name": "ing", "preferred_language": "en", "country": "FI" } } }, "billing": { "address": { "first_name": "Sweta" } } }' ``` Response ``` { "payment_id": "pay_mOTMUVGNFeVrgXArS2rC", "merchant_id": "merchant_1750919175", "status": "requires_customer_action", "amount": 1000, "net_amount": 1000, "shipping_cost": null, "amount_capturable": 1000, "amount_received": null, "connector": "shift4", "client_secret": "pay_mOTMUVGNFeVrgXArS2rC_secret_SuAVxCudSPxKNqm7tO1L", "created": "2025-06-27T05:43:32.999Z", "currency": "BRL", "customer_id": null, "customer": { "id": null, "name": null, "email": "sweta@example.com", "phone": null, "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": "bank_redirect", "payment_method_data": { "bank_redirect": { "type": "BankRedirectResponse", "bank_name": null }, "billing": null }, "payment_token": null, "shipping": null, "billing": { "address": { "city": null, "country": null, "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": null, "phone": null, "return_url": "https://duck.com/", "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_mOTMUVGNFeVrgXArS2rC/merchant_1750919175/pay_mOTMUVGNFeVrgXArS2rC_1" }, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "trustly", "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": "char_aox7K328X8KV6erAqpiPMSHw", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "char_aox7K328X8KV6erAqpiPMSHw", "payment_link": null, "profile_id": "pro_6cc098jC4WYr7cTE498T", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_5zyJbla7P8mj9gK02vRz", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-06-27T05:58:32.999Z", "fingerprint": null, "browser_info": null, "payment_method_id": null, "payment_method_status": null, "updated": "2025-06-27T05:43:33.505Z", "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>Alipay</summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_1CJh3H9QWZNTcGz7LDx0uLqBqyMjjoTWkD3J5qCodpxKYS7tG82BLl63O0lYkZVV' \ --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": "ali_pay", "payment_method_data": { "wallet": { "ali_pay_redirect": {} } }, "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":"CN" } } }' ``` Response ``` { "payment_id": "pay_hleaSOKlUVVzrWisdkC4", "merchant_id": "merchant_1750919175", "status": "requires_customer_action", "amount": 300, "net_amount": 300, "shipping_cost": null, "amount_capturable": 300, "amount_received": null, "connector": "shift4", "client_secret": "pay_hleaSOKlUVVzrWisdkC4_secret_yXD0dBuC7rrxycKuQcJh", "created": "2025-06-27T05:45:15.521Z", "currency": "USD", "customer_id": "StripeCustomer", "customer": { "id": "StripeCustomer", "name": "John Doe", "email": "guest@example.com", "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": "CN", "line1": null, "line2": null, "line3": null, "zip": null, "state": null, "first_name": "Sweta", "last_name": null }, "phone": null, "email": null }, "order_details": null, "email": "guest@example.com", "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_hleaSOKlUVVzrWisdkC4/merchant_1750919175/pay_hleaSOKlUVVzrWisdkC4_1" }, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "ali_pay", "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": 1751003115, "expires": 1751006715, "secret": "epk_bbae9c39ce234b4cab29a790b7b9107e" }, "manual_retry_allowed": null, "connector_transaction_id": "char_rE6uZGPz8xe8XyXlymyFLh5D", "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_rE6uZGPz8xe8XyXlymyFLh5D", "payment_link": null, "profile_id": "pro_6cc098jC4WYr7cTE498T", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_5zyJbla7P8mj9gK02vRz", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-06-27T06:00:15.521Z", "fingerprint": null, "browser_info": null, "payment_method_id": null, "payment_method_status": null, "updated": "2025-06-27T05:45:16.040Z", "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>WeChatPay</summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_1CJh3H9QWZNTcGz7LDx0uLqBqyMjjoTWkD3J5qCodpxKYS7tG82BLl63O0lYkZVV' \ --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": "we_chat_pay", "payment_method_data": { "wallet": { "we_chat_pay_redirect": {} } }, "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":"CN" } } }' ``` Response ``` { "payment_id": "pay_6jLhP4FK8kce8myMk9b7", "merchant_id": "merchant_1750919175", "status": "requires_customer_action", "amount": 300, "net_amount": 300, "shipping_cost": null, "amount_capturable": 300, "amount_received": null, "connector": "shift4", "client_secret": "pay_6jLhP4FK8kce8myMk9b7_secret_XzZXK9vjgQvT8r0AoWLD", "created": "2025-06-27T05:44:33.715Z", "currency": "USD", "customer_id": "StripeCustomer", "customer": { "id": "StripeCustomer", "name": "John Doe", "email": "guest@example.com", "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": "CN", "line1": null, "line2": null, "line3": null, "zip": null, "state": null, "first_name": "Sweta", "last_name": null }, "phone": null, "email": null }, "order_details": null, "email": "guest@example.com", "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_6jLhP4FK8kce8myMk9b7/merchant_1750919175/pay_6jLhP4FK8kce8myMk9b7_1" }, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "we_chat_pay", "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": 1751003073, "expires": 1751006673, "secret": "epk_77583827814b4196b350f821e3bed70f" }, "manual_retry_allowed": null, "connector_transaction_id": "char_aFxfI1zg1D59Qyq1g365eOIU", "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_aFxfI1zg1D59Qyq1g365eOIU", "payment_link": null, "profile_id": "pro_6cc098jC4WYr7cTE498T", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_5zyJbla7P8mj9gK02vRz", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-06-27T05:59:33.715Z", "fingerprint": null, "browser_info": null, "payment_method_id": null, "payment_method_status": null, "updated": "2025-06-27T05:44:34.669Z", "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. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/shift4.rs` - `crates/hyperswitch_connectors/src/connectors/shift4/transformers.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:** - Define new data structures (2 changes) - Implement new functions (4 changes) - Extend existing types with new fields (26 changes) **Detailed Identifier Changes:** Commit ac3b2d40: Files to modify: **crates/hyperswitch_connectors/src/connectors/shift4.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs** Modify existing code
{"pr_number": 8476, "pr_title": "feat(connector): [shift4] Boleto, Trustly, Alipay, Wechatpay PMs added", "merged_at": "2025-07-03T09:21:36Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/shift4.rs", "crates/hyperswitch_connectors/src/connectors/shift4/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": 2, "functions_added": 4, "fields_added": 26}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
refactor(router): refactor ctp flow to fetch mca_id and get the connector creds instead of connector_name ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Refactoring ## Description <!-- Describe your changes in detail --> refactor ctp flow to fetch mca_id and get the connector creds instead of connector_name https://github.com/juspay/hyperswitch/pull/6859 ### 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/admin.rs` **2. Database Layer (Queries & Schema)** - `crates/diesel_models/src/business_profile.rs` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/business_profile.rs` - `crates/hyperswitch_domain_models/src/merchant_connector_account.rs` **4. Core Business Logic** - `crates/router/src/core/admin.rs` - `crates/router/src/core/payments.rs` - `crates/router/src/core/payments/helpers.rs` - ... and 5 more files **5. Type Definitions** - `crates/common_types/src/payments.rs` - `crates/router/src/types/api/admin.rs` **6. Other** - `crates/common_enums/src/enums.rs` - `crates/router/src/consts.rs` **Code Patterns Applied:** - Define new data structures (1 changes) - Implement new functions (6 changes) - Extend existing types with new fields (41 changes) - Add conditional logic for feature flags or filtering (2 changes) **Detailed Identifier Changes:** Commit 6c5a16de: Files to modify: **crates/api_models/src/admin.rs** Modify existing code **crates/common_enums/src/enums.rs** Add: - enum: pub::AuthenticationProduct **crates/common_types/src/payments.rs** Add: - function: pub::get_click_to_pay_connector_account_id - struct: pub::AuthenticationConnectorAccountMap - impl: impl AuthenticationConnectorAccountMap **crates/diesel_models/src/business_profile.rs** Modify existing code **crates/hyperswitch_domain_models/src/business_profile.rs** Modify existing code **crates/hyperswitch_domain_models/src/merchant_connector_account.rs** Add: - function: pub::get_connector_wallets_details - function: pub::get_connector_wallets_details **crates/router/src/consts.rs** Modify existing code **crates/router/src/core/admin.rs** Modify existing code **crates/router/src/core/payments.rs** Modify existing code **crates/router/src/core/payments/helpers.rs** Add: - function: pub::is_merchant_eligible_authentication_service **crates/router/src/core/payments/operations.rs** Modify existing code **crates/router/src/core/payments/operations/payment_confirm.rs** Modify existing code **crates/router/src/core/unified_authentication_service.rs** Modify existing code **crates/router/src/core/unified_authentication_service/types.rs** Modify existing code **crates/router/src/core/unified_authentication_service/utils.rs** Modify existing code **crates/router/src/types/api/admin.rs** Modify existing code
{"pr_number": 7087, "pr_title": "refactor(router): refactor ctp flow to fetch mca_id and get the connector creds instead of connector_name", "merged_at": "2025-01-22T09:16:07Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/admin.rs"], "database": ["crates/diesel_models/src/business_profile.rs"], "domain": ["crates/hyperswitch_domain_models/src/business_profile.rs", "crates/hyperswitch_domain_models/src/merchant_connector_account.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/operations.rs", "crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/unified_authentication_service.rs", "crates/router/src/core/unified_authentication_service/types.rs", "crates/router/src/core/unified_authentication_service/utils.rs"], "types": ["crates/common_types/src/payments.rs", "crates/router/src/types/api/admin.rs"], "other": ["crates/common_enums/src/enums.rs", "crates/router/src/consts.rs"]}, "change_types": {"structs_added": 1, "functions_added": 6, "enums_added": 1, "fields_added": 41, "imports_added": 5, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(core): update additional payment method data in psync response ## 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 --> Earlier, the `additional_payment_method_data` was not being updated in the psync call because the check was applied on `payment_data.payment_method_data`, which at the time of the psync call was not populated. In this PR, we have updated the logic to apply the check on the `payment_method_data` field of the `payment_attempt` table instead. This ensures that the `additional_payment_method_data` is correctly populated during the psync call. ### 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). --> fixes issue: V2025.09.19.0 testing OSS # 9389 ## 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 : ``` { "amount": 100, "currency": "USD", "confirm": true, "customer_id": "c111112", "return_url": "https://www.google.com", "capture_method": "automatic", "payment_method": "card", "payment_method_type": "credit", "all_keys_required": true, "authentication_type": "three_ds", "description": "hellow world", "billing": { "address": { "zip": "560095", "country": "US", "first_name": "Sakil", "last_name": "Mostak", "line1": "Fasdf", "line2": "Fasdf", "city": "Fasdf" } }, "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" }, "email": "hello@gmail.com", "payment_method_data": { "card": { "card_number": "5137210000000158", "card_exp_month": "12", "card_exp_year": "2030", "card_holder_name": "CL-BRW2", "card_cvc": "217" } } } ``` Response: ``` { "payment_id": "pay_BCW01LKtcSqHKQblqPPa", "merchant_id": "merchant_1758633259", "status": "requires_customer_action", "amount": 100, "net_amount": 100, "shipping_cost": null, "amount_capturable": 100, "amount_received": null, "connector": "checkout", "client_secret": "pay_BCW01LKtcSqHKQblqPPa_secret_RekWHZFwXXLN1ffEkqnM", "created": "2025-09-23T13:14:31.972Z", "currency": "USD", "customer_id": "c111112", "customer": { "id": "c111112", "name": null, "email": "hello@gmail.com", "phone": null, "phone_country_code": null }, "description": "hellow world", "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": "0158", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "513721", "card_extended_bin": null, "card_exp_month": "12", "card_exp_year": "2030", "card_holder_name": "CL-BRW2", "payment_checks": null, "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": "hello@gmail.com", "name": null, "phone": null, "return_url": "https://www.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_BCW01LKtcSqHKQblqPPa/merchant_1758633259/pay_BCW01LKtcSqHKQblqPPa_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": "c111112", "created_at": 1758633271, "expires": 1758636871, "secret": "epk_cfff2d7d39f64d0a96bfc2be445b305c" }, "manual_retry_allowed": null, "connector_transaction_id": "pay_ktvifwnlzfsudn4baoixfqgzs4", "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": "pay_BCW01LKtcSqHKQblqPPa_1", "payment_link": null, "profile_id": "pro_cHJ9XOUs1E9zzqxsJG1z", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_K4C7T3ONQqg5wM5VBSXw", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-09-23T13:29:31.972Z", "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-23T13:14:34.175Z", "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": "{\"id\":\"pay_ktvifwnlzfsudn4baoixfqgzs4\",\"status\":\"Pending\",\"reference\":\"pay_BCW01LKtcSqHKQblqPPa_1\",\"customer\":{},\"3ds\":{\"downgraded\":false,\"enrolled\":\"Y\"},\"_links\":{\"self\":{\"href\":\"https://api.sandbox.checkout.com/payments/pay_ktvifwnlzfsudn4baoixfqgzs4\"},\"actions\":{\"href\":\"https://api.sandbox.checkout.com/payments/pay_ktvifwnlzfsudn4baoixfqgzs4/actions\"},\"redirect\":{\"href\":\"https://authentication-devices.sandbox.checkout.com/sessions-interceptor/sid_tscgwylifjsureb37cvhrhr7zy\"}}}", "enable_partial_authorization": null, "enable_overcapture": null, "is_overcapture_enabled": null, "network_details": null } ``` Psync ``` { "payment_id": "pay_BCW01LKtcSqHKQblqPPa", "merchant_id": "merchant_1758633259", "status": "succeeded", "amount": 100, "net_amount": 100, "shipping_cost": null, "amount_capturable": 0, "amount_received": 100, "connector": "checkout", "client_secret": "pay_BCW01LKtcSqHKQblqPPa_secret_RekWHZFwXXLN1ffEkqnM", "created": "2025-09-23T13:14:31.972Z", "currency": "USD", "customer_id": "c111112", "customer": { "id": "c111112", "name": null, "email": "hello@gmail.com", "phone": null, "phone_country_code": null }, "description": "hellow world", "refunds": null, "disputes": null, "attempts": [ { "attempt_id": "pay_BCW01LKtcSqHKQblqPPa_1", "status": "charged", "amount": 100, "order_tax_amount": null, "currency": "USD", "connector": "checkout", "error_message": null, "payment_method": "card", "connector_transaction_id": "pay_ktvifwnlzfsudn4baoixfqgzs4", "capture_method": "automatic", "authentication_type": "three_ds", "created_at": "2025-09-23T13:14:31.974Z", "modified_at": "2025-09-23T13:14:51.363Z", "cancellation_reason": null, "mandate_id": null, "error_code": null, "payment_token": null, "connector_metadata": { "psync_flow": "Capture" }, "payment_experience": null, "payment_method_type": "credit", "reference_id": "pay_BCW01LKtcSqHKQblqPPa_1", "unified_code": null, "unified_message": null, "client_source": null, "client_version": 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": "0158", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "513721", "card_extended_bin": null, "card_exp_month": "12", "card_exp_year": "2030", "card_holder_name": "CL-BRW2", "payment_checks": { "avs_result": "S", "card_validation_result": "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": "hello@gmail.com", "name": null, "phone": null, "return_url": "https://www.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": null, "connector_transaction_id": "pay_ktvifwnlzfsudn4baoixfqgzs4", "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": "pay_BCW01LKtcSqHKQblqPPa_1", "payment_link": null, "profile_id": "pro_cHJ9XOUs1E9zzqxsJG1z", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_K4C7T3ONQqg5wM5VBSXw", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-09-23T13:29:31.972Z", "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": "155586680644922", "payment_method_status": null, "updated": "2025-09-23T13:14:51.364Z", "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 } ``` ## 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_response.rs` **Detailed Identifier Changes:** Commit 407be56e: Files to modify: **crates/router/src/core/payments/operations/payment_response.rs** Modify existing code
{"pr_number": 9519, "pr_title": "feat(core): update additional payment method data in psync response", "merged_at": "2025-09-26T08:26:11Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/operations/payment_response.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(connector): Card non3ds | FINIX ## 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 --> Implementation of Payment,Refund,void , customer create , tokenization for non3ds cards for finix ## Test cases <details> <summary> Payment : Automatic </summary> ## Request ```json { "amount": 689, "customer_id":"hello_world", "currency": "USD", "confirm": true, "capture_method": "automatic", "payment_method": "card", "payment_method_type": "credit", "authentication_type": "no_three_ds", "description": "hellow world", // "connector":["paypal_test","stripe_test"], "billing": { "address": { "zip": "560095", "country": "IN", "first_name": "Sakil", "last_name": "Mostak", "line1": "Fasdf", "line2": "Fasdf", "city": "Fasdf" } }, "payment_method_data": { "card": { "card_number": "5200828282828210", "card_exp_month": "01", "card_exp_year": "2026", "card_holder_name": "John Smith", "card_cvc": "100" } } } ``` ## Response ```json { "payment_id": "pay_pVWtQXnwq32dc3OdqqQo", "merchant_id": "merchant_1759477997", "status": "succeeded", "amount": 689, "net_amount": 689, "shipping_cost": null, "amount_capturable": 0, "amount_received": 689, "connector": "finix", "client_secret": "pay_pVWtQXnwq32dc3OdqqQo_secret_oYqnSGx6ktsh1jv0HF3Y", "created": "2025-10-06T10:17:24.054Z", "currency": "USD", "customer_id": "hello_world", "customer": { "id": "hello_world", "name": null, "email": "hyperswitch_sdk_demo_id@gmail.com", "phone": null, "phone_country_code": null }, "description": "hellow world", "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": "8210", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "520082", "card_extended_bin": null, "card_exp_month": "01", "card_exp_year": "2026", "card_holder_name": "John Smith", "payment_checks": null, "authentication_data": null }, "billing": null }, "payment_token": null, "shipping": null, "billing": { "address": { "city": "Fasdf", "country": "IN", "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": "hyperswitch_sdk_demo_id@gmail.com", "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": "hello_world", "created_at": 1759745843, "expires": 1759749443, "secret": "epk_6f24c6ad6c29447e8e6cb37f9431a152" }, "manual_retry_allowed": null, "connector_transaction_id": "TRmJxabrSYTSjGxnqthW8nkK", "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": null, "payment_link": null, "profile_id": "pro_GjR7afeLzCXVYhe62xl8", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_bSuyBQOAy40vpxbsiOCR", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-10-06T10:32:24.054Z", "fingerprint": null, "browser_info": null, "payment_channel": null, "payment_method_id": null, "network_transaction_id": null, "payment_method_status": null, "updated": "2025-10-06T10:17:26.710Z", "split_payments": null, "frm_metadata": null, "extended_authorization_applied": null, "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": null, "network_details": null } ``` </details> <details> <summary> Payment : Manual </summary> ```json { "amount": 689, "customer_id":"hello_world", "currency": "USD", "confirm": true, "capture_method": "manual", "payment_method": "card", "payment_method_type": "credit", "authentication_type": "no_three_ds", "description": "hellow world", // "connector":["paypal_test","stripe_test"], "billing": { "address": { "zip": "560095", "country": "IN", "first_name": "Sakil", "last_name": "Mostak", "line1": "Fasdf", "line2": "Fasdf", "city": "Fasdf" } }, "payment_method_data": { "card": { "card_number": "5200828282828210", "card_exp_month": "01", "card_exp_year": "2026", "card_holder_name": "John Smith", "card_cvc": "100" } } } ``` ```json { "payment_id": "pay_A8v0P3KgtB5w7mZaWO3t", "merchant_id": "merchant_1759477997", "status": "requires_capture", "amount": 689, "net_amount": 689, "shipping_cost": null, "amount_capturable": 689, "amount_received": null, "connector": "finix", "client_secret": "pay_A8v0P3KgtB5w7mZaWO3t_secret_jjLo36Con9BduAYRKTUP", "created": "2025-10-06T10:18:12.998Z", "currency": "USD", "customer_id": "hello_world", "customer": { "id": "hello_world", "name": null, "email": "hyperswitch_sdk_demo_id@gmail.com", "phone": null, "phone_country_code": null }, "description": "hellow world", "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": "8210", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "520082", "card_extended_bin": null, "card_exp_month": "01", "card_exp_year": "2026", "card_holder_name": "John Smith", "payment_checks": null, "authentication_data": null }, "billing": null }, "payment_token": null, "shipping": null, "billing": { "address": { "city": "Fasdf", "country": "IN", "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": "hyperswitch_sdk_demo_id@gmail.com", "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": "hello_world", "created_at": 1759745892, "expires": 1759749492, "secret": "epk_5946337c7bf3422db4549d97b25c6c30" }, "manual_retry_allowed": null, "connector_transaction_id": "AUaokdvtqphbiksg4FAxfZf9", "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": null, "payment_link": null, "profile_id": "pro_GjR7afeLzCXVYhe62xl8", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_bSuyBQOAy40vpxbsiOCR", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-10-06T10:33:12.998Z", "fingerprint": null, "browser_info": null, "payment_channel": null, "payment_method_id": null, "network_transaction_id": null, "payment_method_status": null, "updated": "2025-10-06T10:18:14.166Z", "split_payments": null, "frm_metadata": null, "extended_authorization_applied": null, "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": null, "network_details": null } ``` ## Capture ```sh curl --location 'localhost:8080/payments/pay_A8v0P3KgtB5w7mZaWO3t/capture' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_3cGokW5MFJmBnLTLmcS2EKAODQblXknbM6XCjDHLipq0CmLrUu3LNsIyFCDwgOwH' \ --data '{ "amount": 689 }' ``` ```json { "payment_id": "pay_A8v0P3KgtB5w7mZaWO3t", "merchant_id": "merchant_1759477997", "status": "processing", "amount": 689, "net_amount": 689, "shipping_cost": null, "amount_capturable": 0, "amount_received": 689, "connector": "finix", "client_secret": "pay_A8v0P3KgtB5w7mZaWO3t_secret_jjLo36Con9BduAYRKTUP", "created": "2025-10-06T10:18:12.998Z", "currency": "USD", "customer_id": "hello_world", "customer": { "id": "hello_world", "name": null, "email": "hyperswitch_sdk_demo_id@gmail.com", "phone": null, "phone_country_code": null }, "description": "hellow world", "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": "8210", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "520082", "card_extended_bin": null, "card_exp_month": "01", "card_exp_year": "2026", "card_holder_name": "John Smith", "payment_checks": null, "authentication_data": null }, "billing": null }, "payment_token": null, "shipping": null, "billing": { "address": { "city": "Fasdf", "country": "IN", "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": "hyperswitch_sdk_demo_id@gmail.com", "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": "AUaokdvtqphbiksg4FAxfZf9", "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": null, "payment_link": null, "profile_id": "pro_GjR7afeLzCXVYhe62xl8", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_bSuyBQOAy40vpxbsiOCR", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-10-06T10:33:12.998Z", "fingerprint": null, "browser_info": null, "payment_channel": null, "payment_method_id": null, "network_transaction_id": null, "payment_method_status": null, "updated": "2025-10-06T10:18:48.481Z", "split_payments": null, "frm_metadata": null, "extended_authorization_applied": null, "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": null, "network_details": null } ``` ## make psync after few min to get this as captured status </details> <details> <summary> Void </summary> Make Auth call ```json curl --location 'localhost:8080/payments/pay_InDxLEmz9xZ9AF6xfgYc/cancel' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_3cGokW5MFJmBnLTLmcS2EKAODQblXknbM6XCjDHLipq0CmLrUu3LNsIyFCDwgOwH' \ --data '{ "cancellation_reason": "requested_by_customer" }' ``` ```json { "payment_id": "pay_InDxLEmz9xZ9AF6xfgYc", "merchant_id": "merchant_1759477997", "status": "cancelled", "amount": 689, "net_amount": 689, "shipping_cost": null, "amount_capturable": 0, "amount_received": null, "connector": "finix", "client_secret": "pay_InDxLEmz9xZ9AF6xfgYc_secret_CSRpGCjsWQu3t6q1SZbM", "created": "2025-10-06T10:20:46.718Z", "currency": "USD", "customer_id": "hello_world", "customer": { "id": "hello_world", "name": null, "email": "hyperswitch_sdk_demo_id@gmail.com", "phone": null, "phone_country_code": null }, "description": "hellow world", "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": "8210", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "520082", "card_extended_bin": null, "card_exp_month": "01", "card_exp_year": "2026", "card_holder_name": "John Smith", "payment_checks": null, "authentication_data": null }, "billing": null }, "payment_token": null, "shipping": null, "billing": { "address": { "city": "Fasdf", "country": "IN", "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": "hyperswitch_sdk_demo_id@gmail.com", "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": "requested_by_customer", "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": "AU5zeQMv2WYgNKyo8fNh2or5", "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": null, "payment_link": null, "profile_id": "pro_GjR7afeLzCXVYhe62xl8", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_bSuyBQOAy40vpxbsiOCR", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-10-06T10:35:46.718Z", "fingerprint": null, "browser_info": null, "payment_channel": null, "payment_method_id": null, "network_transaction_id": null, "payment_method_status": null, "updated": "2025-10-06T10:20:52.789Z", "split_payments": null, "frm_metadata": null, "extended_authorization_applied": null, "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": null, "network_details": null } ``` </details> <details> <summary>Refund</summary> make a payment capture ```json { "payment_id": "pay_K7EmavhAOgxV3pOMGHGL", "merchant_id": "merchant_1759477997", "status": "succeeded", "amount": 400, "net_amount": 400, "shipping_cost": null, "amount_capturable": 0, "amount_received": 400, "connector": "finix", "client_secret": "pay_K7EmavhAOgxV3pOMGHGL_secret_vOfMeE36wQUhik3cS5Nu", "created": "2025-10-06T10:22:02.926Z", "currency": "USD", "customer_id": "hello_world", "customer": { "id": "hello_world", "name": null, "email": "hyperswitch_sdk_demo_id@gmail.com", "phone": null, "phone_country_code": null }, "description": "hellow world", "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": "8210", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "520082", "card_extended_bin": null, "card_exp_month": "01", "card_exp_year": "2026", "card_holder_name": "John Smith", "payment_checks": null, "authentication_data": null }, "billing": null }, "payment_token": null, "shipping": null, "billing": { "address": { "city": "Fasdf", "country": "IN", "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": "hyperswitch_sdk_demo_id@gmail.com", "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": "hello_world", "created_at": 1759746122, "expires": 1759749722, "secret": "epk_47435b2e06634545a0d2d0c534e0a881" }, "manual_retry_allowed": null, "connector_transaction_id": "TRaB2ZZji4QoFwuKCC4mwfi9", "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": null, "payment_link": null, "profile_id": "pro_GjR7afeLzCXVYhe62xl8", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_bSuyBQOAy40vpxbsiOCR", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-10-06T10:37:02.926Z", "fingerprint": null, "browser_info": null, "payment_channel": null, "payment_method_id": null, "network_transaction_id": null, "payment_method_status": null, "updated": "2025-10-06T10:22:05.203Z", "split_payments": null, "frm_metadata": null, "extended_authorization_applied": null, "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": null, "network_details": null } ``` ## Refund ```sh curl --location 'localhost:8080/refunds' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_3cGokW5MFJmBnLTLmcS2EKAODQblXknbM6XCjDHLipq0CmLrUu3LNsIyFCDwgOwH' \ --data '{ "payment_id": "pay_K7EmavhAOgxV3pOMGHGL", "amount":389 }' ``` ```json { "refund_id": "ref_OL9OI4S00JxqZZk0l9j1", "payment_id": "pay_K7EmavhAOgxV3pOMGHGL", "amount": 389, "currency": "USD", "status": "pending", "reason": null, "metadata": null, "error_message": null, "error_code": null, "unified_code": null, "unified_message": null, "created_at": "2025-10-06T10:22:49.992Z", "updated_at": "2025-10-06T10:22:50.684Z", "connector": "finix", "profile_id": "pro_GjR7afeLzCXVYhe62xl8", "merchant_connector_id": "mca_bSuyBQOAy40vpxbsiOCR", "split_refunds": null, "issuer_error_code": null, "issuer_error_message": null } ``` Make Rsync ```sh curl --location 'localhost:8080/refunds/ref_OL9OI4S00JxqZZk0l9j1?force_sync=true' \ --header 'Accept: application/json' \ --header 'api-key: dev_3cGokW5MFJmBnLTLmcS2EKAODQblXknbM6XCjDHLipq0CmLrUu3LNsIyFCDwgOwH' ``` ```json { "refund_id": "ref_OL9OI4S00JxqZZk0l9j1", "payment_id": "pay_K7EmavhAOgxV3pOMGHGL", "amount": 389, "currency": "USD", "status": "succeeded", "reason": null, "metadata": null, "error_message": null, "error_code": null, "unified_code": null, "unified_message": null, "created_at": "2025-10-06T10:22:49.992Z", "updated_at": "2025-10-06T10:23:20.589Z", "connector": "finix", "profile_id": "pro_GjR7afeLzCXVYhe62xl8", "merchant_connector_id": "mca_bSuyBQOAy40vpxbsiOCR", "split_refunds": null, "issuer_error_code": null, "issuer_error_message": null } ``` </details> <img width="995" height="1008" alt="Screenshot 2025-10-06 at 2 51 30 PM" src="https://github.com/user-attachments/assets/fe013d3c-a608-4b89-9072-dd83b8f1c0dd" /> <img width="1010" height="995" alt="Screenshot 2025-10-06 at 2 51 42 PM" src="https://github.com/user-attachments/assets/5c4a923a-d9d3-4fce-b7a9-0cf9d152caa6" /> <img width="867" height="951" alt="Screenshot 2025-10-06 at 2 52 03 PM" src="https://github.com/user-attachments/assets/f85c3460-0f51-436b-90ff-2f9dfddfe1e2" /> <img width="1279" height="972" alt="Screenshot 2025-10-06 at 3 04 12 PM" src="https://github.com/user-attachments/assets/279759b8-5ed3-4cc2-9298-38cfffd704e4" /> ### 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)? --> <img width="848" height="734" alt="Screenshot 2025-10-09 at 3 58 18 PM" src="https://github.com/user-attachments/assets/063679ca-8e53-44de-8862-10e29eddbfbf" /> - Mandates ,CIT and NIT, 3ds not implemented - Refunds will be pending first and then success after a min do rsync as attached in example. ## 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` - [ ] 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/connector_validation.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 9 more files **3. Type Definitions** - `crates/router/src/types/api/feature_matrix.rs` **4. Tests** - `config/deployments/integration_test.toml` - `cypress-tests/cypress/e2e/configs/Payment/Finix.js` - `cypress-tests/cypress/e2e/configs/Payment/Utils.js` **5. Configuration Files** - `config/deployments/production.toml` - `config/deployments/sandbox.toml` - `config/development.toml` **6. Other** - `api-reference/v1/openapi_spec_v1.json` - `api-reference/v2/openapi_spec_v2.json` **Code Patterns Applied:** - Define new data structures (18 changes) - Implement new functions (39 changes) - Extend existing types with new fields (566 changes) - Add conditional logic for feature flags or filtering (3 changes) **Detailed Identifier Changes:** Commit 5c6635be: 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/finix.rs** Remove: - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Finix Add: - 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::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::should_call_connector_customer - impl: impl api::ConnectorCustomer for Finix - impl: impl ConnectorIntegration<CreateConnectorCustomer, ConnectorCustomerData, PaymentsResponseData> for Finix - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Finix **crates/hyperswitch_connectors/src/connectors/finix/transformers.rs** Remove: - struct: pub::FinixRouterData - struct: pub::FinixPaymentsRequest Add: - function: private::try_from - function: private::try_from - function: private::try_from - function: private::try_from - function: private::try_from - struct: pub::FinixRouterData - impl: impl TryFrom<ResponseRouterData<F, FinixIdentityResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData> - impl: impl TryFrom<&FinixRouterData<'_, Authorize, PaymentsAuthorizeData, PaymentsResponseData>> for FinixPaymentsRequest - impl: impl TryFrom<&FinixRouterData<'_, Capture, PaymentsCaptureData, PaymentsResponseData>> for FinixCaptureRequest - mod: pub::request - mod: pub::response **crates/hyperswitch_connectors/src/connectors/finix/transformers/request.rs** Add: - function: pub::new - function: private::from - function: private::fmt - function: pub::is_failure - function: pub::get_flow_for_auth - struct: pub::FinixPaymentsRequest - struct: pub::FinixCaptureRequest - struct: pub::FinixCancelRequest - struct: pub::FinixCaptureAuthorizationRequest - struct: pub::FinixCreateIdentityRequest - struct: pub::FinixIdentityEntity - struct: pub::FinixCreatePaymentInstrumentRequest - struct: pub::FinixCreateRefundRequest - struct: pub::FinixThreeDSecure - struct: pub::FinixAddress - struct: pub::FinixAuthType - enum: pub::FinixId - enum: pub::FinixState - enum: pub::FinixPaymentType - enum: pub::FinixPaymentInstrumentType - enum: pub::FinixCardType - enum: pub::FinixIdentityType - enum: pub::FinixFlow - impl: impl FinixCreateRefundRequest - impl: impl From<String> for FinixId - impl: impl std::fmt::Display for FinixId - impl: impl FinixState - impl: impl FinixFlow **crates/hyperswitch_connectors/src/connectors/finix/transformers/response.rs** Add: - struct: pub::FinixPaymentsResponse - struct: pub::FinixIdentityResponse - struct: pub::FinixInstrumentResponse - struct: pub::FinixErrorResponse - struct: pub::FinixErrorEmbedded - struct: pub::FinixError **crates/hyperswitch_connectors/src/default_implementations.rs** Modify existing code **crates/router/src/core/connector_validation.rs** Modify existing code **crates/router/src/types/api/connector_mapping.rs** Modify existing code **crates/router/src/types/api/feature_matrix.rs** Modify existing code **crates/router/src/types/connector_transformers.rs** Modify existing code
{"pr_number": 9680, "pr_title": "feat(connector): Card non3ds | FINIX", "merged_at": "2025-10-09T13:19:07Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/connector_validation.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/finix.rs", "crates/hyperswitch_connectors/src/connectors/finix/transformers.rs", "crates/hyperswitch_connectors/src/connectors/finix/transformers/request.rs", "crates/hyperswitch_connectors/src/connectors/finix/transformers/response.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/router/src/types/api/connector_mapping.rs", "crates/router/src/types/connector_transformers.rs"], "types": ["crates/router/src/types/api/feature_matrix.rs"], "tests": ["config/deployments/integration_test.toml", "cypress-tests/cypress/e2e/configs/Payment/Finix.js", "cypress-tests/cypress/e2e/configs/Payment/Utils.js"], "config": ["config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml"], "other": ["api-reference/v1/openapi_spec_v1.json", "api-reference/v2/openapi_spec_v2.json"]}, "change_types": {"structs_added": 18, "functions_added": 39, "enums_added": 7, "fields_added": 566, "imports_added": 16, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(connector): [Nomupay] Implement nomupay payouts flows ## 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 includes: - Implementation of ```Nomupay payout flows```. - The connector utilizes ```payout_method_id``` for subsequent payouts. - ```Cypress tests``` for payout using ```payout_method_id```. - modified josekit, for empty payload, "{}" changed to "". commit: https://github.com/sumanmaji4/josekit-rs/commit/5ab54876c29a84f86aef8c169413a46026883efe Connector docs: https://docs.nomupay.com/payouts/integration/api-reference/#tag/Transfer-Methods/operation/getSubAccountInAccounts ### 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)? --> Added cypress tests and run ```npm run cypress:payouts``` **[Payout] [Bank transfer] [SEPA] Fulfill using Token** fails because it called after a successful payout. Nomupay needs a ```transfer_method_id``` along with connector_customer_id for subsequent payouts. <img width="767" alt="Screenshot 2025-02-12 at 11 49 46 AM" src="https://github.com/user-attachments/assets/754e6e9a-b38d-40e5-8b2c-a5babf84776a" /> ## 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/enums.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/connector_configs/toml/development.toml` - ... and 10 more files **4. Type Definitions** - `crates/router/src/types/api.rs` - `crates/router/src/types/transformers.rs` **5. Tests** - `cypress-tests/cypress/e2e/configs/Payout/Nomupay.js` - `cypress-tests/cypress/e2e/configs/Payout/Utils.js` - `cypress-tests/cypress/e2e/spec/Payout/00004-BankTransfer.cy.js` - ... and 3 more files **6. Configuration Files** - `config/development.toml` - `config/docker_compose.toml` **7. Other** - `Cargo.lock` - `api-reference-v2/openapi_spec.json` - `api-reference/openapi_spec.json` - ... and 2 more files **Code Patterns Applied:** - Define new data structures (21 changes) - Implement new functions (21 changes) - Extend existing types with new fields (412 changes) - Add conditional logic for feature flags or filtering (7 changes) **Detailed Identifier Changes:** Commit 501365c8: Files to modify: **crates/api_models/src/enums.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/nomupay.rs** Remove: - function: private::get_content_type - function: private::get_url - function: private::get_headers - function: private::get_content_type - impl: impl ConnectorValidation for Nomupay - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Nomupay - impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Nomupay Add: - function: private::get_private_key - function: private::box_to_jwt_payload **crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs** Remove: - struct: pub::NomupayPaymentsRequest Add: - struct: pub::Address - struct: pub::Profile - struct: pub::OnboardSubAccountRequest - struct: pub::BankAccount - struct: pub::VirtualAccountsType - struct: pub::OnboardTransferMethodRequest - struct: pub::NomupayPaymentRequest - struct: pub::QuoteRequest - struct: pub::CommitRequest - struct: pub::OnboardSubAccountResponse - struct: pub::OnboardTransferMethodResponse - struct: pub::NomupayPaymentResponse - struct: pub::FeesType - struct: pub::PayoutQuoteResponse - struct: pub::CommitResponse - struct: pub::NomupayMetadata - struct: pub::ValidationError - struct: pub::DetailsType - struct: pub::NomupayInnerError - struct: pub::NomupayErrorResponse - enum: pub::NomupayGender - enum: pub::TransferMethodType **crates/hyperswitch_connectors/src/constants.rs** Modify existing code **crates/hyperswitch_connectors/src/default_implementations.rs** Modify existing code **crates/hyperswitch_interfaces/src/api/payouts.rs** Add: - trait: pub::Payouts **crates/hyperswitch_interfaces/src/api/payouts_v2.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/nomupay.rs** Remove: - 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_refund_auto_captured_payment - function: private::should_partially_refund_succeeded_payment - function: private::should_refund_succeeded_payment_multiple_times - function: private::should_fail_payment_for_incorrect_cvc - function: private::should_fail_payment_for_invalid_exp_month - function: private::should_fail_void_payment_for_auto_capture - function: private::should_fail_capture_for_invalid_payment Add: - function: private::get_payout_info **crates/test_utils/src/connector_auth.rs** Modify existing code
{"pr_number": 6511, "pr_title": "feat(connector): [Nomupay] Implement nomupay payouts flows", "merged_at": "2025-02-25T20:23:58Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "user", "connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/enums.rs"], "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/Cargo.toml", "crates/hyperswitch_connectors/src/connectors/nomupay.rs", "crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs", "crates/hyperswitch_connectors/src/constants.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/router/tests/connectors/nomupay.rs", "crates/router/tests/connectors/sample_auth.toml", "crates/test_utils/src/connector_auth.rs"], "types": ["crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "tests": ["cypress-tests/cypress/e2e/configs/Payout/Nomupay.js", "cypress-tests/cypress/e2e/configs/Payout/Utils.js", "cypress-tests/cypress/e2e/spec/Payout/00004-BankTransfer.cy.js", "cypress-tests/cypress/e2e/spec/Payout/00006-PayoutUsingPayoutMethodId.cy.js", "cypress-tests/cypress/support/commands.js", "loadtest/config/development.toml"], "config": ["config/development.toml", "config/docker_compose.toml"], "other": ["Cargo.lock", "api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/hyperswitch_interfaces/src/api/payouts.rs", "crates/hyperswitch_interfaces/src/api/payouts_v2.rs"]}, "change_types": {"structs_added": 21, "functions_added": 21, "enums_added": 3, "fields_added": 412, "imports_added": 19, "conditionals_added": 7}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
ci: update cypress creds for Novalnet ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [X] CI/CD ## Description Update connector creds for Novalnet ### 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` - [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": 7035, "pr_title": "ci: update cypress creds for Novalnet", "merged_at": "2025-01-15T08:41:29Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"tests": [".github/workflows/cypress-tests-runner.yml"]}, "change_types": {"fields_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
feat(connector): [FISERV] Added PayPal Redirect Payment Method ## 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 --> Added PayPal Redirect Payment Flow. First we Create an Order and then in the return_url, customer gets redirected. After that we Capture the funds. Note: We are getting a missing fields error from the connector, possibly because this particular payment method hasn't been enabled from the connector dashboard. ### 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: https://developer.fiserv.com/product/CommerceHub/api/?type=post&path=/checkouts/v1/orders&branch=main&version=1.25.1000 ## 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 Paypal Redirect cURL: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_JYKTXJwwDWQuGPW0WjUKFXMJmJP468CKJE4U6qddT8LddLXpll9t8e0yWSLczCVm' \ --header 'Cookie: PHPSESSID=0b47db9d7de94c37b6b272087a9f2fa7' \ --data-raw '{ "amount": 700, "all_keys_required": true, "currency": "EUR", "connector": [ "fiserv" ], "confirm": true, "payment_link": false, "capture_on": "2029-09-10T10:11:12Z", "amount_to_capture": 700, "name": "John Doe", "email": "dg@example.com", "phone": "999999999", "phone_country_code": "+1", "description": "Its my first payment request", "authentication_type": "three_ds", "return_url": "https://google.com", "payment_method": "wallet", "payment_method_type": "paypal", "payment_method_data": { "wallet": { "paypal_redirect": {} } }, "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" }, "metadata": { "disable_avs": true, "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" }, "order_details": [ { "product_name": "Tea", "quantity": 1, "amount": 110, "product_img_link": "https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg" }, { "product_name": "Tea", "quantity": 1, "amount": 110, "product_img_link": "https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg" }, { "product_name": "Tea", "quantity": 1, "amount": 110, "product_img_link": "https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg" } ] }' ``` Response: ``` { "payment_id": "pay_UgwJ8sF0UpM0AiP9Jund", "merchant_id": "merchant_1752634536", "status": "failed", "amount": 700, "net_amount": 700, "shipping_cost": null, "amount_capturable": 0, "amount_received": null, "connector": "fiserv", "client_secret": "pay_UgwJ8sF0UpM0AiP9Jund_secret_MaGdtIVJCWsY9Jv6oM24", "created": "2025-07-17T05:06:13.199Z", "currency": "EUR", "customer_id": null, "customer": { "id": null, "name": "John Doe", "email": "dg@example.com", "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": null, "payment_method": "wallet", "payment_method_data": { "wallet": {}, "billing": null }, "payment_token": null, "shipping": null, "billing": null, "order_details": [ { "brand": null, "amount": 110, "category": null, "quantity": 1, "tax_rate": null, "product_id": null, "product_name": "Tea", "product_type": null, "sub_category": null, "product_img_link": "https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg", "product_tax_code": null, "total_tax_amount": null, "requires_shipping": null }, { "brand": null, "amount": 110, "category": null, "quantity": 1, "tax_rate": null, "product_id": null, "product_name": "Tea", "product_type": null, "sub_category": null, "product_img_link": "https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg", "product_tax_code": null, "total_tax_amount": null, "requires_shipping": null }, { "brand": null, "amount": 110, "category": null, "quantity": 1, "tax_rate": null, "product_id": null, "product_name": "Tea", "product_type": null, "sub_category": null, "product_img_link": "https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg", "product_tax_code": null, "total_tax_amount": null, "requires_shipping": 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": "Resource not found.", "unified_code": "UE_9000", "unified_message": "Something went wrong", "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": true, "connector_transaction_id": null, "frm_message": null, "metadata": { "udf1": "value1", "login_date": "2019-09-10T10:11:12Z", "disable_avs": true, "new_customer": "true" }, "connector_metadata": null, "feature_metadata": null, "reference_id": null, "payment_link": null, "profile_id": "pro_dRUTV6w1cX2PDwySmqkO", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_5pfIFZaGnx79rGU6ttO6", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-07-17T05:21:13.199Z", "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_method_id": null, "payment_method_status": null, "updated": "2025-07-17T05:06:14.371Z", "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 } ``` ## Cypress test <details> <summary> Fiserv </summary> <img width="490" height="1129" alt="Screenshot 2025-08-04 at 4 05 05 PM" src="https://github.com/user-attachments/assets/9cf42d9a-d499-47bc-8cd3-d2e053a024bb" /> </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/connector_configs/toml/development.toml` - `crates/connector_configs/toml/production.toml` - `crates/connector_configs/toml/sandbox.toml` - ... and 2 more files **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:** - Define new data structures (12 changes) - Implement new functions (1 changes) - Extend existing types with new fields (91 changes) **Detailed Identifier Changes:** Commit b0b71935: Files to modify: **crates/hyperswitch_connectors/src/connectors/fiserv.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs** Add: - function: private::serialize - struct: pub::CheckoutPaymentsRequest - struct: pub::FiservInteractions - struct: pub::FiservReturnUrls - struct: pub::FiservPaymentMethod - struct: pub::FiservOrder - struct: pub::ChargesPaymentRequest - enum: pub::FiservCheckoutChargesRequest - enum: pub::FiservChannel - enum: pub::FiservPaymentInitiator - enum: pub::FiservCustomerConfirmation - enum: pub::FiservIntent - enum: pub::FiservWallet - enum: pub::FiservWalletType - impl: impl Serialize for FiservCheckoutChargesRequest
{"pr_number": 8669, "pr_title": "feat(connector): [FISERV] Added PayPal Redirect Payment Method", "merged_at": "2025-08-08T09:29:32Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "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/fiserv.rs", "crates/hyperswitch_connectors/src/connectors/fiserv/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": 12, "functions_added": 1, "enums_added": 10, "fields_added": 91, "imports_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
fix(connector): [CYBERSOURCE] change ucaf_collection_indicator for mastercard payments via netcetera ## 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/7623 ### 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. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs` **Detailed Identifier Changes:** Commit 6e8bff3f: Files to modify: **crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs** Modify existing code
{"pr_number": 7675, "pr_title": "fix(connector): [CYBERSOURCE] change ucaf_collection_indicator for mastercard payments via netcetera", "merged_at": "2025-04-01T13:21:26Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
fix: Fixed spell check ## 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 --> - Fixed spell checks - Added `routing_approach` field in routing events API response ### 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. hit the routing analytics API ``` curl -H "api-key: dev_R5xpWKgvxcaxLcQateRbZKt8B9XkvqaPziIdwPHaPQrGTDTq5JRyncxPtOq9JNsj" "http://localhost:8080/analytics/v1/profile/routing_event_logs?type=Payment&payment_id=pay_evlgasQRCFOJplN3yWge" ``` Response - ``` [ { "merchant_id": "merchant_1748952604", "profile_id": "pro_SoNvSCTpaIDKRzkJqf59", "payment_id": "pay_evlgasQRCFOJplN3yWge", "routable_connectors": "Stripe:\"mca_rozlszQ8vn82sR6d42xe\"", "payment_connector": null, "request_id": "019735b4-19a5-7ed1-8efb-412f3d26f6e0", "flow": "Intelligent-router FetchSuccessRate", "url": "SuccessRateCalculator.FetchSuccessRate", "request": "{\"id\":\"pro_SoNvSCTpaIDKRzkJqf59\",\"params\":\"card\",\"labels\":[\"stripe:mca_rozlszQ8vn82sR6d42xe\"],\"config\":{\"min_aggregates_size\":5,\"default_success_rate\":100.0,\"specificity_level\":\"merchant\",\"exploration_percent\":20.0}}", "response": "{\"labels_with_score\":[{\"score\":100.0,\"label\":\"stripe:mca_rozlszQ8vn82sR6d42xe\"}],\"routing_approach\":\"exploitation\"}", "error": null, "status_code": 200, "created_at": "2025-06-03T12:11:25.008Z", "method": "Grpc", "routing_engine": "intelligent_router", "routing_approach": "Exploitation" }, { "merchant_id": "merchant_1748952604", "profile_id": "pro_SoNvSCTpaIDKRzkJqf59", "payment_id": "pay_evlgasQRCFOJplN3yWge", "routable_connectors": "", "payment_connector": "Stripe:\"mca_rozlszQ8vn82sR6d42xe\"", "request_id": "019735b4-19a5-7ed1-8efb-412f3d26f6e0", "flow": "Intelligent-router UpdateSuccessRateWindow", "url": "SuccessRateCalculator.UpdateSuccessRateWindow", "request": "{\"id\":\"pro_SoNvSCTpaIDKRzkJqf59\",\"params\":\"card\",\"labels_with_status\":[{\"label\":\"stripe:mca_rozlszQ8vn82sR6d42xe\",\"status\":true}],\"config\":{\"max_aggregates_size\":8,\"current_block_threshold\":{\"duration_in_mins\":null,\"max_total_count\":5}},\"global_labels_with_status\":[{\"label\":\"stripe:mca_rozlszQ8vn82sR6d42xe\",\"status\":true}]}", "response": "{\"status\":\"window_updation_succeeded\"}", "error": null, "status_code": 200, "created_at": "2025-06-03T12:11:26.323Z", "method": "Grpc", "routing_engine": "intelligent_router", "routing_approach": 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` - [ ] 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/routing.rs` **2. Core Business Logic** - `crates/router/src/core/payments/routing.rs` - `crates/router/src/core/routing/helpers.rs` **3. Other** - `crates/analytics/src/routing_events/events.rs` **Code Patterns Applied:** - Extend existing types with new fields (4 changes) **Detailed Identifier Changes:** Commit dbc1bbf2: Files to modify: **crates/analytics/src/routing_events/events.rs** Modify existing code **crates/api_models/src/routing.rs** Modify existing code **crates/router/src/core/payments/routing.rs** Modify existing code **crates/router/src/core/routing/helpers.rs** Modify existing code
{"pr_number": 8227, "pr_title": "fix: Fixed spell check", "merged_at": "2025-06-06T11:47:33Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/routing.rs"], "core_business": ["crates/router/src/core/payments/routing.rs", "crates/router/src/core/routing/helpers.rs"], "other": ["crates/analytics/src/routing_events/events.rs"]}, "change_types": {"fields_added": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(connector): [shift4] Blik, Klarna, Bitpay PMs added ## 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 --> `Blik`, `Klarna`, `Bitpay` PMs added for connector `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>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":"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":"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":"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":["CZK","EUR","PLN","GBP"]},{"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":["CAD","USD"]},{"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":"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":"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":"sofort","payment_method_type_display_name":"Sofort","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"supported_countries":["CHE","ITA","AUT","ESP","NLD","GBR","POL","DEU","BEL"],"supported_currencies":["CHF","HUF","GBP","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":"trustly","payment_method_type_display_name":"Trustly","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual"],"supported_countries":["GBR","NLD","DNK","EST","NOR","SWE","FIN","LVA","DEU","AUT","LTU","ESP"],"supported_currencies":["CZK","EUR","DKK","GBP","NOK","SEK"]},{"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":["CHN","AUT","GHA","FRA","LBY","LUX","ISL","MMR","OMN","MKD","USA","THA","VNM","PAK","URY","UKR","SVN","PAN","DEU","SLV","PER","ZMB","IRL","BGR","IDN","MOZ","JPN","BEL","HND","CHE","NGA","COL","ARE","DNK","GTM","AND","ROU","CRI","QAT","MYS","NZL","EST","ITA","GIB","ETH","EGY","POL","CZE","SAU","CYP","HKG","ESP","SEN","SVK","KHM","FIN","LTU","DOM","PRT","GBR","LIE","SWE","LAO","HUN","MEX","HRV","GRC"],"supported_currencies":["CZK","ZMW","CNY","RSD","BGN","LKR","MMK","CRC","KHR","ARS","AED","PKR","MXN","RON","PAB","SAR","LAK","GHS","ILS","UYU","DKK","SGD","VND","USD","MKD","IDR","CLP","UAH","KPW","THB","CHF","DOP","SEK","PLN","EUR","COP","HKD","HRK","HUF","ISK","PHP","MYR","EGP","MZN","GBP","HNL","ALL","NOK","NGN","NZD","QAR","TRY","OMR","PEN","ZAR","JPY","TWD","MAD"]},{"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":["PAK","COL","PER","KHM","GTM","HND","CZE","MMR","PAN","URY","CRI","SVK","HKG","MOZ","CHN","MKD","DEU","GIB","VNM","SEN","EGY","SVN","JPN","NZL","IRL","ISL","FRA","DOM","EST","THA","POL","BEL","AUT","ZMB","GBR","OMN","ITA","IDN","LTU","LUX","HUN","CHE","MEX","PRT","ETH","HRV","NGA","USA","MYS","ESP","LBY","ARE","SLV","DNK","LAO","SWE","UKR","GRC","CYP","ROU","GHA","AND","LIE","SAU","QAT","BGR","FIN"],"supported_currencies":["IDR","MKD","PHP","VND","BGN","CLP","COP","AED","MAD","ZMW","MXN","GHS","EGP","SGD","NOK","SEK","MMK","JPY","TWD","CRC","NGN","PKR","OMR","HUF","USD","HKD","MYR","NZD","EUR","SAR","ISK","HRK","RSD","PLN","LAK","ILS","UAH","DOP","ARS","LKR","PAB","QAR","RON","UYU","DKK","MZN","TRY","CHF","ALL","CNY","KHR","KPW","THB","GBP","HNL","PEN","CZK","ZAR"]},{"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":["NLD","FRA","GBR","USA","SWE","AUT","CZE","ITA","PRT","NZL","CAN","POL","CHE","GRC","FIN","ESP","NOR","BEL","AUS","IRL","DEU","DNK"],"supported_currencies":["USD","NOK","EUR","SEK","GBP","AUD","NZD","CHF","PLN","CAD","DKK"]}],"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":"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":"atome","payment_method_type_display_name":"Atome","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["MYS","SGP"],"supported_currencies":["SGD","MYR"]},{"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":"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":["SWE","FIN","DNK","NOR"],"supported_currencies":["DKK","NOK","SEK","EUR"]},{"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","CAN","ROU","SWE","ESP","CHE","POL","FRA","DEU","IRL","PRT","USA","BEL","GBR","FIN","AUS","ITA","GRC","CZE","AUT","NOR","NLD"],"supported_currencies":["CHF","GBP","EUR","CAD","NOK","SEK","PLN","USD","CZK","RON","DKK","AUD"]},{"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":["CAN","GBR","NZL","AUS","ITA","ESP","FRA","USA"],"supported_currencies":["GBP"]},{"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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","HRV","GBR","ROU","NZL","SVN","FRA","VNM","BHR","MLT","AUT","EST","KWT","PRT","CHE","ARE","LUX","ISL","TUR","THA","CAN","USA","NLD","SWE","LIE","NOR","SVK","AUS","GRC","HKG","SGP","DNK","IRL","ITA","LVA","CYP","MYS","BRA","LTU","DEU","JPN","CZE","BEL","ESP","POL"],"supported_currencies":["PEN","MUR","NZD","THB","HNL","GBP","GIP","SLE","BGN","HTG","BWP","UYU","ETB","SEK","NAD","PYG","TND","EGP","RON","ZMW","MMK","MVR","PHP","NPR","ALL","GTQ","KYD","BZD","WST","BYN","LAK","HKD","IQD","LBP","FJD","GMD","SBD","BDT","COP","AED","KZT","CRC","XCD","ARS","NIO","TRY","CUP","BBD","SAR","UAH","SCR","AMD","CHF","SGD","CZK","SZL","MDL","USD","BOB","MZN","TOP","TZS","DZD","AOA","PGK","BAM","EUR","BMD","VES","YER","ZAR","KGS","MRU","IDR","CVE","QAR","SRD","UGX","KWD","PLN","XOF","ILS","BND","HUF","FKP","MNT","LKR","MAD","LYD","CNY","AZN","JMD","ANG","DKK","BHD","MKD","MXN","NOK","RWF","SHP","TWD","JPY","PAB","VND","KMF","GHS","GNF","RUB","MWK","NGN","OMR","AUD","KHR","XAF","JOD","AWG","MYR","TTD","XPF","DJF","BRL","KES","DOP","BSD","GEL","STN","MOP","PKR","SOS","GYD","VUV","INR","SVC","CAD","UZS","CLP","RSD","KRW"]},{"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":["AUS","MYS","CZE","LVA","HUN","BEL","GBR","SWE","DNK","DEU","GRC","LTU","CHE","SGP","MLT","ISL","LUX","FRA","BRA","HKG","ESP","SVN","FIN","NZL","BHR","NOR","CYP","CAN","NLD","JPN","USA","ARE","AUT","EST","KWT","ITA","UKR","LIE","CHN","POL","IRL","HRV","PRT","ROU"],"supported_currencies":["GBP","HKD","SGD","AUD","EUR","CAD","USD","CHF","MYR"]},{"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":"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":"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":"ali_pay","payment_method_type_display_name":"Alipay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["THA","IRL","GRC","ESP","FIN","DEU","GBR","FRA","SWE","MYS","AUT","HKG","PRT","CYP","BEL","ITA","AUS","NLD","JPN","CHE","CAN","USA","SGP","ROU","MLT","SVN","DNK","NOR"],"supported_currencies":["GBP","JPY","USD","CHF","NZD","CAD","NOK","SEK","SGD","HKD","EUR","THB","AUD"]},{"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":["ITA","FRA","CHN","NOR","DEU","GBR","CAN","SGP","AUS","GRC","CYP","JPN","ESP","NZL","NLD","AUT","LIE","USA","PRT","SWE","HKG","SVN","MLT","CHE","DNK","BEL"],"supported_currencies":["CAD","EUR","SGD","HKD","USD","AUD","JPY","CNY","NZD","GBP"]},{"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":"paypal","payment_method_type_display_name":"PayPal","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"supported_countries":["CZE","CAN","USA","DNK","THA","AUS","HRV","DEU","KOR","CHE","EST","FIN","MYS","SWE","ESP","BEL","SVK","SVN","CHN","LVA","HKG","MLT","IRL","JPN","KWT","ARE","ITA","NLD","FRA","PHL","GIB","GBR","NOR","UKR","ROU","LTU","BRA","NZL","LUX","IDN","AUT","PRT","HUN","ISL","POL","CYP"],"supported_currencies":["NOK","PLN","JPY","MYR","AUD","EUR","SEK","DKK","HKD","PHP","CAD","CZK","GBP","RUB","CHF","THB","BRL","HUF","NZD","USD","SGD","INR","MXN"]},{"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":"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":"mobile_pay","payment_method_type_display_name":"MobilePay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"supported_countries":["FIN","DNK"],"supported_currencies":["SEK","DKK","NOK","EUR"]},{"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":"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":"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":"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":"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":"trustly","payment_method_type_display_name":"Trustly","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["GBR","EST","LTU","DEU","DNK","NOR","AUT","ESP","SWE","NLD","FIN","LVA"],"supported_currencies":["GBP","DKK","SEK","CZK","NOK","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":"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_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_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":["CZK","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":"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":"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":["EUR","CZK"]},{"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":"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":"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":["LUX","ISL","FRA","GBR","ARE","CHE","DNK","MLT","SWE","GIB","MNE","HRV","LVA","GEO","PRT","DEU","PER","CZE","KWT","POL","LTU","ROU","SVN","SAU","PRY","BRA","SRB","NOR","IRL","MEX","URY","HUN","MDA","USA","TUR","CAN","NZL","FIN","NLD","ESP","CYP","BEL","AUT","SVK","AUS","LIE"],"supported_currencies":["GBP","USD","AUD","CAD","HUF","NZD","PLN","BRL","MXN","SAR","RSD","SEK","CZK","TRY","GEL","GIP","NOK","EUR","PEN","CHF","AED","DKK","KWD","PYG","UYU","RON","MDL"]},{"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":"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":"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":"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":"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":"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":"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":"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":"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":"knet","payment_method_type_display_name":"KNET","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":"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":"sepa","payment_method_type_display_name":"SEPA Direct Debit","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic","manual_multiple"],"supported_countries":["SVK","BEL","LTU","LVA","ESP","FRA","AUT","FIN","IRL","DEU","NLD","PRT","EST","ITA"],"supported_currencies":["EUR"]},{"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"]}],"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":["USA","SGP","AUS","HKG","NZL"],"supported_currencies":["BTN","RWF","SRD","KES","EUR","BIF","NPR","VES","SEK","NZD","UYU","HRK","NAD","HKD","BDT","TWD","PGK","JMD","SOS","HUF","ZAR","GNF","AZN","SGD","KMF","TMT","BMD","CHF","DZD","NIO","QAR","UAH","KPW","SZL","DKK","KZT","RUB","NGN","MOP","XPF","MNT","SAR","MRU","EGP","SDG","COP","MXN","CVE","MKD","HTG","TZS","IRR","MMK","SLL","AFN","DJF","GEL","HNL","SCR","JPY","LRD","AWG","SVC","GHS","ALL","BAM","KWD","FKP","LBP","MGA","BOB","MZN","BHD","ZWL","ETB","LSL","MWK","PHP","BRL","SYP","XCD","CNY","KHR","RSD","TJS","GTQ","LAK","TTD","CAD","ARS","BND","FJD","PAB","NOK","PEN","TND","TOP","MVR","DOP","KGS","KYD","BBD","AMD","BYN","OMR","AUD","WST","XOF","TRY","GMD","SLE","MDL","SSP","GBP","BWP","CUP","IDR","MUR","PKR","CDF","CZK","BSD","JOD","YER","AED","CLP","LYD","THB","LKR","MYR","USD","ISK","VUV","KRW","VND","GYD","ILS","INR","AOA","BZD","PLN","UGX","STN","SHP","UZS","ERN","GIP","RON","BGN","SBD","XAF","ZMW","CRC","IQD","MAD","PYG","ANG"]},{"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":["SGP","HKG","USA","NZL","AUS"],"supported_currencies":["SCR","RUB","BRL","SDG","SYP","SZL","CLP","HKD","SVC","AMD","BND","GEL","VUV","SSP","YER","XAF","DOP","CAD","MXN","BMD","GIP","KWD","THB","CVE","KES","KGS","MWK","OMR","KMF","GTQ","PHP","BBD","USD","XCD","COP","NPR","UGX","XPF","TTD","STN","VES","CHF","NAD","TMT","UZS","BZD","DZD","CDF","NOK","INR","IRR","XOF","ARS","RON","ZAR","AWG","AUD","MMK","IQD","KHR","KPW","JOD","SBD","CUP","DJF","JMD","MAD","MNT","DKK","MRU","SRD","LAK","AED","BGN","BSD","SLL","PLN","ZMW","LSL","PYG","PKR","AOA","BIF","TZS","EGP","EUR","MGA","LKR","NGN","HRK","BTN","GNF","IDR","GMD","ISK","FJD","ILS","LYD","ETB","MZN","HUF","SHP","UYU","AZN","BHD","SGD","MUR","ZWL","RWF","BOB","GHS","LBP","LRD","PEN","TRY","VND","ERN","CNY","GYD","ALL","TND","TWD","PGK","KYD","BAM","TJS","FKP","MKD","JPY","HTG","KZT","NIO","GBP","WST","BDT","SAR","QAR","MVR","UAH","BYN","MDL","CRC","SEK","BWP","NZD","SLE","TOP","MYR","HNL","MOP","RSD","SOS","KRW","AFN","CZK","PAB","ANG"]},{"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","AUS","HKG","SGP","NZL"],"supported_currencies":["CAD","YER","MKD","MOP","BOB","BZD","MGA","CRC","RWF","GTQ","USD","VUV","PAB","PEN","SLL","RUB","VES","GEL","UAH","KPW","BMD","PKR","LKR","NPR","MWK","SAR","SRD","MNT","KYD","OMR","PGK","NOK","TND","TMT","UGX","ALL","SOS","JOD","MZN","BGN","HNL","GMD","XAF","CNY","HTG","ISK","LBP","ETB","NIO","KZT","HUF","BHD","PYG","RSD","SEK","BDT","MXN","ZMW","IDR","JMD","KRW","LSL","MYR","MVR","JPY","LYD","DJF","QAR","MRU","GBP","NGN","AUD","CZK","ARS","MUR","LAK","EGP","TZS","PHP","BBD","GNF","PLN","IRR","SDG","SHP","TOP","BSD","FJD","SVC","MAD","SBD","ZWL","HRK","ILS","KGS","MDL","RON","HKD","TWD","TJS","STN","CLP","ANG","DOP","GYD","XCD","AOA","MMK","WST","SZL","CHF","CDF","AFN","BRL","BAM","CVE","ERN","EUR","AZN","KWD","SLE","BYN","SCR","INR","ZAR","DKK","SYP","FKP","AWG","TTD","UZS","XPF","NZD","BWP","BTN","BND","KMF","SGD","XOF","BIF","AMD","AED","TRY","GHS","IQD","THB","UYU","KHR","VND","COP","NAD","DZD","GIP","SSP","CUP","LRD","KES"]}],"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":["CAD","USD"]},{"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":"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":["DKK","QAR","NZD","USD","TWD","RON","GTQ","PEN","ISK","CAD","MYR","PYG","GHS","HNL","CZK","THB","VND","GBP","AED","EUR","SGD","HKD","KRW","CLP","EGP","HUF","AUD","KZT","MAD","PLN","MXN","SAR","COP","BRL","CRC","KWD","JPY","GEL","NOK","ZAR","INR","ILS","SEK","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":null,"supported_currencies":["USD","PLN","GBP","HUF","THB","TWD","PHP","CAD","DKK","HKD","AUD","SGD","CNY","BRL","JPY","MXN","MYR","NOK","SEK","ILS","CZK","EUR","NZD","CHF"]},{"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":["EUR","NZD","CHF","CAD","DKK","NOK","PLN","SEK","GBP","USD","AUD"]}],"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":"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":["CAF","GUY","UGA","SYC","TKM","NZL","CHN","ZMB","GEO","COM","CIV","GHA","PRT","AGO","PAK","GBR","GTM","CMR","MWI","CRI","GNQ","OMN","PSE","KEN","LIE","SGP","BLR","SWZ","MLI","TUR","HRV","SMR","ZAF","KHM","DZA","TUV","MAR","FRA","LBR","BDI","LKA","KOR","SSD","SLV","MNE","GRC","UKR","BIH","ALB","BRB","GNB","URY","AUT","SUR","COD","CPV","NRU","PRY","THA","CYP","PLW","EST","COG","GRD","ERI","ISL","SRB","VAT","KAZ","MMR","SVK","COL","MKD","SAU","BLZ","WSM","LVA","BGD","BTN","ARE","FSM","AUS","AZE","LBN","NLD","TJK","BEN","MDV","MOZ","ATG","SLE","GGY","ISR","HND","DMA","BGR","TCD","JPN","IND","BRN","DEU","MNG","SVN","EGY","MUS","TON","PAN","CHE","MRT","QAT","GAB","FIN","NIC","DJI","HUN","LUX","BEL","BRA","AND","SEN","MDG","VEN","ARG","NPL","UZB","IDN","CZE","KWT","USA","IRL","LSO","JAM","STP","CHL","TLS","ETH","PNG","DNK","ARM","LTU","VUT","VCT","GMB","KGZ","BHR","HTI","MYS","POL","TZA","BWA","LAO","FJI","NER","NOR","LCA","SLB","ECU","NGA","GIN","ESP","MDA","MCO","MHL","TGO","ITA","BOL","KIR","KNA","DOM","JOR","PHL","BHS","VNM","SOM","ZWE","ROU","RWA","MLT","MEX","CAN","PER","NAM","SWE","TTO","TUN"],"supported_currencies":["CHF","NPR","JPY","QAR","BND","CAD","RSD","GHS","BWP","BGN","RON","TRY","BOB","TZS","USD","ISK","SCR","MYR","RUB","AED","PKR","CNY","NGN","KES","IRR","MWK","SLL","HRK","TWD","BDT","VND","COP","MOP","PHP","AUD","KZT","MMK","ZAR","FJD","RWF","BRL","HKD","MZN","SEK","EUR","IQD","EGP","KRW","UAH","UGX","ILS","INR","MXN","KWD","GBP","NAD","UYU","PEN","XOF","MDL","LKR","ZMW","GEL","DKK","HUF","IDR","XAF","LAK","NOK","THB","PLN","MAD","CZK","NZD","SAR","SGD"]},{"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":["BRA","JAM","HND","MDG","FSM","SRB","ITA","VEN","ECU","VNM","COD","MUS","VCT","SMR","WSM","VAT","DEU","ZWE","IRL","BTN","DMA","BDI","TJK","JOR","GRC","LKA","SOM","GBR","BEL","AZE","IDN","CIV","GAB","PER","MLT","MDA","DZA","USA","ATG","GUY","TUN","ZMB","PHL","AND","GIN","CHL","SLB","ARE","NLD","KEN","JPN","NER","SLV","SSD","GGY","NPL","FRA","ZAF","UKR","BWA","GMB","COG","FJI","BHS","BHR","TLS","SVK","TCD","TZA","SWE","HRV","TON","TTO","QAT","CAN","LIE","GTM","PSE","PRY","NOR","SLE","LSO","LBR","LUX","GHA","MLI","MRT","CPV","NGA","ISR","MDV","GEO","OMN","ISL","GNB","HUN","PNG","DJI","BGD","LBN","AGO","TUR","CHN","CYP","SYC","NZL","BLZ","POL","TUV","ROU","UZB","KNA","ESP","AUS","UGA","KWT","PAK","EST","LTU","COL","BEN","BIH","HTI","NIC","NRU","LVA","STP","EGY","SEN","KAZ","GRD","MAR","SAU","MKD","NAM","CMR","KOR","BGR","IND","GNQ","PLW","THA","BRN","KHM","URY","ERI","KGZ","MCO","FIN","DOM","MYS","ARM","RWA","MNG","DNK","MWI","MHL","MMR","VUT","MEX","ALB","SVN","LAO","ARG","PAN","SGP","TKM","CZE","TGO","LCA","MOZ","SWZ","BOL","ETH","SUR","CAF","BRB","AUT","CRI","BLR","COM","PRT","MNE","KIR","CHE"],"supported_currencies":["CAD","UGX","BGN","SAR","PLN","ZAR","MAD","IQD","THB","CZK","KZT","GEL","PKR","RUB","SLL","AUD","IDR","JPY","NAD","EUR","KWD","SGD","UAH","USD","XAF","ZMW","HKD","VND","IRR","INR","NOK","MDL","BDT","EGP","NZD","GHS","AED","BND","MWK","BWP","PHP","UYU","GBP","MMK","MXN","ISK","FJD","HUF","DKK","NGN","CNY","RON","KRW","LAK","SEK","PEN","TWD","RWF","QAR","ILS","MYR","LKR","BOB","SCR","KES","COP","CHF","TZS","MOP","XOF","HRK","RSD","TRY","MZN","NPR","BRL"]}],"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":"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},{"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}],"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","FRA","SWE","DNK"],"supported_currencies":["NOK","DKK"]},{"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":["DNK","FRA","SWE","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":["BEL","POL","DNK","EST","PRT","MLT","LVA","GRC","BGR","SVK","HRV","GBR","FIN","USA","DEU","FRA","CYP","HUN","IRL","AUT","SWE","SVN","ESP","LTU","LUX","ROU","ITA","CAN","CZE","NLD"],"supported_currencies":["CAD","EUR","CHF","NZD","USD","MXN","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":"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":["BLZ","CHL","GAB","JPN","SRB","SGP","PRT","MHL","KNA","GNB","COG","LSO","ECU","AZE","HTI","BIH","IDN","CMR","NOR","NLD","COD","GBR","ZAF","CAN","KEN","MWI","ISL","NIC","SLV","UGA","ITA","VUT","MRT","KGZ","SMR","BRB","FJI","ISR","AUS","ESP","KOR","JOR","UKR","MNG","BLR","MMR","MDV","TON","FSM","VAT","KIR","BGR","TGO","AUT","USA","STP","SAU","UZB","BHR","COL","MLI","MDG","HRV","LBR","DEU","NZL","LAO","ALB","GNQ","SWE","ARE","COM","MKD","MCO","PAK","JAM","TKM","LBN","SOM","POL","ZWE","PER","ARM","GEO","LKA","GHA","CYP","GMB","WSM","BRA","THA","SLE","HND","GIN","NPL","MLT","KAZ","SSD","MDA","SYC","GRC","LIE","CZE","GGY","RWA","PLW","TTO","HUN","VNM","SEN","NRU","SVK","BEN","CPV","AGO","KHM","BRN","AND","IRL","GTM","FIN","KWT","TCD","CHN","BWA","SUR","OMN","GRD","FRA","LUX","LCA","TLS","DNK","QAT","DOM","NGA","SWZ","PSE","MYS","VEN","BTN","BOL","DZA","IND","ROU","DMA","PHL","SLB","EGY","CIV","PNG","MNE","ERI","LTU","ZMB","SVN","CHE","BDI","PAN","EST","TUV","BHS","TUR","BGD","DJI","ETH","CAF","ARG","GUY","TJK","MUS","URY","NER","MOZ","VCT","ATG","LVA","NAM","TUN","TZA","BEL","MAR","MEX","PRY","CRI"],"supported_currencies":["CAD","CHF","SCR","BHD","VND","SAR","KZT","GIP","ISK","ZAR","ANG","KYD","EUR","OMR","PKR","AED","LKR","ARS","KWD","RUB","EGP","DZD","UZS","RON","BMD","MUR","MXN","CNY","INR","AUD","BSD","HUF","BBD","BWP","PGK","PHP","RSD","TZS","PAB","TRY","SDG","DOP","KHR","FJD","THB","BAM","JPY","LBP","XOF","MKD","NOK","DKK","NPR","KRW","CLP","ILS","QAR","JMD","GBP","TTD","PEN","TND","HKD","NGN","UAH","BRL","AFN","XAF","XCD","PLN","NZD","BOB","COP","GTQ","KES","CZK","USD","NAD","BND","AMD","SEK","TWD","ALL","BGN","IDR","MYR","UYU","GEL","CRC","MDL","AWG","SGD","MWK","MAD"]},{"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":["CMR","BGR","VUT","SWZ","MDG","GTM","PER","MKD","SLE","ALB","BHS","UKR","NIC","CYP","QAT","CPV","SUR","STP","FSM","KNA","AGO","LCA","FRA","TCD","TTO","PLW","CIV","THA","MAR","MWI","AND","DEU","DJI","ESP","TUN","VEN","BRA","PNG","LVA","CHN","COD","BEL","VNM","TKM","FIN","ZWE","SMR","IDN","SAU","ZAF","CHL","AUT","LIE","CRI","TJK","KHM","TLS","SGP","JPN","MUS","MNG","PRT","TON","MYS","HRV","KAZ","JAM","BEN","MCO","GIN","KGZ","IRL","SVN","MLI","ATG","NRU","KWT","CHE","GEO","ARM","GNQ","PAN","ECU","MDV","HTI","SEN","PHL","DMA","NAM","GNB","CZE","BRN","SLB","AZE","NLD","USA","BWA","LBN","ERI","GAB","COM","AUS","WSM","ETH","NER","ITA","ISR","NZL","OMN","JOR","BGD","NGA","TZA","DNK","VCT","MLT","GUY","HUN","PRY","MHL","BLR","BRB","BTN","MNE","GMB","BIH","CAF","MMR","COL","MOZ","HND","MDA","EGY","URY","IND","ROU","MRT","SWE","LSO","POL","TGO","GRC","ISL","LKA","NOR","ARE","SYC","LTU","SSD","BDI","KOR","RWA","GGY","LBR","BHR","BOL","GRD","NPL","SRB","VAT","LAO","TUV","MEX","DOM","PSE","SOM","TUR","SLV","DZA","CAN","EST","COG","UZB","KIR","SVK","LUX","FJI","ZMB","GBR","KEN","GHA","PAK","UGA","ARG","BLZ"],"supported_currencies":["PGK","USD","NZD","TTD","CZK","LKR","SDG","ZAR","JPY","GTQ","TWD","SAR","CHF","ILS","MWK","SCR","UZS","JMD","AMD","BWP","KES","GBP","AED","AUD","BND","DZD","GIP","ISK","MDL","MKD","NPR","NAD","OMR","THB","CRC","CLP","FJD","KRW","NOK","TRY","BOB","UYU","NGN","VND","XOF","CAD","PEN","RSD","DOP","BMD","ALL","ANG","COP","BBD","AFN","MYR","ARS","SGD","XAF","KYD","PHP","MXN","MUR","XCD","CNY","QAR","LBP","HKD","RUB","GEL","BAM","BGN","EGP","KWD","BHD","RON","SEK","TZS","PAB","PKR","TND","AWG","UAH","PLN","EUR","IDR","BRL","DKK","INR","HUF","KHR","BSD","KZT","MAD"]},{"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":["MDG","CPV","VCT","NRU","ARE","UGA","BRA","BRN","RWA","PER","HUN","CAN","TJK","GBR","SLE","IND","TKM","URY","MLI","SEN","VEN","IRL","KIR","PRY","NGA","OMN","TTO","NER","CHE","ALB","VNM","BTN","ZWE","PSE","PNG","PHL","FJI","GNQ","COD","NPL","BGR","AZE","UZB","BHR","KEN","BLZ","GGY","SAU","KHM","COL","CZE","FIN","TGO","USA","CAF","ARM","SYC","CRI","HND","SVN","QAT","NOR","MDV","SUR","FSM","EST","MHL","NAM","TUV","LSO","PAN","ECU","SMR","LCA","ZMB","NLD","GRC","KGZ","AND","MCO","COG","STP","TZA","KWT","ESP","HRV","ETH","ARG","MWI","GNB","BEN","GTM","PAK","LUX","SVK","MKD","DMA","LTU","NIC","LIE","DEU","GRD","MNE","LKA","AGO","BGD","GHA","SGP","POL","MOZ","BEL","ROU","BIH","LVA","COM","BWA","MRT","JAM","CIV","KNA","TON","DZA","GEO","GAB","ISR","CMR","DNK","SOM","MEX","GIN","IDN","TCD","BHS","BOL","EGY","VAT","FRA","MUS","HTI","SWE","AUT","MMR","JOR","VUT","DOM","KAZ","NZL","JPN","LBN","CHL","LBR","UKR","ITA","ZAF","BRB","SSD","ISL","ERI","MDA","CYP","BDI","SRB","KOR","THA","TUR","MYS","PLW","SLB","GUY","BLR","LAO","SLV","GMB","DJI","SWZ","ATG","MLT","WSM","CHN","AUS","MNG","MAR","PRT","TLS","TUN"],"supported_currencies":["AFN","MUR","UAH","ZAR","BSD","BOB","ISK","KHR","JMD","SDG","AUD","BGN","LBP","COP","INR","CLP","PKR","DKK","QAR","IDR","TTD","BND","CZK","NGN","AED","CHF","GTQ","LKR","GBP","KYD","PHP","GIP","RSD","SCR","TND","BBD","XAF","EGP","KWD","DZD","CRC","ILS","BWP","ANG","CNY","GEL","MWK","MXN","RUB","UYU","KRW","THB","KES","KZT","MKD","SGD","BHD","NPR","PAB","OMR","AWG","TZS","VND","EUR","JPY","ARS","HKD","TWD","USD","MYR","PLN","UZS","NAD","BMD","AMD","FJD","MDL","RON","NZD","BAM","BRL","SEK","XOF","NOK","TRY","ALL","DOP","MAD","HUF","PGK","XCD","CAD","SAR","PEN"]}],"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":"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":["SVK","CHE","MYS","ESP","CZE","FRA","AUT","EST","SWE","NLD","CAN","POL","DEU","LIE","MLT","AUS","GRC","PRT","HUN","LUX","ROU","ITA","JEY","GBR","MCO","BEL","IMN","LVA","DNK","SMR","CYP","GIB","NZL","NOR","HRV","IRL","HKG","BGR","AND","LTU","SVN","USA","SGP","GGY","FIN"],"supported_currencies":["CHF","NIO","KHR","XOF","HKD","BMD","DOP","HNL","GYD","MAD","MVR","MWK","MDL","MNT","SEK","TTD","CLP","PKR","UYU","STD","CRC","WST","PGK","LSL","EGP","XCD","KZT","RWF","HTG","DZD","GTQ","FKP","BYN","ETB","LRD","TZS","LBP","NGN","VUV","KES","TRY","MUR","UZS","CZK","BSD","CNY","MYR","AED","DKK","SRD","SZL","BBD","LKR","SLL","GEL","AMD","NPR","NAD","IDR","PEN","VES","USD","BWP","VND","ARS","PLN","KRW","TWD","NOK","NZD","MKD","QAR","BOB","ZAR","XPF","MOP","SGD","MZN","DJF","BAM","COP","THB","SOS","JPY","SVC","GNF","TOP","GMD","HUF","BGN","KMF","CAD","AWG","JMD","UGX","INR","BND","RON","BDT","ZMW","AUD","PAB","SCR","PYG","KYD","BZD","YER","AZN","BIF","ZWL","EUR","HRK","PHP","SHP","GIP","KGS","FJD","XAF","SYP","UAH","ISK","LAK","CVE","GBP","TJS","SBD","AOA","RSD","RUB","BRL","SAR","GHS","MXN","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":["AmericanExpress","Discover","JCB","UnionPay","Mastercard","Visa"],"supported_countries":["LUX","GRC","ROU","GGY","POL","SMR","BGR","NOR","CAN","DNK","SWE","SVK","LVA","AUS","NZL","JEY","BEL","MLT","AND","USA","HKG","GBR","AUT","ITA","SGP","GIB","SVN","FRA","IRL","LTU","HUN","CHE","LIE","PRT","CYP","MYS","EST","MCO","DEU","IMN","NLD","FIN","HRV","CZE","ESP"],"supported_currencies":["BRL","SAR","UZS","GNF","NGN","SVC","CRC","HNL","WST","AZN","VES","CVE","COP","GIP","CLP","PEN","PLN","CZK","PGK","CAD","NIO","PAB","SLL","STD","GBP","KES","GHS","PKR","TWD","SYP","VND","XCD","XOF","EGP","AOA","NOK","MZN","BGN","NZD","DKK","BSD","BZD","USD","AMD","EUR","KYD","JPY","GEL","MWK","MNT","SBD","BIF","DJF","CHF","TZS","BOB","PHP","IDR","HRK","HUF","LRD","ILS","LAK","GYD","UAH","BYN","NAD","MYR","KHR","VUV","SCR","TOP","SZL","MDL","LBP","ZAR","KRW","BBD","UGX","XPF","TTD","SOS","MOP","AUD","TJS","BMD","BWP","GTQ","KMF","TRY","NPR","RUB","SGD","LKR","RWF","KZT","LSL","HTG","RSD","YER","KGS","RON","JMD","BND","ISK","INR","QAR","ZMW","ZWL","AWG","ARS","BDT","MUR","CNY","BAM","MAD","MVR","XAF","ETB","UYU","SRD","MKD","PYG","HKD","SEK","FKP","SHP","AED","GMD","THB","DZD","MXN","DOP","FJD"]}],"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":["ASM","CAN","CCK","PRK","VEN","MAF","MOZ","TKM","MRT","PRT","GLP","GAB","AUS","LUX","ATG","NER","MNP","TUN","STP","LVA","CUB","LCA","KEN","YEM","BES","ALA","LBY","CYP","ZMB","TON","BVT","JAM","DOM","PHL","ARG","VUT","SWZ","DEU","CZE","TKL","NCL","IDN","UZB","RUS","KIR","UKR","WSM","ZWE","MNE","NPL","SAU","MNG","BRA","SHN","CHN","LIE","ARE","CPV","IRN","MSR","BHS","KNA","MDG","GGY","SLB","SGP","NOR","GMB","CMR","THA","PSE","SYR","PLW","ROU","SWE","MUS","GIB","SMR","EGY","CYM","HMD","KOR","GIN","GRC","SXM","CUW","UGA","GRL","CAF","BWA","GBR","HTI","MCO","LKA","RWA","PAN","CXR","KHM","MTQ","QAT","VGB","JOR","TZA","BEL","AND","LBN","ESH","HND","TCD","BGR","TCA","AZE","FIN","SJM","PRY","TUR","CHL","SVN","BDI","BRN","REU","DZA","FRA","GUM","GRD","TUV","COG","SYC","TJK","SDN","GTM","VIR","BRB","HRV","BLM","VNM","ZAF","IMN","SLE","VAT","PCN","BLZ","VCT","AIA","NRU","MLI","ESP","NIC","COL","USA","PNG","ETH","GHA","FRO","MWI","FJI","BTN","MLT","KGZ","FLK","ABW","MKD","LAO","COM","URY","PRI","POL","TTO","IOT","MDA","SUR","NAM","NIU","SLV","PER","BOL","IRQ","GNB","CHE","ISR","MYS","MHL","ATF","OMN","GEO","GNQ","GUY","BGD","ISL","NFK","PAK","KAZ","MAR","ECU","MYT","BLR","MDV","PYF","SPM","DNK","ITA","TWN","DMA","LTU","AGO","MEX","GUF","TLS","MAC","KWT","NZL","LBR","COD","UMI","IRL","CIV","SVK","LSO","TGO","FSM","HUN","ALB","AFG","SRB","HKG","SSD","SEN","AUT","NLD","EST","JEY","SGS","ARM","NGA","JPN","SOM","DJI","COK","CRI","BHR","BEN","IND","ERI","WLF","MMR","BIH","ATA","BFA","BMU"],"supported_currencies":["BHD","BTN","WST","ZMW","BDT","ERN","FKP","MNT","ARS","AUD","MWK","NGN","TTD","IQD","AWG","LBP","IRR","CHF","LSL","XAF","JPY","UAH","UYU","BMD","DKK","INR","ANG","SZL","TZS","MAD","MKD","RUB","KZT","SCR","QAR","JMD","HTG","MOP","AZN","BYN","NPR","ETB","BND","VND","VES","GMD","MMK","MYR","GHS","TJS","GIP","CZK","XOF","PKR","TND","MDL","UZS","NZD","CLF","LAK","AOA","COP","RSD","KYD","BRL","SVC","USD","XPF","GEL","TWD","IDR","LRD","SOS","MGA","ISK","BIF","LKR","SHP","CLP","CUP","SBD","EUR","KGS","JOD","CAD","KPW","CNY","CDF","CRC","DOP","HRK","NIO","ILS","AFN","PEN","PHP","NAD","SSP","BZD","BOB","BWP","FJD","GNF","HUF","HNL","KWD","LYD","CUC","GBP","HKD","KES","MUR","OMR","RWF","SGD","KHR","SLL","STN","SRD","SYP","BAM","AED","UGX","ZWL","GTQ","YER","TOP","PLN","EGP","DZD","MXN","SLE","BBD","DJF","TRY","MRU","XCD","PAB","ALL","NOK","MVR","AMD","RON","BGN","CVE","SAR","THB","VUV","SEK","MZN","TMT","KRW","SDG","PGK","ZAR","GYD","PYG","STD","BSD","KMF"]},{"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":["MUS","AIA","CCK","STP","PER","SOM","SYC","JEY","MCO","MTQ","BFA","ARG","TKL","KEN","IRN","SGP","JOR","MEX","FRO","SRB","SUR","ROU","DOM","LAO","VCT","SXM","CUW","LUX","CPV","ATF","LTU","GEO","MDG","NPL","EGY","BGR","UMI","PNG","LKA","BHR","ESH","URY","MDA","TCA","ALB","BEN","SWE","KHM","TTO","UZB","NOR","ESP","LVA","KAZ","LSO","MKD","HRV","BES","GIB","ZWE","VGB","LBR","UGA","NIC","THA","KOR","BMU","BHS","MAC","SPM","TLS","IRL","ZAF","GRD","BRN","GLP","ASM","GRL","CMR","BEL","AGO","RWA","SLB","COG","TZA","MNE","GAB","GTM","NCL","SVK","MRT","TCD","ISR","CAN","USA","AZE","ARM","HTI","KGZ","DEU","GMB","VEN","HMD","SMR","BGD","TWN","ECU","BRA","KNA","VIR","CUB","SVN","BLR","CIV","NFK","RUS","TUR","AFG","TJK","CHL","TON","TUV","DJI","GUM","FJI","MNP","ISL","PSE","SJM","SHN","WLF","GGY","QAT","VAT","PRI","DMA","IDN","SAU","FIN","GHA","NER","BDI","LBN","HKG","JPN","IOT","OMN","ATA","SDN","MLI","MNG","CHE","VUT","BIH","UKR","FLK","FRA","NAM","PAK","GNQ","MYS","MWI","CZE","GUF","GBR","BLM","SGS","SYR","MOZ","COM","IND","BRB","GIN","ATG","LCA","MAR","NZL","DNK","KWT","YEM","PLW","BTN","PRK","MDV","COD","SWZ","ABW","MHL","BOL","PYF","SLE","LIE","CXR","TKM","ALA","BWA","AUS","ETH","NIU","CYM","KIR","CHN","HND","MYT","PRT","AUT","CAF","WSM","MSR","TUN","GNB","COL","GRC","EST","NLD","VNM","PCN","ERI","ITA","GUY","PHL","CYP","IRQ","CRI","AND","HUN","COK","LBY","REU","FSM","TGO","JAM","ARE","SLV","ZMB","MLT","NRU","POL","DZA","IMN","PRY","SSD","MAF","NGA","BLZ","BVT","MMR","SEN","PAN"],"supported_currencies":["AFN","CDF","CNY","NIO","GEL","DZD","MXN","CUC","BND","HRK","SBD","AWG","CLF","ALL","CUP","XAF","EGP","COP","CRC","KRW","LYD","MWK","GYD","GBP","LKR","DKK","TMT","HUF","BWP","SOS","SRD","SLE","BHD","BSD","LAK","AOA","MOP","NAD","IQD","AUD","NZD","SYP","PGK","DJF","SAR","UAH","MVR","RSD","CHF","AED","TOP","KYD","PKR","MYR","BGN","RUB","DOP","OMR","TWD","SDG","VND","FKP","PHP","STN","BYN","KPW","LBP","WST","KGS","TJS","BZD","KMF","VUV","QAR","GNF","KES","KWD","RWF","SCR","HKD","IDR","INR","HNL","TTD","USD","AZN","ETB","SZL","THB","SVC","PAB","YER","XPF","NOK","TND","MZN","UZS","ZWL","CLP","BIF","EUR","HTG","MGA","MUR","ZMW","IRR","BDT","JOD","MRU","PLN","BAM","PYG","NGN","BRL","ERN","BBD","BOB","TZS","CAD","SGD","UYU","ZAR","GTQ","MKD","XOF","MDL","LRD","RON","FJD","LSL","MAD","JMD","GMD","ARS","BTN","SLL","UGX","CZK","AMD","BMD","GHS","ISK","MNT","NPR","MMK","ANG","KHR","STD","KZT","CVE","JPY","SSP","XCD","GIP","ILS","TRY","PEN","SEK","VES","SHP"]}],"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":"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":["NOR","KWT","LIE","FRA","JOR","NLD","USA","IRL","SVN","ROU","GBR","HRV","SAU","CYP","PRT","SGP","GRC","ISL","ARE","DEU","CHE","BGR","SWE","EST","SVK","MLT","BEL","POL","LTU","DNK","HUN","AUS","ITA","CZE","AUT","HKG","QAT","ESP","LUX","LVA","FIN"],"supported_currencies":["BBD","ERN","HRK","AUD","ARS","BOB","CVE","GTQ","KPW","MGA","CHF","RSD","SOS","STD","AWG","CUP","GEL","CAD","ISK","ZMW","SBD","PGK","TJS","AZN","KRW","NGN","FKP","DJF","XCD","FJD","BMD","VES","MKD","SCR","BTN","AED","CNY","CLP","PKR","SEK","KWD","TOP","LKR","BSD","AFN","SSP","RWF","ETB","CZK","HUF","KYD","GNF","MUR","PHP","THB","DKK","XOF","BND","BDT","BZD","KHR","ALL","LYD","SAR","SVC","NPR","TMT","OMR","PYG","SHP","KMF","JPY","EUR","TND","USD","INR","STN","MAD","MXN","PEN","RUB","SRD","UZS","YER","TWD","GMD","KES","NIO","SYP","NOK","KZT","KGS","ILS","SGD","SDG","CLF","SLE","TZS","CDF","DZD","BIF","MVR","PAB","LAK","BWP","MZN","SLL","MRU","WST","BYN","BAM","MOP","JOD","IDR","MDL","PLN","TTD","MNT","ZWL","UAH","MYR","AMD","XPF","EGP","SZL","GYD","HTG","DOP","CUC","LSL","MMK","NZD","JMD","RON","COP","IQD","ANG","GIP","GBP","IRR","NAD","BGN","CRC","XAF","HNL","HKD","UGX","VND","UYU","BRL","AOA","LRD","TRY","LBP","BHD","GHS","MWK","QAR","VUV","ZAR"]},{"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":["GBR","BEL","DNK","ITA","SAU","SVK","NOR","NLD","LTU","BGR","FIN","DEU","IRL","USA","HKG","FRA","CHE","HRV","LUX","CZE","SWE","GRC","ESP","ROU","POL","AUT","ARE","SGP","HUN","AUS","PRT","EST"],"supported_currencies":["BIF","DZD","XPF","COP","UYU","CRC","QAR","BHD","HKD","IDR","STN","SBD","KWD","ANG","BOB","BAM","XCD","GTQ","BBD","JPY","LKR","SGD","ZMW","VND","NAD","BWP","RWF","ETB","SEK","UAH","USD","UZS","BGN","TJS","CAD","ISK","TRY","ARS","AOA","NIO","KZT","MOP","INR","SZL","VES","SRD","KGS","STD","CUC","KHR","JOD","PLN","SVC","LYD","PAB","XOF","SHP","PEN","LRD","SDG","BTN","CLF","BYN","RSD","AMD","TND","LBP","MVR","THB","KPW","TTD","AZN","PHP","NOK","WST","IQD","ZWL","MGA","MAD","OMR","MKD","BMD","CNY","CZK","PGK","MMK","KMF","RUB","SAR","GMD","XAF","MZN","CDF","BDT","GIP","PYG","NGN","BND","SCR","SLE","YER","VUV","EGP","HNL","FJD","GBP","PKR","AWG","ILS","TZS","BSD","MDL","GYD","MUR","JMD","DOP","AUD","TWD","MYR","GHS","BZD","GNF","MWK","AFN","CVE","HRK","ZAR","KYD","AED","KRW","SOS","ALL","BRL","CUP","SYP","UGX","KES","TOP","LSL","LAK","CHF","MNT","RON","FKP","CLP","DKK","SLL","ERN","EUR","MXN","MRU","NPR","SSP","HTG","NZD","HUF","DJF","IRR","TMT","GEL"]},{"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":["BEL","SVK","CHL","CHE","ISL","POL","SGP","LVA","SWE","HRV","HKG","DNK","GBR","MLT","BHR","LUX","LTU","LIE","FIN","USA","MEX","CYP","HUN","DEU","AUT","SVN","ARE","IRL","GRC","COL","CZE","ARG","PRT","NLD","AUS","SAU","NOR","ESP","ROU","EST","FRA","ITA","BGR","PER"],"supported_currencies":["DZD","BND","BMD","ILS","RWF","MKD","SZL","VUV","KES","KHR","BSD","EGP","JOD","MDL","TWD","XOF","NAD","MYR","PAB","INR","AED","LKR","MWK","TTD","PKR","CDF","RON","PYG","BOB","PHP","PLN","MNT","LRD","AMD","BTN","THB","LYD","LSL","NPR","GTQ","LAK","NOK","GBP","KMF","ISK","GEL","OMR","SBD","SCR","XAF","IRR","AOA","STN","ZAR","CUP","WST","MXN","ALL","SYP","UGX","MMK","MUR","DKK","VES","SLE","GHS","ZWL","BDT","BGN","MRU","PEN","SGD","MGA","BWP","NZD","TRY","ANG","GMD","JMD","JPY","TOP","SOS","BBD","RSD","XPF","GYD","HRK","YER","KWD","MOP","HUF","RUB","CHF","FJD","AFN","IDR","IQD","SHP","BIF","FKP","BHD","ETB","EUR","QAR","NIO","KRW","UYU","ERN","CAD","HTG","BZD","NGN","GNF","SSP","LBP","MZN","CRC","TND","SRD","CZK","AZN","SEK","UAH","MVR","AUD","SLL","TJS","BAM","SAR","BRL","TMT","CNY","BYN","KZT","UZS","AWG","TZS","HKD","CLP","COP","GIP","HNL","ZMW","XCD","PGK","KYD","DJF","CVE","KGS","SDG","VND","DOP","MAD","USD"]},{"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","FIN","ITA","ESP","HKG","NLD","SWE","MEX","ISL","EST","USA","LVA","CHE","SVN","SAU","PRT","LIE","IRL","LTU","POL","SVK","MLT","FRA","CZE","CHL","ARE","AUT","PER","BGR","AUS","LUX","DNK","SGP","CYP","ARG","HRV","BHR","NOR","BEL","GRC","HUN","ROU","GBR","DEU"],"supported_currencies":["NPR","BHD","GEL","HKD","FKP","MYR","JOD","MZN","KRW","UGX","NAD","HNL","PAB","CAD","RWF","TZS","GTQ","PHP","BBD","STN","CLP","XPF","KHR","ERN","MOP","XCD","SGD","LAK","NZD","SSP","CHF","SYP","MWK","SEK","UAH","IRR","MVR","XOF","ETB","SOS","KES","IDR","CNY","LKR","TOP","DJF","DZD","LYD","GBP","KWD","LRD","MNT","BSD","SLL","USD","UYU","ISK","SLE","BTN","FJD","KZT","TMT","GIP","BZD","CUP","AED","MUR","CRC","MGA","BIF","GNF","RON","MRU","GMD","INR","IQD","VES","THB","LBP","XAF","HRK","UZS","DOP","GHS","ILS","YER","SCR","OMR","TWD","WST","AMD","SZL","BYN","PKR","BND","HTG","AFN","HUF","PGK","PYG","ZWL","RUB","CDF","COP","GYD","JMD","KMF","MDL","MMK","NGN","BMD","PLN","JPY","QAR","BOB","SRD","DKK","KGS","TJS","ANG","RSD","BRL","ZAR","SAR","MXN","CZK","AZN","TTD","SBD","TND","BGN","LSL","AWG","MAD","NIO","AOA","KYD","NOK","BWP","ALL","MKD","VND","SDG","EUR","BDT","EGP","ZMW","AUD","BAM","PEN","TRY","VUV","SHP","CVE"]}],"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":["ZAF","DEU","PRT","ITA","CAN","VNM","BRA","NLD","GBR","FRA","TUR","ESP","AUS","SGP","USA"],"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":["GRC","SAU","NZL","DEU","NLD","CHE","FIN","BGR","LCA","DNK","QAT","SRB","POL","SVN","BEL","BRA","ISL","GRD","HUN","LTU","LUX","ESP","HKG","FRA","ALB","BIH","LVA","DOM","MLT","JPN","SLV","CZE","PRT","AUT","CYP","IND","SGP","AUS","UKR","SWE","ITA","ROU","EGY","ARG","SVK","GBR","NOR","AND","ISR","KOR","PER","HRV","EST","COL","CHL","MEX","MDA","CRI","IRL"],"supported_currencies":["USD","GBP","EUR"]}],"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":"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},{"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}],"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":["BHR","CHE","IRQ","OMN","TUR","EGY","RUS","AZE","NLD","GIN","MEX","POL","IDN","MLI","SEN","PRT","DZA","QAT","ITA","LBY","NGA","CHL","GAB","BRA","FRA","SVK","COG","PSE","MDG","MAR","DEU","ZAF","GHA","CMR","ARE","GBR","TUN","ARG","IRL","BEL","GRC","ESP","JOR","SAU","SDN","SGP","BWA","KWT"],"supported_currencies":["RUB","GBP","XOF","IDR","ARS","DZD","XAF","CDF","MGA","SGD","AZN","ZAR","BHD","SAR","JOD","PLN","KWD","QAR","BWP","MAD","GNF","CHF","EGP","CLP","AED","LYD","SDG","MXN","TND","ILS","OMR","BRL","EUR","NGN","TRY","GHS","IQD"]}],"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":["MAR","SAU","PHL","UGA","ECU","PER","CMR","JPN","NIC","THA","MYS","PAN","IND","DOM","BGD","ARG","HND","VNM","BRA","CHL","GTM","COL","ZAF","MEX","PAK","BOL","CIV","URY","SLV","IDN","SEN","TZA","RWA","CHN","CRI","GHA","EGY","PRY","ZMB","TUR","KEN","NGA"],"supported_currencies":["RWF","GTQ","GHS","PYG","ZMW","THB","ARS","SAR","CRC","PEN","MYR","EGP","CNY","DOP","XOF","VND","TRY","MAD","NGN","BRL","INR","XAF","COP","JPY","NIO","PHP","TZS","UGX","UYU","BOB","KES","IDR","MXN","CLP","HNL","BDT","ZAR","USD","PKR"]},{"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":["VNM","PAN","CHL","UGA","CHN","TZA","SLV","IDN","ECU","THA","IND","NIC","URY","ZMB","COL","BGD","DOM","ARG","ZAF","PHL","GTM","BOL","KEN","NGA","RWA","EGY","PER","PRY","JPN","CMR","GHA","PAK","CRI","SAU","SEN","TUR","MEX","MYS","HND","BRA","MAR","CIV"],"supported_currencies":["PEN","TRY","DOP","COP","MXN","HNL","USD","BRL","IDR","ARS","KES","MYR","XOF","VND","EGP","BOB","GHS","BDT","NIO","CNY","RWF","SAR","ZAR","XAF","CRC","JPY","PKR","UGX","INR","ZMW","UYU","PYG","MAD","GTQ","TZS","CLP","PHP","THB","NGN"]}],"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":["LYD","RSD","STN","XOF","NPR","BWP","DZD","LBP","HKD","ILS","CDF","TZS","LAK","UGX","MZN","CZK","KES","SSP","GMD","AUD","ERN","MMK","NIO","AFN","EGP","BAM","ARS","BRL","COP","MVR","MXN","TJS","XCD","ISK","GEL","GTQ","CNY","MUR","JPY","INR","TWD","DKK","UAH","YER","ZWL","KRW","AOA","BTN","CVE","ANG","GIP","JOD","RON","SDG","KHR","KWD","MKD","BMD","FKP","VES","TRY","ZMW","SZL","BBD","EUR","ZAR","SGD","RWF","MRU","TOP","PAB","CHF","XPF","DJF","IQD","RUB","ALL","JMD","WST","UZS","PGK","LSL","CUP","FJD","NGN","TMT","GHS","SAR","KYD","AWG","PYG","TND","SHP","MDL","NZD","SRD","SVC","USD","MOP","KZT","TTD","KGS","BGN","GNF","SOS","PHP","MWK","SLE","BSD","AZN","QAR","VND","MAD","GYD","LKR","AED","KPW","NAD","PEN","BZD","IDR","UYU","MGA","PKR","BOB","SCR","LRD","OMR","CAD","HTG","HRK","HUF","SYP","BDT","CRC","CLP","SBD","ETB","BHD","SEK","HNL","VUV","XAF","KMF","NOK","MYR","PLN","BND","BIF","GBP","IRR","MNT","SLL","THB","AMD","BYN","DOP"]},{"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":["DZD","CNY","NIO","TTD","BSD","UAH","ZMW","CHF","TZS","MNT","MZN","OMR","IQD","KHR","ZAR","KPW","BAM","SAR","NGN","RUB","AMD","SDG","UZS","KGS","SOS","STN","CDF","GMD","NPR","CVE","LRD","ISK","AOA","HKD","LBP","SBD","JOD","BND","GEL","GHS","NZD","RWF","TMT","XPF","HUF","VND","MYR","KMF","AZN","BTN","CUP","AWG","PYG","COP","GBP","KRW","SGD","ETB","SCR","XOF","DJF","MMK","HNL","TRY","LYD","MKD","KES","MVR","VES","MUR","XAF","LSL","LKR","CAD","BDT","BOB","EGP","FJD","ANG","WST","PKR","ZWL","BIF","SSP","BGN","GNF","INR","ILS","ALL","DOP","HRK","JMD","LAK","MDL","MXN","MOP","SLL","JPY","KWD","RON","SRD","ERN","MAD","GYD","MGA","AED","RSD","QAR","BHD","PAB","BMD","CLP","CZK","EUR","SZL","HTG","ARS","PLN","BBD","FKP","PEN","DKK","PHP","SLE","THB","AFN","TOP","MRU","TWD","GTQ","BRL","VUV","AUD","BWP","USD","SYP","GIP","KZT","IRR","MWK","SEK","KYD","IDR","NAD","NOK","BYN","TND","CRC","PGK","BZD","UGX","UYU","SHP","YER","XCD","SVC","TJS"]}],"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":"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":["ESP","MEX","ITA","HKG","AUS","FRA","GBR","ZAF","SGP","POL","BRA","BEL","MYS","COL","CAN","MNE","PAN","ARG","NZL","IND","DEU","USA","KOR","LKA","NLD","URY","CHN"],"supported_currencies":["VND","PHP","STN","JMD","HUF","TND","DJF","BWP","PGK","SLL","DZD","EGP","LBP","LAK","OMR","GTQ","BSD","MAD","BTN","COP","CVE","CDF","ISK","TWD","MYR","KHR","NGN","RON","SSP","USD","KWD","DOP","BND","FKP","TZS","MVR","BAM","SCR","IDR","XPF","MZN","CUP","TRY","TMT","YER","BMD","GBP","BYN","ERN","BDT","MMK","AOA","CRC","MXN","PYG","SGD","CAD","DKK","IRR","BBD","GEL","GHS","MGA","MKD","AED","PEN","ETB","NAD","IQD","KYD","LRD","KGS","LYD","BOB","KMF","KZT","MDL","PLN","SVC","SBD","CHF","PAB","BIF","TTD","HKD","SRD","BHD","XAF","HNL","MUR","SHP","CLP","EUR","SAR","BRL","ILS","VUV","RUB","RWF","ZAR","SYP","SOS","LKR","AUD","JOD","UZS","HTG","MOP","SDG","AMD","THB","KPW","JPY","GIP","ANG","BZD","GYD","ZWL","ARS","GNF","WST","FJD","SEK","SZL","UAH","RSD","XOF","QAR","HRK","MNT","LSL","CZK","INR","BGN","TOP","VES","MRU","MWK","UYU","NIO","AFN","UGX","GMD","ALL","KES","NZD","AWG","XCD","NPR","AZN","TJS","ZMW","NOK","PKR","KRW","CNY"]},{"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":["POL","ITA","URY","AUS","HKG","KOR","NZL","BEL","MYS","SGP","CAN","LKA","COL","NLD","MEX","DEU","GBR","CHN","ESP","PAN","ZAF","FRA","ARG","MNE","USA","IND","BRA"],"supported_currencies":["ALL","DJF","LRD","JMD","SDG","TWD","AFN","GMD","AWG","NZD","SSP","ZWL","BSD","CVE","AOA","BZD","LBP","UGX","MKD","GEL","CAD","BOB","ZAR","GYD","MOP","CNY","EGP","HKD","MGA","LYD","DZD","MWK","PLN","KMF","GIP","BDT","ILS","MZN","COP","NGN","UZS","DOP","BND","XCD","MMK","NOK","YER","NPR","STN","GNF","CUP","MVR","RSD","LSL","VUV","THB","BMD","ETB","TOP","TTD","RON","SGD","FKP","EUR","INR","JPY","SYP","SAR","VES","HNL","IRR","NIO","RWF","SZL","MYR","ERN","CRC","DKK","KWD","IQD","BRL","ANG","XPF","PEN","XAF","HRK","AMD","AZN","HUF","ARS","JOD","MUR","MDL","MNT","SVC","SOS","TJS","TZS","FJD","PAB","XOF","KES","BBD","BWP","VND","RUB","MXN","GTQ","BIF","BYN","BGN","KYD","PKR","WST","AUD","KGS","SCR","KRW","SEK","SBD","CHF","KZT","PHP","BAM","CLP","BTN","HTG","ZMW","LKR","UAH","NAD","GBP","ISK","CDF","USD","KPW","OMR","MAD","TND","SHP","TRY","CZK","GHS","PYG","QAR","AED","UYU","BHD","TMT","LAK","MRU","SRD","SLL","PGK","IDR","KHR"]}],"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":["POL","ITA","ZAF","NLD","DEU","ESP","FRA","GBR","ARE"],"supported_currencies":["CUP","HTG","KZT","SOS","MZN","BOB","NZD","JPY","BMD","GBP","ALL","INR","AZN","MUR","AFN","RON","JOD","BYN","SEK","ZAR","FJD","SLE","MMK","CDF","TTD","ARS","USD","SGD","MOP","MAD","BND","BZD","ZWL","ILS","KMF","BBD","DJF","TJS","AED","BWP","NAD","HKD","GTQ","LBP","UGX","SDG","GIP","KHR","UAH","AMD","XAF","TOP","OMR","AWG","SSP","UYU","GMD","BIF","RUB","SAR","CNY","KRW","HUF","BTN","YER","KGS","MGA","BDT","BRL","IDR","LAK","CZK","DOP","DZD","RSD","KPW","PKR","PEN","SHP","AOA","TZS","THB","CLP","PYG","TWD","VUV","CAD","NPR","QAR","PGK","PLN","SCR","ISK","KYD","EGP","NGN","CVE","GYD","JMD","KWD","MXN","MWK","COP","AUD","HNL","MYR","NOK","MNT","SRD","SLL","SVC","SYP","WST","TRY","ERN","EUR","GEL","MKD","NIO","BAM","IRR","ANG","BSD","SBD","BHD","FKP","LYD","XPF","DKK","IQD","CHF","PAB","MDL","PHP","TMT","VND","BGN","LSL","GHS","UZS","MRU","TND","RWF","LKR","XCD","SZL","HRK","LRD","STN","VES","XOF","MVR","ZMW","KES","ETB","CRC","GNF"]},{"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":["ZAF","GBR","ESP","ARE","DEU","NLD","POL","FRA","ITA"],"supported_currencies":["HTG","KGS","GMD","TWD","EGP","HUF","CRC","KRW","KYD","GTQ","AUD","CLP","RUB","TMT","EUR","ERN","ETB","LBP","ILS","MWK","AMD","GNF","MZN","PAB","COP","KMF","TZS","BZD","BOB","OMR","BDT","SBD","VND","DKK","HKD","FKP","INR","QAR","SDG","TRY","PKR","UYU","PGK","BBD","UGX","CZK","FJD","RON","BAM","DOP","ANG","AFN","NIO","KES","TND","AZN","YER","BND","KWD","TJS","ISK","PLN","DJF","LYD","MXN","JOD","SRD","TTD","UZS","UAH","GYD","IDR","NOK","SVC","GEL","LSL","MYR","HNL","ZAR","MRU","CHF","ALL","BMD","MVR","STN","BGN","CNY","MMK","SAR","MOP","USD","SCR","GBP","SHP","JMD","DZD","KZT","LKR","TOP","WST","SEK","BWP","BSD","GIP","AED","HRK","CUP","VUV","XOF","AWG","ZWL","PEN","BYN","CAD","JPY","GHS","MNT","MUR","PHP","MAD","XCD","AOA","BTN","XPF","KPW","CVE","RSD","KHR","RWF","THB","NPR","SLE","BRL","IRR","SZL","XAF","PYG","SGD","ARS","LRD","CDF","BHD","MDL","SSP","VES","MGA","NGN","NZD","IQD","SLL","SYP","LAK","SOS","ZMW","BIF","NAD","MKD"]}],"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":"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":"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":"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":["CHN","HKG","SGP","MYS","VNM","PHL","IDN","THA","TWN"],"supported_currencies":["THB","TWD","PHP","HKD","MYR","CNY","VND","SGD","IDR"]},{"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":["SGP","THA","IDN","MYS","VNM","PHL","CHN","TWN","HKG"],"supported_currencies":["CNY","IDR","SGD","VND","HKD","THB","TWD","PHP","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"]}],"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":["USA","CAN"],"supported_currencies":["CAD","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":["AmericanExpress","Discover","DinersClub","JCB","Mastercard","Visa"],"supported_countries":["USA","CAN"],"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":["CHL","LUX","NOR","AUT","IND","DEU","BEL","GBR","URY","FRA","DNK","FIN","NLD","PRT","POL","MEX","ARG","CHE","IRL","ESP","ITA","BRA","SWE","ARE"],"supported_currencies":["SEK","INR","PLN","AED","CLP","MXN","CHF","NOK","EUR","BRL","UYU","DKK","ARS","GBP"]}],"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":"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":["KGZ","CRI","DNK","OMN","NCL","UKR","DOM","IRQ","MKD","AUT","MLI","DJI","PCN","JPN","MYT","RUS","SGS","HRV","VUT","ABW","GUF","AGO","SWZ","NOR","ESH","GTM","GBR","FIN","TUV","KNA","CYM","SPM","KEN","MYS","TGO","LAO","GRD","TUR","BES","NPL","TKM","GUM","ATF","ATG","BDI","GIB","SAU","CZE","NER","GRC","ARM","AND","MRT","MUS","COG","BOL","QAT","ASM","WLF","KHM","MAC","VGB","NIC","LSO","SEN","THA","VAT","JOR","BGD","MOZ","PER","REU","ECU","ZWE","JAM","ROU","TTO","STP","BEN","PYF","CMR","NFK","PRI","BEL","TZA","MHL","TLS","IDN","FSM","TUN","CUW","WSM","VNM","SSD","TCA","COL","UZB","TCD","SLE","IRN","LCA","BLR","GHA","FLK","YEM","SYR","URY","BIH","CUB","IRL","BRB","PAN","RWA","KAZ","MNP","HND","LKA","CHL","HUN","CCK","NLD","SDN","MSR","DEU","DZA","COK","BGR","ERI","ZAF","UMI","SMR","DMA","BRA","AFG","BVT","LBN","UGA","MDG","GNB","TKL","FRO","SHN","PAK","TON","SGP","PRK","IOT","VIR","AUS","SVK","FJI","LTU","IND","GEO","CPV","ZMB","PNG","SJM","POL","BLM","SVN","IMN","CIV","SOM","SRB","LBY","GUY","PHL","ATA","USA","BMU","NRU","MCO","SLB","NIU","KIR","MEX","EGY","LUX","GGY","FRA","PRY","JEY","AZE","ETH","BLZ","ISL","BHR","MLT","CAN","MWI","MDA","HMD","TWN","SWE","GAB","BWA","CXR","AIA","CHE","NGA","PSE","VCT","SLV","KWT","MNE","ALB","GNQ","HKG","CAF","ARG","NAM","GLP","SXM","ALA","BRN","LIE","ISR","SUR","KOR","PLW","MDV","COD","TJK","ARE","ESP","BFA","VEN","COM","BHS","ITA","GRL","NZL","MNG","HTI","MAR","EST","MTQ","GMB","CYP","SYC","MMR","GIN","LVA","BTN","LBR","CHN","MAF","PRT"],"supported_currencies":["CNY","AMD","SDG","GIP","BBD","ZMW","STD","SSP","PHP","JPY","GYD","MUR","AFN","SAR","BYN","SGD","OMR","GNF","CAD","PEN","PGK","CHF","TOP","VUV","COP","HKD","MMK","JMD","RUB","LKR","KWD","BIF","TRY","MAD","LBP","BRL","NIO","PAB","KMF","GEL","MYR","IRR","UYU","VND","IDR","TND","LRD","USD","TZS","JOD","BGN","NOK","THB","NAD","TTD","LSL","SHP","FKP","EUR","HUF","AWG","MZN","BZD","BHD","SVC","GTQ","IQD","CUC","KRW","NPR","CRC","BWP","ANG","MVR","MXN","MGA","CZK","CVE","ILS","QAR","AUD","GHS","NZD","SCR","XCD","BOB","ETB","HTG","DKK","DOP","CLP","AOA","LAK","SEK","SYP","SBD","PKR","KES","ALL","TJS","SRD","NGN","ZAR","PYG","KHR","CLF","KPW","KZT","SLL","BSD","LYD","UZS","BND","DZD","MKD","TMT","UGX","SOS","EGP","AZN","TWD","ARS","CUP","UAH","INR","WST","MOP","HNL","MWK","SZL","ERN","MDL","GBP","BTN","BDT","RWF","AED","MNT","GMD","BMD","ISK","FJD","DJF","HRK","KGS","ZWL","RSD","YER","PLN","RON","CDF"]},{"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":["MKD","CMR","CRI","BLR","LKA","CHL","SJM","GAB","BIH","ERI","BRN","ITA","CCK","SXM","JAM","UMI","KOR","AFG","DEU","GNB","DZA","ZMB","SLV","AGO","ARG","TKL","POL","TUN","PCN","LIE","CHE","CUW","UGA","CZE","LVA","CIV","BES","SRB","MEX","IMN","MWI","CYM","SAU","RUS","HKG","VGB","ISR","NOR","ASM","IRQ","THA","PHL","GLP","MAR","COM","NIC","SHN","SGS","ATG","NCL","MSR","JOR","SEN","DMA","REU","MLT","MAF","HND","NPL","GIN","DJI","MRT","PER","ETH","YEM","OMN","MHL","BWA","MDG","NGA","SOM","COK","JEY","CPV","JPN","HRV","IOT","VCT","IRN","SYR","TLS","IDN","TON","PRI","CAF","FRA","GIB","CUB","PLW","BLM","LTU","GRD","MNP","AND","BGR","PNG","KEN","GUF","TUV","SVK","PRT","STP","BHR","LUX","BFA","MUS","NAM","BLZ","PYF","CYP","FRO","SVN","BRA","LBY","FSM","VIR","TCA","ARM","KGZ","GBR","FLK","ISL","GRL","FIN","BRB","GUM","QAT","VUT","GHA","ESP","SSD","ABW","NRU","PRK","COG","WSM","ATA","COD","GNQ","TKM","KWT","ZAF","TJK","CXR","TGO","IND","GTM","AUT","BDI","ARE","AUS","LBN","HTI","UZB","LAO","NFK","MDV","EGY","ATF","KAZ","NIU","BMU","BVT","BOL","GMB","ZWE","ROU","GRC","NER","UKR","CAN","USA","SGP","MTQ","MOZ","LSO","GGY","GEO","KHM","CHN","PAK","ALA","DOM","HUN","IRL","MNE","MYS","PAN","BTN","RWA","PSE","SUR","COL","SPM","EST","SWE","NLD","SWZ","MCO","BHS","VAT","BGD","NZL","MYT","MAC","KIR","GUY","MNG","TZA","BEN","MLI","AZE","VEN","SYC","KNA","SLB","ESH","ALB","MDA","LBR","SDN","SMR","FJI","ECU","SLE","HMD","AIA","VNM","TWN","URY","DNK","LCA","PRY","TTO","WLF","TUR","MMR","TCD","BEL"],"supported_currencies":["CUC","FJD","UAH","CZK","MKD","GMD","RON","RSD","SBD","NAD","STD","LYD","MOP","PAB","LBP","BWP","UYU","BBD","NOK","NPR","NGN","JOD","AWG","GBP","SEK","TZS","TND","CLF","LKR","LSL","AED","PLN","ALL","XCD","MMK","AZN","BDT","ETB","IQD","CUP","MDL","MWK","TWD","PKR","BIF","BOB","MAD","PEN","BMD","IRR","CAD","BHD","PYG","MXN","BGN","EUR","HKD","VUV","CVE","CRC","ZWL","DOP","INR","MVR","KGS","DJF","PGK","OMR","RUB","GHS","BSD","KMF","SHP","MZN","SOS","KES","MNT","CDF","GEL","BZD","MUR","SGD","GTQ","AOA","USD","LAK","PHP","SYP","UGX","HTG","SCR","SDG","TOP","YER","CHF","BYN","JPY","AUD","WST","UZS","ARS","LRD","THB","TMT","SRD","KHR","NIO","HNL","SLL","SZL","AFN","QAR","BRL","AMD","FKP","HRK","IDR","JMD","TTD","ISK","KZT","DKK","MYR","KRW","TRY","BTN","ZAR","SSP","EGP","MGA","ERN","SAR","NZD","CLP","KPW","DZD","GYD","CNY","ZMW","SVC","VND","GNF","RWF","BND","ILS","ANG","HUF","KWD","TJS","COP","GIP"]},{"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":"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":"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"]},{"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":["ITA","BEL","NLD","AUT","ESP","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":["CNY","GBP"]},{"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":["CNY","GBP"]}],"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":"sepa","payment_method_type_display_name":"SEPA Direct Debit","mandates":"supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["CZE","SVN","CHE","CYP","DEU","AUS","SWE","BEL","IRL","LUX","ROU","ESP","HRV","FRA","DNK","POL","BGR","ITA","ZAF","NZL","GBR","FIN","PRT","MLT","NOR","HUN","CAN","SVK","NLD","AUT"],"supported_currencies":["SEK","GBP","EUR","DKK","NZD","AUD","CAD"]},{"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"]}],"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":["USA","CHE","NOR","HKG","POL","ZAF","CAN","CZE","SWE","DNK","GBR","JPN","AUS"],"supported_currencies":["CAD","JPY","HKD","AUD","ZAR","CHF","PLN","DKK","GBP","SEK","NOK","EUR","CZK","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":"supported","no_three_ds":"supported","supported_card_networks":["Mastercard","Visa","Interac","AmericanExpress","JCB","DinersClub","Discover","CartesBancaires","UnionPay"],"supported_countries":["POL","SWE","CAN","DNK","NOR","CHE","AUS","CZE","JPN","USA","ZAF","GBR","HKG"],"supported_currencies":["AUD","NOK","PLN","CAD","DKK","ZAR","SEK","HKD","CHF","JPY","GBP","USD","CZK","EUR"]}],"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":"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":["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":["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":"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":"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":"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"]},{"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":["FRA","FIN","HKG","AUT","LVA","JOR","IRL","LUX","DEU","BRA","ITA","PRT","BEL","VNM","GBR","COL","MYS","MEX","IND","THA","ESP","LTU","AUS","SGP","PHL","NLD","EST","GHA"],"supported_currencies":["GBP","VND","SGD","MXN","INR","MYR","JOD","AUD","HKD","PHP","BRL","GHS","COP","THB","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":"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":["USA","NLD","SVK","HUN","CZE","CYP","IRL","ITA","HRV","GRC","BEL","MLT","DNK","PRT","FIN","LUX","EST","SWE","ESP","LVA","SVN","BGR","AUT","DEU","LTU","ROU","GBR","FRA","CAN","POL"],"supported_currencies":["YER","USD","TOP","CDF","NAD","ARS","XOF","RSD","GBP","GYD","JPY","ZAR","BDT","BYN","GMD","GTQ","MDL","MNT","MWK","NPR","BZD","UAH","JMD","NIO","THB","CZK","STN","PAB","PLN","SEK","AFN","AOA","HRK","ANG","PEN","SZL","KRW","AMD","PKR","RWF","MZN","MYR","IDR","BSD","BWP","MAD","MOP","PGK","UZS","MUR","SAR","KES","VND","SHP","XPF","QAR","AUD","BND","ILS","FKP","TZS","GIP","HUF","MVR","CNY","ETB","UGX","AZN","TWD","DOP","ALL","LBP","XAF","MGA","NZD","LAK","EUR","FJD","SBD","KMF","HTG","NGN","PHP","KZT","LKR","GEL","CLP","DJF","MRU","TTD","GHS","HNL","EGP","WST","HKD","NOK","SGD","CHF","BMD","BOB","BAM","KHR","TRY","SLL","BBD","BGN","SCR","DKK","COP","INR","LSL","BRL","MMK","CVE","XCD","PYG","BIF","TJS","ZMW","DZD","UYU","KYD","CAD","ISK","BTN","LRD","AED","MKD","RON","CRC","MXN","SOS","AWG","SRD","VUV"]},{"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":["DNK","BEL","ROU","IRL","FIN","SVK","SVN","HRV","LTU","NLD","AUT","SWE","CYP","FRA","PRT","EST","USA","POL","GBR","ESP","LUX","MLT","DEU","LVA","CAN","ITA","CZE","BGR","HUN","GRC"],"supported_currencies":["VUV","QAR","NZD","KYD","KMF","KZT","ARS","EUR","BOB","KHR","TWD","SCR","VND","MYR","CHF","CZK","MXN","INR","MRU","PLN","NGN","THB","GEL","HRK","HKD","ILS","MVR","AED","PKR","YER","USD","RWF","TRY","HNL","SHP","PAB","AZN","SAR","BWP","XAF","SRD","PEN","MWK","CRC","BIF","MNT","RON","TOP","UYU","AUD","BSD","BYN","LKR","CDF","WST","GHS","KES","MMK","AMD","BMD","CNY","AFN","RSD","MKD","DJF","ALL","CAD","EGP","AOA","GYD","LBP","MAD","TTD","UAH","FKP","ANG","NPR","BND","COP","DOP","HTG","GTQ","MDL","NIO","GMD","TJS","DKK","ETB","SGD","BTN","ISK","MZN","LRD","IDR","SEK","SOS","CLP","CVE","XPF","BAM","BGN","BDT","XCD","JMD","STN","SBD","PGK","BBD","XOF","BZD","LAK","HUF","ZAR","UZS","TZS","FJD","PYG","SZL","ZMW","MUR","BRL","SLL","MGA","UGX","NAD","JPY","NOK","LSL","DZD","GIP","MOP","KRW","AWG","PHP","GBP"]}],"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":["GRC","ITA","USA","GBR","DEU","FIN","FRA","AUS","NLD","CHE","ESP","BEL","AUT","SWE","POL","NZL","CZE","PRT","DNK","IRL","NOR","CAN"],"supported_currencies":["NZD","AUD","NOK","DKK","CHF","GBP","CZK","CAD","PLN","SEK","USD","EUR"]}],"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":["BGD","GUM","PYF","SVK","COM","GUF","CIV","RUS","ATG","ITA","JOR","ESH","SLE","GNQ","FRA","SPM","STP","VIR","BOL","NIU","GRC","LAO","WLF","URY","DZA","VCT","TUN","JPN","SVN","ABW","QAT","MDA","MKD","GGY","AGO","UKR","GNB","TUV","TGO","PHL","CCK","BHS","PER","OMN","ALB","IRL","GRD","JEY","BLZ","BFA","TLS","BES","LKA","IDN","LVA","BLM","MWI","BIH","ROU","THA","EGY","FSM","MYT","BGR","LSO","BHR","PRI","LCA","TWN","LTU","MUS","MLT","EST","BRB","MYS","GAB","MLI","KHM","BRN","SRB","MRT","SAU","GHA","FRO","UGA","GRL","CAF","VEN","SGS","SJM","NZL","SYC","PRY","TCA","BDI","KEN","SEN","PRT","CZE","NCL","PNG","ESP","TCD","LUX","MNG","ETH","ISL","HTI","ERI","IOT","AZE","LBN","KWT","GIB","VGB","IND","NPL","GIN","DOM","MCO","MNE","ECU","HND","SLV","CHE","SMR","MTQ","MSR","MDG","BRA","GLP","ARE","MAC","IMN","AUS","TKM","PAK","KOR","NIC","WSM","KNA","BTN","DNK","MAF","SGP","MNP","FIN","AIA","MOZ","NER","HMD","VAT","TTO","NGA","MEX","CUB","CHN","NRU","KGZ","PLW","KIR","LIE","ZAF","ISR","CRI","COG","NAM","DEU","GTM","UZB","CAN","SUR","SWZ","HKG","BWA","NFK","GMB","GUY","AND","GEO","ARM","ARG","HRV","DJI","ASM","VNM","BEL","FLK","SLB","GBR","CMR","VUT","NLD","TON","CXR","NOR","SOM","KAZ","ATF","CYM","AUT","SXM","PSE","BMU","ZMB","TKL","CUW","MHL","POL","PAN","COK","ALA","MDV","COL","CYP","CPV","FJI","REU","BEN","SWE","TUR","CHL","PCN","SHN","DMA","RWA","MAR"],"supported_currencies":["DKK","NZD","CZK","NOK","USD","RUB","EGP","GBP","CAD","PLN","ZAR","INR","UYU","CHF","JPY","EUR","CNY","UZS","AUD","SEK"]}],"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":"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},{"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":"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":"przelewy24","payment_method_type_display_name":"Przelewy24","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["POL"],"supported_currencies":["PLN","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"]},{"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_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}],"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":"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":["COL","GUY","HRV","MDG","JPN","BTN","BLR","NOR","ZAF","NGA","NAM","HTI","MKD","HUN","NLD","PRY","ISL","SHN","IDN","VUT","BGR","WSM","PRT","IND","DJI","CZE","TTO","MOZ","HND","ROU","SVN","AUT","HKG","NIC","KOR","CRI","GIB","MWI","JOR","CHN","COM","ARG","OMN","MDA","SGP","KWT","ARE","DNK","GEO","MRT","BDI","DOM","LTU","SAU","GBR","SUR","TJK","ALB","ABW","RUS","THA","TUN","MAR","MEX","KEN","BOL","SWE","MYS","TKM","AZE","LVA","LKA","CHE","MAC","SVK","IRL","MDV","CHL","MUS","SYC","BEL","SLB","SLV","SLE","AUS","CYP","FIN","BRA","CPV","LBR","EST","JAM","POL","URY","AFG","FRA","VNM","BRN","PER","CYM","UGA","USA","BRB","ZMB","MLT","FJI","SWZ","NPL","AGO","LUX","LSO","CUB","BMU","GTM","UZB","GRC","TZA","KAZ","ESP","BIH","ITA","EGY","SRB","PAK","BGD","BHR","GMB","DEU","PNG","LAO","NZL","QAT","TWN","BLZ","DZA","RWA","ISR","TUR","GIN"],"supported_currencies":["EGP","SEK","JOD","CLP","ANG","JPY","RSD","AED","AZN","MWK","GTQ","CRC","HNL","TRY","MXN","CUP","FJD","PLN","NZD","ARS","DOP","XOF","SLL","MOP","HRK","KRW","PYG","BHD","RWF","BDT","NIO","JMD","AOA","PGK","MRU","GIP","ALL","HUF","ILS","RON","CVE","TJS","USD","WST","MVR","GBP","INR","SAR","MUR","THB","UGX","MAD","OMR","UZS","AFN","MZN","VUV","KZT","SHP","HKD","DJF","ZMW","MYR","BRL","QAR","BBD","IDR","DKK","NAD","PKR","TZS","SBD","MDL","BZD","BMD","BND","BYN","LKR","KYD","KMF","BGN","AWG","CZK","GMD","HTG","MGA","KES","NOK","RUB","TWD","XPF","CHF","SGD","GNF","BAM","SCR","COP","TTD","BTN","BIF","UYU","BOB","AUD","LAK","PEN","KWD","VND","LSL","NGN","SRD","CNY","ISK","PHP","NPR","TMT","XCD","ZAR","EUR","SZL","GYD","MKD","SVC","LRD","GEL","DZD","TND"]},{"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":["LAO","DJI","IDN","SRB","AZE","BLR","SHN","BGR","BOL","MYS","MUS","GIB","BGD","UZB","RUS","NZL","HND","VNM","ARG","DEU","LSO","CYP","AUS","GIN","NIC","CZE","NOR","DZA","GEO","FJI","SYC","ABW","ALB","LTU","FIN","ARE","MRT","QAT","MAC","HKG","HTI","LKA","CYM","ISL","MDG","BRN","THA","USA","SLE","TJK","TUN","KOR","BLZ","NPL","BIH","TTO","URY","GUY","PAK","BRA","SAU","AGO","OMN","PER","MOZ","MAR","NGA","SUR","NAM","CRI","COL","UGA","PRT","ZMB","KEN","HRV","KAZ","MLT","SWZ","TUR","IND","BMU","COM","RWA","JAM","JOR","TKM","ITA","BRB","TWN","LBR","BHR","DOM","ISR","BEL","GBR","ROU","CPV","VUT","SVK","GTM","ESP","WSM","MDA","SLB","DNK","AFG","HUN","BTN","MKD","POL","SLV","GRC","MEX","MDV","BDI","CHL","AUT","IRL","SGP","NLD","EGY","KWT","JPN","PRY","SWE","FRA","CUB","LVA","ZAF","CHE","MWI","LUX","GMB","TZA","SVN","PNG","CHN","EST"],"supported_currencies":["AED","NPR","MXN","RWF","NGN","BOB","AFN","HKD","MZN","KMF","SLL","WST","TRY","CVE","BIF","CLP","BDT","ILS","JMD","UZS","BAM","COP","VND","NAD","DZD","BMD","BTN","AOA","PHP","SVC","RUB","KYD","IDR","TMT","MKD","ZAR","AWG","VUV","CZK","KWD","MRU","BRL","THB","DOP","ALL","LSL","NZD","PYG","PKR","SHP","MWK","EUR","MYR","SBD","SZL","PGK","TTD","TND","KZT","GBP","FJD","ISK","LRD","ARS","PLN","XOF","GIP","SGD","SCR","CUP","CNY","JOD","MVR","NIO","SAR","BGN","LKR","DKK","OMR","GMD","BBD","KRW","GYD","UGX","MUR","EGP","BND","AZN","NOK","XCD","HNL","BHD","INR","MGA","JPY","QAR","TWD","KES","TJS","SRD","AUD","CRC","SEK","USD","BYN","BZD","HUF","GEL","RON","ZMW","ANG","XPF","MOP","HRK","PEN","LAK","GTQ","UYU","RSD","GNF","MAD","HTG","MDL","TZS","CHF","DJF"]}],"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":["JEY","JAM","ATA","GUF","ARM","LBR","SDN","ALB","QAT","AIA","TGO","VEN","EST","URY","GRD","UZB","GLP","IND","TUN","MYS","FJI","IMN","CAN","TKM","TCD","COK","MNG","NIU","SSD","BEN","VUT","SVN","BWA","NPL","RWA","PHL","MAC","BMU","TCA","YEM","SGS","DMA","BVT","LTU","GRL","BGR","CIV","KWT","ZWE","GUY","PER","ZMB","IRQ","NLD","FSM","CZE","WLF","CUB","AGO","NGA","BEL","UGA","MLI","GIB","SYC","FRO","SEN","JOR","ZAF","MCO","TLS","COL","VGB","ISL","LVA","MAF","SHN","SLV","MDA","ARE","LBN","HRV","VNM","VAT","CXR","FLK","MNE","KHM","HUN","MRT","UMI","ETH","PAN","TUV","FRA","NFK","SGP","BHS","POL","COD","ABW","PSE","MDV","AZE","IRL","BLR","GEO","CHL","HND","PRY","MSR","NOR","PRT","PLW","SVK","SXM","NER","IDN","AFG","KAZ","RUS","BES","SJM","BHR","GRC","SUR","TWN","BTN","CMR","GHA","CRI","PRI","AUS","TJK","BLM","MNP","LAO","LUX","DEU","GMB","SAU","CHE","PYF","MKD","GIN","HTI","MUS","USA","SYR","JPN","SPM","PCN","TON","MWI","GNQ","ERI","ASM","KNA","ARG","VCT","ROU","TZA","BRB","PNG","NAM","IRN","TTO","HMD","DOM","GUM","BLZ","LIE","ALA","FIN","MTQ","AND","STP","UKR","REU","LBY","PAK","GNB","BRA","LSO","KIR","MOZ","MMR","OMN","SLE","MDG","BOL","SMR","SWZ","ECU","IOT","GGY","CHN","BGD","CYM","COM","BDI","TUR","BRN","ATG","ESP","KEN","DZA","LKA","NRU","NCL","NIC","WSM","MHL","KGZ","CUW","SLB","NZL","CAF","GAB","AUT","THA","KOR","DNK","MYT","ESH","TKL","SRB","CYP","GBR","BFA","SWE","MLT","PRK","MEX","CPV","EGY","ATF","SOM","LCA","GTM","ITA","BIH","HKG","COG","ISR","DJI","MAR","VIR","CCK"],"supported_currencies":["CAD","RUB","CNY","ISK","KRW","AED","AUD","BRL","PEN","PLN","SGD","JPY","CZK","CHF","HUF","TWD","SEK","USD","COP","INR","ZAR","NZD","DKK","HRK","ILS","TRY","EUR","MXN","NOK","RON","HKD","GBP","MYR","CLP"]},{"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":["GUY","ARE","SEN","FRO","PRI","KGZ","DMA","NLD","DJI","ARG","NZL","MDV","CCK","NPL","ZMB","OMN","TON","CAN","MAF","GUF","GNQ","UZB","JEY","FLK","AND","YEM","SVK","SXM","ABW","ZWE","SWE","GRL","MAR","MDG","TUN","MNE","ARM","LCA","SHN","HTI","BRN","MDA","LAO","TZA","MAC","AIA","WLF","PYF","RUS","ROU","SDN","VIR","VEN","KHM","BGD","ETH","IOT","LUX","LBR","NCL","ERI","BVT","PLW","UKR","HRV","AUT","DOM","LKA","FIN","GIN","GGY","ITA","PER","MYS","COD","GMB","PRY","DEU","IMN","MTQ","QAT","CMR","GHA","MKD","URY","CYM","PNG","LBY","ALA","BEN","KAZ","MOZ","BMU","GRD","TJK","MHL","THA","JPN","CAF","ATA","GLP","HND","PRT","JOR","PSE","NFK","SAU","BWA","MCO","AGO","BOL","NAM","VGB","CHN","DNK","IND","VAT","TCA","TUV","MRT","IDN","SPM","MNG","SLV","BEL","TKL","TLS","VNM","ATG","CIV","HMD","BHS","NRU","CHL","ECU","SVN","COL","DZA","KNA","POL","ESH","UMI","COM","SOM","FRA","STP","JAM","KEN","NER","HKG","AUS","KWT","CZE","WSM","PHL","SYR","NGA","CUB","LBN","RWA","BRB","FSM","SSD","IRN","GNB","IRQ","BGR","SWZ","IRL","ASM","BLM","TCD","REU","MEX","MMR","CYP","BHR","UGA","COG","GRC","BDI","TUR","ESP","PAK","EST","COK","GTM","MSR","SGP","TWN","BRA","SMR","MNP","ATF","NIU","LSO","MUS","TTO","MLT","SYC","CUW","KIR","KOR","BLZ","MYT","GAB","GUM","GIB","ALB","BLR","CRI","LIE","BES","LVA","SUR","HUN","NIC","GBR","SJM","VUT","SLE","MLI","ISL","CPV","TKM","ZAF","BFA","NOR","USA","BTN","CHE","SLB","ISR","MWI","FJI","PAN","PCN","SGS","LTU","AFG","AZE","VCT","BIH","GEO","CXR","TGO","SRB","PRK","EGY"],"supported_currencies":["CZK","COP","HRK","CAD","PEN","RON","AED","HUF","NZD","INR","TWD","EUR","RUB","DKK","NOK","MYR","HKD","ILS","BRL","SEK","TRY","PLN","AUD","CLP","CHF","JPY","USD","ZAR","KRW","MXN","SGD","GBP","ISK","CNY"]},{"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":["PRT","NOR","DEU","GBR","LVA","POL","NLD","FIN","EST","DNK","CZE","AUT","ESP","LTU","SWE"],"supported_currencies":["SEK","EUR","GBP"]},{"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"]},{"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","DEU","GBR","ITA","AUT","FIN","SWE","NOR","ESP","BEL","PRT","NLD","DNK"],"supported_currencies":["GBP","DKK","SEK","EUR","NOK"]},{"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":"wallet","payment_method_type":"paypal","payment_method_type_display_name":"PayPal","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","sequential_automatic"],"supported_countries":["BVT","IMN","MDG","USA","PRT","ALA","CRI","GIN","GLP","LBY","MWI","MKD","BTN","FJI","HUN","ASM","VIR","MNG","MSR","PRI","NOR","MLI","SVK","GNQ","AZE","BLR","AFG","MLT","LUX","UKR","HTI","FRA","SLE","GBR","MMR","BDI","IND","TUR","SAU","DZA","KEN","SWZ","SSD","HMD","VUT","ARE","BFA","SEN","NZL","TKM","ABW","BLM","BGR","NPL","HND","MHL","MYS","GNB","DMA","LIE","WLF","DEU","GHA","REU","CZE","AUS","DJI","CUW","PHL","BHR","PAN","GIB","IRQ","GEO","IRL","ARG","STP","ISR","GRL","RWA","PLW","TGO","NIU","ALB","CUB","GAB","FLK","LAO","ITA","ECU","MAR","ZWE","MCO","CHN","TON","GGY","NER","ZAF","BLZ","VAT","GMB","HRV","SYC","GRD","JOR","TCA","COD","LBN","MAC","BEL","SJM","COL","WSM","PYF","FRO","IDN","HKG","IOT","CXR","KWT","VNM","EGY","GUM","SGP","LVA","MEX","DOM","TWN","ROU","KIR","NGA","IRN","GRC","JEY","SOM","ISL","BEN","TKL","ATG","UMI","NRU","TJK","MNP","GUY","DNK","SLB","LKA","MNE","MDV","LSO","BWA","CIV","VGB","FIN","NAM","GTM","SGS","SLV","COG","VCT","SYR","CMR","CHL","MDA","MTQ","COM","NCL","POL","BRB","AND","BES","YEM","SRB","ETH","NIC","MAF","MRT","BIH","TLS","SDN","TCD","PAK","SHN","SMR","AGO","GUF","KAZ","ESP","LCA","RUS","QAT","URY","PRY","PSE","BRA","JPN","BOL","ATF","KHM","PER","SWE","BHS","SPM","ERI","JAM","TZA","LTU","UGA","VEN","CHE","AIA","AUT","MYT","THA","BMU","COK","NLD","CAN","ZMB","CYP","TUN","NFK","CPV","PCN","FSM","KNA","ATA","LBR","ARM","MOZ","TUV","CAF","BRN","PRK","CCK","CYM","OMN","BGD","ESH","MUS","TTO","SUR","EST","SVN","SXM","KGZ","UZB","KOR","PNG"],"supported_currencies":["RUB","SGD","TWD","USD","EUR","THB","MYR","BRL","PLN","HUF","PHP","CAD","CZK","DKK","JPY","MXN","TRY","NOK","AUD","NZD","HRK","CHF","GBP","HKD","SEK"]},{"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":["ITA","LTU","CHE","SUR","DZA","TCD","SVN","BMU","REU","BRA","VEN","AND","BRN","MNE","GUF","NCL","URY","BEN","ALB","ESP","PNG","IMN","BLM","USA","CAN","SHN","TKL","CHN","PLW","SVK","AGO","ATF","ZWE","NER","HUN","GBR","EGY","WLF","MAF","CIV","AUT","SWZ","MOZ","IRL","PRK","GLP","MKD","GHA","IOT","ATG","HND","LBR","GTM","BOL","AIA","BGR","BDI","PRT","VAT","FRO","DOM","PCN","BWA","DJI","COD","MNP","ROU","JOR","KWT","NPL","TGO","NIU","CPV","BFA","KHM","BLZ","GAB","TWN","LKA","BLR","FRA","SLE","LBY","GRL","SAU","CMR","GEO","KEN","GIB","UGA","HTI","VCT","DNK","SWE","IRN","UMI","KOR","SOM","AZE","MUS","UZB","TZA","AFG","CYM","ARE","NOR","MDA","SJM","TLS","POL","YEM","NRU","TKM","MLI","ABW","PYF","ERI","KIR","CUB","IRQ","SPM","NAM","JPN","LIE","ATA","VUT","FLK","CRI","MNG","SXM","CHL","MYT","PSE","VNM","HMD","ESH","ASM","COM","GNQ","NIC","AUS","COL","BES","BVT","FJI","EST","SMR","BHR","SYR","SLB","COG","COK","KAZ","NLD","SDN","TUR","MMR","LAO","NGA","GNB","ECU","RUS","JEY","MDG","PAK","MWI","ARM","BEL","MTQ","LCA","CXR","PER","KNA","LBN","DMA","STP","GGY","NZL","ALA","PRY","IDN","CZE","GRC","PRI","LSO","GMB","ISL","QAT","BRB","BIH","UKR","PAN","LUX","GUY","ETH","RWA","MRT","OMN","SSD","HKG","VIR","TCA","NFK","SGP","CUW","TTO","BHS","CCK","GIN","MHL","TUN","DEU","GRD","THA","SYC","MCO","ZMB","ARG","SGS","ISR","FSM","MDV","MAC","SLV","ZAF","CYP","FIN","VGB","TJK","MSR","HRV","JAM","SEN","BGD","MEX","LVA","PHL","MYS","SRB","TON","IND","CAF","MLT","GUM","MAR","TUV","KGZ","BTN","WSM"],"supported_currencies":["MXN","USD","HUF","GBP","HKD","AED","PLN","RUB","JPY","DKK","TRY","ZAR","COP","TWD","BRL","CHF","UAH","CAD","CNY","ISK","KRW","MYR","NZD","NOK","PHP","SEK","SGD","CLP","PEN","THB","EUR","AUD","HRK","ILS","INR","CZK","RON"]},{"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":["USD","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":"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":"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":"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":"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":"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"]},{"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"]}],"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":["PRT","ESP","HUN","DNK","ITA","MLT","LUX","BRA","USA","AUT","FRA","CHE","BEL","GBR","LTU","ROU","AUS","NLD","POL","HRV","CZE","DEU","LVA","SVK","GRC","BGR","FIN","IRL","SVN","NOR","EST","CYP","SWE"],"supported_currencies":["BHD","ZAR","RSD","CNY","CAD","KZT","UAH","JPY","VND","CZK","BYN","MXN","EGP","AOA","PHP","AED","TWD","TRY","SGD","INR","RON","HRK","DKK","SEK","RUB","QAR","CHF","AUD","USD","THB","KWD","EUR","JOD","HUF","KRW","AZN","BGN","BRL","HKD","SAR","NGN","ARS","CLP","NOK","PLN","COP","MYR","GBP"]},{"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":["CYP","AUT","ITA","HRV","CZE","NLD","NOR","DNK","FIN","SWE","IRL","BGR","LUX","BEL","SVN","POL","PRT","BRA","USA","FRA","HUN","DEU","SVK","AUS","LVA","ESP","GRC","ROU","EST","LTU","GBR","CHE","MLT"],"supported_currencies":["TWD","EUR","RSD","QAR","SAR","HKD","MXN","SGD","CAD","BYN","CZK","BRL","JPY","MYR","SEK","CNY","AUD","HUF","PHP","EGP","CHF","NGN","GBP","PLN","THB","AZN","BHD","CLP","JOD","DKK","KRW","NOK","TRY","USD","AED","HRK","INR","RUB","UAH","AOA","RON","VND","KZT","COP","KWD","ZAR","BGN","ARS"]}],"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":"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":["GEO","PER","MYS","BRB","EST","MDA","ZMB","VCT","MNG","POL","MCO","MAR","LTU","BOL","GUY","GRD","BRA","SYR","CHE","SHN","MWI","BWA","HRV","NOR","JOR","DMA","WSM","RWA","TWN","NLD","CUB","CAN","SUR","TON","KWT","MDV","ITA","COL","PAK","BMU","PHL","DNK","SYC","ETH","KAZ","UKR","TZA","DEU","BLR","KEN","USA","LBN","BGD","FRA","HUN","NIC","CHL","SVK","SRB","BHS","LVA","AUT","CRI","MLT","BIH","PRY","ZAF","SOM","IND","SMR","ARM","EGY","ALB","COD","PAN","BRN","KNA","ISR","TJK","SLV","DOM","RUS","OMN","SAU","GIB","TUN","LCA","VEN","BDI","NPL","DJI","CZE","GTM","MDG","ARE","UZB","MKD","KHM","AZE","ESP","HND","YEM","BGR","BLZ","UGA","ROU","JAM","BHR","NZL","QAT","SLB","GBR","BEL","CHN","GRC","GHA","HKG","SVN","GMB","TUR","ISL","ATG","SLE","SWE","IDN","ARG","LKA","MNE","KOR","VAT","CYM","CYP","SGP","THA","URY","STP","VUT","FJI","CAF","IRL","MEX","AND","VNM","PNG","MAC","JPN","NGA","AUS","LBY","PRT","FIN","DZA"],"supported_currencies":["ETB","VES","ZMW","KZT","MXN","SYP","EGP","SBD","ZAR","VND","NZD","ILS","ARS","AMD","LKR","CRC","GYD","NIO","KYD","BRL","BOB","VUV","SHP","QAR","TOP","TWD","HNL","UAH","EUR","GTQ","DOP","UYU","XAF","PAB","PLN","BWP","DZD","COP","JOD","PGK","FJD","SVC","HRK","GMD","CLP","MGA","NGN","BND","RWF","GBP","LBP","MAD","BSD","JMD","PYG","SRD","USD","HUF","GEL","MWK","DJF","MKD","BZD","CHF","HKD","SCR","SEK","BDT","PKR","CAD","XCD","JPY","MYR","IDR","KWD","LYD","SGD","TJS","BMD","UZS","MDL","KHR","CNY","SAR","BGN","AED","BYN","MNT","NOK","PHP","SOS","CZK","BAM","BBD","TND","WST","TZS","INR","YER","RUB","KRW","MOP","KES","ISK","THB","AZN","CUP","GIP","SLL","ALL","BHD","PEN","CDF","GHS","RSD","MVR","UGX","AUD","TRY","BIF","OMR","DKK","STN","NPR","RON"]},{"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":["MDG","KWT","TUN","BWA","SMR","NPL","ZMB","BLR","RUS","KNA","VEN","HND","PAN","MDV","MYS","KHM","CRI","LTU","PRY","VCT","SWE","DNK","BHS","BLZ","EST","ATG","SYR","STP","ARG","VNM","ALB","WSM","THA","NZL","SUR","CYP","UGA","AUT","MCO","LBY","TJK","GRD","HUN","MNG","AUS","NGA","PAK","BIH","FJI","EGY","GUY","BOL","COL","DJI","HKG","GTM","JPN","FRA","MAR","IRL","SRB","SVN","KEN","SLV","UZB","KOR","AND","DOM","BGD","CAF","SOM","MEX","BRB","PNG","DEU","SAU","HRV","FIN","CHE","CYM","UKR","ITA","ARM","VUT","TUR","MKD","IDN","BHR","CHN","ESP","USA","CZE","AZE","PER","MWI","ISR","SLE","COD","CAN","VAT","IND","GMB","GBR","NLD","YEM","MDA","SHN","SVK","JOR","LKA","OMN","RWA","DMA","LVA","QAT","URY","TWN","GIB","GRC","ARE","PRT","MLT","BRA","SGP","LBN","MAC","SYC","BGR","SLB","ZAF","TON","LCA","ETH","BEL","GHA","DZA","ROU","POL","CHL","NOR","JAM","ISL","KAZ","BMU","PHL","GEO","TZA","BDI","NIC","CUB","BRN","MNE"],"supported_currencies":["PLN","SHP","CUP","EUR","AUD","DZD","PEN","KWD","JOD","BGN","SEK","GHS","BRL","RUB","IDR","TZS","CRC","PGK","YER","GBP","BSD","BND","CDF","DJF","MAD","BBD","RWF","KYD","THB","BZD","BDT","KRW","LKR","ETB","FJD","BWP","CZK","SAR","JPY","BMD","EGP","MWK","CHF","SGD","SLL","MNT","MXN","NOK","CLP","GIP","JMD","MVR","LYD","MOP","PYG","KZT","TND","MKD","ZMW","UGX","SYP","HNL","AMD","HKD","KES","PHP","DKK","ILS","NGN","NPR","NZD","TJS","BOB","TOP","UAH","TRY","BYN","CAD","GEL","MYR","UZS","SCR","PKR","USD","GTQ","CNY","SOS","VES","HRK","DOP","BHD","QAR","WST","SBD","KHR","XCD","ALL","AED","XAF","ARS","PAB","LBP","INR","BAM","SRD","TWD","MDL","MGA","RON","SVC","VND","ZAR","GMD","NIO","STN","UYU","VUV","HUF","BIF","RSD","AZN","GYD","ISK","COP","OMR"]},{"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":["YEM","URY","NZL","CRI","LKA","MDV","SLB","MAC","GUY","DJI","BRB","HRV","GHA","HND","AZE","GBR","GEO","BWA","BIH","AUT","SVN","QAT","MNG","ETH","BRA","FRA","MCO","SRB","CHE","MEX","SHN","DMA","ARM","SAU","LVA","BGR","GRC","FJI","EST","PAK","TUN","IDN","TZA","NIC","ROU","KEN","DZA","GIB","VAT","SLE","PNG","KNA","USA","VCT","MLT","CHL","OMN","AUS","HUN","MAR","PRY","MYS","SOM","WSM","AND","UKR","ZMB","KHM","RUS","CYP","LBN","GTM","ESP","LTU","KWT","DEU","NOR","ZAF","UGA","BEL","MDA","KOR","ATG","VEN","PER","COD","NLD","TJK","SMR","TON","MNE","RWA","BDI","JPN","GMB","POL","KAZ","FIN","BHS","NGA","ALB","BGD","ISL","BLZ","BOL","TWN","SYR","SVK","SUR","LBY","COL","MKD","LCA","MDG","IRL","STP","JOR","BLR","EGY","CAF","TUR","JAM","VUT","DNK","ISR","HKG","CZE","PAN","PRT","GRD","ITA","ARE","NPL","CAN","ARG","UZB","IND","CUB","SYC","CYM","BRN","SLV","THA","BMU","SWE","DOM","BHR","PHL","SGP","CHN","VNM","MWI"],"supported_currencies":["FJD","GMD","SYP","RWF","HUF","SEK","TRY","NGN","PKR","BSD","NPR","MWK","MVR","CZK","SVC","CUP","SCR","BZD","JOD","BYN","DOP","VUV","BHD","RSD","TZS","UZS","MOP","VND","BIF","AED","CDF","TWD","MAD","IDR","TJS","HNL","CLP","HRK","AZN","SGD","GIP","NIO","PYG","QAR","AMD","KHR","BDT","VES","DJF","THB","SLL","PLN","PEN","UAH","KES","UYU","OMR","ISK","GYD","INR","KWD","LYD","YER","ZAR","KZT","SOS","CHF","ILS","TOP","MYR","AUD","MKD","USD","GEL","MNT","SBD","BMD","BND","ZMW","PHP","RUB","PGK","JPY","GHS","PAB","BBD","NZD","EGP","MGA","SAR","MXN","BRL","RON","CAD","KRW","CNY","NOK","JMD","ALL","ETB","KYD","BAM","GTQ","DKK","XCD","WST","UGX","CRC","MDL","TND","COP","EUR","GBP","BWP","SHP","SRD","BOB","HKD","STN","ARS","DZD","LBP","BGN","XAF","LKR"]},{"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":["CYM","MYS","CYP","USA","COD","UKR","AZE","SLB","JAM","NOR","ITA","GMB","NIC","STP","ISR","UZB","GEO","KOR","AUT","ARG","ALB","BLR","TWN","VCT","IRL","TJK","YEM","ARE","NGA","DNK","SVK","MDA","MDG","MAR","DJI","ZAF","MCO","DOM","PER","ZMB","AUS","AND","PAN","VNM","KHM","BGD","SLV","UGA","GBR","VEN","SUR","FJI","SLE","CHL","NLD","BRB","MKD","SYR","SYC","ARM","VAT","MNE","BLZ","BDI","ETH","CRI","JOR","CHN","SWE","TUR","LTU","POL","ISL","FIN","CHE","BIH","MNG","KNA","ROU","HKG","DZA","SHN","PNG","BEL","FRA","GTM","PHL","IDN","DMA","GRC","RWA","NPL","THA","MDV","JPN","TON","WSM","BGR","BOL","IND","PRT","EGY","DEU","HND","PAK","KWT","LCA","GRD","BRA","SRB","CAN","TZA","MWI","EST","CZE","PRY","SMR","LBY","HUN","BHS","KAZ","ESP","KEN","GUY","URY","GHA","LBN","BWA","LVA","HRV","MLT","BRN","CUB","ATG","VUT","BMU","SVN","LKA","OMN","MAC","SAU","RUS","BHR","SGP","MEX","COL","QAT","TUN","CAF","GIB","SOM","NZL"],"supported_currencies":["PGK","QAR","JMD","VES","AMD","MAD","UZS","NPR","AUD","BGN","VND","AZN","CHF","SHP","RWF","ETB","TRY","BAM","MDL","ZAR","ISK","CUP","LKR","MKD","MWK","THB","CDF","CNY","CRC","INR","DZD","HKD","EGP","KHR","MNT","MOP","TJS","RUB","BIF","LBP","YER","UGX","XAF","JOD","NGN","HNL","TWD","PYG","BHD","BMD","NZD","GHS","STN","IDR","CAD","ILS","MXN","HRK","TOP","GMD","USD","BZD","TND","BWP","COP","CZK","SLL","SVC","KRW","XCD","BYN","NOK","SCR","BDT","MYR","OMR","ZMW","DOP","KZT","PHP","BND","PEN","EUR","SGD","FJD","SYP","SEK","HUF","BSD","KWD","MVR","ALL","NIO","GYD","BOB","GTQ","SOS","PLN","CLP","SAR","BBD","UAH","LYD","ARS","BRL","PKR","UYU","RON","MGA","RSD","DJF","PAB","SRD","AED","KYD","VUV","JPY","GEL","TZS","GBP","DKK","GIP","KES","SBD","WST"]},{"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":["CHN","TON","VCT","COL","MKD","AUS","SRB","PRT","CYP","GHA","BGR","SWE","RWA","IND","GRC","GMB","MWI","SLB","ZAF","UZB","GTM","MYS","MLT","DNK","WSM","ITA","FIN","SYR","KAZ","ALB","SLE","BEL","KEN","GBR","ISR","BRA","LBY","DMA","HRV","SVK","VUT","MCO","SYC","TUN","SUR","HUN","OMN","ROU","ETH","NZL","UGA","PAK","GIB","BLZ","NIC","MEX","RUS","BRN","MNG","GRD","DZA","BDI","CYM","CAN","SAU","PNG","BIH","MAR","TZA","SHN","URY","POL","NLD","FRA","LBN","CHE","TUR","MDG","QAT","ARG","VEN","DEU","TJK","BHR","AZE","MNE","KOR","IRL","VNM","ISL","SGP","SOM","ARM","CRI","GUY","BRB","YEM","BLR","ESP","NPL","LCA","AND","VAT","PER","AUT","PRY","LTU","MDV","NGA","LVA","MAC","CAF","KHM","KNA","EGY","CUB","COD","MDA","SLV","TWN","DJI","PAN","ARE","BHS","BMU","USA","SVN","BOL","LKA","STP","BWA","SMR","DOM","JPN","GEO","PHL","KWT","CHL","HKG","UKR","BGD","CZE","JOR","THA","IDN","FJI","NOR","ATG","HND","EST","JAM","ZMB"],"supported_currencies":["DKK","HUF","FJD","HNL","HRK","TOP","ARS","SYP","TJS","EUR","RUB","QAR","UAH","SBD","KYD","MAD","DZD","CRC","AED","MVR","MKD","JPY","PKR","KES","RWF","YER","LBP","BYN","XCD","COP","BGN","JMD","BMD","CAD","ETB","GYD","TZS","GTQ","PAB","GHS","GIP","LKR","MNT","MOP","PLN","SAR","MWK","CZK","CDF","AZN","PEN","NZD","BDT","INR","KZT","UYU","SEK","BHD","STN","SOS","BAM","NIO","ZMW","HKD","MYR","SRD","MXN","CNY","SGD","PGK","TRY","SHP","ILS","TND","CUP","GMD","XAF","KRW","MGA","TWD","GBP","AUD","GEL","KWD","DOP","UGX","SVC","BRL","CLP","BOB","BZD","SCR","VUV","AMD","DJF","ISK","THB","EGP","BSD","NGN","IDR","RON","BIF","SLL","WST","VND","ALL","UZS","BBD","ZAR","VES","BWP","BND","JOD","CHF","KHR","PHP","PYG","NPR","RSD","USD","MDL","NOK","LYD","OMR"]}],"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":"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","NZL","AUS","SGP","CAN","JPN","IND","THA","GBR","USA"],"supported_currencies":["CAD","LKR","MKD","DZD","MXN","GBP","MNT","PLN","NOK","TRY","CRC","NZD","JPY","JOD","KRW","LBP","BAM","TND","YER","RON","CNY","AZN","KGS","GTQ","EGP","ARS","GHS","BDT","MMK","RSD","EUR","SEK","UYU","OMR","SGD","DKK","MAD","BRL","CLP","MZN","CZK","KYD","NAD","IDR","BMD","MDL","USD","KWD","GEL","PKR","SOS","THB","QAR","HKD","ZAR","UGX","RUB","IQD","HUF","MUR","VND","MYR","BND","INR","DOP","COP","BYN","BGN","ISK","CHF","KES","PEN","TOP","XAF","AUD","TWD","PYG","AMD","KZT","BHD","PHP","UZS","AED","SAR","UAH","NGN","MWK","TTD"]},{"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":["THA","SGP","NZL","PHL","JPN","CAN","AUS","GBR","IND","USA"],"supported_currencies":["ZAR","GBP","NGN","UYU","CLP","BHD","BRL","GHS","JPY","YER","KZT","BMD","NZD","BND","GEL","MMK","USD","UZS","HKD","MYR","MDL","MAD","AMD","KWD","LBP","MKD","NAD","CNY","TRY","OMR","KRW","PLN","KGS","CAD","IQD","GTQ","BYN","PHP","SGD","VND","SOS","KYD","TWD","AUD","AED","PEN","XAF","BGN","EGP","DKK","BDT","BAM","HUF","MNT","MXN","NOK","PKR","LKR","PYG","ISK","JOD","RON","RUB","TTD","UAH","COP","SEK","MWK","RSD","AZN","TND","SAR","UGX","CZK","DOP","INR","MZN","THB","QAR","DZD","ARS","MUR","CHF","CRC","EUR","IDR","TOP","KES"]},{"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":["THA","JPN","CAN","GBR","USA","SGP","IND","NZL","PHL","AUS"],"supported_currencies":["COP","XAF","JPY","DKK","BYN","NGN","SGD","TND","UAH","VND","BHD","CHF","LBP","BMD","UGX","KGS","CRC","AMD","MWK","KZT","MDL","MKD","MYR","PKR","IQD","KYD","GHS","BDT","MNT","BND","KWD","BAM","CNY","PYG","RSD","CAD","RUB","SOS","RON","ARS","UZS","EGP","USD","EUR","UYU","GBP","MMK","BRL","GEL","PLN","TWD","AED","TTD","PHP","MXN","HKD","MUR","NAD","HUF","INR","JOD","KES","LKR","MAD","GTQ","YER","NOK","OMR","IDR","AZN","DOP","TOP","DZD","THB","ISK","CZK","PEN","QAR","AUD","CLP","NZD","SAR","BGN","KRW","MZN","SEK","TRY","ZAR"]},{"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":["THA","AUS","PHL","GBR","JPN","CAN","SGP","USA","IND","NZL"],"supported_currencies":["GBP","SEK","TRY","BYN","JOD","JPY","BND","KWD","EUR","KYD","GTQ","ISK","ZAR","PEN","BRL","CRC","KGS","MAD","KES","RSD","UZS","INR","KRW","OMR","IQD","CHF","ARS","BGN","AED","AUD","COP","BHD","MDL","NOK","RON","CLP","MZN","BMD","BAM","GEL","NAD","PYG","PLN","TND","HUF","PHP","AZN","CZK","TOP","TTD","TWD","UAH","DOP","GHS","UGX","MWK","SAR","QAR","UYU","MNT","CNY","MKD","MYR","LBP","NGN","THB","MMK","AMD","HKD","PKR","VND","SOS","YER","LKR","XAF","DZD","EGP","MXN","BDT","KZT","CAD","IDR","NZD","RUB","SGD","USD","MUR","DKK"]},{"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":["GBR","THA","AUS","CAN","IND","NZL","PHL","JPN","USA","SGP"],"supported_currencies":["UZS","RSD","XAF","AUD","BYN","INR","KWD","BHD","KRW","MMK","MAD","RON","MYR","QAR","BND","DZD","GEL","ISK","UAH","GBP","ZAR","KZT","TRY","MZN","KES","LKR","EGP","GHS","NGN","DKK","MUR","MWK","EUR","OMR","BDT","YER","AZN","MDL","BMD","PKR","VND","CHF","SGD","JOD","NOK","BAM","AMD","MKD","NZD","BRL","UGX","UYU","LBP","JPY","USD","COP","CRC","HKD","THB","CZK","TOP","TWD","AED","SEK","KYD","BGN","GTQ","PLN","TTD","CNY","RUB","SOS","DOP","MXN","IDR","MNT","CAD","CLP","NAD","IQD","PHP","PYG","KGS","HUF","SAR","PEN","ARS","TND"]},{"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":["USA","PHL","IND","AUS","NZL","THA","SGP","JPN","CAN","GBR"],"supported_currencies":["BHD","IQD","BDT","GTQ","TRY","CRC","AZN","KYD","KZT","DKK","JOD","RSD","JPY","BND","KWD","UZS","INR","LKR","MDL","ZAR","YER","ARS","CAD","KRW","SAR","NOK","MUR","DZD","MXN","UAH","GHS","MNT","CHF","MWK","USD","RON","PKR","NZD","AED","QAR","GBP","MZN","CLP","ISK","SOS","KGS","HUF","KES","THB","TWD","IDR","BYN","AMD","AUD","MYR","TOP","COP","SGD","BGN","TND","PLN","UYU","MKD","BAM","RUB","HKD","NAD","TTD","XAF","MAD","CZK","PHP","EGP","SEK","MMK","NGN","OMR","BRL","GEL","LBP","DOP","PEN","EUR","BMD","VND","CNY","UGX","PYG"]},{"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":["IND","USA","JPN","GBR","NZL","AUS","SGP","CAN","THA","PHL"],"supported_currencies":["IDR","CNY","AZN","SGD","SOS","YER","AUD","COP","BAM","CAD","IQD","EUR","MXN","MZN","SEK","USD","THB","KYD","ISK","TRY","BRL","MWK","CLP","PKR","ARS","NZD","UZS","MUR","BYN","JOD","KRW","GHS","NGN","KZT","QAR","DKK","LKR","AMD","MYR","GBP","MAD","KWD","GEL","JPY","HUF","MDL","TOP","UYU","BND","UGX","ZAR","INR","CZK","OMR","LBP","AED","DOP","BHD","KGS","MKD","MMK","PEN","CRC","NOK","PHP","PYG","BGN","CHF","RON","RSD","RUB","NAD","SAR","BDT","TTD","HKD","DZD","TWD","TND","GTQ","VND","EGP","KES","PLN","MNT","XAF","BMD","UAH"]},{"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":["IND","AUS","GBR","PHL","USA","SGP","CAN","THA","NZL","JPN"],"supported_currencies":["CAD","ARS","TTD","KRW","BGN","BYN","DZD","LKR","HUF","MDL","RSD","OMR","AUD","GBP","KWD","SOS","DOP","JPY","EGP","LBP","CZK","MWK","PLN","MNT","MZN","BND","HKD","AED","BDT","KES","EUR","MMK","KYD","DKK","MXN","BRL","GHS","KGS","NZD","BHD","PHP","PKR","NAD","SGD","TOP","GTQ","UAH","YER","BMD","AZN","COP","NOK","PEN","MUR","SAR","VND","CLP","INR","KZT","QAR","CRC","UYU","TND","CNY","SEK","UGX","UZS","IQD","MKD","CHF","NGN","IDR","RUB","ISK","USD","BAM","GEL","PYG","AMD","THB","MYR","XAF","JOD","RON","TRY","MAD","TWD","ZAR"]},{"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","USA","NZL","JPN","PHL","AUS","THA","CAN","IND","GBR"],"supported_currencies":["MUR","ARS","BDT","MWK","NAD","NGN","PEN","TRY","XAF","YER","ZAR","UGX","QAR","LBP","RUB","UAH","UYU","UZS","CHF","TWD","PKR","AUD","LKR","THB","SEK","SOS","BRL","BAM","CNY","RON","GEL","IQD","JPY","MAD","AED","CZK","HUF","SAR","VND","SGD","PLN","DKK","DZD","KES","MZN","BYN","EGP","MMK","TND","MXN","KGS","MYR","BGN","OMR","TTD","BND","COP","KWD","CLP","KZT","AZN","PHP","BHD","KRW","HKD","GBP","DOP","GTQ","MKD","RSD","TOP","GHS","CAD","NZD","MNT","KYD","EUR","BMD","AMD","JOD","MDL","IDR","INR","ISK","NOK","CRC","PYG","USD"]},{"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":["IND","AUS","USA","PHL","NZL","SGP","CAN","GBR","THA","JPN"],"supported_currencies":["GTQ","AZN","BND","GHS","MXN","HUF","MDL","AMD","BHD","MKD","BYN","BMD","UGX","DZD","MMK","IDR","YER","EUR","PHP","PLN","CRC","AUD","RON","SEK","CNY","CZK","GEL","GBP","KYD","KRW","OMR","TRY","UYU","JOD","DKK","PKR","HKD","RUB","THB","USD","DOP","KGS","JPY","PYG","MUR","TND","UZS","KWD","MNT","LBP","LKR","PEN","NOK","TTD","XAF","VND","IQD","KES","KZT","NZD","NAD","TWD","ZAR","MAD","MZN","CHF","MYR","AED","BDT","EGP","ISK","MWK","QAR","BRL","UAH","ARS","COP","RSD","BGN","INR","SAR","SOS","SGD","CLP","NGN","CAD","TOP","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":["USA","IND","SGP","PHL","NZL","CAN","JPN","GBR","THA","AUS"],"supported_currencies":["MXN","HKD","CNY","MZN","UYU","GTQ","CZK","PLN","DZD","OMR","KRW","ARS","CRC","IQD","NGN","PYG","ISK","NZD","CHF","MMK","DKK","NAD","BAM","PEN","CLP","TRY","TWD","RUB","MUR","UGX","COP","VND","MNT","XAF","ZAR","IDR","BDT","HUF","DOP","INR","GEL","JOD","PHP","AMD","UZS","LKR","AUD","BYN","MDL","PKR","TND","BHD","JPY","LBP","BGN","USD","AZN","KWD","MWK","SAR","THB","AED","CAD","EGP","BRL","GBP","BND","SOS","MYR","KGS","KZT","EUR","YER","MKD","KES","SEK","MAD","TTD","KYD","GHS","RON","RSD","SGD","UAH","BMD","NOK","TOP","QAR"]}],"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":["PHL","AUS","GBR","LUX","DEU","ESP","GRC","ITA","MEX","BEL","JPN","FIN","BRA","SVN","SVK","ZAF","NZL","EST","USA","SGP","NLD","AUT","PRT","LTU","CAN","LVA","MLT","CYP","IRL","FRA","HRV"],"supported_currencies":["GBP","PHP","CAD","SGD","JPY","AUD","ZAR","EUR","MXN","NZD","USD","BRL"]}],"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":"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","CAD","AUD"]},{"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":["CAD","AUD","USD","EUR"]}],"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":["ZAF","CIV","KEN","GHA","NGA"],"supported_currencies":["GHS","KES","USD","ZAR","NGN"]}],"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":"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":["BWA","WSM","GIN","UZB","SUR","BHR","PER","ZWE","GMB","BGR","COD","BLR","YEM","FJI","HUN","BRB","SOM","DJI","MOZ","QAT","JAM","VEN","GTM","MEX","HRV","CMR","GIB","ETH","AZE","CPV","OMN","FLK","SLB","BRA","BIH","BRN","SLV","MWI","TON","ROU","SWE","CAN","COM","POL","MRT","BEN","THA","ISR","EGY","IRQ","BMU","HTI","MDV","HKG","LIE","LBR","ISL","TJK","ARE","AGO","CHL","COK","AFG","HND","MDA","AND","GGY","PNG","JOR","KWT","MAC","BLZ","ASM","SRB","KAZ","TZA","DOM","VUT","LAO","SYC","ABW","LBN","LSO","AIA","NIC","SHN","UGA","SGP","ARM","DZA","GUY","IDN","SWZ","BHS","RWA","ARG","CZE","NGA","CRI","KHM","NAM","KGZ","TUR","PAN","PYF","KOR","GEO","GHA","MKD","COL","BOL","JPN","CYM","DNK","VNM","ZAF","ALB","BVT","PRY","TKM","CHN","TWN","ZMB","TTO","URY","MAR","TUN","MNG","BDI","MYS","AUS","SAU","CUW","MDG"],"supported_currencies":["HUF","BYN","MGA","AZN","XOF","BWP","RSD","XPF","OMR","ZAR","AMD","KHR","SAR","PGK","THB","BRL","XCD","ALL","BMD","BOB","DZD","LBP","KZT","HNL","DKK","LAK","PYG","ZWL","IQD","RON","SOS","GYD","TZS","JPY","VND","ARS","BBD","PAB","MDL","ILS","USD","MRU","QAR","PLN","SEK","ISK","ETB","MAD","CAD","GMD","AFN","ANG","CVE","CZK","MWK","MZN","AOA","NIO","VUV","AWG","CLP","DOP","KMF","SZL","RWF","MNT","CHF","KGS","HTG","BIF","KYD","NZD","GTQ","TOP","XAF","SBD","SGD","MYR","KRW","NOK","YER","HKD","BAM","AED","BZD","AUD","EUR","MVR","GEL","SCR","FJD","NGN","UZS","DJF","SRD","TMT","GIP","BSD","SHP","HRK","TND","EGP","LSL","ZMW","WST","GHS","JOD","KWD","LRD","FKP","UYU","TRY","BND","GBP","PEN","SVC","TTD","UGX","MXN","CNY","TWD","BGN","CDF","IDR","COP","TJS","MKD","BHD","JMD","GNF","VES","CRC","MOP","NAD"]},{"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":["SRB","SHN","GTM","POL","VUT","GIN","UGA","GHA","GEO","MYS","TKM","URY","LAO","SYC","ZMB","AFG","GGY","SOM","AUS","AND","AZE","YEM","TWN","VNM","MNG","KAZ","TUN","ABW","MEX","FJI","MWI","HUN","LBN","CUW","SWZ","MOZ","DZA","DNK","KOR","BIH","VEN","SAU","BOL","KGZ","COL","COM","JPN","GUY","SUR","HKG","TZA","CZE","CMR","DOM","ZWE","THA","MDA","TUR","IDN","WSM","JOR","BVT","CAN","CPV","BLR","COK","PAN","BMU","PRY","MAR","MRT","RWA","MKD","ROU","SGP","ARG","SLV","BDI","FLK","BRA","BRN","JAM","MAC","LIE","CHL","BGR","NGA","NAM","CHN","MDG","SWE","GMB","NIC","SLB","TJK","HRV","ARE","AGO","BRB","QAT","TON","IRQ","BWA","BHS","UZB","LSO","ALB","LBR","PER","ZAF","ISR","CRI","ASM","BEN","PNG","CYM","PYF","ETH","BLZ","EGY","DJI","OMN","GIB","AIA","MDV","COD","ISL","KWT","HND","KHM","TTO","HTI","BHR","ARM"],"supported_currencies":["COP","DJF","TMT","MYR","USD","MAD","TJS","ZMW","HKD","DZD","FJD","BHD","KGS","PYG","NZD","AMD","BZD","GMD","ILS","SGD","NIO","TND","PLN","BWP","LSL","QAR","JOD","RON","TOP","CZK","TWD","UZS","VUV","RWF","ANG","GNF","XAF","SZL","RSD","ALL","CRC","AFN","DOP","KHR","FKP","AED","BND","AOA","HRK","JMD","BIF","GTQ","MGA","SRD","IDR","BBD","UYU","YER","PAB","MXN","SBD","VND","ISK","GYD","HNL","DKK","NOK","EGP","CHF","LBP","CAD","LAK","XOF","XPF","BGN","KYD","NAD","AUD","LRD","CNY","BOB","UGX","AZN","AWG","CDF","ZWL","BAM","OMR","IQD","TRY","TTD","XCD","MWK","VES","ZAR","KZT","GEL","BMD","BYN","JPY","MOP","SEK","MVR","NGN","HUF","CLP","THB","SAR","GIP","ETB","PGK","GBP","HTG","GHS","TZS","WST","CVE","ARS","MDL","SHP","BRL","SOS","MRU","MZN","MKD","BSD","SCR","MNT","KRW","KWD","SVC","KMF","EUR","PEN"]},{"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":["BWA","BDI","MOZ","MKD","THA","COD","ISR","IRQ","ZAF","TTO","JAM","AUS","EGY","KWT","NAM","BMU","VUT","MNG","SLB","GUY","URY","BGR","MWI","FLK","SWE","KAZ","JOR","SOM","SHN","ARG","MDV","GTM","VEN","PER","BEN","BIH","TON","QAT","KGZ","SWZ","GGY","VNM","UGA","HKG","DOM","TWN","GIB","PYF","SGP","LAO","GIN","FJI","KHM","CHN","TUR","AZE","BLR","DNK","MAC","IDN","MYS","CUW","LBN","POL","HND","MDG","BHS","WSM","GMB","BOL","MRT","DZA","BRA","ZMB","HUN","COK","ALB","CAN","TKM","AGO","TUN","ZWE","ISL","RWA","ASM","LBR","JPN","AIA","CPV","CRI","BVT","BRB","BLZ","YEM","NGA","CHL","KOR","COL","AND","ETH","PAN","PNG","UZB","ARE","PRY","LSO","ABW","SRB","COM","SLV","MDA","TZA","TJK","DJI","GEO","SAU","BRN","NIC","HTI","ROU","CZE","MAR","SUR","LIE","CMR","OMN","GHA","SYC","ARM","BHR","CYM","AFG","HRV","MEX"],"supported_currencies":["KGS","HNL","TTD","RSD","TRY","MGA","USD","VUV","JOD","GTQ","UYU","CVE","NAD","OMR","TJS","BWP","CNY","XOF","LRD","BIF","ZAR","FJD","ZWL","BZD","MOP","GMD","HKD","HUF","CZK","BMD","CRC","KHR","PGK","CAD","SZL","COP","AMD","TND","KWD","DZD","AED","HRK","MWK","PYG","MRU","AOA","MKD","BGN","GBP","SBD","TOP","SHP","FKP","ISK","NZD","EGP","BOB","BBD","MVR","ARS","TZS","NOK","GHS","GEL","SGD","BYN","GIP","JPY","TMT","VND","BND","UGX","LAK","QAR","BSD","ILS","AUD","KRW","NGN","SCR","SRD","EUR","AWG","AFN","THB","RWF","MDL","SVC","TWD","SEK","VES","BRL","MYR","KYD","LBP","AZN","ANG","XPF","SOS","IQD","DKK","MNT","XCD","YER","CHF","MXN","JMD","ZMW","BHD","DOP","KMF","LSL","PLN","XAF","WST","PAB","ALL","GYD","KZT","HTG","PEN","RON","SAR","UZS","NIO","CDF","BAM","ETB","MAD","GNF","IDR","CLP","MZN","DJF"]}],"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":["URY","HND","CRI","PAN","ECU","CHE","PRI","MEX","BEL","COL"],"supported_currencies":["USD","CLP","COP"]},{"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":["PAN","PRI","CHE","COL","HND","ECU","MEX","URY","BEL","CRI"],"supported_currencies":["COP","CLP","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":"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":["TTO","GMB","RUS","WLF","BTN","PRI","ALB","SRB","CYP","ARM","TUR","MNE","IMN","NZL","BIH","MNP","MEX","LSO","MTQ","UGA","SVK","SVN","NFK","COK","VNM","COM","BRA","HMD","KAZ","TWN","THA","BRN","SJM","PAN","ABW","CUB","MDV","NPL","MYS","IRL","TUN","UZB","BLM","CZE","GRC","COG","FRO","PLW","SEN","ASM","LAO","TZA","AZE","ATA","ARG","DJI","VCT","SMR","YEM","LCA","JAM","IRQ","LBR","BLR","FRA","IND","KEN","MAR","FIN","LBN","ZMB","ATG","ROU","CHN","ITA","CUW","ZWE","HRV","MAF","SLB","PYF","MDA","GRL","CRI","NOR","ZAF","GHA","PRT","NIC","BGR","DNK","ETH","URY","BGD","EGY","CXR","IOT","DEU","VEN","HUN","HTI","PRY","LVA","UKR","BMU","PHL","COL","IRN","ERI","KHM","MWI","MMR","SLV","TCD","LKA","UMI","KGZ","AUS","NER","LIE","GRD","PNG","SDN","ECU","MLI","AGO","BVT","KOR","SWE","BEL","ATF","CMR","MNG","VIR","FLK","LUX","JOR","BDI","CIV","NAM","MSR","JPN","GNB","ESP","PER","SAU","ALA","GIB","MHL","KNA","MOZ","MCO","SWZ","MDG","REU","VGB","SXM","SSD","CHE","TKM","CAF","SPM","NIU","DOM","BWA","SUR","CCK","BES","TCA","EST","SOM","SLE","SYR","BRB","OMN","AUT","NGA","GGY","BLZ","GBR","CPV","BEN","MRT","CYM","GAB","ARE","SYC","QAT","LTU","BFA","ISR","GLP","TLS","TJK","FSM","VUT","STP","TGO","CAN","ISL","RWA","NRU","IDN","DZA","ESH","BHS","GUY","TUV","HND","WSM","COD","POL","GUM","NCL","SHN","KIR","BHR","MUS","KWT","AIA","LBY","GEO","MKD","PCN","AFG","NLD","GTM","SGP","VAT","BOL","DMA","GIN","PAK","HKG","JEY","USA","PSE","MYT","TON","GUF","PRK","CHL","MAC","MLT","GNQ","FJI"],"supported_currencies":["HNL","BSD","CRC","GTQ","KYD","USD","JMD","BMD","BBD","TTD"]},{"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":["AZE","ARM","PHL","MNG","MDV","CUB","SYC","NPL","KEN","MDA","FLK","MOZ","GIN","ZAF","MWI","TON","SWZ","CHE","SPM","PAN","BDI","LAO","FRA","DZA","PNG","IRQ","IDN","MAF","IMN","COD","ABW","KGZ","SWE","VEN","SLE","MNE","GUF","NGA","DOM","BMU","ITA","GLP","ALB","PRI","LUX","VIR","MRT","VAT","ARG","SVN","YEM","CAF","TJK","CUW","BLR","NRU","CMR","NIU","AFG","BWA","SLV","ALA","LBY","AUT","NOR","VNM","IOT","NCL","COM","COK","ISL","AGO","MYS","ERI","EST","IRN","UMI","MUS","PLW","GTM","QAT","CPV","GBR","MLI","CCK","DMA","RUS","LIE","CZE","DJI","BOL","LKA","BVT","SGP","SAU","KAZ","MKD","WLF","TZA","ESP","SMR","MAR","THA","MLT","NLD","BIH","DEU","HUN","CAN","FSM","PCN","ETH","CRI","REU","TLS","GRL","PER","BLM","JEY","RWA","BES","LSO","DNK","TUN","CHN","TUR","SVK","MEX","JOR","ZMB","AIA","ISR","UZB","FRO","JPN","KNA","VCT","HRV","FJI","CIV","ATF","VUT","BRN","MTQ","GAB","GNQ","GRD","NFK","TTO","BHS","ATA","COG","AUS","LTU","BEN","BRA","KHM","SEN","UKR","SSD","ECU","SDN","ESH","NIC","PYF","SOM","SYR","STP","BRB","WSM","KIR","MDG","MMR","POL","UGA","HTI","TKM","HND","MNP","TCD","ATG","CHL","FIN","KOR","SRB","OMN","CYP","BGD","IRL","SHN","NER","PRK","PRT","MCO","MHL","CXR","BEL","PRY","LBN","BTN","TCA","LCA","LBR","LVA","JAM","GUY","TGO","COL","TUV","PAK","NZL","ZWE","HKG","MYT","URY","BGR","KWT","GIB","USA","TWN","BHR","ROU","GGY","EGY","SJM","CYM","GNB","BLZ","VGB","IND","BFA","MSR","ARE","ASM","MAC","GMB","GEO","GRC","SUR","SXM","GUM","NAM","HMD","SLB","PSE","GHA"],"supported_currencies":["USD","GTQ","CRC","BBD","BMD","TTD","HNL","BSD","JMD","KYD"]}],"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":"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":["STP","GAB","GNQ","FSM","BES","LIE","MAC","UGA","BDI","RWA","AGO","FRO","COK","TGO","SMR","BVT","REU","EST","MAR","VIR","GIN","GIB","MCO","CUW","DEU","BEN","ERI","NIC","POL","CHE","MNE","KNA","UZB","HUN","UMI","MSR","ISR","NOR","FJI","CXR","MYS","GTM","MHL","URY","SJM","BTN","ATA","SWE","KWT","TUV","GUY","KIR","SVN","TON","GRC","MOZ","SHN","DJI","CAF","IDN","GNB","KAZ","VGB","MWI","SOM","CHN","TTO","GUF","IND","LSO","JOR","CHL","NIU","SWZ","NFK","CYM","FIN","ETH","WSM","QAT","DMA","HKG","LUX","GBR","MNP","VEN","ATF","SYR","VCT","NAM","PCN","SLE","KOR","CCK","ABW","HMD","PRT","ITA","LAO","THA","CUB","SSD","PAK","GEO","CPV","VNM","PNG","MUS","AIA","GMB","BRA","SDN","PRI","HND","TCA","RUS","PSE","KEN","LKA","ATG","BGD","NZL","LCA","ARG","ALB","BFA","IRN","ESH","AUT","UKR","TUR","GGY","AFG","TWN","DZA","DNK","ALA","BHR","LBY","CRI","MNG","CMR","ECU","MRT","COM","NRU","BLM","USA","ARE","PYF","ARM","MDG","MTQ","NPL","PAN","BRN","GUM","SPM","SGP","JAM","MKD","MDV","NER","IOT","SXM","DOM","VAT","PER","BWA","BGR","LVA","TCD","COG","SLB","TZA","MMR","FRA","CAN","GRD","JPN","EGY","COL","COD","FLK","SUR","SEN","BHS","MEX","MDA","ZWE","MAF","ESP","TKM","SLV","BMU","ZAF","SAU","IMN","BEL","CYP","YEM","IRL","CZE","WLF","HTI","HRV","BOL","TJK","PRK","NGA","OMN","KHM","TLS","BRB","MYT","TUN","PHL","ROU","VUT","LTU","CIV","IRQ","GRL","JEY","PRY","ISL","SVK","NCL","SRB","SYC","BLR","MLT","AZE","LBR","MLI","ZMB","LBN","PLW","KGZ","ASM","AUS","BLZ","BIH","NLD","GLP","GHA"],"supported_currencies":["LAK","CZK","GHS","LKR","HKD","SAR","KWD","NOK","BND","ZMW","BOB","RSD","IQD","BWP","DKK","ILS","RON","MAD","UAH","GBP","KES","MZN","EGP","PHP","MYR","MDL","NAD","SLL","BDT","SCR","ISK","KZT","CAD","UGX","TRY","HRK","BGN","VND","BRL","ZAR","XOF","FJD","MMK","RWF","CNY","MWK","AED","JPY","MOP","MXN","PLN","AUD","PEN","KRW","PKR","SGD","XAF","IDR","NGN","EUR","QAR","CHF","INR","SEK","HUF","IRR","GEL","UYU","NPR","NZD","TZS","COP","RUB","TWD","THB","USD"]},{"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":["ARM","MNP","GRD","BHS","DZA","ITA","GNB","BDI","CHL","VNM","KWT","MWI","TKM","GRC","MKD","ARE","GEO","ATF","ESP","SOM","AFG","IRQ","NER","COG","JEY","WLF","URY","MSR","BEN","GIB","KAZ","MRT","SXM","TON","BWA","FRO","ATG","LKA","GGY","PRT","KIR","IRN","ESH","BRA","IOT","VGB","VCT","ZWE","TTO","REU","JAM","UMI","HTI","COD","LSO","GIN","DJI","SGP","MLT","NCL","BLZ","CRI","NIU","DEU","ATA","CAF","CHN","BIH","WSM","BTN","SJM","VIR","AUT","MYT","SRB","ISR","BOL","TLS","FSM","LBY","FJI","VAT","GUY","IDN","SEN","GHA","SWZ","AZE","LAO","ECU","NPL","TCD","ASM","LTU","COL","CUB","SMR","FLK","JOR","PYF","MDG","MHL","HMD","ALA","PAK","ZMB","POL","KHM","KNA","QAT","IMN","BFA","LBR","TWN","CUW","GMB","ISL","GUF","TUR","SHN","SVK","MNG","GRL","HUN","MAF","SPM","ALB","EGY","BLM","NFK","CAN","LBN","PSE","BRN","EST","HKG","LIE","SLE","UZB","LCA","MMR","BHR","TCA","STP","CIV","LVA","RUS","SLB","ETH","PCN","MNE","KGZ","GBR","SLV","MYS","SYC","GNQ","TGO","FRA","PRK","MAC","AUS","RWA","CMR","TJK","VEN","KOR","MDA","MEX","ROU","COM","CYP","PNG","PER","SUR","NGA","FIN","CHE","NZL","MTQ","HND","SSD","MUS","PHL","AIA","LUX","SVN","GUM","AGO","SDN","TUN","MLI","NRU","CPV","GLP","BRB","BMU","NIC","PRI","IND","ABW","GTM","USA","NAM","CXR","TZA","PAN","ARG","ERI","MCO","DMA","GAB","SWE","TUV","BEL","THA","SAU","DOM","VUT","MOZ","DNK","BLR","BGD","CZE","BVT","KEN","NLD","UKR","ZAF","CYM","BES","CCK","IRL","PLW","BGR","OMN","COK","PRY","NOR","MDV","HRV","JPN","UGA","MAR","SYR","YEM"],"supported_currencies":["PLN","RSD","KES","COP","ILS","FJD","KZT","GEL","SEK","MDL","BGN","MWK","KWD","EGP","NGN","DKK","ISK","MAD","CZK","CAD","MZN","NOK","CHF","ZMW","LAK","AUD","HRK","NZD","UYU","NAD","SCR","UGX","PKR","UAH","MYR","HKD","HUF","USD","KRW","TZS","GBP","PHP","SAR","MMK","INR","THB","XAF","SLL","RWF","XOF","BWP","EUR","RON","MXN","PEN","AED","GHS","LKR","NPR","BOB","BND","IDR","IQD","TRY","VND","CNY","QAR","BRL","MOP","BDT","IRR","JPY","SGD","TWD","RUB","ZAR"]},{"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":["MLT","GUM","NIC","DEU","LTU","ESP","UKR","BEL","DOM","NOR","CYP","AND","KHM","ASM","PER","EST","GIB","GGY","FRA","SGP","USA","NZL","ZAF","ARG","CZE","PRI","MNP","MEX","TWN","HUN","CHL","ALB","PRY","MAC","SMR","LUX","QAT","VNM","BHR","HRV","SVN","GEO","MDA","IRL","ISL","KWT","MNE","MAR","LVA","CYM","KGZ","BMU","HND","BRA","SLV","THA","CHE","BGR","DNK","VIR","SRB","AZE","SVK","HKG","MKD","ECU","ISR","TJK","ARE","GTM","POL","SWE","MCO","FRO","MYS","FIN","GBR","ITA","JPN","GRC","BIH","PAN","PRT","LIE","ROU","NLD","IMN","ARM","AUT","CRI","GRL","AUS","COL","CAN","KAZ","URY"],"supported_currencies":["EUR","ISK","GBP","USD"]},{"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":["CRI","GEO","ISL","OMN","PRT","NCL","AUS","CAN","DEU","MDA","DOM","SWE","MAR","EST","LIE","ESP","VNM","NOR","THA","USA","HUN","PRI","SVK","AZE","FIN","ZAF","SGP","MEX","ITA","KAZ","QAT","PER","JOR","SRB","HRV","ECU","COL","BEL","LTU","AUT","HND","SMR","LUX","MYS","CHN","BIH","LAO","JEY","CYP","LVA","NZL","POL","HKG","SAU","UKR","GTM","GBR","VAT","BGR","TWN","EGY","NLD","SLV","FRA","PAN","IRL","BLR","URY","GRC","MCO","CHL","MNG","JPN","MAC","IMN","ISR","DNK","KWT","ARM","CHE","MLT","GRL","SVN","MNE","CZE","ROU"],"supported_currencies":["ISK","EUR","USD","GBP"]}],"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":"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":["THB","ZAR","INR","CAD","DKK","COP","EUR","PLN","CZK","RUB","SAR","PEN","SEK","NOK","HUF","GBP","SGD","USD","NZD","ILS","BGN","CHF","JPY","AUD","MYR","HRK"]},{"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":["PEN","CZK","EUR","PLN","CHF","JPY","ILS","NZD","SAR","AUD","SGD","RUB","ZAR","SEK","GBP","INR","NOK","COP","CAD","BGN","HUF","THB","MYR","DKK","HRK","USD"]}],"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":"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"]},{"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":["EUR","SEK","CHF","GBP"]},{"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":["LIE","AGO","SPM","VNM","GGY","GAB","NGA","ZMB","CPV","MLT","ZAF","ECU","DMA","MAF","EGY","GMB","NRU","FIN","TZA","SWZ","TUR","WSM","CIV","TWN","VUT","KWT","ARG","COK","ETH","ALB","PAN","MCO","PLW","ATG","EST","CMR","ITA","BRN","BIH","YEM","OMN","ABW","NER","SYR","MDV","JPN","BGR","PRK","GRC","CXR","DNK","SHN","MHL","PER","GEO","HND","ISR","IOT","SDN","ROU","GRL","SOM","BMU","PSE","PHL","BVT","UMI","GNB","CUW","IRL","HKG","GIB","VCT","BDI","LTU","BRB","GLP","MNP","POL","NPL","PRT","COG","DOM","SUR","PCN","BLZ","JEY","MDG","BEN","FRO","NAM","MNG","TKM","DEU","LVA","FRA","IRQ","MKD","SRB","GTM","ARM","TLS","BRA","KEN","JAM","COL","MMR","LBR","JOR","BES","SVN","TUN","TCD","UGA","SAU","MYT","AFG","CHN","HTI","STP","CZE","COM","RWA","BHR","MRT","USA","CYM","PRY","PNG","SYC","MAC","GNQ","MDA","LKA","KAZ","ZWE","SEN","SJM","NFK","BEL","BLM","GIN","ATF","GHA","TUV","MNE","IMN","SWE","RUS","THA","TGO","GRD","IND","MLI","MSR","IDN","NOR","KNA","CHE","UZB","SVK","UKR","LCA","SLE","FJI","MWI","QAT","MOZ","AZE","FLK","TCA","BHS","LSO","DJI","MTQ","CRI","PYF","KOR","AIA","NZL","NLD","DZA","BFA","HUN","GUF","BWA","MAR","SGP","ATA","LBY","HRV","PAK","KIR","REU","SLB","CAN","TTO","ERI","BTN","IRN","URY","SLV","TON","CHL","WLF","MYS","ARE","GUM","NCL","COD","LAO","BLR","ESP","AUT","CAF","ASM","GUY","KHM","FSM","SSD","CUB","ESH","VEN","VAT","LBN","CYP","TJK","BOL","ISL","GBR","HMD","KGZ","MEX","VIR","CCK","PRI","AUS","SMR","MUS","NIC","AND","LUX","BGD","ALA","SXM","VGB","NIU"],"supported_currencies":["ARS","KWD","KES","KYD","AOA","MVR","MYR","UGX","AED","BRL","GIP","JOD","MRU","BND","YER","CLP","GBP","SVC","BWP","DOP","NAD","GMD","MNT","CDF","BMD","GHS","GNF","LKR","LYD","XCD","MOP","NGN","BZD","ANG","NIO","SDG","MUR","PEN","CVE","RSD","GTQ","BAM","AWG","CNY","PAB","PKR","JPY","MWK","XAF","CUP","RWF","HKD","ZAR","CZK","HTG","ILS","KPW","SSP","OMR","GYD","VND","DZD","MKD","KMF","SAR","BYN","BDT","HRK","TTD","BOB","EGP","JMD","KZT","RUB","CRC","EUR","PYG","TMT","BHD","NPR","MMK","TWD","KHR","UZS","INR","DKK","LSL","QAR","PGK","MGA","ZMW","HUF","DJF","FJD","COP","BGN","BSD","HNL","IRR","KRW","LAK","IQD","PHP","RON","GEL","KGS","TRY","UAH","XOF","MXN","BIF","LBP","SOS","AFN","PLN","TJS","TND","SZL","TOP","SBD","CAD","SEK","TZS","UYU","XPF","ALL","MDL","MAD","AZN","NZD","VUV","BBD","SRD","AUD","SHP","CHF","WST","BTN","AMD","FKP","ETB","LRD","THB","MZN","ZWL","ERN","USD","SCR","SGD","IDR","SLL","SYP","NOK","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":["Visa","Mastercard"],"supported_countries":["SOM","MLT","PHL","TUN","ESH","ARG","UKR","PRY","BHR","GAB","TGO","COD","EST","PRI","SEN","PLW","NIC","LTU","FIN","CZE","ROU","BES","MWI","TLS","GRD","BRA","PCN","ALA","MDG","SLE","LCA","VCT","SLB","MCO","SWE","TON","CAF","COK","QAT","SWZ","SDN","MYT","NIU","KOR","VAT","IMN","GLP","LUX","DZA","TZA","AGO","ARM","DNK","ATF","THA","ECU","MNE","KGZ","LBR","MAC","BDI","HKG","ISL","GEO","MUS","PAN","TCA","GUY","STP","MOZ","NOR","KHM","SMR","CPV","VIR","ZWE","KWT","PAK","CMR","BLR","ZAF","GIB","SSD","MMR","HTI","SVN","COM","MRT","FRO","CCK","SLV","SHN","UMI","BHS","NER","MAR","MDA","BLZ","ARE","CYM","CHE","CHL","IRN","TUR","KEN","SYR","SXM","ABW","CHN","GNB","CIV","BEL","AIA","UZB","FRA","ATG","BGR","PYF","MHL","IRL","CUB","URY","RUS","LBN","MDV","WLF","MSR","COL","ERI","CRI","MKD","BIH","SJM","LAO","LVA","KAZ","WSM","PRT","GHA","NAM","AUT","SPM","REU","LIE","OMN","USA","LBY","NGA","FLK","GTM","IDN","SAU","HUN","VGB","NFK","TTO","MNG","KNA","TWN","LSO","BTN","ETH","YEM","PER","BVT","AUS","PRK","DOM","VNM","GIN","CAN","ZMB","HRV","SUR","MAF","SRB","GRL","CUW","MEX","FJI","HND","PNG","AND","PSE","ALB","AZE","SYC","CYP","UGA","ESP","JAM","GNQ","TKM","GUM","LKA","SVK","VUT","NPL","JOR","BEN","SGP","COG","BMU","HMD","GUF","GMB","NRU","MNP","JEY","BWA","BFA","BRB","MLI","DEU","DMA","ASM","ITA","GGY","IOT","EGY","VEN","BGD","IND","FSM","NZL","DJI","IRQ","JPN","TUV","BLM","TCD","AFG","MYS","BOL","KIR","ATA","RWA","NLD","MTQ","POL","TJK","NCL","CXR","BRN","GRC","ISR","GBR"],"supported_currencies":["IDR","SLL","GNF","MDL","GIP","BZD","LSL","SVC","GYD","JMD","THB","KWD","ISK","HKD","EGP","KRW","GTQ","HNL","MUR","RWF","ZWL","HUF","LAK","KMF","TJS","TOP","FJD","DZD","SGD","DJF","PEN","SOS","HRK","SBD","RON","KES","LRD","PGK","PHP","XAF","ZAR","AZN","FKP","BWP","BSD","TZS","GBP","MRU","SSP","LBP","BGN","JOD","NIO","QAR","TRY","MAD","AUD","ARS","NPR","MGA","CVE","RUB","TND","ZMW","TWD","SDG","KGS","TMT","PYG","SZL","KYD","NZD","NOK","SHP","PAB","MNT","VUV","BND","MWK","SAR","SCR","SRD","KHR","YER","NAD","JPY","PKR","MYR","INR","MOP","MVR","BTN","GMD","BYN","MMK","BRL","RSD","UYU","XCD","USD","BDT","AFN","ALL","TTD","UGX","AWG","AED","GHS","LYD","NGN","PLN","ILS","CUP","CZK","ETB","BAM","IRR","AOA","KPW","EUR","IQD","KZT","XOF","BBD","CRC","CLP","CHF","COP","UZS","AMD","CDF","WST","BOB","CNY","SYP","LKR","BMD","UAH","OMR","DKK","MKD","BHD","MZN","XPF","VND","MXN","GEL","HTG","DOP","SEK","ANG","CAD","BIF","ERN"]},{"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":"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":"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":"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":"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","GBP","NOK","CZK","SEK","DKK"]},{"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":["SWE","BEL","ITA","POL","DEU","CHE","FRA","AUT","NLD","FIN","GBR","ESP"],"supported_currencies":["CHF","EUR"]},{"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":"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"]}],"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":"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":["JPN","FRA","USA","ESP","AUS","GBR","CAN","IRL"],"supported_currencies":["SRD","BGN","CDF","HTG","TJS","DZD","SZL","CUP","SYP","IRR","CLP","CVE","UYU","UGX","ZAR","AMD","KGS","GYD","MKD","MZN","BZD","IDR","KMF","TMT","GHS","MAD","MDL","CAD","XCD","RSD","BTN","SSP","VUV","AED","DOP","MYR","PKR","GIP","BOB","NIO","LBP","ARS","PHP","AWG","LSL","TRY","UAH","KWD","UZS","LKR","MXN","SLL","THB","SDG","IQD","KHR","ETB","AFN","OMR","HNL","CNY","HUF","PLN","EUR","MGA","INR","KYD","BDT","NAD","SCR","GTQ","LAK","PEN","RWF","XOF","HKD","BRL","GBP","ISK","NZD","JPY","SAR","BSD","TOP","BBD","CZK","ERN","VND","PYG","SOS","BND","WST","MVR","GNF","AOA","AUD","NPR","DJF","BHD","MNT","MUR","QAR","YER","CRC","TND","KPW","EGP","KRW","NGN","HRK","SHP","SVC","CHF","XPF","JMD","SBD","NOK","MMK","ALL","FJD","RON","AZN","SGD","BWP","LRD","MOP","LYD","KES","FKP","ILS","JOD","USD","ANG","BAM","SEK","TWD","DKK","RUB","PGK","KZT","GEL","PAB","GMD","COP","MWK","XAF","ZMW","BIF","BMD","TTD","TZS","SLE"]},{"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":["IRL","AUS","CAN","JPN","USA","ESP","GBR","FRA"],"supported_currencies":["MAD","DZD","BBD","NIO","SRD","UAH","MKD","FJD","NAD","MWK","KES","HUF","BHD","ERN","LBP","BDT","HRK","TTD","KPW","KHR","EGP","SBD","VUV","SOS","NOK","SYP","GIP","PGK","TND","AMD","CUP","EUR","KMF","RSD","PAB","SAR","MXN","AED","AUD","XAF","SVC","HKD","DJF","MGA","PYG","KRW","AZN","BRL","MZN","SLL","UZS","ISK","JPY","RON","JOD","QAR","GMD","MVR","RUB","SDG","TZS","ZAR","GTQ","LRD","JMD","HTG","ETB","PHP","CLP","GYD","LYD","RWF","CHF","IQD","LSL","FKP","MUR","UGX","MMK","XPF","ALL","MDL","ZMW","BGN","PLN","KWD","IRR","CZK","BOB","TRY","BTN","CNY","THB","PKR","NPR","GEL","SCR","USD","ANG","BIF","GBP","HNL","CRC","BAM","ILS","PEN","ARS","NZD","CVE","VND","COP","BND","SHP","MOP","CDF","YER","BSD","CAD","SSP","NGN","SLE","BWP","GNF","KZT","LAK","LKR","AFN","TOP","UYU","TWD","XOF","XCD","BZD","TMT","MYR","GHS","IDR","SGD","SZL","KGS","SEK","OMR","MNT","AWG","AOA","TJS","INR","DKK","BMD","KYD","WST","DOP"]}],"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":"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"]},{"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":"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"]}],"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":["DZD","CAD","XAF","OMR","KHR","RSD","KES","MAD","KYD","BHD","NPR","BRL","HKD","CNY","AWG","UYU","BIF","KPW","PYG","ANG","LBP","XOF","GTQ","AED","SOS","KRW","CRC","MZN","SLE","STN","CLP","MOP","GNF","AZN","BTN","BOB","DJF","EUR","JOD","PHP","QAR","ZMW","RON","FKP","IQD","WST","MKD","RWF","UAH","MYR","CDF","LKR","MUR","PEN","TZS","CUP","BYN","MWK","COP","SRD","TND","AUD","AOA","KGS","TOP","KZT","ETB","SHP","SEK","HUF","FJD","GMD","HRK","TMT","ERN","TTD","KMF","BAM","VND","USD","SYP","INR","BSD","ISK","MNT","PGK","EGP","MVR","ALL","JPY","SZL","SAR","SSP","UGX","JMD","LYD","KWD","MDL","THB","BGN","ZWL","GBP","HTG","NAD","LSL","NGN","BBD","NOK","PKR","TWD","IDR","TJS","GIP","CVE","PAB","HNL","SDG","ZAR","ILS","BZD","BMD","TRY","SCR","VES","NZD","MRU","SVC","PLN","GEL","BWP","MXN","DOP","MMK","LRD","ARS","AFN","SGD","XPF","CHF","LAK","SBD","AMD","UZS","VUV","RUB","XCD","YER","DKK","BDT","BND","CZK","NIO","IRR","MGA","GHS","GYD"]},{"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":["SCR","BYN","GMD","AMD","UGX","NPR","TMT","BDT","HRK","XPF","IRR","AED","BHD","GYD","ILS","ANG","AOA","MDL","NAD","TWD","LKR","MYR","KGS","LAK","PLN","SSP","BIF","OMR","RWF","SRD","ZWL","AWG","ERN","MVR","NOK","RON","BTN","FJD","UZS","BND","MUR","CHF","BMD","SYP","UAH","VES","BGN","PHP","IDR","DKK","LSL","PEN","SEK","CUP","LRD","ZMW","CRC","QAR","CDF","HKD","KPW","ETB","INR","HTG","ALL","CNY","JPY","BAM","HNL","NGN","DOP","PAB","SVC","MXN","THB","TRY","MRU","YER","VUV","MWK","GTQ","TOP","RUB","MKD","MNT","TND","EUR","PKR","IQD","KRW","MZN","GNF","MMK","GIP","AFN","RSD","SHP","TJS","UYU","LYD","NZD","SAR","DZD","GBP","KES","KMF","BOB","ARS","KYD","KZT","XAF","SDG","COP","CVE","STN","TTD","SOS","BWP","JMD","KHR","CZK","VND","USD","EGP","AUD","BRL","BSD","GHS","FKP","BZD","HUF","LBP","CAD","KWD","PGK","SGD","XCD","SBD","NIO","TZS","MAD","JOD","WST","GEL","MOP","ZAR","AZN","SZL","CLP","ISK","PYG","XOF","SLE","MGA","DJF","BBD"]}],"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":["AUT","SVN","BGR","LVA","NOR","CZE","GBR","FRA","NLD","DEU","MLT","SWE","ROU","AUS","IRL","LUX","EST","BRA","GRC","FIN","ESP","POL","LTU","DNK","PRT","CYP","BEL","HRV","SVK","HUN","ITA"],"supported_currencies":["PLN","AUD","SEK","BRL","GBP","EUR","DKK","NOK"]}],"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":["ISR","GRL","LBY","MSR","EST","TCA","USA","CXR","GEO","UGA","NIU","BIH","GIN","KAZ","MWI","MOZ","HUN","MDV","KIR","CZE","ZAF","BDI","VIR","MNE","ITA","TJK","KWT","MEX","CCK","NIC","PNG","NZL","SMR","IOT","PHL","GUF","AZE","PAK","REU","NGA","ARM","STP","TON","TTO","ATA","GHA","SHN","CHE","POL","LKA","MAR","DZA","SYR","VAT","SLE","IRN","MRT","SVK","KGZ","RUS","JAM","MDA","JEY","SLV","TKM","LTU","CYP","SRB","KNA","HTI","KEN","SWE","CMR","GNQ","SYC","BEN","SGS","FRA","MKD","BRN","NLD","PRT","TGO","GBR","DNK","LSO","UZB","BRA","PRI","SJM","GMB","VNM","TKL","BGD","TUN","ATG","IRQ","MLI","GGY","LUX","IRL","IND","CUB","IDN","WSM","URY","QAT","ATF","COG","KOR","LBR","AUT","BRB","SAU","MAF","NCL","GLP","ROU","THA","ETH","GAB","AIA","MAC","UMI","SUR","ZMB","TZA","AUS","TUV","RWA","EGY","CUW","MTQ","PRY","VEN","MLT","VGB","IMN","WLF","NAM","BLM","TCD","FLK","SVN","CYM","BES","DJI","SOM","TLS","HRV","COK","BOL","ARE","YEM","CAF","COL","ALB","MNG","GIB","UKR","ALA","GUY","ARG","CIV","GRC","MNP","BHS","BLR","ISL","NPL","HND","PYF","GUM","KHM","AFG","MUS","PER","CAN","PCN","LIE","BHR","LBN","BMU","SDN","MDG","BWA","SLB","NFK","MHL","FRO","HKG","BLZ","GTM","AGO","PLW","DEU","SPM","FSM","MYS","TUR","FJI","PRK","BVT","TWN","BGR","PSE","MYT","SWZ","BTN","BEL","ERI","NRU","SGP","BFA","PAN","ABW","DMA","VUT","CPV","LCA","SSD","CHN","ESH","GNB","LVA","CRI","DOM","MMR","SXM","NER","LAO","CHL","COD","JPN","ASM","SEN","ZWE","ESP","GRD","ECU","NOR","OMN","JOR","FIN","HMD","COM","MCO","AND","VCT"],"supported_currencies":["AED","PEN","SBD","SLE","KYD","RSD","RWF","AMD","SVC","FJD","GNF","FKP","MWK","VUV","TMT","NZD","KWD","NOK","UZS","BZD","CUP","DKK","DOP","OMR","UAH","IQD","MAD","LYD","DZD","WST","TWD","ISK","PKR","SLL","GBP","IDR","BGN","HTG","KRW","MDL","NAD","BOB","KHR","BIF","ILS","PHP","ETB","RON","UYU","BND","HUF","PLN","LRD","LBP","TOP","MMK","GYD","JOD","KMF","XCD","SSP","SCR","HNL","CRC","COP","LSL","HRK","ERN","YER","GIP","SRD","MZN","AWG","GEL","STN","MUR","AFN","BDT","CAD","KGS","IRR","GMD","BWP","GHS","MRU","DJF","MNT","SEK","BHD","PGK","CHF","GTQ","AOA","JMD","LKR","QAR","THB","NGN","HKD","NIO","TJS","TZS","XOF","KPW","SDG","KES","MOP","ANG","UGX","EGP","MGA","PAB","TTD","CLP","BRL","TRY","BAM","BTN","XPF","VES","ALL","SAR","LAK","TND","ZAR","BSD","RUB","ZWL","MYR","ARS","BMD","CNY","KZT","MKD","SZL","ZMW","USD","EUR","PYG","SHP","JPY","SGD","AUD","BYN","CVE","NPR","MXN","MVR","CDF","SYP","VND","AZN","CZK","INR","XAF","SOS","BBD"]},{"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":["THA","CXR","DOM","MAC","ZWE","PRT","BLZ","NFK","GRL","MEX","SOM","VIR","NIU","SWZ","IOT","SWE","GRC","LAO","CCK","NLD","LCA","GLP","IRN","MLT","PHL","DEU","HKG","DNK","ASM","ISL","CRI","NOR","MTQ","ERI","GAB","SGS","OMN","SVK","CUW","YEM","TZA","COK","CZE","DJI","SRB","SDN","PAK","NRU","BEL","BGD","DZA","ZMB","BLM","ISR","MRT","PRY","ARG","USA","FSM","AND","ARE","KEN","BOL","VUT","TUN","TGO","RWA","WSM","DMA","SPM","GGY","NIC","SJM","PAN","IRQ","TLS","MYT","MWI","FRA","NAM","UZB","SXM","KIR","MDG","SMR","HUN","NCL","ALA","TUR","GEO","ETH","FJI","MMR","GUF","JAM","UKR","ROU","PNG","FRO","VNM","TON","AFG","MSR","KOR","TTO","CMR","MAF","BDI","MLI","KAZ","HRV","HTI","CYP","PER","AZE","ARM","MOZ","NGA","JPN","CAN","PCN","ABW","BIH","BLR","LIE","IND","BVT","BTN","ATG","NPL","RUS","MCO","HND","BRN","MDV","BRA","EGY","AIA","SUR","FIN","JEY","COD","WLF","TKL","VCT","CUB","ATA","MNE","REU","TKM","MKD","CAF","BWA","CYM","GNB","BEN","GHA","EST","MHL","IRL","CHL","GMB","CPV","LKA","POL","GBR","AUT","UGA","BFA","LBN","GRD","SSD","PRI","SVN","JOR","KWT","ECU","GTM","NER","LBR","SEN","MAR","ATF","LVA","CHN","SYR","ZAF","GUM","VGB","MNP","PSE","CIV","AGO","GUY","FLK","SLV","GIN","STP","BMU","ITA","KNA","BHR","IMN","VEN","SLE","CHE","TCA","UMI","SLB","SHN","TJK","MYS","URY","NZL","AUS","BRB","GIB","MDA","TWN","PYF","VAT","COL","SYC","PLW","BHS","LSO","PRK","SAU","MUS","ESH","COM","ALB","TCD","COG","KHM","ESP","BGR","TUV","LUX","IDN","GNQ","MNG","KGZ","SGP","LBY","LTU","QAT","HMD","BES"],"supported_currencies":["ETB","IRR","GHS","CVE","HRK","TRY","MMK","NGN","CRC","IDR","TTD","CAD","XOF","ISK","BHD","KGS","NZD","AUD","ERN","SSP","UZS","GBP","MOP","COP","AFN","CZK","GIP","SEK","ZAR","BGN","HTG","KRW","LAK","SCR","XPF","ZMW","ARS","RWF","INR","CHF","GNF","DJF","MXN","SVC","MZN","MDL","OMR","HKD","CNY","FJD","DZD","GYD","GEL","EGP","IQD","KYD","NIO","PEN","SLL","XAF","AZN","STN","GTQ","BRL","BIF","NPR","MVR","DOP","WST","KES","AMD","BND","MYR","JMD","MWK","TND","KWD","HNL","RSD","SYP","SZL","TOP","BOB","LSL","KMF","BTN","BBD","YER","PHP","SRD","USD","TWD","AWG","MUR","THB","MKD","BSD","LBP","PKR","FKP","SAR","PAB","VES","HUF","LYD","PGK","QAR","SOS","UGX","NOK","BYN","MAD","PYG","CDF","LRD","KHR","UAH","GMD","AED","DKK","BWP","KZT","KPW","LKR","MGA","AOA","MRU","SGD","RON","SHP","BMD","JOD","RUB","EUR","VND","ILS","TJS","PLN","SDG","VUV","XCD","JPY","SLE","ANG","SBD","NAD","CLP","BZD","BDT","CUP","UYU","ZWL","TMT","MNT","BAM","TZS","ALL"]},{"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":"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":["CYM","SDN","MYT","GNQ","TGO","BMU","CZE","MNG","BFA","UMI","CYP","MEX","HMD","PAN","PAK","DOM","MAC","ECU","EGY","FRO","PNG","GAB","MDA","NOR","CUW","MWI","MAF","GLP","HUN","KHM","ZWE","JPN","FJI","IOT","KIR","GNB","SSD","GUY","NZL","LUX","LSO","NRU","ALB","SEN","REU","GUF","LTU","NPL","CRI","AGO","TKM","UKR","KOR","TUV","BWA","NER","CHL","HRV","SWE","SVK","EST","BLM","SYC","COM","BEN","ARM","VEN","LVA","ETH","ESP","LIE","COL","SOM","SVN","SLV","YEM","KEN","USA","HKG","RUS","IRL","DJI","BDI","MYS","NAM","PRT","TLS","SGP","SUR","MMR","BES","COG","FRA","JEY","POL","FIN","NCL","KGZ","PCN","AUT","VCT","BOL","CCK","LBN","TCD","TWN","GUM","SYR","IND","VIR","CPV","BEL","WLF","MHL","SLB","MDV","CAF","GMB","VUT","AIA","AND","BVT","ZMB","GEO","VGB","KAZ","UGA","GIB","ISL","CHE","SXM","BGR","VNM","MLT","GTM","CAN","ESH","GRD","PYF","GIN","BRN","PRI","ARE","STP","DMA","JAM","FLK","ALA","CHN","PRY","BIH","MOZ","ASM","PER","ROU","SHN","COK","BHR","TON","AFG","KWT","ISR","BGD","BRB","MCO","KNA","HTI","ABW","TZA","SWZ","AUS","LBY","JOR","TCA","BLZ","LAO","DEU","GHA","OMN","SJM","NLD","CUB","WSM","BRA","PSE","QAT","SMR","IMN","VAT","NIC","GBR","ARG","COD","GRL","MSR","ATG","ITA","BLR","MDG","FSM","NGA","LBR","LCA","MNP","BTN","ERI","SRB","MLI","LKA","ZAF","SLE","MNE","MKD","URY","UZB","PLW","TUR","MUS","THA","MRT","PHL","DNK","CMR","DZA","RWA","NFK","BHS","ATF","IRQ","IDN","SAU","ATA","SPM","TJK","MTQ","AZE","GRC","CIV","TUN","MAR","NIU","PRK","TTO","CXR","IRN","GGY","HND"],"supported_currencies":["NOK","GMD","SZL","MGA","SSP","PLN","DKK","KWD","SEK","ANG","MWK","ERN","AMD","BAM","SRD","TMT","THB","JMD","MKD","MRU","OMR","BDT","GYD","UYU","GEL","INR","GBP","QAR","AFN","GIP","SOS","VND","KGS","TZS","ZMW","BZD","KZT","LYD","RWF","BYN","AED","LBP","NAD","SAR","USD","ZWL","BTN","PGK","PYG","XOF","TRY","BWP","MOP","CNY","TJS","AWG","XCD","HTG","CRC","ISK","BGN","ARS","ILS","FKP","MYR","PHP","CHF","GHS","SGD","AZN","SCR","SHP","HUF","UAH","WST","LRD","MDL","TTD","RUB","BOB","MZN","KES","YER","BND","SYP","CUP","PKR","KRW","CDF","COP","KMF","LAK","AUD","BIF","BRL","AOA","IRR","KYD","CVE","JOD","MAD","HRK","PEN","MNT","EGP","RON","SVC","TWD","XAF","MVR","PAB","BMD","TND","NGN","UZS","GTQ","RSD","TOP","HNL","NIO","KPW","JPY","MXN","LKR","BBD","BHD","DOP","BSD","DJF","CZK","UGX","CLP","ALL","CAD","ZAR","FJD","KHR","MUR","IDR","VUV","XPF","NZD","IQD","EUR","ETB","HKD","DZD","NPR","SBD","MMK","LSL","GNF","SLL","SDG"]},{"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":["GHA","SEN","CIV","FRA","SSD","AIA","YEM","SPM","UKR","SWZ","BTN","ALA","DOM","DZA","PLW","JOR","TWN","GRC","USA","CUB","CHL","ARE","MSR","COK","THA","VGB","KIR","MNE","BOL","KGZ","GGY","IOT","MAF","CHN","TON","MDA","RUS","PSE","MTQ","CUW","MUS","CZE","SLE","MDG","ABW","NOR","IDN","MLT","NAM","ERI","FLK","COM","ECU","ATA","AND","MCO","ASM","VEN","UMI","VCT","MNG","IND","GAB","LAO","UGA","MDV","ZWE","KAZ","SXM","MNP","MAR","BRA","SVN","TCD","BGR","PHL","OMN","GIB","LBY","TCA","HMD","SUR","HKG","WSM","HUN","BHS","MRT","SGP","BHR","IMN","COD","TUN","SOM","CAN","EGY","ALB","URY","AUS","DNK","FSM","IRN","BWA","TGO","ZAF","PRT","IRQ","CHE","LUX","BFA","LCA","GTM","POL","NCL","MKD","GRD","BEN","NLD","FIN","BGD","STP","LTU","KEN","MAC","FRO","VIR","CRI","LIE","ITA","SRB","ROU","MOZ","TKM","DJI","ARG","CYP","BMU","SYC","REU","VAT","GEO","ESH","BRB","NGA","HRV","JPN","AZE","ISR","HND","COG","BLZ","TUV","MYT","NZL","TJK","DEU","AUT","ATF","WLF","TTO","GIN","RWA","LSO","NRU","UZB","CCK","SJM","SVK","BES","AFG","FJI","PER","ZMB","BIH","LKA","PYF","LBR","BVT","ARM","SLB","PNG","VUT","PRK","MLI","SYR","COL","JAM","GNQ","CMR","NPL","KHM","GMB","ESP","PCN","MEX","NIU","BDI","LBN","GNB","ISL","KNA","TLS","ATG","SWE","MYS","BLR","AGO","PRY","DMA","SLV","SHN","TUR","NFK","NIC","ETH","MMR","PRI","CYM","PAK","MWI","GUM","KWT","GRL","KOR","HTI","LVA","CAF","BRN","CPV","EST","VNM","NER","GUF","GLP","QAT","PAN","JEY","IRL","BLM","SMR","SAU","CXR","MHL","GBR","TZA","GUY","SDN","BEL"],"supported_currencies":["AED","ETB","GBP","AMD","THB","TJS","PAB","DOP","COP","MKD","KYD","OMR","BOB","ZAR","MVR","LAK","IDR","AOA","MDL","HKD","AUD","CNY","SCR","GEL","UYU","SHP","UZS","UGX","FJD","TMT","SVC","USD","CLP","VND","PHP","ERN","GHS","SAR","BAM","KWD","SZL","GNF","MGA","BSD","ISK","LYD","TND","BBD","TOP","HNL","DKK","KHR","KES","RWF","TTD","ARS","SBD","CUP","AFN","NIO","SLL","NAD","SEK","INR","XOF","MXN","LKR","NZD","SRD","MOP","SDG","AZN","IQD","MMK","NOK","BWP","BMD","SYP","CVE","PEN","JPY","SOS","DJF","PGK","MNT","XAF","XCD","GMD","BGN","RUB","UAH","CDF","MWK","GYD","KMF","MZN","AWG","TRY","VUV","ANG","KPW","MAD","GTQ","BDT","JOD","HRK","BRL","KGS","KZT","MRU","MYR","SGD","YER","BHD","CAD","CZK","HTG","TZS","EUR","RSD","LBP","PKR","PYG","BND","BZD","DZD","GIP","WST","BIF","ALL","EGP","HUF","CRC","JMD","NPR","ZMW","MUR","RON","XPF","FKP","QAR","CHF","ILS","SSP","LSL","LRD","TWD","BTN","KRW","IRR","ZWL","PLN","NGN","BYN"]},{"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"]}],"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":"apple_pay","payment_method_type_display_name":"Apple Pay","mandates":"not_supported","refunds":"supported","supported_capture_methods":["automatic","manual","sequential_automatic"],"supported_countries":["GGY","LIE","FRO","PSE","PER","CYP","UKR","MNE","MYS","NOR","SVK","BGR","ARM","MCO","BLR","GRC","MDA","UMI","CHN","SMR","IMN","ISR","FRA","EST","CRI","ARE","USA","JEY","NZL","LTU","BEL","TWN","SAU","PRT","MEX","CHE","BHR","CAN","CZE","DNK","HRV","QAT","JPN","ITA","SVN","SWE","COL","BRA","AUS","POL","MLT","GBR","GRL","JOR","AZE","HUN","KAZ","SRB","DEU","KWT","IRL","LUX","HKG","GEO","NLD","FIN","LVA","ESP","ROU","ARG","ISL","SGP","AUT","MAC"],"supported_currencies":["MYR","BIF","ISK","LYD","MKD","CZK","ANG","AFN","BWP","GNF","LAK","MWK","NGN","INR","STN","BTN","XCD","MDL","TOP","SRD","EGP","NZD","DJF","KMF","CAD","XPF","EUR","LBP","SOS","SZL","AED","CDF","SCR","BSD","PKR","FJD","MVR","RSD","KWD","LRD","BND","MNT","PYG","RUB","CNY","TJS","BOB","BBD","ARS","QAR","LKR","IRR","PGK","TRY","UZS","NPR","SDG","PLN","GBP","NIO","CLP","HKD","MXN","PEN","WST","PHP","COP","ILS","GMD","ERN","BGN","UGX","CHF","THB","SEK","BMD","BAM","UAH","KHR","SVC","BHD","DOP","FKP","GIP","KRW","HTG","YER","OMR","TMT","SBD","PAB","KES","HNL","ZAR","RON","TWD","JPY","TTD","ZWL","BZD","KYD","MMK","SHP","KZT","AUD","MOP","SYP","NOK","GYD","HUF","SAR","RWF","ZMW","GEL","MZN","NAD","USD","VUV","DZD","CVE","IDR","MRU","XAF","JOD","SLL","VND","GTQ","XOF","LSL","CRC","IQD","MGA","MUR","MAD","BDT","GHS","ETB","UYU","SGD","TND","DKK","KPW","JMD","AWG","AZN","BRL","TZS"]},{"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":["THA","PAN","EGY","BEL","NZL","HKG","GRC","ROU","IDN","HRV","KEN","DEU","BGR","JOR","ISR","IRL","PAK","ASM","TUR","PER","USA","AUS","MYS","FRA","LVA","CAN","SVK","COL","PRT","MEX","FIN","SGP","VNM","TWN","GBR","EST","CHE","ITA","POL","RUS","JPN","ZAF","BLR","NLD","DZA","DOM","KAZ","ESP","AUT","LUX","QAT","IND","ALB","LBN","URY","SAU","NOR","KWT","ATG","ARG","AZE","LKA","UKR","CZE","AGO","PHL","LTU","BHR","CHL","ARE","DNK","BRA","SWE","OMN","HUN"],"supported_currencies":["BRL","BAM","INR","PLN","USD","PEN","AZN","KHR","BGN","FKP","CNY","ZWL","SDG","ISK","SGD","BWP","PYG","XCD","HTG","RUB","LKR","BHD","MGA","SCR","THB","MAD","CDF","NPR","UZS","VUV","PAB","GIP","JPY","TJS","HNL","KRW","QAR","IQD","GEL","AED","GTQ","RWF","MOP","ZAR","TND","GYD","HUF","KPW","ILS","IRR","TZS","SHP","RON","KES","WST","MYR","UGX","CAD","PGK","SZL","XPF","AFN","MZN","MKD","TMT","MRU","MNT","IDR","GHS","MXN","DOP","TRY","UAH","VND","ZMW","CVE","KYD","SVC","FJD","EUR","JMD","MMK","EGP","RSD","PKR","ANG","MWK","MDL","SYP","NAD","STN","XOF","BTN","TTD","SBD","BMD","DJF","SOS","NZD","PHP","NIO","YER","ARS","CZK","CLP","KZT","SLL","CHF","DKK","XAF","CRC","SEK","SRD","LRD","AUD","OMR","ERN","NOK","MVR","GNF","BBD","UYU","NGN","BIF","GMD","LBP","SAR","LAK","KMF","TOP","BDT","BSD","LYD","MUR","BND","GBP","ETB","HKD","KWD","AWG","BOB","DZD","COP","JOD","LSL","BZD","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":["AmericanExpress","CartesBancaires","DinersClub","JCB","Maestro","Mastercard","Visa"],"supported_countries":["MMR","TJK","BDI","FJI","OMN","STP","TWN","COD","BRA","PHL","KWT","HKG","TZA","WSM","GHA","SHN","POL","KHM","IRL","AFG","CHE","CRI","AZE","USA","NAM","VEN","CHL","BOL","JAM","HTI","HND","GTM","BTN","SWE","MEX","LBN","BLZ","IRQ","VUT","ITA","MNG","GIN","GIB","HUN","ABW","MAC","MAR","RWA","NIC","COM","BGD","SGP","IRN","BHS","PRY","MWI","KEN","SUR","ROU","BWA","VNM","CZE","DNK","JPN","LBY","ZWE","GBR","KOR","PNG","PAK","LBR","LSO","CAN","MDG","TUN","FLK","MDA","MOZ","LKA","BRB","SLV","MRT","LAO","UKR","EGY","PRK","BRN","ZAF","NGA","DOM","ISL","BHR","IND","ETH","IDN","RUS","SWZ","GUY","BMU","JOR","UZB","KAZ","ZMB","ARG","SYR","COL","NOR","TUR","MUS","GEO","GMB","MKD","TTO","UGA","LTU","ECU","DJI","SDN","MYS","QAT","MDV","NZL","DZA","PER","CPV","URY","BIH","BGR","ERI","ISR","AUS","CYM","THA"],"supported_currencies":["MZN","TWD","UZS","SLL","KWD","ILS","COP","MOP","MYR","YER","LYD","TRY","CNY","CZK","BHD","BMD","RON","SRD","EGP","CRC","MGA","CVE","JOD","AZN","NIO","OMR","HUF","MMK","THB","UAH","GTQ","MRU","PYG","XPF","SAR","PLN","STN","FJD","KZT","HTG","NZD","GBP","TZS","XOF","HNL","GYD","UYU","BRL","LBP","MDL","AED","TTD","UGX","IQD","PGK","QAR","ZWL","KYD","KPW","BWP","DZD","RWF","SGD","SBD","NGN","BIF","IRR","PKR","VUV","GMD","CHF","ISK","BZD","JMD","XAF","DJF","HKD","MAD","XCD","MUR","BND","NPR","MXN","PHP","WST","BDT","PEN","RUB","BBD","SDG","KRW","DOP","ARS","SOS","ZAR","SEK","CAD","KES","MKD","CLP","AWG","EUR","LAK","NOK","DKK","ETB","LSL","RSD","SVC","KMF","GEL","NAD","TMT","GHS","VND","SCR","AUD","MVR","CDF","MNT","PAB","TJS","FKP","USD","AFN","BGN","BAM","JPY","TOP","MWK","ANG","ERN","GNF","LKR","SZL","TND","BTN","SHP","LRD","SYP","INR","ZMW","KHR","BSD","GIP","BOB","IDR"]},{"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":["GIN","ROU","KAZ","LBR","ISR","CHE","BTN","COD","JPN","GUY","CYM","PHL","TJK","HND","SGP","GTM","CPV","TUN","HKG","ZMB","CHL","MDV","LAO","LKA","STP","PNG","GEO","MDG","GIB","MOZ","DOM","TWN","MUS","IRL","BRA","LSO","NGA","BLZ","MWI","BOL","BGR","JOR","BWA","TUR","AFG","SHN","MYS","URY","EGY","COM","PER","MNG","BDI","KHM","TZA","BGD","ZAF","CAN","MAR","BMU","WSM","THA","PAK","RUS","USA","NAM","ETH","SDN","SWE","PRK","MEX","QAT","SYR","IND","GBR","SWZ","CRI","PRY","OMN","ERI","NZL","AZE","LTU","MMR","BHR","ARG","KWT","JAM","NIC","UZB","BRN","UGA","IRQ","ECU","ZWE","IRN","LBY","IDN","CZE","ISL","AUS","GHA","FLK","HUN","NOR","POL","VNM","RWA","HTI","TTO","DZA","MDA","SUR","DJI","MRT","BIH","GMB","ITA","VUT","SLV","MAC","BHS","MKD","FJI","KEN","BRB","UKR","LBN","KOR","DNK","COL","VEN","ABW"],"supported_currencies":["PGK","BIF","FKP","GHS","WST","SEK","KMF","DKK","LBP","UAH","KHR","BRL","GMD","CAD","NPR","NOK","MVR","CRC","FJD","NAD","BAM","BZD","LRD","PEN","OMR","LYD","RON","SVC","KRW","DJF","PLN","DZD","DOP","BGN","GNF","ZAR","XPF","MRU","SDG","JOD","ZWL","HUF","HKD","TND","LSL","LAK","JMD","BMD","XAF","GIP","NIO","EUR","JPY","TOP","KYD","ISK","RSD","YER","BOB","TZS","SOS","AUD","IQD","CNY","MKD","BBD","CLP","BWP","EGP","ERN","MWK","MZN","SZL","KZT","PHP","SBD","TJS","UZS","UGX","VUV","AZN","SAR","RWF","ANG","RUB","MUR","USD","VND","MGA","BTN","BHD","KPW","MAD","PAB","THB","SGD","CDF","MDL","GTQ","BND","QAR","GYD","NZD","TRY","BDT","XCD","HNL","XOF","SRD","TMT","ARS","PYG","AWG","HTG","AFN","ILS","ETB","GEL","ZMW","CHF","MOP","SLL","SYP","AED","INR","IDR","SHP","KWD","NGN","TTD","IRR","COP","MMK","GBP","MXN","LKR","STN","CZK","MYR","TWD","SCR","PKR","UYU","BSD","CVE","MNT","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":"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":["CRI","GIB","KEN","ROU","MRT","JOR","LBN","BHS","TWN","VNM","SDN","AZE","SLV","CZE","DNK","KAZ","PAK","NOR","AUS","SWE","BRN","DJI","LKA","JAM","PRY","TZA","HKG","MOZ","HTI","BHR","USA","ZMB","CPV","BOL","MDV","NAM","IRN","POL","SGP","QAT","TJK","MKD","MDA","GEO","SWZ","LTU","WSM","URY","BTN","PNG","BRA","DOM","TTO","HUN","THA","COM","BRB","MUS","ABW","KHM","LBY","MAR","GHA","PER","LAO","ZAF","MEX","BDI","MYS","CHE","LSO","KWT","KOR","IRL","BGR","BWA","GMB","SYR","STP","ITA","UZB","NZL","CYM","MDG","GBR","JPN","DZA","MMR","ZWE","MWI","LBR","EGY","TUR","RUS","ISL","AFG","VEN","SUR","GTM","BLZ","ISR","FLK","VUT","BGD","BMU","IND","CAN","HND","TUN","MAC","UKR","OMN","ARG","ERI","FJI","ETH","COL","GUY","GIN","IDN","ECU","SHN","PHL","COD","IRQ","PRK","UGA","RWA","NGA","NIC","BIH","MNG","CHL"],"supported_currencies":["ARS","SVC","CVE","BND","LAK","QAR","MWK","YER","CNY","INR","MOP","BOB","GIP","DOP","BBD","GYD","LSL","LYD","CHF","NIO","TJS","MYR","NPR","PYG","ZAR","SZL","ILS","SCR","GBP","BMD","IRR","AZN","BIF","EGP","JMD","KES","AED","PKR","VND","UAH","USD","OMR","SLL","ETB","KHR","TRY","PHP","BGN","BDT","COP","TWD","UYU","AWG","SHP","MAD","DZD","NOK","JPY","HNL","KPW","IDR","TTD","SAR","TMT","NZD","ZWL","EUR","RSD","CDF","PGK","RWF","KMF","UGX","CRC","ZMW","JOD","LKR","UZS","HKD","DKK","MXN","SDG","HUF","SGD","MVR","THB","KZT","MRU","TZS","MZN","GHS","MKD","CLP","CAD","GEL","KRW","PAB","WST","SRD","HTG","BWP","BAM","MDL","RUB","SEK","SOS","XOF","VUV","LRD","LBP","AFN","ERN","BRL","KWD","MMK","FJD","NGN","GNF","XCD","RON","SBD","IQD","PLN","XAF","ISK","BHD","GMD","AUD","ANG","PEN","TND","SYP","FKP","GTQ","BZD","BSD","DJF","CZK","BTN","MGA","MUR","MNT","KYD","NAD","STN","XPF","TOP"]},{"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":["USA","PHL","SUR","LBN","GEO","CZE","MOZ","GIN","JOR","BIH","SWZ","MDG","MAR","TUN","UGA","ISR","TWN","MWI","VUT","ROU","JPN","KEN","MMR","SYR","GTM","MRT","MNG","KWT","CPV","TZA","MKD","IND","NOR","PRK","EGY","QAT","HTI","NAM","KOR","BOL","GMB","IRL","RUS","BHR","PRY","LAO","ZWE","SGP","POL","BLZ","HUN","URY","MEX","CHE","BRN","IRN","GIB","ARG","DOM","NZL","SHN","UKR","BRB","BMU","BRA","FLK","BHS","DZA","HND","STP","LTU","ZAF","NGA","COL","COM","MDV","UZB","IDN","CYM","MYS","ABW","AFG","LBR","BDI","ERI","ECU","ISL","LSO","VEN","BGR","SLV","SDN","MUS","TUR","PAK","AZE","KHM","IRQ","ETH","CHL","PNG","DJI","BTN","COD","RWA","THA","MDA","PER","DNK","ITA","GBR","TTO","GUY","VNM","GHA","MAC","ZMB","BWA","OMN","FJI","CAN","BGD","CRI","HKG","AUS","LKA","LBY","KAZ","SWE","TJK","NIC","WSM","JAM"],"supported_currencies":["PLN","SOS","SLL","GEL","TJS","KHR","GIP","COP","UYU","PHP","HKD","CAD","VND","TOP","DOP","CLP","XAF","MKD","MAD","CNY","LKR","BIF","NAD","AZN","RON","JMD","GMD","INR","AWG","BRL","NOK","BOB","BND","HNL","KZT","RSD","KYD","ETB","PKR","BBD","HUF","KWD","NIO","SVC","THB","AFN","EUR","BWP","MDL","GBP","XCD","ARS","LBP","SGD","TTD","AED","LRD","MGA","ANG","LYD","BZD","WST","XOF","ZAR","JOD","TRY","CDF","PEN","MMK","FKP","GHS","GYD","IRR","MRU","UAH","HTG","LSL","QAR","MOP","SBD","DZD","BSD","MUR","MNT","KPW","SEK","BTN","GNF","ERN","RUB","YER","PAB","UZS","DJF","RWF","SRD","GTQ","ISK","SZL","JPY","TWD","USD","MWK","ZMW","CZK","MXN","LAK","SAR","MVR","CHF","TND","PGK","KRW","CRC","SDG","BMD","EGP","KMF","IQD","MZN","NZD","NGN","TZS","OMR","VUV","PYG","FJD","SCR","KES","STN","BAM","DKK","SHP","BHD","MYR","TMT","ILS","IDR","AUD","BDT","SYP","UGX","NPR","CVE","ZWL","BGN","XPF"]}],"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":"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":["VNM","JPN","HTI","IND","JOR","IRN","MYS","MDG","NIC","DOM","SLV","HND","URY","KAZ","UKR","LSO","COD","MKD","ECU","GMB","VEN","LBN","TWN","SHN","BHS","AFG","MRT","TTO","ERI","CHE","ZAF","LBR","DNK","LAO","AZE","MMR","OMN","KHM","MEX","DZA","GIN","NZL","STP","ROU","BIH","CRI","MAR","GIB","SGP","COL","LTU","KEN","NOR","COM","MOZ","KWT","BMU","THA","QAT","BGR","MNG","GTM","HKG","DJI","BRB","USA","BOL","RUS","PAK","CPV","PRY","ITA","VUT","RWA","CAN","IRL","TUN","PHL","BRN","NAM","LKA","GUY","SUR","IDN","CZE","PNG","GBR","MWI","ZMB","WSM","FLK","AUS","KOR","UZB","ZWE","POL","SWZ","ARG","BWA","ABW","HUN","TJK","UGA","GHA","CYM","IRQ","TUR","NGA","ISR","SYR","PRK","TZA","BLZ","MUS","MAC","GEO","BDI","MDV","CHL","LBY","SWE","FJI","BTN","BGD","JAM","SDN","MDA","PER","BRA","ISL","BHR","ETH","EGY"],"supported_currencies":["KES","QAR","PKR","MYR","PGK","PLN","KPW","SOS","MAD","BND","GTQ","GYD","MUR","RON","TTD","AUD","SLL","BAM","SRD","CNY","XCD","CDF","SHP","NPR","ZMW","HUF","LYD","RSD","TND","UZS","TRY","PHP","KMF","XAF","MKD","BSD","FJD","CAD","MNT","SGD","SBD","TMT","DKK","BZD","PAB","CVE","BIF","RWF","AFN","NAD","AED","IRR","VUV","COP","MDL","ISK","GIP","BMD","GBP","MVR","KWD","STN","JMD","ILS","BWP","SEK","NGN","IDR","CHF","BDT","BHD","KHR","LSL","ZAR","MMK","LBP","ETB","BRL","SCR","UGX","XOF","USD","LRD","CRC","BOB","CLP","SVC","UAH","OMR","DJF","TWD","HTG","AZN","IQD","ARS","BTN","NIO","MZN","SAR","ERN","GMD","TZS","THB","EGP","LAK","JPY","HKD","BGN","DZD","NZD","NOK","MWK","GHS","KRW","MOP","LKR","BBD","UYU","KZT","SYP","ANG","KYD","EUR","DOP","VND","JOD","PYG","MGA","XPF","AWG","MXN","PEN","CZK","SDG","RUB","YER","GEL","MRU","TJS","GNF","HNL","INR","FKP","WST","SZL","TOP","ZWL"]},{"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":["BOL","LBN","GHA","NZL","MRT","BGR","GIN","KWT","SGP","PNG","LKA","SYR","MMR","JPN","QAT","ISL","CAN","TZA","IRN","ERI","RWA","MEX","TJK","ITA","DNK","MYS","CYM","BRA","AFG","OMN","AUS","KHM","SHN","POL","THA","SDN","EGY","MDG","BGD","JOR","PHL","BTN","LAO","GTM","STP","PRY","ABW","RUS","KOR","CHL","KEN","CHE","MKD","HTI","HND","TWN","NIC","FLK","CZE","IDN","GEO","URY","ZWE","GMB","COL","ECU","MUS","BHS","BHR","SWZ","USA","SUR","COD","ARG","BWA","CRI","ISR","UKR","UZB","IND","PER","PAK","VNM","BMU","VUT","LBY","KAZ","MWI","GUY","HKG","ROU","UGA","MDV","NAM","TUN","IRL","DOM","TTO","NOR","VEN","ZMB","LSO","NGA","SWE","MAR","PRK","ETH","AZE","DJI","GBR","DZA","LBR","WSM","MDA","HUN","MOZ","COM","BLZ","MNG","MAC","LTU","BRN","BRB","BIH","TUR","IRQ","JAM","CPV","ZAF","SLV","FJI","GIB","BDI"],"supported_currencies":["UAH","ANG","CRC","GBP","HUF","SVC","GTQ","IQD","USD","BZD","MUR","DJF","STN","LAK","MZN","CZK","TMT","MOP","FKP","INR","BRL","LRD","MGA","MDL","CNY","MRU","EUR","MYR","SRD","RUB","ZMW","PGK","KMF","SYP","TJS","RON","SHP","KHR","SLL","THB","SCR","CDF","DOP","COP","BOB","HNL","HKD","WST","CLP","TOP","JMD","PAB","AWG","AUD","NIO","PLN","KZT","PKR","BHD","AZN","JOD","SDG","PHP","ETB","KYD","GMD","XCD","TRY","BND","VND","BWP","EGP","HTG","IDR","MVR","ARS","PYG","PEN","MXN","QAR","SAR","CAD","SGD","ILS","TZS","TTD","KWD","ERN","MMK","SOS","BDT","SEK","UYU","XOF","OMR","UGX","CVE","KPW","BMD","IRR","TND","SBD","GIP","GHS","LBP","SZL","VUV","XAF","ZWL","NPR","JPY","DKK","LYD","ZAR","BIF","XPF","DZD","BAM","NAD","NZD","MNT","TWD","LSL","YER","GEL","ISK","BSD","BGN","MWK","RSD","AED","GYD","RWF","MKD","UZS","BTN","GNF","MAD","NGN","AFN","BBD","CHF","LKR","FJD","NOK","KRW","KES"]}],"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":"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":["SGD","IDR","MYR","USD","PHP"]},{"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","SGD","MYR","IDR","USD"]}],"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":"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},{"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":"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":"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":"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":"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":"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"]}],"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>Klarna</summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_GbGZzezGfs9FBRxcdLKSRcQ3X9uHXNHN0jbSeCAErUWquKuhFoxluVjCKBTU3Fnk' \ --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": "pay_later", "payment_method_type": "klarna", "payment_method_data": { "pay_later": { "klarna_redirect": {} } }, "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":"AT" } } }' ``` Response ``` {"payment_id":"pay_TjxfMfRtoniFqInT94Ft","merchant_id":"merchant_1751012686","status":"requires_customer_action","amount":300,"net_amount":300,"shipping_cost":null,"amount_capturable":300,"amount_received":null,"connector":"shift4","client_secret":"pay_TjxfMfRtoniFqInT94Ft_secret_EVw1igN2DPdrQBQJQ1Pz","created":"2025-06-27T08:54:07.871Z","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":"pay_later","payment_method_data":{"pay_later":{"klarna_sdk":null},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":null,"country":"AT","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_TjxfMfRtoniFqInT94Ft/merchant_1751012686/pay_TjxfMfRtoniFqInT94Ft_1"},"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"klarna","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":1751014447,"expires":1751018047,"secret":"epk_3420ad48ffee485384af3c780b4aa4c6"},"manual_retry_allowed":null,"connector_transaction_id":"char_VcQSO6K2UlIBVlJIChAlztBy","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_VcQSO6K2UlIBVlJIChAlztBy","payment_link":null,"profile_id":"pro_ih34fuoSJlTUEybNjyBS","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_W7jWDbddDlBQxiDJwo6F","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-06-27T09:09:07.871Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-06-27T08:54:08.446Z","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>Blik</summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_KkiyIatCpJkbCzJ60QwCjypnpUerZJ6TG4jiPN5xjtBnGM2Vwb0hgyKVgY9WMkyd' \ --data '{ "amount": 300, "currency": "EUR", "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": "bank_redirect", "payment_method_type": "blik", "payment_method_data": { "bank_redirect": { "blik": {} } }, "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":"PL" } } }' ``` Response ``` {"payment_id":"pay_V25CI7OQJgtRfq6HoX5m","merchant_id":"merchant_1751017245","status":"requires_customer_action","amount":300,"net_amount":300,"shipping_cost":null,"amount_capturable":300,"amount_received":null,"connector":"shift4","client_secret":"pay_V25CI7OQJgtRfq6HoX5m_secret_EiwL58hJ3RasU1JDrS2h","created":"2025-06-27T09:44:26.851Z","currency":"EUR","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":"bank_redirect","payment_method_data":{"bank_redirect":{"type":"BankRedirectResponse","bank_name":null},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":null,"country":"PL","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_V25CI7OQJgtRfq6HoX5m/merchant_1751017245/pay_V25CI7OQJgtRfq6HoX5m_1"},"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"blik","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":1751017466,"expires":1751021066,"secret":"epk_39fec081cf80471382090b62450132dc"},"manual_retry_allowed":null,"connector_transaction_id":"char_KpWnDdszVH8Djnc5ChZJMrAa","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_KpWnDdszVH8Djnc5ChZJMrAa","payment_link":null,"profile_id":"pro_1Uwxl7QXQKWqp1dem9b7","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_RU0LrL4aOcvNrT98kGu5","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-06-27T09:59:26.851Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-06-27T09:44:28.636Z","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>Bitpay</summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_GbGZzezGfs9FBRxcdLKSRcQ3X9uHXNHN0jbSeCAErUWquKuhFoxluVjCKBTU3Fnk' \ --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": "crypto", "payment_method_type": "crypto_currency", "payment_method_data": { "crypto": { } }, "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":"AT" } } }' ``` Response ``` {"payment_id":"pay_RoXS0nUQgSfcclHkEKcQ","merchant_id":"merchant_1751012686","status":"requires_customer_action","amount":300,"net_amount":300,"shipping_cost":null,"amount_capturable":300,"amount_received":null,"connector":"shift4","client_secret":"pay_RoXS0nUQgSfcclHkEKcQ_secret_AZM1TDqrhris6pNqHtgM","created":"2025-06-27T08:54:02.624Z","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":"crypto","payment_method_data":{"crypto":{"pay_currency":null,"network":null},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":null,"country":"AT","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_RoXS0nUQgSfcclHkEKcQ/merchant_1751012686/pay_RoXS0nUQgSfcclHkEKcQ_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":1751014442,"expires":1751018042,"secret":"epk_a8f6e0c057904e339b443913b1e9ffd3"},"manual_retry_allowed":null,"connector_transaction_id":"char_TMh0CztDA7CWoB0uZ1ftPryK","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_TMh0CztDA7CWoB0uZ1ftPryK","payment_link":null,"profile_id":"pro_ih34fuoSJlTUEybNjyBS","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_W7jWDbddDlBQxiDJwo6F","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-06-27T09:09:02.623Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-06-27T08:54:04.105Z","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` - [ ] 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` - `crates/hyperswitch_connectors/src/connectors/shift4/transformers.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:** - Define new data structures (2 changes) - Implement new functions (4 changes) - Extend existing types with new fields (18 changes) **Detailed Identifier Changes:** Commit 37a95e37: Files to modify: **crates/hyperswitch_connectors/src/connectors/shift4.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs** Add: - function: private::try_from - function: private::try_from - function: private::try_from - impl: impl TryFrom<&CryptoData> for PaymentMethodType - impl: impl TryFrom<(&RouterData<T, Req, PaymentsResponseData>, &CryptoData)> for Shift4PaymentMethod
{"pr_number": 8478, "pr_title": "feat(connector): [shift4] Blik, Klarna, Bitpay PMs added", "merged_at": "2025-07-03T14:19:13Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/shift4.rs", "crates/hyperswitch_connectors/src/connectors/shift4/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": 2, "functions_added": 4, "fields_added": 18}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(connector): [COINGATE] Add 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 --> Template PR ### 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)? --> Testing Not needed ## 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.rs` **2. External Connector Integration** - `crates/common_enums/src/connector_enums.rs` - `crates/hyperswitch_connectors/src/connectors.rs` - `crates/hyperswitch_connectors/src/connectors/coingate.rs` - ... 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/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 (157 changes) **Detailed Identifier Changes:** Commit dddb1b06: Files to modify: **crates/common_enums/src/connector_enums.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors.rs** Add: - mod: pub::coingate **crates/hyperswitch_connectors/src/connectors/coingate.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::Coingate - impl: impl Coingate - impl: impl api::Payment for Coingate - impl: impl api::PaymentSession for Coingate - impl: impl api::ConnectorAccessToken for Coingate - impl: impl api::MandateSetup for Coingate - impl: impl api::PaymentAuthorize for Coingate - impl: impl api::PaymentSync for Coingate - impl: impl api::PaymentCapture for Coingate - impl: impl api::PaymentVoid for Coingate - impl: impl api::Refund for Coingate - impl: impl api::RefundExecute for Coingate - impl: impl api::RefundSync for Coingate - impl: impl api::PaymentToken for Coingate - impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Coingate - impl: impl ConnectorCommonExt<Flow, Request, Response> for Coingate - impl: impl ConnectorCommon for Coingate - impl: impl ConnectorValidation for Coingate - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Coingate - impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Coingate - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Coingate - impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Coingate - impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Coingate - impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Coingate - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Coingate - impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Coingate - impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Coingate - impl: impl webhooks::IncomingWebhook for Coingate - impl: impl ConnectorSpecifications for Coingate - mod: pub::transformers **crates/hyperswitch_connectors/src/connectors/coingate/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::CoingateRouterData - struct: pub::CoingatePaymentsRequest - struct: pub::CoingateCard - struct: pub::CoingateAuthType - struct: pub::CoingatePaymentsResponse - struct: pub::CoingateRefundRequest - struct: pub::RefundResponse - struct: pub::CoingateErrorResponse - enum: pub::CoingatePaymentStatus - enum: pub::RefundStatus - impl: impl From<(StringMinorUnit, T)> for CoingateRouterData<T> - impl: impl TryFrom<&CoingateRouterData<&PaymentsAuthorizeRouterData>> for CoingatePaymentsRequest - impl: impl TryFrom<&ConnectorAuthType> for CoingateAuthType - impl: impl From<CoingatePaymentStatus> for common_enums::AttemptStatus - impl: impl TryFrom<ResponseRouterData<F, CoingatePaymentsResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData> - impl: impl TryFrom<&CoingateRouterData<&RefundsRouterData<F>>> for CoingateRefundRequest - 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/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/coingate.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::CoingateTest - impl: impl ConnectorActions for CoingateTest - impl: impl utils::Connector for CoingateTest **crates/test_utils/src/connector_auth.rs** Modify existing code
{"pr_number": 7052, "pr_title": "feat(connector): [COINGATE] Add Template PR ", "merged_at": "2025-02-06T14:33:44Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"core_business": ["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/coingate.rs", "crates/hyperswitch_connectors/src/connectors/coingate/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/coingate.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", "crates/hyperswitch_interfaces/src/configs.rs"]}, "change_types": {"structs_added": 10, "functions_added": 78, "enums_added": 2, "fields_added": 157, "imports_added": 19}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(connector): [Recurly] add invoice sync support along with transaction monitoring ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Transaction Monitoring means to record all the transaction that are happening in the billing connectors and storing them in our database. So that we can use those to train our model and get insights from that data in revenue recovery flow. To support monitor the transaction happening in the billing connectors and to get maximum efficiency we need the fields in the issue which are billing address, retry count, subscription next billing date. To make this support for recurly we need invoice api call to recurly. **_BillingConnectorInvoiceSync_** will do that work. This PR contains the Connector Integration V2 Implementations of BillingConnectorInvoiceSync , BillingConnectorPaymentsSync and RecoveryRecordBack only for recurly. This PR also contains transaction monitoring support for recurly. ### 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)? --> Cannot test it Here is a picture depicting that we are able to get all the details: <img width="1355" alt="Screenshot 2025-04-22 at 12 38 57 PM" src="https://github.com/user-attachments/assets/f97344df-4b7f-4cb8-baee-0f3be2ad140d" /> ## 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/configs.rs` - `crates/hyperswitch_domain_models/src/revenue_recovery.rs` - `crates/hyperswitch_domain_models/src/router_request_types/revenue_recovery.rs` - ... and 2 more files **2. Core Business Logic** - `crates/router/src/core/errors.rs` - `crates/router/src/core/revenue_recovery/types.rs` - `crates/router/src/core/webhooks/recovery_incoming.rs` **3. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs` - `crates/hyperswitch_connectors/src/connectors/recurly.rs` - `crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs` - ... and 6 more files **4. Type Definitions** - `crates/hyperswitch_interfaces/src/types.rs` - `crates/router/src/types/api.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 4 more files **7. Other** - `crates/hyperswitch_interfaces/src/api/revenue_recovery_v2.rs` - `crates/hyperswitch_interfaces/src/conversion_impls.rs` - `crates/hyperswitch_interfaces/src/webhooks.rs` **Code Patterns Applied:** - Define new data structures (8 changes) - Implement new functions (20 changes) - Extend existing types with new fields (126 changes) **Detailed Identifier Changes:** Commit bcc57ebb: Files to modify: **crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/recurly.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs** Remove: - 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::RecurlyPaymentsRequest - struct: pub::RecurlyCard - struct: pub::RecurlyPaymentsResponse - struct: pub::RecurlyRefundRequest - struct: pub::RefundResponse - enum: pub::RecurlyPaymentStatus - enum: pub::RefundStatus - impl: impl TryFrom<&RecurlyRouterData<&PaymentsAuthorizeRouterData>> for RecurlyPaymentsRequest - 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> Add: - function: private::try_from - struct: pub::RecurlyLineItems - struct: pub::RecurlyInvoiceTransactionsStatus - enum: pub::RecurlyInvoiceLineItemType - impl: impl TryFrom< ResponseRouterDataV2< recovery_router_flows::BillingConnectorInvoiceSync, RecurlyInvoiceSyncResponse, recovery_flow_common_types::BillingConnectorInvoiceSyncFlowData, recovery_request_types::BillingConnectorInvoiceSyncRequest, recovery_response_types::BillingConnectorInvoiceSyncResponse, >, > for recovery_router_data_types::BillingConnectorInvoiceSyncRouterDataV2 **crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.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** Add: - struct: pub::ResponseRouterDataV2 **crates/hyperswitch_domain_models/src/configs.rs** Add: - function: pub::get_connector_params - impl: impl Connectors **crates/hyperswitch_domain_models/src/revenue_recovery.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_request_types/revenue_recovery.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_response_types/revenue_recovery.rs** Modify existing code **crates/hyperswitch_domain_models/src/types.rs** Modify existing code **crates/hyperswitch_interfaces/src/api/revenue_recovery_v2.rs** Add: - trait: pub::RevenueRecoveryV2 **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 BillingConnectorInvoiceSyncFlowData **crates/hyperswitch_interfaces/src/types.rs** Modify existing code **crates/hyperswitch_interfaces/src/webhooks.rs** Remove: - function: private::get_billing_address_for_invoice **crates/router/src/configs/secrets_transformers.rs** Modify existing code **crates/router/src/configs/settings.rs** Add: - struct: pub::BillingConnectorInvoiceSyncCall **crates/router/src/core/errors.rs** Modify existing code **crates/router/src/core/revenue_recovery/types.rs** Modify existing code **crates/router/src/core/webhooks/recovery_incoming.rs** Add: - function: private::handle_billing_connector_invoice_sync_call - function: private::get_billing_connector_invoice_details - function: private::inner - function: private::construct_router_data_for_billing_connector_invoice_sync_call - function: private::inner - struct: pub::BillingConnectorInvoiceSyncResponseData - struct: pub::BillingConnectorInvoiceSyncFlowRouterData - impl: impl BillingConnectorInvoiceSyncResponseData - impl: impl BillingConnectorInvoiceSyncFlowRouterData **crates/router/src/types/api.rs** Modify existing code **crates/router/tests/connectors/main.rs** Remove: - mod: private::recurly **crates/router/tests/connectors/recurly.rs** Remove: - 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
{"pr_number": 7867, "pr_title": "feat(connector): [Recurly] add invoice sync support along with transaction monitoring ", "merged_at": "2025-05-02T12:12:23Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/configs.rs", "crates/hyperswitch_domain_models/src/revenue_recovery.rs", "crates/hyperswitch_domain_models/src/router_request_types/revenue_recovery.rs", "crates/hyperswitch_domain_models/src/router_response_types/revenue_recovery.rs", "crates/hyperswitch_domain_models/src/types.rs"], "core_business": ["crates/router/src/core/errors.rs", "crates/router/src/core/revenue_recovery/types.rs", "crates/router/src/core/webhooks/recovery_incoming.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs", "crates/hyperswitch_connectors/src/connectors/recurly.rs", "crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs", "crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/hyperswitch_connectors/src/types.rs", "crates/router/tests/connectors/main.rs", "crates/router/tests/connectors/recurly.rs"], "types": ["crates/hyperswitch_interfaces/src/types.rs", "crates/router/src/types/api.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/router/src/configs/secrets_transformers.rs", "crates/router/src/configs/settings.rs"], "other": ["crates/hyperswitch_interfaces/src/api/revenue_recovery_v2.rs", "crates/hyperswitch_interfaces/src/conversion_impls.rs", "crates/hyperswitch_interfaces/src/webhooks.rs"]}, "change_types": {"structs_added": 8, "functions_added": 20, "enums_added": 1, "fields_added": 126, "imports_added": 13}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
refactor: move Payout traits to hyperswitch_interfaces for connectors crate ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Described in #6508 ### 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 helps us implement new payout connector integrations in `hyperswitch_connectors` crate ## How did you test it? Not needed as it's only a refactor. New connectors being added in `hyperswitch_connectors` crate can be tested ## 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.rs` **2. External Connector Integration** - `crates/hyperswitch_connectors/src/default_implementations.rs` **3. Type Definitions** - `crates/router/src/types/api.rs` - `crates/router/src/types/api/payouts.rs` **4. Other** - `crates/hyperswitch_interfaces/src/api.rs` - `crates/hyperswitch_interfaces/src/api/payouts.rs` - `crates/hyperswitch_interfaces/src/api/payouts_v2.rs` **Code Patterns Applied:** **Detailed Identifier Changes:** Commit 6808272d: Files to modify: **crates/hyperswitch_connectors/src/default_implementations.rs** Modify existing code **crates/hyperswitch_interfaces/src/api.rs** Add: - trait: pub::Payouts **crates/hyperswitch_interfaces/src/api/payouts.rs** Add: - trait: pub::Payouts **crates/hyperswitch_interfaces/src/api/payouts_v2.rs** Add: - trait: pub::PayoutsV2 - trait: pub::PayoutsV2 **crates/router/src/core/payments/flows.rs** Remove: - impl: impl api::Payouts for $connector - impl: impl api::Payouts for connector::DummyConnector<T> Add: - impl: impl Payouts for $connector - impl: impl Payouts for connector::DummyConnector<T> **crates/router/src/types/api.rs** Remove: - trait: pub::Payouts - trait: pub::Payouts - trait: pub::PayoutsV2 **crates/router/src/types/api/payouts.rs** Modify existing code
{"pr_number": 6481, "pr_title": "refactor: move Payout traits to hyperswitch_interfaces for connectors crate", "merged_at": "2024-11-12T11:24:53Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/flows.rs"], "connectors": ["crates/hyperswitch_connectors/src/default_implementations.rs"], "types": ["crates/router/src/types/api.rs", "crates/router/src/types/api/payouts.rs"], "other": ["crates/hyperswitch_interfaces/src/api.rs", "crates/hyperswitch_interfaces/src/api/payouts.rs", "crates/hyperswitch_interfaces/src/api/payouts_v2.rs"]}, "change_types": {"imports_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
fix(connector): Add network error message support for payment connectors ## 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 --> Network error code, network advice code and network error message should be consumed across connectors. **Stripe** - Stripe shares network adivice code and network decline code. [source](https://docs.stripe.com/api/errors#errors-network_advice_code) Network advice code: a 2 digit code which indicates the advice returned by the network on how to proceed with an error. Network decline code : a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed. **Adyen** - The Merchant Advice Code (MAC) can be returned for both approved and refused Mastercard payments. This code provides additional information about the type of transaction or the reason why the payment failed. If the payment failed, the MAC gives guidance on if and when you can retry the payment. refusalReasonRaw: the full raw response. For example: 51 : Insufficient funds/over credit limit. refusalCodeRaw (only available for Visa and Mastercard transactions through our own acquiring platform): the numeric part of the raw response. For example: 51. This represents the underlying scenario that caused the transaction to fail. Note: This fields are populated in prod based on request with adyen team. **Cybersource** & **BOA** - processorInformation.merchantAdvice.codeRaw ([source](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/processor-info-aa/processor-info-merchant-advice-code-raw.html)) processorInformation.responseCode ([source](https://developer.cybersource.com/docs/cybs/en-us/api-fields/reference/all/rest/api-fields/processor-info-aa/processor-info-response-code.html)). **Globalpay** - payment method result & code : [source](https://developer.globalpay.com/resources/error-responses#payment-method-result--message) **Worldpay** - Refusal response code and refusal advice code [source](https://developer.worldpay.com/products/access/reference/refusal-response) Network error information availability across connectors and flows - present : network error related fields are populating - not present: flow is present but fields are not populating. - not availble: flow itself not available for a connector | Connector | Authorize response | Psync response | Webhook response | | ------------- | ------------- | ------------- | ----------| | Stripe | present | present | present | | adyen | present | not available | present | | cybersource | present | present | not available | | worldpay | present | not present | not present | | bank of america | present | present | not available | | globalpay | present | present | present | ### 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)? --> **V1 Testing :** - Create respective merchant connector account **Stripe :** , **Globalpay**, **Cybersource** & **Boa** : Can't test these connector since issuer error code and error messages are only populated in production env. But Failure payments deserialization should not failure - create a failure payments via stripe and globalpay. - Psync and webhooks have the same response struct hence this is handled in this cases as well. But we can't test this flows as well. - For cybersource and boa they don't have webhooks support. Psync is similar to authorize response. payment request stripe : ``` { "amount":1001, "currency": "USD", "confirm": true, "payment_link" : false, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 1001, "customer_id": "StripeCustomer", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+1", "description": "Its my first payment request", "authentication_type": "no_three_ds", "setup_future_usage" : "off_session", "profile_id" : "{{profile_id}}", "return_url": "https://google.com", "payment_method": "card", "payment_method_type": "credit", "payment_method_data": { "card": { "card_number": "4000000000009995", "card_exp_month": "12", "card_exp_year": "2031", "card_holder_name": "joseph Doe", "card_cvc": "444" } }, "billing": { "address": { "line1": "1467", "line2": "CA", "line3": "CA", "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": "CA", "line3": "CA", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "joseph", "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, "ip_address": "127.2.2.0", "screen_height": 723, "screen_width": 1536, "time_zone": 0, "java_enabled": true, "java_script_enabled": true }, "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } } ``` payment response stripe : only issuer error message is present ``` { "payment_id": "pay_G5swB5HJ8Rfpv6IVYFSF", "merchant_id": "merchant_1744184470", "status": "failed", "amount": 1001, "net_amount": 1001, "shipping_cost": null, "amount_capturable": 0, "amount_received": null, "connector": "stripe", "client_secret": "pay_G5swB5HJ8Rfpv6IVYFSF_secret_WeDdNhnikda0bqBrIogX", "created": "2025-04-09T07:53:13.540Z", "currency": "USD", "customer_id": "StripeCustomer", "customer": { "id": "StripeCustomer", "name": "John Doe", "email": "guest@example.com", "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": "9995", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "400000", "card_extended_bin": null, "card_exp_month": "12", "card_exp_year": "2031", "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": "CA", "line3": "CA", "zip": "94122", "state": "California", "first_name": "joseph", "last_name": "Doe" }, "phone": { "number": "8056594427", "country_code": "+91" }, "email": null }, "billing": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "CA", "line3": "CA", "zip": "94122", "state": "California", "first_name": "joseph", "last_name": "Doe" }, "phone": { "number": "8056594427", "country_code": "+91" }, "email": null }, "order_details": null, "email": "guest@example.com", "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": "card_declined", "error_message": "message - Your card has insufficient funds., decline_code - insufficient_funds", "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": { "customer_id": "StripeCustomer", "created_at": 1744185193, "expires": 1744188793, "secret": "epk_41b418221306427b97759ca65725696c" }, "manual_retry_allowed": true, "connector_transaction_id": "pi_3RBtRfD5R7gDAGff0ItpX42i", "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_BIwqxwy225Z9VUAD1iZW", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_5u0d0hcuMVE7HF0oY4bs", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-04-09T08:08:13.540Z", "fingerprint": null, "browser_info": { "language": "nl-NL", "time_zone": 0, "ip_address": "127.2.2.0", "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-04-09T07:53:16.323Z", "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": "insufficient_funds" } ``` **Worldpay:** - Follow this doc to populate issuer error code and issuer error message. [doc](https://developer.worldpay.com/products/access/payments/testing#issuer-response-test-values) - payments create request : - response : - Psync and webhooks doesn't have this information in worldpay, Hence we can't consume these fields. Request : ``` { "amount":1001, "currency": "USD", "confirm": true, "payment_link" : false, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 1001, "customer_id": "StripeCustomer", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+1", "description": "Its my first payment request", "authentication_type": "no_three_ds", "setup_future_usage" : "off_session", "profile_id" : "{{profile_id}}", "return_url": "https://google.com", "payment_method": "card", "payment_method_type": "credit", "payment_method_data": { "card": { "card_number": "4444333322221111", "card_exp_month": "12", "card_exp_year": "2031", "card_holder_name": "REFUSEDRCN3RAW", "card_cvc": "444" } }, "billing": { "address": { "line1": "1467", "line2": "CA", "line3": "CA", "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": "CA", "line3": "CA", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "joseph", "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, "ip_address": "127.2.2.0", "screen_height": 723, "screen_width": 1536, "time_zone": 0, "java_enabled": true, "java_script_enabled": true }, "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_5ZxZDO4IbDh1czDQgfgp", "merchant_id": "merchant_1744189578", "status": "failed", "amount": 1001, "net_amount": 1001, "shipping_cost": null, "amount_capturable": 0, "amount_received": null, "connector": "worldpay", "client_secret": "pay_5ZxZDO4IbDh1czDQgfgp_secret_pgNDIBJ3XNKrIU6S2gjT", "created": "2025-04-09T09:07:00.179Z", "currency": "USD", "customer_id": "StripeCustomer", "customer": { "id": "StripeCustomer", "name": "John Doe", "email": "guest@example.com", "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": "444433", "card_extended_bin": null, "card_exp_month": "12", "card_exp_year": "2031", "card_holder_name": "REFUSEDRCN3RAW", "payment_checks": null, "authentication_data": null }, "billing": null }, "payment_token": null, "shipping": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "CA", "line3": "CA", "zip": "94122", "state": "California", "first_name": "joseph", "last_name": "Doe" }, "phone": { "number": "8056594427", "country_code": "+91" }, "email": null }, "billing": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "CA", "line3": "CA", "zip": "94122", "state": "California", "first_name": "joseph", "last_name": "Doe" }, "phone": { "number": "8056594427", "country_code": "+91" }, "email": null }, "order_details": null, "email": "guest@example.com", "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": "831", "error_message": "Cash service not available", "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": { "customer_id": "StripeCustomer", "created_at": 1744189620, "expires": 1744193220, "secret": "epk_f8417167f71743499b771c68e3180ecb" }, "manual_retry_allowed": true, "connector_transaction_id": "32e3b106-8caa-4a9a-9984-fe0b61b88efc", "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_XErfSw2LyEVJK4m6eUbJ", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_w7cN4RsrVP0oJQleL4Cm", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-04-09T09:22:00.179Z", "fingerprint": null, "browser_info": { "language": "nl-NL", "time_zone": 0, "ip_address": "127.2.2.0", "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-04-09T09:07:01.089Z", "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": "831", "issuer_error_message": "Cash service not available" } ``` **V2 Testing :** **Stripe :** , **Globalpay**, **Cybersource** & **Boa** : Can't test these connector since network decline code, network advice code and network_error_message are only populated in production env. But Failure payments deserialization should not failure - create a failure payments via stripe and globalpay. - Psync and webhooks have the same response struct hence this is handled in this cases as well. But we can't test this flows as well. - For cybersource and boa they don't have webhooks support. Psync is similar to authorize response. **- Worldpay** - Follow this doc to populate issuer error code and issuer error message. [doc](https://developer.worldpay.com/products/access/payments/testing#issuer-response-test-values) - payments create request : - response : - Network decline code and network advice code will be populated but network error message will not be populated. ## 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/bankofamerica/transformers.rs` - `crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs` - `crates/hyperswitch_connectors/src/connectors/globalpay/response.rs` - ... and 5 more files **Code Patterns Applied:** - Define new data structures (2 changes) - Extend existing types with new fields (70 changes) **Detailed Identifier Changes:** Commit b83e044b: Files to modify: **crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs** Add: - struct: pub::MerchantAdvice **crates/hyperswitch_connectors/src/connectors/globalpay/response.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/worldpay/response.rs** Add: - struct: pub::Advice **crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs** Modify existing code **crates/router/src/connector/stripe.rs** Modify existing code **crates/router/src/connector/stripe/transformers.rs** Modify existing code
{"pr_number": 7760, "pr_title": "fix(connector): Add network error message support for payment connectors", "merged_at": "2025-04-11T10:49:15Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs", "crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs", "crates/hyperswitch_connectors/src/connectors/globalpay/response.rs", "crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/worldpay/response.rs", "crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs", "crates/router/src/connector/stripe.rs", "crates/router/src/connector/stripe/transformers.rs"]}, "change_types": {"structs_added": 2, "fields_added": 70, "imports_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
refactor(authentication): moved cavv storing from table to temp locker ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Refactoring ## Description <!-- Describe your changes in detail --> https://github.com/juspay/hyperswitch/pull/7978 ### 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. Database Layer (Queries & Schema)** - `crates/diesel_models/src/authentication.rs` **2. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/router_request_types/authentication.rs` - `crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs` - `crates/hyperswitch_domain_models/src/router_response_types.rs` **3. Core Business Logic** - `crates/router/src/core/authentication.rs` - `crates/router/src/core/authentication/utils.rs` - `crates/router/src/core/payments.rs` - ... and 7 more files **4. External Connector Integration** - `crates/router/src/connector/gpayments/gpayments_types.rs` - `crates/router/src/connector/netcetera/transformers.rs` - `crates/router/src/connector/threedsecureio/transformers.rs` **5. Type Definitions** - `crates/router/src/types/api/authentication.rs` - `crates/router/src/types/domain.rs` - `crates/router/src/types/transformers.rs` **6. Other** - `crates/hyperswitch_interfaces/src/authentication.rs` **Code Patterns Applied:** - Define new data structures (1 changes) - Implement new functions (8 changes) - Extend existing types with new fields (32 changes) - Add conditional logic for feature flags or filtering (4 changes) **Detailed Identifier Changes:** Commit 4383ecf1: Files to modify: **crates/diesel_models/src/authentication.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_request_types/authentication.rs** Add: - struct: pub::AuthenticationStore **crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_response_types.rs** Modify existing code **crates/hyperswitch_interfaces/src/authentication.rs** Modify existing code **crates/router/src/connector/gpayments/gpayments_types.rs** Modify existing code **crates/router/src/connector/netcetera/transformers.rs** Modify existing code **crates/router/src/connector/threedsecureio/transformers.rs** Modify existing code **crates/router/src/core/authentication.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 **crates/router/src/core/payments/operations/payment_response.rs** Modify existing code **crates/router/src/core/payments/operations/payment_status.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code **crates/router/src/core/payments/types.rs** Modify existing code **crates/router/src/core/unified_authentication_service/utils.rs** Modify existing code **crates/router/src/core/webhooks/incoming.rs** Modify existing code **crates/router/src/types/api/authentication.rs** Modify existing code **crates/router/src/types/domain.rs** Add: - mod: pub::authentication **crates/router/src/types/transformers.rs** Modify existing code
{"pr_number": 8005, "pr_title": "refactor(authentication): moved cavv storing from table to temp locker", "merged_at": "2025-05-12T13:55:06Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"database": ["crates/diesel_models/src/authentication.rs"], "domain": ["crates/hyperswitch_domain_models/src/router_request_types/authentication.rs", "crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs", "crates/hyperswitch_domain_models/src/router_response_types.rs"], "core_business": ["crates/router/src/core/authentication.rs", "crates/router/src/core/authentication/utils.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/operations/payment_status.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/payments/types.rs", "crates/router/src/core/unified_authentication_service/utils.rs", "crates/router/src/core/webhooks/incoming.rs"], "connectors": ["crates/router/src/connector/gpayments/gpayments_types.rs", "crates/router/src/connector/netcetera/transformers.rs", "crates/router/src/connector/threedsecureio/transformers.rs"], "types": ["crates/router/src/types/api/authentication.rs", "crates/router/src/types/domain.rs", "crates/router/src/types/transformers.rs"], "other": ["crates/hyperswitch_interfaces/src/authentication.rs"]}, "change_types": {"structs_added": 1, "functions_added": 8, "fields_added": 32, "imports_added": 5, "conditionals_added": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(core): add one-way TLS support with CA certificate for ArchiPEL UAT environment ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [X] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description ArchiPEL requires one-way TLS in their UAT environment to verify incoming requests. To support this: A CA certificate must be provided and included with each request to enable proper server verification. NOTE: The PEM certificate must be converted to a JSON-safe string format (i.e., escaped \n as \\r\\n or \\n). **_(Please comment if you think there's any better way of doing this)_** - This PR ensures that the CA certificate is properly parsed and integrated into the TLS client setup, supporting ArchiPEL’s verification requirements. - This PR also adds wasm changes to add CA certificate PEM from the dashboard. - This PR also adds postman collection changes for archipel to accomodate this new change @gbague ### 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)? --> Please note, testing needs to be done for the following scenarios 1. Itaubank connector payments - it uses mTLS flow 2. Archipel connector payment - it uses one way TLS flow (This PR introduces this flow) # 1. Create Archipel connector `curl --location 'http://localhost:8080/account/flowbird/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_9BVJpIiKysTwOVEDlenKkv7JRiJed0NlzE6DSD2PPC0GwNgbQYkHlv1H14NybhW7' \ --data '{ "connector_type": "payment_processor", "connector_name": "archipel", "connector_account_details": { "auth_type": "HeaderKey", "api_key": "///PEM CERITIFICATE///", }, "metadata": { "tenant_id": "///Tenant ID///", "platform_url": "///Platform URL///", "apple_pay_combined": { "manual": { "session_token_data": { "initiative": "web", "certificate": "", "display_name": "Flowbird", "certificate_keys": "", "initiative_context": "", "merchant_identifier": "", "merchant_business_country": "", "payment_processing_details_at": "Hyperswitch", "payment_processing_certificate": "", "payment_processing_certificate_key": "" }, "payment_request_data": { "label": "Flowbird", "supported_networks": [ "visa", "masterCard", "amex", "discover" ], "merchant_capabilities": [ "supports3DS" ] } } } }, "profile_id": "pro_eIirKlZvlDj8sE0O1x6s", "test_mode": false, "disabled": false, "payment_methods_enabled": [ { "payment_method": "card", "payment_method_types": [ { "payment_method_type": "credit", "payment_experience": null, "card_networks": [ "AmericanExpress", "Discover", "Interac", "JCB", "Mastercard", "Visa", "DinersClub", "UnionPay", "RuPay" ], "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": [ "AmericanExpress", "Discover", "Interac", "JCB", "Mastercard", "Visa", "DinersClub", "UnionPay", "RuPay" ], "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": null, "card_networks": [ "AmericanExpress", "Discover", "Interac", "JCB", "Mastercard", "Visa", "DinersClub", "UnionPay", "RuPay" ], "accepted_currencies": null, "accepted_countries": null, "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": false, "installment_payment_enabled": true } ] } ] }'` # 2. Make /payments call ` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_9BVJpIiKysTwOVEDlenKkv7JRiJed0NlzE6DSD2PPC0GwNgbQYkHlv1H14NybhW7' \ --data-raw '{ "amount": 500, "amount_to_capture": 500, "currency": "EUR", "confirm": true, "capture_method": "automatic", "authentication_type": "no_three_ds", "payment_method": "card", "payment_method_type": "credit", "payment_method_data": { "card": { "card_cvc": "123", "card_exp_month": "01", "card_exp_year": "50", "card_holder_name": "John Doe", "card_number": "5185570141917102" } }, "profile_id": "pro_eIirKlZvlDj8sE0O1x6s", "email": "john_doe@gmail.com", "name": "John Doe", "phone": "8056594427", "phone_country_code": "+91", "description": "Illo dolore aliquid qui id eum voluptatem voluptatem ratione molestiae.", "billing": { "address": { "line1": "2 ter", "line2": "rue du château", "line3": "", "city": "Neuilly-sur-Seine", "state": "France", "zip": "92200", "country": "FR" }, "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 Doe", "statement_descriptor_suffix": "JS" }' ` <img width="1102" alt="Screenshot 2025-05-23 at 9 06 12 PM" src="https://github.com/user-attachments/assets/1753c54f-0ade-4672-883c-8e97bb971ccf" /> ## 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/cards.rs` **2. External Connector Integration** - `crates/connector_configs/toml/development.toml` - `crates/connector_configs/toml/production.toml` - `crates/connector_configs/toml/sandbox.toml` - ... and 3 more files **3. Utils** - `crates/common_utils/src/request.rs` **4. Other** - `crates/external_services/src/http_client.rs` - `crates/external_services/src/http_client/client.rs` - `crates/router/src/services/openidconnect.rs` - ... and 2 more files **Code Patterns Applied:** - Define new data structures (1 changes) - Implement new functions (2 changes) - Extend existing types with new fields (7 changes) - Add conditional logic for feature flags or filtering (3 changes) **Detailed Identifier Changes:** Commit e6558329: Files to modify: **crates/common_utils/src/request.rs** Add: - function: pub::add_ca_certificate_pem **crates/external_services/src/http_client.rs** Modify existing code **crates/external_services/src/http_client/client.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/archipel.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs** Remove: - struct: pub::ArchipelAuthType Add: - struct: pub::ArchipelAuthType **crates/router/src/core/payment_methods/cards.rs** Modify existing code **crates/router/src/services/openidconnect.rs** Modify existing code
{"pr_number": 8128, "pr_title": "feat(core): add one-way TLS support with CA certificate for ArchiPEL UAT environment", "merged_at": "2025-05-25T15:58:06Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"core_business": ["crates/router/src/core/payment_methods/cards.rs"], "connectors": ["crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml", "crates/hyperswitch_connectors/src/connectors/archipel.rs", "crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs", "crates/router/tests/connectors/sample_auth.toml"], "utils": ["crates/common_utils/src/request.rs"], "other": ["crates/external_services/src/http_client.rs", "crates/external_services/src/http_client/client.rs", "crates/router/src/services/openidconnect.rs", "postman/collection-dir/archipel/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-json/archipel.postman_collection.json"]}, "change_types": {"structs_added": 1, "functions_added": 2, "fields_added": 7, "imports_added": 1, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(themes): Setup themes table ## 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 creates a new table named `themes` in the DB. This will be used to store the `theme_id` for any lineage of `tenant_id`, `org_id`, `merchant_id` and `profile_id`. ### 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). --> Closes #6532 ## 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 is an internal change and there is no API to test this currently. I've tested the read query by creating a temporary API which uses the query created in 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. Database Layer (Queries & Schema)** - `crates/diesel_models/src/query/user.rs` - `crates/diesel_models/src/query/user/theme.rs` - `crates/diesel_models/src/schema.rs` - ... and 3 more files **2. Type Definitions** - `crates/common_utils/src/types.rs` - `crates/common_utils/src/types/theme.rs` **3. Other** - `crates/router/src/db.rs` - `crates/router/src/db/kafka_store.rs` - `crates/router/src/db/user.rs` - ... and 4 more files **Code Patterns Applied:** - Define new data structures (2 changes) - Implement new functions (17 changes) - Extend existing types with new fields (59 changes) - Add conditional logic for feature flags or filtering (2 changes) - Modify database queries (11 changes) **Detailed Identifier Changes:** Commit 29be1d4f: Files to modify: **crates/common_utils/src/types.rs** Add: - mod: pub::theme **crates/common_utils/src/types/theme.rs** Add: - enum: pub::ThemeLineage **crates/diesel_models/src/query/user.rs** Add: - mod: pub::theme **crates/diesel_models/src/query/user/theme.rs** Add: - function: pub::insert - function: private::lineage_filter - function: pub::find_by_lineage - function: pub::delete_by_theme_id_and_lineage - impl: impl ThemeNew - impl: impl Theme **crates/diesel_models/src/schema.rs** Modify existing code **crates/diesel_models/src/schema_v2.rs** Modify existing code **crates/diesel_models/src/user.rs** Add: - mod: pub::theme **crates/diesel_models/src/user/theme.rs** Add: - struct: pub::Theme - struct: pub::ThemeNew **crates/router/src/db.rs** Modify existing code **crates/router/src/db/kafka_store.rs** Add: - function: private::insert_theme - function: private::find_theme_by_lineage - function: private::delete_theme_by_lineage_and_theme_id - impl: impl ThemeInterface for KafkaStore **crates/router/src/db/user.rs** Add: - mod: pub::theme **crates/router/src/db/user/theme.rs** Add: - function: private::insert_theme - function: private::find_theme_by_lineage - function: private::delete_theme_by_lineage_and_theme_id - function: private::check_theme_with_lineage - function: private::insert_theme - function: private::find_theme_by_lineage - function: private::delete_theme_by_lineage_and_theme_id - trait: pub::ThemeInterface - impl: impl ThemeInterface for Store - impl: impl ThemeInterface for MockDb **crates/storage_impl/src/mock_db.rs** Modify existing code
{"pr_number": 6533, "pr_title": "feat(themes): Setup themes table", "merged_at": "2024-11-14T09:16:40Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["merchant"]}, "hierarchy": {"database": ["crates/diesel_models/src/query/user.rs", "crates/diesel_models/src/query/user/theme.rs", "crates/diesel_models/src/schema.rs", "crates/diesel_models/src/schema_v2.rs", "crates/diesel_models/src/user.rs", "crates/diesel_models/src/user/theme.rs"], "types": ["crates/common_utils/src/types.rs", "crates/common_utils/src/types/theme.rs"], "other": ["crates/router/src/db.rs", "crates/router/src/db/kafka_store.rs", "crates/router/src/db/user.rs", "crates/router/src/db/user/theme.rs", "crates/storage_impl/src/mock_db.rs", "migrations/2024-11-06-121933_setup-themes-table/down.sql", "migrations/2024-11-06-121933_setup-themes-table/up.sql"]}, "change_types": {"structs_added": 2, "functions_added": 17, "enums_added": 1, "fields_added": 59, "imports_added": 18, "conditionals_added": 2, "database_queries": 11}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(payment_methods_v2): add payment methods list endpoint ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] New feature ## Description <!-- Describe your changes in detail --> This PR adds payment methods list endpoint for payment methods endpoint for payment methods. This will be used to display the list of payment methods that are enabled by the merchant. <img width="1720" alt="Screenshot 2025-01-03 at 11 59 48 PM" src="https://github.com/user-attachments/assets/8302313f-0acb-41a5-a227-c8ee397d89f7" /> <!-- 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 customer ```bash curl --location 'http://localhost:8080/v2/customers' \ --header 'x-profile-id: pro_Jl8KY80C28z1mRdXcDBT' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_6BoCe4RXBXF6bxdXSvDilRNJzAyC44zmEzxrQrBAswLtV2wc91CNOGUTZ2ys5Ff0' \ --data-raw '{ "merchant_reference_id": "customer_1735122196", "name": "John Doe", "email": "guest@example.com", "phone": "999999999", "phone_country_code": "+65", "description": "First customer", "default_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" }, "default_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" }, "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } }' ``` - Create a payment method intent ```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_Jl8KY80C28z1mRdXcDBT' \ --header 'api-key: dev_6BoCe4RXBXF6bxdXSvDilRNJzAyC44zmEzxrQrBAswLtV2wc91CNOGUTZ2ys5Ff0' \ --data '{ "customer_id": "12345_cus_0193f9043aae775099131fb81108488f" }' ``` - List the payment methods ```bash curl --location 'http://localhost:8080/v2/payment-methods/12345_pm_0193f99973757b30a97807211a19d8fc/list-enabled-payment-methods' \ --header 'api-key: dev_6BoCe4RXBXF6bxdXSvDilRNJzAyC44zmEzxrQrBAswLtV2wc91CNOGUTZ2ys5Ff0' \ --header 'Content-Type: application/json' \ --header 'x-profile-id: pro_Jl8KY80C28z1mRdXcDBT' ``` - Response ( given that stripe connector is created ) ```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": [] } ], } ``` ## 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/connector_enums.rs` - `crates/api_models/src/events.rs` - ... and 3 more files **2. Database Layer (Queries & Schema)** - `crates/diesel_models/src/merchant_connector_account.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/apple_pay_certificates_migration.rs` - `crates/router/src/core/disputes.rs` - ... and 12 more files **5. External Connector Integration** - `crates/common_enums/src/connector_enums.rs` - `crates/router/src/configs/defaults/payment_connector_required_fields.rs` - `crates/router/src/db/merchant_connector_account.rs` **6. Type Definitions** - `crates/router/src/types/api/payment_methods.rs` **7. Utils** - `crates/common_utils/src/events.rs` - `crates/common_utils/src/id_type/global_id/payment_methods.rs` **8. Configuration Files** - `config/development.toml` - `config/payment_required_fields_v2.toml` - `crates/router/Cargo.toml` - ... and 3 more files **9. Other** - `api-reference-v2/api-reference/payment-methods/payment-method--payment-methods-list.mdx` - `api-reference-v2/mint.json` - `api-reference-v2/openapi_spec.json` - ... and 9 more files **Code Patterns Applied:** - Define new data structures (9 changes) - Implement new functions (32 changes) - Extend existing types with new fields (88 changes) **Detailed Identifier Changes:** Commit 6a1f5a88: Files to modify: **crates/api_models/src/admin.rs** Modify existing code **crates/api_models/src/connector_enums.rs** Remove: - function: pub::supports_instant_payout - function: pub::supports_create_recipient - function: pub::supports_payout_eligibility - function: pub::is_payout_quote_call_required - function: pub::supports_access_token_for_payout - function: pub::supports_vendor_disburse_account_create_for_payout - function: pub::supports_access_token - function: pub::supports_file_storage_module - function: pub::requires_defend_dispute - function: pub::is_separate_authentication_supported - function: pub::is_pre_processing_required_before_authorize - function: pub::should_acknowledge_webhook_for_resource_not_found_errors - function: pub::validate_dummy_connector_enabled - enum: pub::Connector - impl: impl Connector **crates/api_models/src/events.rs** Remove: - function: private::get_api_event_type - impl: impl ApiEventMetric for PaymentMethodIntentConfirmInternal **crates/api_models/src/events/payment.rs** Add: - function: private::get_api_event_type - impl: impl ApiEventMetric for PaymentMethodDeleteResponse **crates/api_models/src/payment_methods.rs** Remove: - function: private::from - struct: pub::PaymentMethodIntentConfirmInternal - impl: impl From<PaymentMethodIntentConfirmInternal> for PaymentMethodIntentConfirm Add: - struct: pub::PaymentMethodListResponse **crates/api_models/src/payments.rs** Add: - struct: pub::ResponsePaymentMethodTypesForPayments **crates/common_enums/src/connector_enums.rs** Add: - function: pub::supports_instant_payout - function: pub::supports_create_recipient - function: pub::supports_payout_eligibility - function: pub::is_payout_quote_call_required - function: pub::supports_access_token_for_payout - function: pub::supports_vendor_disburse_account_create_for_payout - function: pub::supports_access_token - function: pub::supports_file_storage_module - function: pub::requires_defend_dispute - function: pub::is_separate_authentication_supported - function: pub::is_pre_processing_required_before_authorize - function: pub::should_acknowledge_webhook_for_resource_not_found_errors - function: pub::validate_dummy_connector_create - function: private::from - enum: pub::Connector - impl: impl Connector - impl: impl From<RoutableConnectors> for Connector **crates/common_utils/src/events.rs** Modify existing code **crates/common_utils/src/id_type/global_id/payment_methods.rs** Add: - function: private::get_api_event_type - impl: impl crate::events::ApiEventMetric for GlobalPaymentMethodId **crates/diesel_models/src/merchant_connector_account.rs** Modify existing code **crates/hyperswitch_domain_models/src/merchant_connector_account.rs** Modify existing code **crates/openapi/src/openapi.rs** Modify existing code **crates/openapi/src/openapi_v2.rs** Modify existing code **crates/openapi/src/routes.rs** Modify existing code **crates/openapi/src/routes/payment_method.rs** Remove: - function: pub::list_customer_payment_method_for_payment **crates/router/src/configs/defaults/payment_connector_required_fields.rs** Modify existing code **crates/router/src/configs/defaults/payout_required_fields.rs** Modify existing code **crates/router/src/configs/settings.rs** Add: - struct: pub::RequiredFieldFinal **crates/router/src/core/admin.rs** Modify existing code **crates/router/src/core/apple_pay_certificates_migration.rs** Modify existing code **crates/router/src/core/disputes.rs** Modify existing code **crates/router/src/core/payment_methods.rs** Add: - function: private::perform_filtering - function: private::new - function: private::get_required_fields - function: private::get_required_fields - function: private::generate_response - function: pub::list_payment_methods_enabled - struct: private::RequiredFieldsInput - struct: private::FilteredPaymentMethodsEnabled - struct: private::RequiredFieldsForEnabledPaymentMethod - struct: private::RequiredFieldsForEnabledPaymentMethodTypes - trait: private::PerformFilteringOnEnabledPaymentMethods - trait: private::GetRequiredFields - impl: impl PerformFilteringOnEnabledPaymentMethods for hyperswitch_domain_models::merchant_connector_account::FlattenedPaymentMethodsEnabled - impl: impl RequiredFieldsInput - impl: impl GetRequiredFields for settings::RequiredFields - impl: impl FilteredPaymentMethodsEnabled - impl: impl RequiredFieldsForEnabledPaymentMethodTypes **crates/router/src/core/payment_methods/cards.rs** Remove: - function: pub::set_default_payment_method **crates/router/src/core/payment_methods/transformers.rs** Modify existing code **crates/router/src/core/payments/flows/session_flow.rs** Add: - function: private::is_dynamic_fields_required **crates/router/src/core/payments/helpers.rs** Modify existing code **crates/router/src/core/payments/payment_methods.rs** Modify existing code **crates/router/src/core/payouts/transformers.rs** Modify existing code **crates/router/src/core/relay.rs** Modify existing code **crates/router/src/core/relay/utils.rs** Modify existing code **crates/router/src/core/routing/helpers.rs** Remove: - struct: pub::ConnectNameForProfile Add: - struct: pub::ConnectNameForProfile **crates/router/src/core/user/dashboard_metadata.rs** Modify existing code **crates/router/src/core/webhooks/incoming_v2.rs** Modify existing code **crates/router/src/db/merchant_connector_account.rs** Modify existing code **crates/router/src/routes/app.rs** Modify existing code **crates/router/src/routes/disputes.rs** Modify existing code **crates/router/src/routes/payment_methods.rs** Add: - function: private::from - function: private::get_api_event_type - struct: pub::PaymentMethodIntentConfirmInternal - impl: impl From<PaymentMethodIntentConfirmInternal> for payment_methods::PaymentMethodIntentConfirm - impl: impl common_utils::events::ApiEventMetric for PaymentMethodIntentConfirmInternal **crates/router/src/routes/user.rs** Modify existing code **crates/router/src/types/api/payment_methods.rs** Modify existing code **crates/router_env/src/logger/config.rs** Add: - function: pub::get_config_directory
{"pr_number": 6938, "pr_title": "feat(payment_methods_v2): add payment methods list endpoint", "merged_at": "2025-01-13T10:05:07Z", "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/connector_enums.rs", "crates/api_models/src/events.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"], "domain": ["crates/hyperswitch_domain_models/src/merchant_connector_account.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/apple_pay_certificates_migration.rs", "crates/router/src/core/disputes.rs", "crates/router/src/core/payment_methods.rs", "crates/router/src/core/payment_methods/cards.rs", "crates/router/src/core/payment_methods/transformers.rs", "crates/router/src/core/payments/flows/session_flow.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/payment_methods.rs", "crates/router/src/core/payouts/transformers.rs", "crates/router/src/core/relay.rs", "crates/router/src/core/relay/utils.rs", "crates/router/src/core/routing/helpers.rs", "crates/router/src/core/user/dashboard_metadata.rs", "crates/router/src/core/webhooks/incoming_v2.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/router/src/configs/defaults/payment_connector_required_fields.rs", "crates/router/src/db/merchant_connector_account.rs"], "types": ["crates/router/src/types/api/payment_methods.rs"], "utils": ["crates/common_utils/src/events.rs", "crates/common_utils/src/id_type/global_id/payment_methods.rs"], "config": ["config/development.toml", "config/payment_required_fields_v2.toml", "crates/router/Cargo.toml", "crates/router/src/configs/defaults/payout_required_fields.rs", "crates/router/src/configs/settings.rs", "crates/router_env/src/logger/config.rs"], "other": ["api-reference-v2/api-reference/payment-methods/payment-method--payment-methods-list.mdx", "api-reference-v2/mint.json", "api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/openapi/src/openapi.rs", "crates/openapi/src/openapi_v2.rs", "crates/openapi/src/routes.rs", "crates/openapi/src/routes/payment_method.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/disputes.rs", "crates/router/src/routes/payment_methods.rs", "crates/router/src/routes/user.rs"]}, "change_types": {"structs_added": 9, "functions_added": 32, "enums_added": 1, "fields_added": 88, "imports_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
fix(postman): fix `stripe` test cases failures ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> Deleting API Key needs Merchant ID. So, deleting it after deleting the merchant itself yields a error message in the response which goes like `"API key not provided or invalid API key used"`, but, its solely because the Merchant ID used is not authenticated because the Merchant ID is already deleted. ### 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). --> The respective test case was failing in the Automated Tests Run. ## 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="864" alt="image" src="https://github.com/user-attachments/assets/86d7ab3a-46b4-4476-804f-b200b3d67a05" /> The Remaining failures are because of outdated certificates and their keys. Once we update that it will be like the following <img width="493" alt="image" src="https://github.com/user-attachments/assets/e45efb84-44d8-4f32-8d65-5ed7c1567a79" /> ## 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** - `postman/collection-dir/stripe/PaymentConnectors/.meta.json`
{"pr_number": 8339, "pr_title": "fix(postman): fix `stripe` test cases failures", "merged_at": "2025-06-13T08:20:44Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["merchant", "user"]}, "hierarchy": {"other": ["postman/collection-dir/stripe/PaymentConnectors/.meta.json"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
feat(core): Add support for cards bin update ## 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 create and update, bulk update APIs for cards_info table. These APIs will be used to update card bin details stored in cards_info table. ### 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)? --> Cypress tests not needed, Tests should be done using below added curls. Curl to test migration-btach ``` curl --location 'http://localhost:8080/cards/update-batch' \ --header 'api-key: test_admin' \ --form 'file=@"/Users/mrudul.vajpayee/Downloads/visa_test.csv"' ``` Curl to test update card-info entry ``` curl --location 'http://localhost:8080/cards/update' \ --header 'Content-Type: application/json' \ --header 'api-key: test_admin' \ --data '{ "card_iin": "222705", "card_network": "Mastercard", "card_type": "DEBIT", "card_subtype": "STANDARD", "card_issuing_country": "BANGLADESH", "migration_status": "Success" }' ``` Curl to test create card-info entry ``` curl --location 'http://localhost:8080/cards/create' \ --header 'Content-Type: application/json' \ --header 'api-key: test_admin' \ --data '{ "card_iin": "222105", "card_network": "Mastercard", "card_type": "DEBIT", "card_subtype": "STANDARD", "card_issuing_country": "BANGLADESH", "migration_status": "Success" }' ``` ## 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/cards_info.rs` **2. Database Layer (Queries & Schema)** - `crates/diesel_models/src/cards_info.rs` - `crates/diesel_models/src/query/cards_info.rs` **3. Core Business Logic** - `crates/router/src/core/cards_info.rs` **4. Type Definitions** - `crates/router/src/types/storage/cards_info.rs` - `crates/router/src/types/transformers.rs` - `crates/router_env/src/logger/types.rs` **5. Utils** - `crates/router/src/routes/lock_utils.rs` **6. Other** - `crates/router/src/db/cards_info.rs` - `crates/router/src/db/kafka_store.rs` - `crates/router/src/routes/app.rs` - ... and 1 more files **Code Patterns Applied:** - Define new data structures (12 changes) - Implement new functions (32 changes) - Extend existing types with new fields (171 changes) - Modify database queries (1 changes) **Detailed Identifier Changes:** Commit 8e922d30: Files to modify: **crates/api_models/src/cards_info.rs** Add: - function: private::from - struct: pub::CardInfoMigrateResponseRecord - struct: pub::CardInfoCreateRequest - struct: pub::CardInfoUpdateRequest - struct: pub::CardInfoMigrationResponse - enum: pub::CardInfoMigrationStatus - impl: impl ApiEventMetric for CardInfoCreateRequest - impl: impl ApiEventMetric for CardInfoUpdateRequest - impl: impl ApiEventMetric for CardInfoMigrationResponse - impl: impl From<CardInfoMigrationResponseType> for CardInfoMigrationResponse **crates/diesel_models/src/cards_info.rs** Add: - struct: pub::UpdateCardInfo **crates/diesel_models/src/query/cards_info.rs** Add: - function: pub::insert - function: pub::update **crates/router/src/core/cards_info.rs** Add: - function: pub::create_card_info - function: pub::update_card_info - function: private::parse_cards_bin_csv - function: pub::get_cards_bin_records - function: pub::migrate_cards_info - function: private::new - function: private::fetch_card_info - function: private::add_card_info - function: private::update_card_info - function: private::new - function: private::set_card_info - function: private::transition - function: private::set_updated_card_info - function: private::set_added_card_info - function: pub::build - function: private::card_info_flow - struct: pub::CardsInfoUpdateForm - struct: pub::CardInfoFetch - struct: pub::CardInfoAdd - struct: pub::CardInfoUpdate - struct: pub::CardInfoResponse - struct: pub::CardInfoMigrateExecutor - struct: pub::CardInfoBuilder - trait: pub::State - trait: pub::TransitionTo - impl: impl State for CardInfoFetch - impl: impl State for CardInfoAdd - impl: impl State for CardInfoUpdate - impl: impl State for CardInfoResponse - impl: impl TransitionTo<CardInfoAdd> for CardInfoFetch - impl: impl TransitionTo<CardInfoUpdate> for CardInfoFetch - impl: impl TransitionTo<CardInfoResponse> for CardInfoAdd - impl: impl TransitionTo<CardInfoResponse> for CardInfoUpdate - impl: impl CardInfoMigrateExecutor<'a> - impl: impl CardInfoBuilder<CardInfoFetch> - impl: impl CardInfoBuilder<CardInfoFetch> - impl: impl CardInfoBuilder<CardInfoUpdate> - impl: impl CardInfoBuilder<CardInfoAdd> - impl: impl CardInfoBuilder<CardInfoResponse> **crates/router/src/db/cards_info.rs** Add: - function: private::add_card_info - function: private::update_card_info - function: private::add_card_info - function: private::update_card_info **crates/router/src/db/kafka_store.rs** Add: - function: private::add_card_info - function: private::update_card_info **crates/router/src/routes/app.rs** Modify existing code **crates/router/src/routes/cards_info.rs** Add: - function: pub::create_cards_info - function: pub::update_cards_info - function: pub::migrate_cards_info **crates/router/src/routes/lock_utils.rs** Modify existing code **crates/router/src/types/storage/cards_info.rs** Modify existing code **crates/router/src/types/transformers.rs** Add: - function: private::foreign_from - function: private::foreign_from - impl: impl ForeignFrom<card_info_types::CardInfoCreateRequest> for storage::CardInfo - impl: impl ForeignFrom<card_info_types::CardInfoUpdateRequest> for storage::CardInfo **crates/router_env/src/logger/types.rs** Modify existing code
{"pr_number": 7194, "pr_title": "feat(core): Add support for cards bin update", "merged_at": "2025-03-04T09:24:59Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "card"]}, "hierarchy": {"api_models": ["crates/api_models/src/cards_info.rs"], "database": ["crates/diesel_models/src/cards_info.rs", "crates/diesel_models/src/query/cards_info.rs"], "core_business": ["crates/router/src/core/cards_info.rs"], "types": ["crates/router/src/types/storage/cards_info.rs", "crates/router/src/types/transformers.rs", "crates/router_env/src/logger/types.rs"], "utils": ["crates/router/src/routes/lock_utils.rs"], "other": ["crates/router/src/db/cards_info.rs", "crates/router/src/db/kafka_store.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/cards_info.rs"]}, "change_types": {"structs_added": 12, "functions_added": 32, "enums_added": 1, "fields_added": 171, "imports_added": 15, "database_queries": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
fix(connector): [STRIPE] Retrieving Connect Account Id from Mandate Metadata in MITs ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> In the CIT call, we store the stripe split payment details inside Mandate Metadata and during the MIT calls we retrieve the split payments data from there and use it in the MIT calls. And if the merchant sends split payment details again in the MIT call, we match it. If its the same we move forward. If different we throw an error. ### 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)? --> Case 1 : In MIT call donot pass Split Object Do a CIT Call in Stripe : cURL : ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_xBcDc9pB8qAMMQPKevYgWc9OmJX4g8uJNdumSg0r0MJniBLmiIKg2RGZd8xfZaKJ' \ --header 'Cookie: PHPSESSID=0b47db9d7de94c37b6b272087a9f2fa7' \ --data '{ "amount": 200, "currency": "USD", "confirm": true, "capture_method": "automatic", "amount_to_capture": 200, "customer_id": "knhfhka1777771lsklkdlo", "setup_future_usage": "off_session", "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" } }, "authentication_type": "no_three_ds", "return_url": "https://google.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "payment_method": "card", "payment_method_type": "debit", "payment_method_data": { "card": { "card_number": "4242424242424242", "card_exp_month": "09", "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" } }, "split_payments": { "stripe_split_payment": { "charge_type": "direct", "application_fees": 100, "transfer_account_id": "STRIPE_CONNECT_ACCOUNT_ID" } }, "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" } } ' ``` Response: ``` { "payment_id": "pay_cEcqgSSp33PsX5R4uwFM", "merchant_id": "merchant_1749631905", "status": "succeeded", "amount": 200, "net_amount": 200, "shipping_cost": null, "amount_capturable": 0, "amount_received": 200, "connector": "stripe", "client_secret": "pay_cEcqgSSp33PsX5R4uwFM_secret_boU7DjdGaKtsrnFKMIbK", "created": "2025-06-11T15:15:55.676Z", "currency": "USD", "customer_id": "knhfhka1777771lsklkdlo", "customer": { "id": "knhfhka1777771lsklkdlo", "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": "off_session", "off_session": null, "capture_on": null, "capture_method": "automatic", "payment_method": "card", "payment_method_data": { "card": { "last4": "4242", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "424242", "card_extended_bin": null, "card_exp_month": "09", "card_exp_year": "25", "card_holder_name": "joseph Doe", "payment_checks": { "cvc_check": "pass", "address_line1_check": "pass", "address_postal_code_check": null }, "authentication_data": null }, "billing": 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": null, "name": "John Doe", "phone": "999999999", "return_url": "https://google.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": "debit", "connector_label": null, "business_country": null, "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": { "customer_id": "knhfhka1777771lsklkdlo", "created_at": 1749654955, "expires": 1749658555, "secret": "epk_516e99419e6a4258a80564a35597b79f" }, "manual_retry_allowed": false, "connector_transaction_id": "pi_3RYqNdB7KCg1IWRp0et6BMH5", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pi_3RYqNdB7KCg1IWRp0et6BMH5", "payment_link": null, "profile_id": "pro_akVQl6yaf45xunErXMGC", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_apjrpOfsP9HdQUueJzyk", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-06-11T15:30:55.676Z", "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": "pm_UOhsKOUeYM6fnzWyCHtU", "payment_method_status": "active", "updated": "2025-06-11T15:15:58.088Z", "split_payments": { "stripe_split_payment": { "charge_id": "ch_3RYqNdB7KCg1IWRp0ngPDpVO", "charge_type": "direct", "application_fees": 100, "transfer_account_id": "STRIPE_CONNECT_ACCOUNT_ID" } }, "frm_metadata": null, "extended_authorization_applied": null, "capture_before": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": "pm_1RYqNcB7KCg1IWRpVkNUOCV3", "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 } ``` Do a MIT call now (without passing any split payment object now) : cURL: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_xBcDc9pB8qAMMQPKevYgWc9OmJX4g8uJNdumSg0r0MJniBLmiIKg2RGZd8xfZaKJ' \ --header 'Cookie: PHPSESSID=0b47db9d7de94c37b6b272087a9f2fa7' \ --data '{ "amount": 200, "currency": "USD", "customer_id": "knhfhka1777771lsklkdlo", "description": "Subsequent Mandate Test Payment (MIT from New CIT Demo)", "confirm": true, "off_session": true, "recurring_details": { "type": "payment_method_id", "data": "pm_UOhsKOUeYM6fnzWyCHtU" } }' ``` Response: ``` { "payment_id": "pay_yKso0LToFJVpDpiM5e6y", "merchant_id": "merchant_1749631905", "status": "succeeded", "amount": 200, "net_amount": 200, "shipping_cost": null, "amount_capturable": 0, "amount_received": 200, "connector": "stripe", "client_secret": "pay_yKso0LToFJVpDpiM5e6y_secret_HPX9Di3YfCBAmnK3T9mw", "created": "2025-06-11T15:16:34.464Z", "currency": "USD", "customer_id": "knhfhka1777771lsklkdlo", "customer": { "id": "knhfhka1777771lsklkdlo", "name": "John Doe", "email": null, "phone": "999999999", "phone_country_code": "+65" }, "description": "Subsequent Mandate Test Payment (MIT from New CIT Demo)", "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": "4242", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "424242", "card_extended_bin": null, "card_exp_month": "09", "card_exp_year": "25", "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": "John Doe", "phone": "999999999", "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": "knhfhka1777771lsklkdlo", "created_at": 1749654994, "expires": 1749658594, "secret": "epk_59c99d7518734fa98c1bc49f0d15ee90" }, "manual_retry_allowed": false, "connector_transaction_id": "pi_3RYqOEB7KCg1IWRp15Y5b8Ws", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pi_3RYqOEB7KCg1IWRp15Y5b8Ws", "payment_link": null, "profile_id": "pro_akVQl6yaf45xunErXMGC", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_apjrpOfsP9HdQUueJzyk", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-06-11T15:31:34.464Z", "fingerprint": null, "browser_info": null, "payment_method_id": "pm_UOhsKOUeYM6fnzWyCHtU", "payment_method_status": "active", "updated": "2025-06-11T15:16:35.853Z", "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": "pm_1RYqNcB7KCg1IWRpVkNUOCV3", "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 } ``` Case 2: Pass same Split Payment object in MIT CIT -> cURL: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_J474LWDEIbaWEUYUsem0vNOktW8XRXbWZhhtraxUwJKhMSG3KmkhE3dUEJfg2S9I' \ --header 'Cookie: PHPSESSID=0b47db9d7de94c37b6b272087a9f2fa7' \ --data '{ "amount": 200, "currency": "USD", "confirm": true, "capture_method": "automatic", "amount_to_capture": 200, "customer_id": "knhfhka177777kf1lsklkdlo", "setup_future_usage": "off_session", "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" } }, "authentication_type": "no_three_ds", "return_url": "https://google.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "payment_method": "card", "payment_method_type": "debit", "payment_method_data": { "card": { "card_number": "4242424242424242", "card_exp_month": "09", "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" } }, "split_payments": { "stripe_split_payment": { "charge_type": "direct", "application_fees": 100, "transfer_account_id": "acct_1RQUkaB7KCg1IWRp" } }, "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" } }' ``` Response: ``` { "payment_id": "pay_lvorbry91cIh0tcmYMKu", "merchant_id": "merchant_1750246108", "status": "succeeded", "amount": 200, "net_amount": 200, "shipping_cost": null, "amount_capturable": 0, "amount_received": 200, "connector": "stripe", "client_secret": "pay_lvorbry91cIh0tcmYMKu_secret_yANjaH3qyy1kfOKkChUA", "created": "2025-06-18T11:30:12.025Z", "currency": "USD", "customer_id": "knhfhka177777kf1lsklkdlo", "customer": { "id": "knhfhka177777kf1lsklkdlo", "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": "off_session", "off_session": null, "capture_on": null, "capture_method": "automatic", "payment_method": "card", "payment_method_data": { "card": { "last4": "4242", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "424242", "card_extended_bin": null, "card_exp_month": "09", "card_exp_year": "25", "card_holder_name": "joseph Doe", "payment_checks": { "cvc_check": "pass", "address_line1_check": "pass", "address_postal_code_check": null }, "authentication_data": null }, "billing": 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": null, "name": "John Doe", "phone": "999999999", "return_url": "https://google.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": "debit", "connector_label": null, "business_country": null, "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": { "customer_id": "knhfhka177777kf1lsklkdlo", "created_at": 1750246212, "expires": 1750249812, "secret": "epk_db804d8d19f74db8b025ac9c28b60d00" }, "manual_retry_allowed": false, "connector_transaction_id": "pi_3RbKC5B7KCg1IWRp0v6JhJvF", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pi_3RbKC5B7KCg1IWRp0v6JhJvF", "payment_link": null, "profile_id": "pro_45FnuEIqMGyjxm8Z9YlD", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_S7lNHNJ3ZhshzKzxb4Mr", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-06-18T11:45:12.025Z", "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": "pm_B8jkZiFsvTVIPj6Or7jr", "payment_method_status": "active", "updated": "2025-06-18T11:30:18.094Z", "split_payments": { "stripe_split_payment": { "charge_id": "ch_3RbKC5B7KCg1IWRp0juYzSkW", "charge_type": "direct", "application_fees": 100, "transfer_account_id": "acct_1RQUkaB7KCg1IWRp" } }, "frm_metadata": null, "extended_authorization_applied": null, "capture_before": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": "pm_1RbKC4B7KCg1IWRpTw5KYQpL", "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 } ``` MIT -> cURL : ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_J474LWDEIbaWEUYUsem0vNOktW8XRXbWZhhtraxUwJKhMSG3KmkhE3dUEJfg2S9I' \ --header 'Cookie: PHPSESSID=0b47db9d7de94c37b6b272087a9f2fa7' \ --data '{ "amount": 200, "currency": "USD", "customer_id": "knhfhka177777kf1lsklkdlo", "description": "Subsequent Mandate Test Payment (MIT from New CIT Demo)", "confirm": true, "off_session": true, "recurring_details": { "type": "payment_method_id", "data": "pm_B8jkZiFsvTVIPj6Or7jr" }, "split_payments": { "stripe_split_payment": { "charge_type": "direct", "application_fees": 100, "transfer_account_id": "acct_1RQUkaB7KCg1IWRp" } } }' ``` Response: ``` { "payment_id": "pay_HoVJE20WJVKH0jmI0Sfx", "merchant_id": "merchant_1750246108", "status": "succeeded", "amount": 200, "net_amount": 200, "shipping_cost": null, "amount_capturable": 0, "amount_received": 200, "connector": "stripe", "client_secret": "pay_HoVJE20WJVKH0jmI0Sfx_secret_7Y9d2KfeSZehf0ptV6zF", "created": "2025-06-18T11:37:24.360Z", "currency": "USD", "customer_id": "knhfhka177777kf1lsklkdlo", "customer": { "id": "knhfhka177777kf1lsklkdlo", "name": "John Doe", "email": null, "phone": "999999999", "phone_country_code": "+65" }, "description": "Subsequent Mandate Test Payment (MIT from New CIT Demo)", "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": "4242", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "424242", "card_extended_bin": null, "card_exp_month": "09", "card_exp_year": "25", "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": "John Doe", "phone": "999999999", "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": "knhfhka177777kf1lsklkdlo", "created_at": 1750246644, "expires": 1750250244, "secret": "epk_b2e0c070c1aa4fff97dd7e96c0d57fc8" }, "manual_retry_allowed": false, "connector_transaction_id": "pi_3RbKIzB7KCg1IWRp1EDwUqZ3", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pi_3RbKIzB7KCg1IWRp1EDwUqZ3", "payment_link": null, "profile_id": "pro_45FnuEIqMGyjxm8Z9YlD", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_S7lNHNJ3ZhshzKzxb4Mr", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-06-18T11:52:24.360Z", "fingerprint": null, "browser_info": null, "payment_method_id": "pm_B8jkZiFsvTVIPj6Or7jr", "payment_method_status": "active", "updated": "2025-06-18T11:37:26.148Z", "split_payments": { "stripe_split_payment": { "charge_id": "ch_3RbKIzB7KCg1IWRp1CFfiKhZ", "charge_type": "direct", "application_fees": 100, "transfer_account_id": "acct_1RQUkaB7KCg1IWRp" } }, "frm_metadata": null, "extended_authorization_applied": null, "capture_before": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": "pm_1RbKC4B7KCg1IWRpTw5KYQpL", "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 } ``` Case 3: Pass Split Payment object in MIT but different from the one which was sent in CIT (conflicted case) CIT -> cURL : ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_J474LWDEIbaWEUYUsem0vNOktW8XRXbWZhhtraxUwJKhMSG3KmkhE3dUEJfg2S9I' \ --header 'Cookie: PHPSESSID=0b47db9d7de94c37b6b272087a9f2fa7' \ --data '{ "amount": 200, "currency": "USD", "confirm": true, "capture_method": "automatic", "amount_to_capture": 200, "customer_id": "knhfhka177777kf1lsklkdlo", "setup_future_usage": "off_session", "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" } }, "authentication_type": "no_three_ds", "return_url": "https://google.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "payment_method": "card", "payment_method_type": "debit", "payment_method_data": { "card": { "card_number": "4242424242424242", "card_exp_month": "09", "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" } }, "split_payments": { "stripe_split_payment": { "charge_type": "direct", "application_fees": 100, "transfer_account_id": "STRIPE_CONNECT_ACCOUNT_ID" } }, "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" } }' ``` Response: ``` { "payment_id": "pay_lvorbry91cIh0tcmYMKu", "merchant_id": "merchant_1750246108", "status": "succeeded", "amount": 200, "net_amount": 200, "shipping_cost": null, "amount_capturable": 0, "amount_received": 200, "connector": "stripe", "client_secret": "pay_lvorbry91cIh0tcmYMKu_secret_yANjaH3qyy1kfOKkChUA", "created": "2025-06-18T11:30:12.025Z", "currency": "USD", "customer_id": "knhfhka177777kf1lsklkdlo", "customer": { "id": "knhfhka177777kf1lsklkdlo", "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": "off_session", "off_session": null, "capture_on": null, "capture_method": "automatic", "payment_method": "card", "payment_method_data": { "card": { "last4": "4242", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "424242", "card_extended_bin": null, "card_exp_month": "09", "card_exp_year": "25", "card_holder_name": "joseph Doe", "payment_checks": { "cvc_check": "pass", "address_line1_check": "pass", "address_postal_code_check": null }, "authentication_data": null }, "billing": 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": null, "name": "John Doe", "phone": "999999999", "return_url": "https://google.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": "debit", "connector_label": null, "business_country": null, "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": { "customer_id": "knhfhka177777kf1lsklkdlo", "created_at": 1750246212, "expires": 1750249812, "secret": "epk_db804d8d19f74db8b025ac9c28b60d00" }, "manual_retry_allowed": false, "connector_transaction_id": "pi_3RbKC5B7KCg1IWRp0v6JhJvF", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pi_3RbKC5B7KCg1IWRp0v6JhJvF", "payment_link": null, "profile_id": "pro_45FnuEIqMGyjxm8Z9YlD", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_S7lNHNJ3ZhshzKzxb4Mr", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-06-18T11:45:12.025Z", "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": "pm_B8jkZiFsvTVIPj6Or7jr", "payment_method_status": "active", "updated": "2025-06-18T11:30:18.094Z", "split_payments": { "stripe_split_payment": { "charge_id": "ch_3RbKC5B7KCg1IWRp0juYzSkW", "charge_type": "direct", "application_fees": 100, "transfer_account_id": "STRIPE_CONNECT_ACCOUNT_ID" } }, "frm_metadata": null, "extended_authorization_applied": null, "capture_before": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": "pm_1RbKC4B7KCg1IWRpTw5KYQpL", "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 } ``` MIT (application_fees passed is different than the one sent in MIT) -> cURL: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_J474LWDEIbaWEUYUsem0vNOktW8XRXbWZhhtraxUwJKhMSG3KmkhE3dUEJfg2S9I' \ --header 'Cookie: PHPSESSID=0b47db9d7de94c37b6b272087a9f2fa7' \ --data '{ "amount": 200, "currency": "USD", "customer_id": "knhfhka177777kf1lsklkdlo", "description": "Subsequent Mandate Test Payment (MIT from New CIT Demo)", "confirm": true, "off_session": true, "recurring_details": { "type": "payment_method_id", "data": "pm_B8jkZiFsvTVIPj6Or7jr" }, "split_payments": { "stripe_split_payment": { "charge_type": "direct", "application_fees": 10, "transfer_account_id": "STRIPE_CONNECT_ACCOUNT_ID" } } }' ``` Response: ``` { "error": { "type": "invalid_request", "message": "Field transfer_account_id, application_fees, charge_type doesn't match with the ones used during mandate creation", "code": "IR_46", "fields": "transfer_account_id, application_fees, charge_type" } } ``` ## 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/errors/types.rs` **2. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/errors/api_error_response.rs` **3. Core Business Logic** - `crates/router/src/core/errors/utils.rs` - `crates/router/src/core/payments/helpers.rs` **4. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/stripe.rs` - `crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs` **5. Type Definitions** - `crates/common_types/src/payments.rs` - `crates/common_utils/src/types.rs` **6. Other** - `crates/hyperswitch_interfaces/src/errors.rs` - `crates/router/src/compatibility/stripe/errors.rs` - `crates/storage_impl/src/errors.rs` **Code Patterns Applied:** - Define new data structures (1 changes) - Implement new functions (2 changes) - Extend existing types with new fields (17 changes) - Add conditional logic for feature flags or filtering (8 changes) **Detailed Identifier Changes:** Commit 17c30b61: Files to modify: **crates/api_models/src/errors/types.rs** Modify existing code **crates/common_types/src/payments.rs** Modify existing code **crates/common_utils/src/types.rs** Add: - function: private::from - impl: impl From<NonZeroI64> for MinorUnit **crates/hyperswitch_connectors/src/connectors/stripe.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs** Add: - function: private::try_from - struct: pub::StripeSplitPaymentRequest - impl: impl TryFrom<&PaymentsAuthorizeRouterData> for StripeSplitPaymentRequest **crates/hyperswitch_domain_models/src/errors/api_error_response.rs** Modify existing code **crates/hyperswitch_interfaces/src/errors.rs** Modify existing code **crates/router/src/compatibility/stripe/errors.rs** Modify existing code **crates/router/src/core/errors/utils.rs** Modify existing code **crates/router/src/core/payments/helpers.rs** Modify existing code **crates/storage_impl/src/errors.rs** Modify existing code
{"pr_number": 8326, "pr_title": "fix(connector): [STRIPE] Retrieving Connect Account Id from Mandate Metadata in MITs", "merged_at": "2025-06-18T12:23:52Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/errors/types.rs"], "domain": ["crates/hyperswitch_domain_models/src/errors/api_error_response.rs"], "core_business": ["crates/router/src/core/errors/utils.rs", "crates/router/src/core/payments/helpers.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/stripe.rs", "crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs"], "types": ["crates/common_types/src/payments.rs", "crates/common_utils/src/types.rs"], "other": ["crates/hyperswitch_interfaces/src/errors.rs", "crates/router/src/compatibility/stripe/errors.rs", "crates/storage_impl/src/errors.rs"]}, "change_types": {"structs_added": 1, "functions_added": 2, "fields_added": 17, "imports_added": 1, "conditionals_added": 8}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(core): api ,domain and diesel model changes for extended authorization ## 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 --> ### About Extended Authentication. Extended authorization allows merchants to extend the hold period on customer funds beyond the standard authorization window, ensuring availability for delayed or longer-term transactions. Typically, when a payment is authorized (e.g., for a credit or debit card transaction), the issuing bank places a hold on the funds for a limited period—usually 7-10 days for most transactions, whereas extended validity periods can go up to 30 days depending on the card network. ### Use- cases: - Hotel bookings: Hotels may use extended authorization to secure funds for room bookings, but the actual charge may not be completed until after checkout. - Car rentals: Car rental companies may place an extended hold to ensure funds are available for the duration of the rental period and any potential additional charges. - E-commerce: Some merchants may offer products that take time to ship or fulfill and therefore need an extended hold on funds until the order is processed and delivered. ![image](https://github.com/user-attachments/assets/aaea28b8-6bf2-4694-bd97-7b12d1a0506e) ### Capabilities/Changes required at Hyperswitch: - Fields in initial payments requests to specify the extended auth requests - extended validity period - Confirm the extended validity of the auth request and store the validity period against the transaction Changes in this PR ### API contract changes: 1. /payments create request to include `request_extended_authorization` boolean 2. / business profile request and response to include `always_request_extended_authorization` boolean 3. /payments response to include ``` extended_authorization_applied (boolean) capture_before (date) ``` ### DB changes: 1. a) `request_extended_authorization` boolean field to be introduced in payment_intent 3. b) `request_extended_authorization` and `extended_authorization_applied` boolean fields to be introduced in payment_attempt 4. c) `capture_before` date field to be introduced in payment_attempt 5. d) `always_request_extended_authorization` boolean field to be introduced in business_profiles table Other Changes: * Enabled `128-column-tables` feature for diesel import in `diesel_models` and `common_enums`. As a result, compile time increased by an average of 40%. ### 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). --> ## 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 cannot be tested since the feature is incomplete. ## 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/lib.rs` - `crates/api_models/src/payments.rs` - ... and 1 more files **2. Database Layer (Queries & Schema)** - `crates/diesel_models/src/business_profile.rs` - `crates/diesel_models/src/payment_attempt.rs` - `crates/diesel_models/src/payment_intent.rs` - ... and 3 more files **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/business_profile.rs` - `crates/hyperswitch_domain_models/src/payments.rs` - `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs` - ... and 1 more files **4. Core Business Logic** - `crates/router/src/core/admin.rs` - `crates/router/src/core/payments/helpers.rs` - `crates/router/src/core/payments/operations/payment_create.rs` - ... and 2 more files **5. Type Definitions** - `crates/common_utils/src/types.rs` - `crates/common_utils/src/types/primitive_wrappers.rs` - `crates/router/src/types/api/admin.rs` - ... and 1 more files **6. Utils** - `crates/router/src/utils/user/sample_data.rs` **7. Tests** - `crates/router/tests/payments.rs` - `crates/router/tests/payments2.rs` **8. Other** - `api-reference/openapi_spec.json` - `crates/storage_impl/src/mock_db/payment_attempt.rs` - `crates/storage_impl/src/payments/payment_attempt.rs` - ... and 2 more files **Code Patterns Applied:** - Define new data structures (3 changes) - Implement new functions (12 changes) - Extend existing types with new fields (157 changes) **Detailed Identifier Changes:** Commit e14d6c44: Files to modify: **crates/api_models/src/admin.rs** Modify existing code **crates/api_models/src/lib.rs** Add: - trait: pub::ValidateFieldAndGet **crates/api_models/src/payments.rs** Add: - function: pub::validate_and_get_request_extended_authorization - mod: pub::trait_impls **crates/api_models/src/payments/trait_impls.rs** Add: - function: private::validate_field_and_get - impl: impl crate::ValidateFieldAndGet<payments::PaymentsRequest> for common_utils::types::RequestExtendedAuthorizationBool **crates/common_utils/src/types.rs** Add: - mod: pub::primitive_wrappers **crates/common_utils/src/types/primitive_wrappers.rs** Add: - function: private::from - function: private::to_sql - function: private::from_sql - function: private::from - function: pub::is_true - function: private::to_sql - function: private::from_sql - function: private::to_sql - function: private::from_sql - struct: pub::ExtendedAuthorizationAppliedBool - struct: pub::RequestExtendedAuthorizationBool - struct: pub::AlwaysRequestExtendedAuthorization - impl: impl From<bool> for ExtendedAuthorizationAppliedBool - impl: impl diesel::serialize::ToSql<diesel::sql_types::Bool, DB> for ExtendedAuthorizationAppliedBool - impl: impl diesel::deserialize::FromSql<diesel::sql_types::Bool, DB> for ExtendedAuthorizationAppliedBool - impl: impl From<bool> for RequestExtendedAuthorizationBool - impl: impl RequestExtendedAuthorizationBool - impl: impl diesel::serialize::ToSql<diesel::sql_types::Bool, DB> for RequestExtendedAuthorizationBool - impl: impl diesel::deserialize::FromSql<diesel::sql_types::Bool, DB> for RequestExtendedAuthorizationBool - impl: impl diesel::serialize::ToSql<diesel::sql_types::Bool, DB> for AlwaysRequestExtendedAuthorization - impl: impl diesel::deserialize::FromSql<diesel::sql_types::Bool, DB> for AlwaysRequestExtendedAuthorization - mod: pub::bool_wrappers **crates/diesel_models/src/business_profile.rs** Modify existing code **crates/diesel_models/src/payment_attempt.rs** Modify existing code **crates/diesel_models/src/payment_intent.rs** Modify existing code **crates/diesel_models/src/schema.rs** Modify existing code **crates/diesel_models/src/schema_v2.rs** Modify existing code **crates/diesel_models/src/user/sample_data.rs** Modify existing code **crates/hyperswitch_domain_models/src/business_profile.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_attempt.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_intent.rs** Modify existing code **crates/router/src/core/admin.rs** Modify existing code **crates/router/src/core/payments/helpers.rs** Modify existing code **crates/router/src/core/payments/operations/payment_create.rs** Modify existing code **crates/router/src/core/payments/retry.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code **crates/router/src/types/api/admin.rs** Modify existing code **crates/router/src/types/storage/payment_attempt.rs** Modify existing code **crates/router/src/utils/user/sample_data.rs** Modify existing code **crates/router/tests/payments.rs** Modify existing code **crates/router/tests/payments2.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": 6607, "pr_title": "feat(core): api ,domain and diesel model changes for extended authorization", "merged_at": "2025-02-18T16:54:28Z", "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/lib.rs", "crates/api_models/src/payments.rs", "crates/api_models/src/payments/trait_impls.rs"], "database": ["crates/diesel_models/src/business_profile.rs", "crates/diesel_models/src/payment_attempt.rs", "crates/diesel_models/src/payment_intent.rs", "crates/diesel_models/src/schema.rs", "crates/diesel_models/src/schema_v2.rs", "crates/diesel_models/src/user/sample_data.rs"], "domain": ["crates/hyperswitch_domain_models/src/business_profile.rs", "crates/hyperswitch_domain_models/src/payments.rs", "crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "crates/hyperswitch_domain_models/src/payments/payment_intent.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/operations/payment_create.rs", "crates/router/src/core/payments/retry.rs", "crates/router/src/core/payments/transformers.rs"], "types": ["crates/common_utils/src/types.rs", "crates/common_utils/src/types/primitive_wrappers.rs", "crates/router/src/types/api/admin.rs", "crates/router/src/types/storage/payment_attempt.rs"], "utils": ["crates/router/src/utils/user/sample_data.rs"], "tests": ["crates/router/tests/payments.rs", "crates/router/tests/payments2.rs"], "other": ["api-reference/openapi_spec.json", "crates/storage_impl/src/mock_db/payment_attempt.rs", "crates/storage_impl/src/payments/payment_attempt.rs", "migrations/2024-11-13-090548_add-extended-authorization-related-fields/down.sql", "migrations/2024-11-13-090548_add-extended-authorization-related-fields/up.sql"]}, "change_types": {"structs_added": 3, "functions_added": 12, "fields_added": 157, "imports_added": 9}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
fix(connector): [CALIDA] Changed Connector Name From Bluecode to Calida ## 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 --> Renamed Connector Name from Bluecode to Calida. Payment Method Type Bluecode remains the same. ### 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)? --> Payments Create - Auto Capture : cURL : ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_uhvSzhSNBMbsft7V4REfiGxrgyN1ANlV5TOxQdBQACmBStQRhCluFop6DrRgQ19Q' \ --data '{ "amount": 1, "connector": [ "calida" ], "currency": "EUR", "confirm": true, "capture_method": "automatic", "return_url": "https://duck.com", "payment_method": "wallet", "payment_method_type": "bluecode", "payment_method_data": { "wallet": { "bluecode_redirect": {} } }, "billing": { "address": { "first_name": "joseph", "last_name": "Doe", "line1": "1467", "city": "San Fransico", "country": "AT", "zip": "94122" } } } ' ``` Response: ``` { "payment_id": "pay_ucaVwlKVFgehjPCA4HU1", "merchant_id": "merchant_1759778408", "status": "requires_customer_action", "amount": 1, "net_amount": 1, "shipping_cost": null, "amount_capturable": 1, "amount_received": null, "connector": "calida", "client_secret": "pay_ucaVwlKVFgehjPCA4HU1_secret_BrwQdvXiLjp04txLBYu9", "created": "2025-10-07T11:44:15.733Z", "currency": "EUR", "customer_id": null, "customer": 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": "wallet", "payment_method_data": { "wallet": {}, "billing": null }, "payment_token": null, "shipping": null, "billing": { "address": { "city": "San Fransico", "country": "AT", "line1": "1467", "line2": null, "line3": null, "zip": "94122", "state": null, "first_name": "joseph", "last_name": "Doe", "origin_zip": null }, "phone": null, "email": null }, "order_details": null, "email": null, "name": null, "phone": null, "return_url": "https://duck.com/", "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_ucaVwlKVFgehjPCA4HU1/merchant_1759778408/pay_ucaVwlKVFgehjPCA4HU1_1" }, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "bluecode", "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": "QPWKQZZW7V1YJWXQ2YK0", "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": "4SEOQCZV11MR9NDOR2F99JUDTL", "payment_link": null, "profile_id": "pro_rWvixdpO5KZLlPeUmLCU", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_UM2Z3gSLHpaGgCuCrnPc", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-10-07T11:59:15.733Z", "fingerprint": null, "browser_info": null, "payment_channel": null, "payment_method_id": null, "network_transaction_id": null, "payment_method_status": null, "updated": "2025-10-07T11:44:17.650Z", "split_payments": null, "frm_metadata": null, "extended_authorization_applied": null, "request_extended_authorization": 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, "enable_overcapture": null, "is_overcapture_enabled": null, "network_details": null, "is_stored_credential": null, "mit_category": null } ``` <img width="1728" height="966" alt="Screenshot 2025-10-07 at 5 24 40 PM" src="https://github.com/user-attachments/assets/9f4142aa-e656-4fdc-9276-c0ebcad55bd4" /> Upon receiving IncomingWebhooks, the payments gets to terminal state. PSync: cURL: ``` curl --location 'http://localhost:8080/payments/pay_ucaVwlKVFgehjPCA4HU1?force_sync=true&expand_captures=true&expand_attempts=true' \ --header 'Accept: application/json' \ --header 'api-key: dev_uhvSzhSNBMbsft7V4REfiGxrgyN1ANlV5TOxQdBQACmBStQRhCluFop6DrRgQ19Q' \ --data '' ``` Response: ``` { "payment_id": "pay_ucaVwlKVFgehjPCA4HU1", "merchant_id": "merchant_1759778408", "status": "succeeded", "amount": 1, "net_amount": 1, "shipping_cost": null, "amount_capturable": 0, "amount_received": 1, "connector": "calida", "client_secret": "pay_ucaVwlKVFgehjPCA4HU1_secret_BrwQdvXiLjp04txLBYu9", "created": "2025-10-07T11:44:15.733Z", "currency": "EUR", "customer_id": null, "customer": null, "description": null, "refunds": null, "disputes": null, "attempts": [ { "attempt_id": "pay_ucaVwlKVFgehjPCA4HU1_1", "status": "charged", "amount": 1, "order_tax_amount": null, "currency": "EUR", "connector": "calida", "error_message": null, "payment_method": "wallet", "connector_transaction_id": "QPWKQZZW7V1YJWXQ2YK0", "capture_method": "automatic", "authentication_type": "no_three_ds", "created_at": "2025-10-07T11:44:15.733Z", "modified_at": "2025-10-07T11:44:48.963Z", "cancellation_reason": null, "mandate_id": null, "error_code": null, "payment_token": null, "connector_metadata": null, "payment_experience": null, "payment_method_type": "bluecode", "reference_id": "4SEOQCZV11MR9NDOR2F99JUDTL", "unified_code": null, "unified_message": null, "client_source": null, "client_version": 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": "San Fransico", "country": "AT", "line1": "1467", "line2": null, "line3": null, "zip": "94122", "state": null, "first_name": "joseph", "last_name": "Doe", "origin_zip": null }, "phone": null, "email": null }, "order_details": null, "email": null, "name": null, "phone": null, "return_url": "https://duck.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": "bluecode", "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": "QPWKQZZW7V1YJWXQ2YK0", "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": "4SEOQCZV11MR9NDOR2F99JUDTL", "payment_link": null, "profile_id": "pro_rWvixdpO5KZLlPeUmLCU", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_UM2Z3gSLHpaGgCuCrnPc", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-10-07T11:59:15.733Z", "fingerprint": null, "browser_info": null, "payment_channel": null, "payment_method_id": null, "network_transaction_id": null, "payment_method_status": null, "updated": "2025-10-07T11:44:48.963Z", "split_payments": null, "frm_metadata": null, "extended_authorization_applied": null, "request_extended_authorization": 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, "enable_overcapture": null, "is_overcapture_enabled": null, "network_details": null, "is_stored_credential": null, "mit_category": 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 - [x] 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/connector_endpoints.rs` **2. Core Business Logic** - `crates/router/src/core/connector_validation.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 15 more files **4. Type Definitions** - `crates/router/src/types/api/feature_matrix.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** - `api-reference/v1/openapi_spec_v1.json` - `api-reference/v2/openapi_spec_v2.json` **Code Patterns Applied:** - Define new data structures (11 changes) - Implement new functions (2 changes) - Extend existing types with new fields (22 changes) **Detailed Identifier Changes:** Commit 04a14e39: 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** Remove: - mod: pub::bluecode Add: - mod: pub::calida **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/connector_endpoints.rs** Modify existing code **crates/payment_methods/src/configs/payment_connector_required_fields.rs** Modify existing code **crates/router/src/connector.rs** Modify existing code **crates/router/src/core/connector_validation.rs** Modify existing code **crates/router/src/types/api/connector_mapping.rs** Modify existing code **crates/router/src/types/api/feature_matrix.rs** Modify existing code **crates/router/src/types/connector_transformers.rs** Modify existing code **crates/router/tests/connectors/main.rs** Remove: - mod: private::bluecode Add: - mod: private::calida **crates/test_utils/src/connector_auth.rs** Modify existing code
{"pr_number": 9712, "pr_title": "fix(connector): [CALIDA] Changed Connector Name From Bluecode to Calida", "merged_at": "2025-10-07T16:39:34Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/connector_endpoints.rs"], "core_business": ["crates/router/src/core/connector_validation.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.rs", "crates/hyperswitch_connectors/src/connectors/bluecode.rs", "crates/hyperswitch_connectors/src/connectors/bluecode/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/payment_methods/src/configs/payment_connector_required_fields.rs", "crates/router/src/connector.rs", "crates/router/src/types/api/connector_mapping.rs", "crates/router/src/types/connector_transformers.rs", "crates/router/tests/connectors/bluecode.rs", "crates/router/tests/connectors/main.rs", "crates/router/tests/connectors/sample_auth.toml", "crates/test_utils/src/connector_auth.rs"], "types": ["crates/router/src/types/api/feature_matrix.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"]}, "change_types": {"structs_added": 11, "functions_added": 2, "enums_added": 1, "fields_added": 22, "imports_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
refactor(router): make error_type generic in domain_models inorder to avoid conversion of errors in storage_impl ## 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 --> Currently we are creating the interfaces for CRUD operations for each resource in hyperswitch_domain_models which returns a result of Result<Resource, hyperswitch_domain_models::errors::StorageError> and we are implementing them in storage_impl which is expected to return hyperswitch_domain_models::errors::StorageError. Instead we are making the result in hyperswitch_domain_models to Result<Resource, Self::Error> by which anyone implementing the trait can pass their own error type, this way we can directly return storage_impl::errors::StorageError directly. So a conversion from DomainStorageError to StorageError is not needed. Datastorage error can be completely replaced with StorageError as both have conversion of ApplicationErrorResponse and other required errors ### 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. No business logic is changed 2. Compilation of v1 and v2 working fine and all the cypress tests passes ## 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/errors.rs` - `crates/hyperswitch_domain_models/src/payment_methods.rs` - `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs` - ... and 3 more files **2. Core Business Logic** - `crates/router/src/core/errors.rs` - `crates/router/src/core/errors/user/sample_data.rs` - `crates/router/src/core/errors/utils.rs` - ... and 6 more files **3. Utils** - `crates/storage_impl/src/utils.rs` **4. Other** - `api-reference-v2/openapi_spec.json` - `api-reference/openapi_spec.json` - `crates/analytics/src/opensearch.rs` - ... and 21 more files **Code Patterns Applied:** - Implement new functions (4 changes) - Extend existing types with new fields (18 changes) - Add conditional logic for feature flags or filtering (1 changes) - Modify database queries (12 changes) **Detailed Identifier Changes:** Commit 80218d0f: Files to modify: **crates/analytics/src/opensearch.rs** Modify existing code **crates/hyperswitch_domain_models/src/errors.rs** Remove: - function: pub::is_db_not_found - enum: pub::StorageError - impl: impl StorageError **crates/hyperswitch_domain_models/src/payment_methods.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_attempt.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_intent.rs** Modify existing code **crates/hyperswitch_domain_models/src/payouts/payout_attempt.rs** Modify existing code **crates/hyperswitch_domain_models/src/payouts/payouts.rs** Modify existing code **crates/payment_methods/src/state.rs** Modify existing code **crates/router/src/core/errors.rs** Modify existing code **crates/router/src/core/errors/user/sample_data.rs** Modify existing code **crates/router/src/core/errors/utils.rs** Modify existing code **crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs** Modify existing code **crates/router/src/core/payments.rs** Modify existing code **crates/router/src/core/payments/helpers.rs** Modify existing code **crates/router/src/core/payments/operations/payment_status.rs** Modify existing code **crates/router/src/core/payouts/helpers.rs** Modify existing code **crates/router/src/core/payouts/validator.rs** Modify existing code **crates/router/src/db.rs** Modify existing code **crates/router/src/db/kafka_store.rs** Modify existing code **crates/router/src/db/user/sample_data.rs** Modify existing code **crates/router/src/events.rs** Modify existing code **crates/router/src/services.rs** Modify existing code **crates/storage_impl/src/database/store.rs** Modify existing code **crates/storage_impl/src/errors.rs** Remove: - function: private::switch - function: private::into - impl: impl ErrorSwitch<DataStorageError> for StorageError - impl: impl Into<DataStorageError> for &StorageError **crates/storage_impl/src/kv_router_store.rs** Add: - enum: pub::FindResourceBy - trait: pub::DomainType - trait: pub::StorageModel - impl: impl DomainType for T - impl: impl StorageModel<D> for T **crates/storage_impl/src/lib.rs** Modify existing code **crates/storage_impl/src/lookup.rs** Modify existing code **crates/storage_impl/src/mock_db.rs** Modify existing code **crates/storage_impl/src/mock_db/payment_attempt.rs** Modify existing code **crates/storage_impl/src/mock_db/payment_intent.rs** Modify existing code **crates/storage_impl/src/mock_db/payout_attempt.rs** Modify existing code **crates/storage_impl/src/mock_db/payouts.rs** Modify existing code **crates/storage_impl/src/payment_method.rs** Modify existing code **crates/storage_impl/src/payments/payment_attempt.rs** Modify existing code **crates/storage_impl/src/payments/payment_intent.rs** Modify existing code **crates/storage_impl/src/payouts/payout_attempt.rs** Modify existing code **crates/storage_impl/src/payouts/payouts.rs** Modify existing code **crates/storage_impl/src/utils.rs** Modify existing code
{"pr_number": 7537, "pr_title": "refactor(router): make error_type generic in domain_models inorder to avoid conversion of errors in storage_impl", "merged_at": "2025-03-21T14:08:47Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/errors.rs", "crates/hyperswitch_domain_models/src/payment_methods.rs", "crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "crates/hyperswitch_domain_models/src/payments/payment_intent.rs", "crates/hyperswitch_domain_models/src/payouts/payout_attempt.rs", "crates/hyperswitch_domain_models/src/payouts/payouts.rs"], "core_business": ["crates/router/src/core/errors.rs", "crates/router/src/core/errors/user/sample_data.rs", "crates/router/src/core/errors/utils.rs", "crates/router/src/core/payment_methods/tokenize/payment_method_executor.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/operations/payment_status.rs", "crates/router/src/core/payouts/helpers.rs", "crates/router/src/core/payouts/validator.rs"], "utils": ["crates/storage_impl/src/utils.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/analytics/src/opensearch.rs", "crates/payment_methods/src/state.rs", "crates/router/src/db.rs", "crates/router/src/db/kafka_store.rs", "crates/router/src/db/user/sample_data.rs", "crates/router/src/events.rs", "crates/router/src/services.rs", "crates/storage_impl/src/database/store.rs", "crates/storage_impl/src/errors.rs", "crates/storage_impl/src/kv_router_store.rs", "crates/storage_impl/src/lib.rs", "crates/storage_impl/src/lookup.rs", "crates/storage_impl/src/mock_db.rs", "crates/storage_impl/src/mock_db/payment_attempt.rs", "crates/storage_impl/src/mock_db/payment_intent.rs", "crates/storage_impl/src/mock_db/payout_attempt.rs", "crates/storage_impl/src/mock_db/payouts.rs", "crates/storage_impl/src/payment_method.rs", "crates/storage_impl/src/payments/payment_attempt.rs", "crates/storage_impl/src/payments/payment_intent.rs", "crates/storage_impl/src/payouts/payout_attempt.rs", "crates/storage_impl/src/payouts/payouts.rs"]}, "change_types": {"functions_added": 4, "enums_added": 1, "fields_added": 18, "imports_added": 18, "conditionals_added": 1, "database_queries": 12}, "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 PR addresses the clippy lints occurring due to new rust version 1.88.0 ### 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. just clippy ![image](https://github.com/user-attachments/assets/36b22a77-e4f4-47c6-a233-c472459c15cd) 2. just clippy_v2 ![image](https://github.com/user-attachments/assets/7c5a9e21-78df-4db0-93f9-5b6e46cc54ac) ## 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/enums.rs` - `crates/api_models/src/payment_methods.rs` - ... and 1 more files **2. Database Layer (Queries & Schema)** - `crates/analytics/src/query.rs` - `crates/diesel_models/src/query/payment_attempt.rs` - `crates/diesel_models/src/refund.rs` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/disputes.rs` - `crates/hyperswitch_domain_models/src/errors/api_error_response.rs` - `crates/hyperswitch_domain_models/src/payment_methods.rs` - ... and 2 more files **4. Core Business Logic** - `crates/external_services/src/aws_kms/core.rs` - `crates/payment_methods/src/core/migration.rs` - `crates/router/src/core/admin.rs` - ... and 29 more files **5. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/adyen.rs` - `crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs` - `crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs` - ... and 46 more files **6. Type Definitions** - `crates/common_utils/src/types.rs` - `crates/router/src/types/api.rs` - `crates/router/src/types/domain/user.rs` **7. Utils** - `crates/common_utils/src/link_utils.rs` - `crates/common_utils/src/new_type.rs` - `crates/common_utils/src/pii.rs` - ... and 7 more files **8. Configuration Files** - `Cargo.toml` - `crates/router/src/configs/settings.rs` **9. Other** - `crates/analytics/src/clickhouse.rs` - `crates/analytics/src/lib.rs` - `crates/analytics/src/opensearch.rs` - ... and 39 more files **Code Patterns Applied:** - Extend existing types with new fields (36 changes) - Modify database queries (7 changes) **Detailed Identifier Changes:** Commit 20b52f11: Files to modify: **crates/analytics/src/clickhouse.rs** Modify existing code **crates/analytics/src/lib.rs** Modify existing code **crates/analytics/src/opensearch.rs** Modify existing code **crates/analytics/src/payments/metrics/sessionized_metrics/failure_reasons.rs** Modify existing code **crates/analytics/src/query.rs** Modify existing code **crates/analytics/src/refunds/metrics/sessionized_metrics/refund_error_message.rs** Modify existing code **crates/analytics/src/refunds/metrics/sessionized_metrics/refund_reason.rs** Modify existing code **crates/analytics/src/sqlx.rs** Modify existing code **crates/api_models/src/admin.rs** Modify existing code **crates/api_models/src/enums.rs** Modify existing code **crates/api_models/src/payment_methods.rs** Modify existing code **crates/api_models/src/routing.rs** Modify existing code **crates/common_enums/src/enums/ui.rs** Modify existing code **crates/common_utils/src/link_utils.rs** Modify existing code **crates/common_utils/src/new_type.rs** Modify existing code **crates/common_utils/src/pii.rs** Modify existing code **crates/common_utils/src/types.rs** Modify existing code **crates/common_utils/src/validation.rs** Modify existing code **crates/common_utils/tests/percentage.rs** Modify existing code **crates/currency_conversion/src/conversion.rs** Modify existing code **crates/diesel_models/src/query/payment_attempt.rs** Modify existing code **crates/diesel_models/src/refund.rs** Modify existing code **crates/euclid_macros/src/inner/knowledge.rs** Modify existing code **crates/external_services/src/aws_kms/core.rs** Modify existing code **crates/external_services/src/grpc_client/dynamic_routing.rs** Modify existing code **crates/external_services/src/http_client/client.rs** Modify existing code **crates/hsdev/src/main.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/adyen.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/bluesnap.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/cryptopay.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/fiuu.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/getnet.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/gpayments.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/jpmorgan.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/klarna.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/netcetera.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/nexinets.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/nomupay.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/noon.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/novalnet.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/payeezy.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/paypal.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/santander.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/santander/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/stripe.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/tokenio.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/trustpay.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/worldpay/response.rs** Modify existing code **crates/hyperswitch_connectors/src/utils.rs** Modify existing code **crates/hyperswitch_domain_models/src/disputes.rs** Modify existing code **crates/hyperswitch_domain_models/src/errors/api_error_response.rs** Modify existing code **crates/hyperswitch_domain_models/src/payment_methods.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_intent.rs** Modify existing code **crates/hyperswitch_domain_models/src/refunds.rs** Modify existing code **crates/hyperswitch_interfaces/src/api.rs** Modify existing code **crates/hyperswitch_interfaces/src/events/routing_api_logs.rs** Modify existing code **crates/hyperswitch_interfaces/src/integrity.rs** Modify existing code **crates/hyperswitch_interfaces/src/webhooks.rs** Modify existing code **crates/masking/src/secret.rs** Modify existing code **crates/payment_methods/src/core/migration.rs** Modify existing code **crates/redis_interface/src/commands.rs** Modify existing code **crates/router/src/compatibility/wrap.rs** Modify existing code **crates/router/src/configs/settings.rs** Modify existing code **crates/router/src/connector/utils.rs** Modify existing code **crates/router/src/core/admin.rs** Modify existing code **crates/router/src/core/authentication/utils.rs** Modify existing code **crates/router/src/core/errors/user.rs** Modify existing code **crates/router/src/core/errors/utils.rs** Modify existing code **crates/router/src/core/files.rs** Modify existing code **crates/router/src/core/payment_link.rs** Modify existing code **crates/router/src/core/payment_link/validator.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.rs** Modify existing code **crates/router/src/core/payment_methods/validator.rs** Modify existing code **crates/router/src/core/payments.rs** Modify existing code **crates/router/src/core/payments/flows/authorize_flow.rs** Modify existing code **crates/router/src/core/payments/helpers.rs** Modify existing code **crates/router/src/core/payments/routing/utils.rs** Modify existing code **crates/router/src/core/payments/types.rs** Modify existing code **crates/router/src/core/payout_link.rs** Modify existing code **crates/router/src/core/payouts.rs** Modify existing code **crates/router/src/core/payouts/helpers.rs** Modify existing code **crates/router/src/core/payouts/validator.rs** Modify existing code **crates/router/src/core/proxy.rs** Modify existing code **crates/router/src/core/recon.rs** Modify existing code **crates/router/src/core/revenue_recovery/types.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/core/user_role/role.rs** Modify existing code **crates/router/src/core/utils.rs** Modify existing code **crates/router/src/core/utils/refunds_validator.rs** Modify existing code **crates/router/src/core/verification/utils.rs** Modify existing code **crates/router/src/core/webhooks/recovery_incoming.rs** Modify existing code **crates/router/src/db/address.rs** Modify existing code **crates/router/src/db/mandate.rs** Modify existing code **crates/router/src/db/merchant_account.rs** Modify existing code **crates/router/src/db/merchant_key_store.rs** Modify existing code **crates/router/src/db/organization.rs** Modify existing code **crates/router/src/db/reverse_lookup.rs** Modify existing code **crates/router/src/db/user/theme.rs** Modify existing code **crates/router/src/db/user_authentication_method.rs** Modify existing code **crates/router/src/db/user_key_store.rs** Modify existing code **crates/router/src/db/user_role.rs** Modify existing code **crates/router/src/middleware.rs** Modify existing code **crates/router/src/routes/dummy_connector/types.rs** Modify existing code **crates/router/src/routes/payment_methods.rs** Modify existing code **crates/router/src/services/api.rs** Modify existing code **crates/router/src/services/api/generic_link_response.rs** Modify existing code **crates/router/src/services/authentication.rs** Modify existing code **crates/router/src/services/authentication/blacklist.rs** Modify existing code **crates/router/src/services/authentication/detached.rs** Modify existing code **crates/router/src/types/api.rs** Modify existing code **crates/router/src/types/api/connector_onboarding/paypal.rs** Modify existing code **crates/router/src/types/domain/user.rs** Modify existing code **crates/router/src/utils/connector_onboarding.rs** Modify existing code **crates/router/src/utils/connector_onboarding/paypal.rs** Modify existing code **crates/router/src/utils/currency.rs** Modify existing code **crates/router/src/utils/user.rs** Modify existing code **crates/router/src/utils/user/theme.rs** Modify existing code **crates/router/src/utils/user_role.rs** Modify existing code **crates/router/tests/connectors/adyen.rs** Modify existing code **crates/router/tests/connectors/cybersource.rs** Modify existing code **crates/router/tests/connectors/dlocal.rs** Modify existing code **crates/router/tests/connectors/powertranz.rs** Modify existing code **crates/router/tests/connectors/stripe.rs** Modify existing code **crates/storage_impl/src/kv_router_store.rs** Modify existing code **crates/storage_impl/src/payment_method.rs** Modify existing code **crates/storage_impl/src/payments/payment_attempt.rs** Modify existing code **crates/storage_impl/src/payouts/payout_attempt.rs** Modify existing code **crates/storage_impl/src/redis/kv_store.rs** Modify existing code **crates/test_utils/src/newman_runner.rs** Modify existing code **crates/test_utils/tests/connectors/selenium.rs** Modify existing code
{"pr_number": 8498, "pr_title": "chore: address Rust 1.88.0 clippy lints", "merged_at": "2025-07-02T07:17:47Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"api_models": ["crates/api_models/src/admin.rs", "crates/api_models/src/enums.rs", "crates/api_models/src/payment_methods.rs", "crates/api_models/src/routing.rs"], "database": ["crates/analytics/src/query.rs", "crates/diesel_models/src/query/payment_attempt.rs", "crates/diesel_models/src/refund.rs"], "domain": ["crates/hyperswitch_domain_models/src/disputes.rs", "crates/hyperswitch_domain_models/src/errors/api_error_response.rs", "crates/hyperswitch_domain_models/src/payment_methods.rs", "crates/hyperswitch_domain_models/src/payments/payment_intent.rs", "crates/hyperswitch_domain_models/src/refunds.rs"], "core_business": ["crates/external_services/src/aws_kms/core.rs", "crates/payment_methods/src/core/migration.rs", "crates/router/src/core/admin.rs", "crates/router/src/core/authentication/utils.rs", "crates/router/src/core/errors/user.rs", "crates/router/src/core/errors/utils.rs", "crates/router/src/core/files.rs", "crates/router/src/core/payment_link.rs", "crates/router/src/core/payment_link/validator.rs", "crates/router/src/core/payment_methods.rs", "crates/router/src/core/payment_methods/cards.rs", "crates/router/src/core/payment_methods/tokenize.rs", "crates/router/src/core/payment_methods/validator.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/flows/authorize_flow.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/routing/utils.rs", "crates/router/src/core/payments/types.rs", "crates/router/src/core/payout_link.rs", "crates/router/src/core/payouts.rs", "crates/router/src/core/payouts/helpers.rs", "crates/router/src/core/payouts/validator.rs", "crates/router/src/core/proxy.rs", "crates/router/src/core/recon.rs", "crates/router/src/core/revenue_recovery/types.rs", "crates/router/src/core/routing.rs", "crates/router/src/core/routing/helpers.rs", "crates/router/src/core/user_role/role.rs", "crates/router/src/core/utils.rs", "crates/router/src/core/utils/refunds_validator.rs", "crates/router/src/core/verification/utils.rs", "crates/router/src/core/webhooks/recovery_incoming.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/adyen.rs", "crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs", "crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs", "crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs", "crates/hyperswitch_connectors/src/connectors/bluesnap.rs", "crates/hyperswitch_connectors/src/connectors/cryptopay.rs", "crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs", "crates/hyperswitch_connectors/src/connectors/datatrans/transformers.rs", "crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/fiuu.rs", "crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs", "crates/hyperswitch_connectors/src/connectors/getnet.rs", "crates/hyperswitch_connectors/src/connectors/gpayments.rs", "crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/jpmorgan.rs", "crates/hyperswitch_connectors/src/connectors/klarna.rs", "crates/hyperswitch_connectors/src/connectors/netcetera.rs", "crates/hyperswitch_connectors/src/connectors/nexinets.rs", "crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs", "crates/hyperswitch_connectors/src/connectors/nomupay.rs", "crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/noon.rs", "crates/hyperswitch_connectors/src/connectors/novalnet.rs", "crates/hyperswitch_connectors/src/connectors/payeezy.rs", "crates/hyperswitch_connectors/src/connectors/paypal.rs", "crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs", "crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs", "crates/hyperswitch_connectors/src/connectors/riskified/transformers/api.rs", "crates/hyperswitch_connectors/src/connectors/santander.rs", "crates/hyperswitch_connectors/src/connectors/santander/transformers.rs", "crates/hyperswitch_connectors/src/connectors/stripe.rs", "crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs", "crates/hyperswitch_connectors/src/connectors/tokenio.rs", "crates/hyperswitch_connectors/src/connectors/trustpay.rs", "crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs", "crates/hyperswitch_connectors/src/connectors/worldpay/response.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/connector/utils.rs", "crates/router/src/routes/dummy_connector/types.rs", "crates/router/src/types/api/connector_onboarding/paypal.rs", "crates/router/src/utils/connector_onboarding.rs", "crates/router/src/utils/connector_onboarding/paypal.rs", "crates/router/tests/connectors/adyen.rs", "crates/router/tests/connectors/cybersource.rs", "crates/router/tests/connectors/dlocal.rs", "crates/router/tests/connectors/powertranz.rs", "crates/router/tests/connectors/stripe.rs", "crates/test_utils/tests/connectors/selenium.rs"], "types": ["crates/common_utils/src/types.rs", "crates/router/src/types/api.rs", "crates/router/src/types/domain/user.rs"], "utils": ["crates/common_utils/src/link_utils.rs", "crates/common_utils/src/new_type.rs", "crates/common_utils/src/pii.rs", "crates/common_utils/src/validation.rs", "crates/common_utils/tests/percentage.rs", "crates/router/src/utils/currency.rs", "crates/router/src/utils/user.rs", "crates/router/src/utils/user/theme.rs", "crates/router/src/utils/user_role.rs", "crates/test_utils/src/newman_runner.rs"], "config": ["Cargo.toml", "crates/router/src/configs/settings.rs"], "other": ["crates/analytics/src/clickhouse.rs", "crates/analytics/src/lib.rs", "crates/analytics/src/opensearch.rs", "crates/analytics/src/payments/metrics/sessionized_metrics/failure_reasons.rs", "crates/analytics/src/refunds/metrics/sessionized_metrics/refund_error_message.rs", "crates/analytics/src/refunds/metrics/sessionized_metrics/refund_reason.rs", "crates/analytics/src/sqlx.rs", "crates/common_enums/src/enums/ui.rs", "crates/currency_conversion/src/conversion.rs", "crates/euclid_macros/src/inner/knowledge.rs", "crates/external_services/src/grpc_client/dynamic_routing.rs", "crates/external_services/src/http_client/client.rs", "crates/hsdev/src/main.rs", "crates/hyperswitch_interfaces/src/api.rs", "crates/hyperswitch_interfaces/src/events/routing_api_logs.rs", "crates/hyperswitch_interfaces/src/integrity.rs", "crates/hyperswitch_interfaces/src/webhooks.rs", "crates/masking/src/secret.rs", "crates/redis_interface/src/commands.rs", "crates/router/src/compatibility/wrap.rs", "crates/router/src/db/address.rs", "crates/router/src/db/mandate.rs", "crates/router/src/db/merchant_account.rs", "crates/router/src/db/merchant_key_store.rs", "crates/router/src/db/organization.rs", "crates/router/src/db/reverse_lookup.rs", "crates/router/src/db/user/theme.rs", "crates/router/src/db/user_authentication_method.rs", "crates/router/src/db/user_key_store.rs", "crates/router/src/db/user_role.rs", "crates/router/src/middleware.rs", "crates/router/src/routes/payment_methods.rs", "crates/router/src/services/api.rs", "crates/router/src/services/api/generic_link_response.rs", "crates/router/src/services/authentication.rs", "crates/router/src/services/authentication/blacklist.rs", "crates/router/src/services/authentication/detached.rs", "crates/storage_impl/src/kv_router_store.rs", "crates/storage_impl/src/payment_method.rs", "crates/storage_impl/src/payments/payment_attempt.rs", "crates/storage_impl/src/payouts/payout_attempt.rs", "crates/storage_impl/src/redis/kv_store.rs"]}, "change_types": {"fields_added": 36, "database_queries": 7}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
refactor(connector): [STRIPE] Bank Transfer Api Refactor ## 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 Sources API for Stripe Bank Transfer (Ach, Multibanco) got deprecated. They are supporting `/v1/payment_intents` now. Removed the pre processing implementations. Added new flow for Stripe Ach, and Multibanco bank transfer through payment_intents 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 <!-- 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)? --> Stripe Connector Create: ``` curl --location 'http://localhost:8080/account/merchant_1742504299/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' \ --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": "abc" }, "test_mode": false, "disabled": false, "payment_methods_enabled": [ { "payment_method": "bank_transfer", "payment_method_types": [ { "payment_method_type": "ach", "payment_experience": "redirect_to_url", "minimum_amount": 0, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": false }, { "payment_method_type": "multibanco", "payment_experience": "redirect_to_url", "minimum_amount": 0, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": false } ] }, ], "metadata": { "city": "NY", "unit": "245" } }' ``` Payments Create (Ach): ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_DkLE5RDYmYfMXF2NT9hLmd17GgD8G9QqFLwIg0rc7nJ4Q5J5XLdUgsyVDEvUsJDU' \ --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": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "authentication_type": "no_three_ds", "return_url": "https://duck.com", "payment_method": "bank_transfer", "payment_method_type": "ach", "payment_method_data": { "bank_transfer": { "ach_bank_transfer": { "billing_details": { "email": "guest123@gmail.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": "9123456789", "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": "9123456789", "country_code": "+91" } }, "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } }' ``` Response (Ach): ``` { "payment_id": "pay_7ZKbiX2EHAVRLh1r1BYt", "merchant_id": "merchant_1742817375", "status": "requires_customer_action", "amount": 6540, "net_amount": 6540, "shipping_cost": null, "amount_capturable": 6540, "amount_received": 0, "connector": "stripe", "client_secret": "pay_7ZKbiX2EHAVRLh1r1BYt_secret_xzdGn4IIvA6OwX9LP568", "created": "2025-03-25T06:48:54.533Z", "currency": "USD", "customer_id": "StripeCustomer", "customer": { "id": "StripeCustomer", "name": "John Doe", "email": "guest@example.com", "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": "bank_transfer", "payment_method_data": { "bank_transfer": { "ach": {} }, "billing": null }, "payment_token": "token_PR45fZhInFhPPvp9FjA5", "shipping": { "address": { "city": "San Fransico", "country": "BE", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "joseph", "last_name": "Doe" }, "phone": { "number": "9123456789", "country_code": "+91" }, "email": null }, "billing": { "address": { "city": "San Fransico", "country": "BE", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "joseph", "last_name": "Doe" }, "phone": { "number": "9123456789", "country_code": "+91" }, "email": null }, "order_details": null, "email": "guest@example.com", "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": "display_bank_transfer_information", "bank_transfer_steps_and_charges_details": { "ach_credit_transfer": { "account_number": "11119948460965268", "bank_name": "US Test Bank", "routing_number": "999999999", "swift_code": "TESTUS99XXX" }, "receiver": 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": "StripeCustomer", "created_at": 1742885334, "expires": 1742888934, "secret": "epk_ab9944cdd44c4055ae8d3585faa91617" }, "manual_retry_allowed": null, "connector_transaction_id": "pi_3R6RIAAGHc77EJXX3P9uGfmW", "frm_message": null, "metadata": { "udf1": "value1", "login_date": "2019-09-10T10:11:12Z", "new_customer": "true" }, "connector_metadata": null, "feature_metadata": null, "reference_id": "pi_3R6RIAAGHc77EJXX3P9uGfmW", "payment_link": null, "profile_id": "pro_dWLJb33oDX0SjuTQuEqu", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_xJLs90Y2Ho0DxZHzsDxN", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-03-25T07:03:54.533Z", "fingerprint": null, "browser_info": null, "payment_method_id": null, "payment_method_status": null, "updated": "2025-03-25T06:48:55.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, "issuer_error_code": null, "issuer_error_message": null } ``` Payments Create (Multibanco): ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_DkLE5RDYmYfMXF2NT9hLmd17GgD8G9QqFLwIg0rc7nJ4Q5J5XLdUgsyVDEvUsJDU' \ --data-raw '{ "amount": 6540, "currency": "EUR", "confirm": true, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 6540, "customer_id": "StripeCustomer", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "authentication_type": "no_three_ds", "return_url": "https://duck.com", "payment_method": "bank_transfer", "payment_method_type": "multibanco", "payment_method_data": { "bank_transfer": { "multibanco_bank_transfer": { "billing_details": { "email": "guest123@gmail.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": "9123456789", "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": "9123456789", "country_code": "+91" } }, "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } }' ``` Response (Multibanco): ``` { "payment_id": "pay_6WOPlqGR6uAZN7cYt7ng", "merchant_id": "merchant_1742817375", "status": "requires_customer_action", "amount": 6540, "net_amount": 6540, "shipping_cost": null, "amount_capturable": 6540, "amount_received": 0, "connector": "stripe", "client_secret": "pay_6WOPlqGR6uAZN7cYt7ng_secret_Bw0Xr3r4ho4RgpGrsTfX", "created": "2025-03-25T06:47:45.664Z", "currency": "EUR", "customer_id": "StripeCustomer", "customer": { "id": "StripeCustomer", "name": "John Doe", "email": "guest@example.com", "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": "bank_transfer", "payment_method_data": { "bank_transfer": { "multibanco": {} }, "billing": null }, "payment_token": "token_5TpR9LzOUgJkiN5Bqg3w", "shipping": { "address": { "city": "San Fransico", "country": "BE", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "joseph", "last_name": "Doe" }, "phone": { "number": "9123456789", "country_code": "+91" }, "email": null }, "billing": { "address": { "city": "San Fransico", "country": "BE", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "joseph", "last_name": "Doe" }, "phone": { "number": "9123456789", "country_code": "+91" }, "email": null }, "order_details": null, "email": "guest@example.com", "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": "display_bank_transfer_information", "bank_transfer_steps_and_charges_details": { "multibanco": { "reference": "123456789", "entity": "12345" }, "receiver": null } }, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "multibanco", "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": 1742885265, "expires": 1742888865, "secret": "epk_224ce3df64dc453fb70c19f4a3060af1" }, "manual_retry_allowed": null, "connector_transaction_id": "pi_3R6RH4AGHc77EJXX3hFkMdRR", "frm_message": null, "metadata": { "udf1": "value1", "login_date": "2019-09-10T10:11:12Z", "new_customer": "true" }, "connector_metadata": null, "feature_metadata": null, "reference_id": "pi_3R6RH4AGHc77EJXX3hFkMdRR", "payment_link": null, "profile_id": "pro_dWLJb33oDX0SjuTQuEqu", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_xJLs90Y2Ho0DxZHzsDxN", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-03-25T07:02:45.664Z", "fingerprint": null, "browser_info": null, "payment_method_id": null, "payment_method_status": null, "updated": "2025-03-25T06:47:46.843Z", "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 } ``` ## 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/flows.rs` **2. External Connector Integration** - `crates/router/src/connector/stripe.rs` - `crates/router/src/connector/stripe/transformers.rs` **Code Patterns Applied:** - Define new data structures (3 changes) - Extend existing types with new fields (45 changes) **Detailed Identifier Changes:** Commit e9433d98: Files to modify: **crates/router/src/connector/stripe.rs** Remove: - 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 - impl: impl api::PaymentsPreProcessing for Stripe - impl: impl services::ConnectorIntegration< api::PreProcessing, types::PaymentsPreProcessingData, types::PaymentsResponseData, > for Stripe **crates/router/src/connector/stripe/transformers.rs** Remove: - function: private::try_from - impl: impl TryFrom<( &types::PaymentsPreProcessingRouterData, MinorUnit, storage_enums::Currency, )> for StripeCreditTransferSourceRequest Add: - struct: pub::AbaDetails - struct: pub::SwiftDetails - struct: pub::AchFinancialInformation - enum: pub::FinancialInformation - enum: pub::AchFinancialDetails **crates/router/src/core/payments.rs** Modify existing code **crates/router/src/core/payments/flows.rs** Modify existing code
{"pr_number": 7599, "pr_title": "refactor(connector): [STRIPE] Bank Transfer Api Refactor", "merged_at": "2025-03-27T12:05:05Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/flows.rs"], "connectors": ["crates/router/src/connector/stripe.rs", "crates/router/src/connector/stripe/transformers.rs"]}, "change_types": {"structs_added": 3, "enums_added": 2, "fields_added": 45, "imports_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
fix(opensearch): handle empty free-text query search in global search ## 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 --> Previously, there was no support to add filters in global-search, hence only free-text search queries were supported. Because of this, the following query object was being mandatorily added. ```bash { "multi_match": { "type": "phrase", "query": "merchant_1726046328", "lenient": true } }, ``` Now, since adding filters is provided as a feature, it is no longer compulsary to have a free-text search query in addition to the filters applied. So if no free-text search query is being applied, the query object will have the following: ```bash { "multi_match": { "type": "phrase", "query": "", "lenient": true } }, ``` This empty string in the query is resulting in wrong data being fetched when we hit opensearch/elasticsearch using the `/search` API. Made changes to incorporate free-text search query into the opensearch query only when free-text search query is non-empty. Now, search will happen only based on filters as expected, when filters are provided and free-text search query is empty. ### 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). --> Extract correct results when using global search. ## 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: ```bash curl --location 'http://localhost:8080/analytics/v1/search' \ --header 'sec-ch-ua-platform: "macOS"' \ --header 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTQ5ZTNkMmItMTY5Yi00NzUzLWJmNTQtZDcxMTM2YjRiN2JkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzI2MDQ2MzI4Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTczMjc5Mjk0OCwib3JnX2lkIjoib3JnX1ZwU0hPanNZZkR2YWJWWUpnQ0FKIiwicHJvZmlsZV9pZCI6InByb192NXNGb0hlODBPZWlVbElvbm9jTSIsInRlbmFudF9pZCI6InB1YmxpYyJ9.Q5ruAj8DwAp5XDj1ktFhma4aZXAHSZBmRSw_EnPk4HE' \ --header 'Referer: http://localhost:9000/' \ --header 'sec-ch-ua: "Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"' \ --header 'sec-ch-ua-mobile: ?0' \ --header 'api-key: dev_LZcIA7XeMpnK5satp4CDvjcnHCaeKTBcosyuBBJaknZu1odhFo96cwS0nSdfzuJF' \ --header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36' \ --header 'Content-Type: application/json' \ --data '{ "query": "", "filters": { "status": [ "CharGed" ] }, "timeRange": { "startTime": "2024-09-13T00:30:00Z", "endTime": "2024-11-27T21:45:00Z" } }' ``` Should get the expected results. Sample query which will be made: - when free-text search query is empty and filters are non-empty: ```bash Index: SessionizerPaymentIntents Payload: { "query": { "bool": { "filter": [ { "range": { "@timestamp": { "gte": "2024-09-13T00:30:00.000Z", "lte": "2024-11-27T21:45:00.000Z" } } } ], "must": [ { "bool": { "must": [ { "bool": { "should": [ { "term": { "status.keyword": { "value": "CharGed", "case_insensitive": true } } } ], "minimum_should_match": 1 } } ] } }, { "bool": { "must": [ { "bool": { "should": [ { "bool": { "must": [ { "term": { "organization_id.keyword": { "value": "org_VpSHOjsYfDvabVYJgCAJ" } } } ] } } ], "minimum_should_match": 1 } } ] } } ] } }, "sort": [ { "@timestamp": { "order": "desc" } } ] } ``` - when free-text search query and filters both are non-empty: ```bash Index: SessionizerPaymentIntents Payload: { "query": { "bool": { "filter": [ { "multi_match": { "type": "phrase", "query": "merchant_1726046328", "lenient": true } }, { "range": { "@timestamp": { "gte": "2024-09-13T00:30:00.000Z", "lte": "2024-11-27T21:45:00.000Z" } } } ], "must": [ { "bool": { "must": [ { "bool": { "should": [ { "term": { "status.keyword": { "value": "CharGed", "case_insensitive": true } } } ], "minimum_should_match": 1 } } ] } }, { "bool": { "must": [ { "bool": { "should": [ { "bool": { "must": [ { "term": { "organization_id.keyword": { "value": "org_VpSHOjsYfDvabVYJgCAJ" } } } ] } } ], "minimum_should_match": 1 } } ] } } ] } }, "sort": [ { "@timestamp": { "order": "desc" } } ] } ``` - when free-text search query is non-empty and no filters are applied: ```bash Index: SessionizerPaymentIntents Payload: { "query": { "bool": { "filter": [ { "multi_match": { "type": "phrase", "query": "merchant_1726046328", "lenient": true } }, { "range": { "@timestamp": { "gte": "2024-09-13T00:30:00.000Z", "lte": "2024-11-27T21:45:00.000Z" } } } ], "must": [ { "bool": { "must": [ { "bool": { "should": [ { "bool": { "must": [ { "term": { "organization_id.keyword": { "value": "org_VpSHOjsYfDvabVYJgCAJ" } } } ] } } ], "minimum_should_match": 1 } } ] } } ] } }, "sort": [ { "@timestamp": { "order": "desc" } } ] } ``` - when free-text search query is empty and no filters are applied: ```json { "error": { "type": "invalid_request", "message": "Both query and filters are empty", "code": "IR_01" } } ``` ## 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** - `crates/analytics/src/opensearch.rs` **Code Patterns Applied:** - Add conditional logic for feature flags or filtering (1 changes) **Detailed Identifier Changes:** Commit b1cdff09: Files to modify: **crates/analytics/src/opensearch.rs** Modify existing code
{"pr_number": 6685, "pr_title": "fix(opensearch): handle empty free-text query search in global search", "merged_at": "2024-11-29T10:12:34Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"other": ["crates/analytics/src/opensearch.rs"]}, "change_types": {"conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
chore(users): add hubspot tracking to prod intent ## 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 includes - HubSpot proxy integration for `prod_intent` triggered from the dashboard - New CRM interface with two implementations: NoCrm and HubspotProxy. - Includes refactoring to move `http_client send_request` and `client` from the `router` module to `external_services` to support this integration. ### 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). --> Add hubspot tracking in dashboard prod intent ## 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)? --> Through dashboard FE - SIgnin in dashboard - Create a prod intent for a merchant - This will trigger hubspot tracking from BE and this should be visible in hubspot dashboard ## 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/user/dashboard_metadata.rs` **2. Core Business Logic** - `crates/router/src/core/admin.rs` - `crates/router/src/core/connector_onboarding/paypal.rs` - `crates/router/src/core/recon.rs` - ... and 2 more files **3. Type Definitions** - `crates/hyperswitch_interfaces/src/types.rs` - `crates/router/src/services/email/types.rs` **4. Utils** - `crates/common_utils/src/consts.rs` - `crates/router/src/utils/user.rs` **5. Configuration Files** - `config/config.example.toml` - `config/deployments/env_specific.toml` - `crates/external_services/Cargo.toml` - ... and 4 more files **6. Other** - `Cargo.lock` - `crates/external_services/src/crm.rs` - `crates/external_services/src/http_client.rs` - ... and 16 more files **Code Patterns Applied:** - Define new data structures (6 changes) - Implement new functions (27 changes) - Extend existing types with new fields (84 changes) - Add conditional logic for feature flags or filtering (6 changes) **Detailed Identifier Changes:** Commit 67f38f86: Files to modify: **crates/api_models/src/user/dashboard_metadata.rs** Modify existing code **crates/common_utils/src/consts.rs** Modify existing code **crates/external_services/src/crm.rs** Add: - function: pub::validate - function: private::fmt - function: pub::validate - function: pub::get_crm_client - function: private::make_body - function: private::make_request - function: private::send_request - function: private::make_body - function: private::make_request - function: private::send_request - struct: pub::HubspotProxyConfig - struct: pub::InvalidCrmConfig - struct: pub::NoCrm - enum: pub::CrmManagerConfig - impl: impl HubspotProxyConfig - impl: impl std::error::Error for InvalidCrmConfig - impl: impl std::fmt::Display for InvalidCrmConfig - impl: impl CrmManagerConfig - impl: impl CrmInterface for NoCrm - impl: impl CrmInterface for HubspotProxyConfig **crates/external_services/src/http_client.rs** Add: - function: pub::send_request - function: private::is_connection_closed_before_message_could_complete - mod: pub::client - mod: pub::metrics - mod: pub::request **crates/external_services/src/http_client/client.rs** Add: - function: pub::create_client - function: pub::get_client_builder - function: pub::create_identity_from_certificate_and_key - function: pub::create_certificate - function: private::get_base_client **crates/external_services/src/http_client/metrics.rs** Modify existing code **crates/external_services/src/http_client/request.rs** Add: - function: private::construct_header_map - function: private::add_headers - trait: pub::HeaderExt - trait: pub::RequestBuilderExt - impl: impl HeaderExt for Headers - impl: impl RequestBuilderExt for reqwest::RequestBuilder **crates/external_services/src/hubspot_proxy.rs** Add: - function: pub::new - struct: pub::HubspotRequest - impl: impl HubspotRequest **crates/external_services/src/lib.rs** Add: - mod: pub::http_client - mod: pub::hubspot_proxy - mod: pub::crm **crates/hyperswitch_interfaces/src/crm.rs** Add: - struct: pub::CrmPayload - trait: pub::CrmInterface **crates/hyperswitch_interfaces/src/errors.rs** Add: - function: private::switch - enum: pub::HttpClientError - impl: impl ErrorSwitch<ApiClientError> for HttpClientError **crates/hyperswitch_interfaces/src/lib.rs** Add: - mod: pub::crm **crates/hyperswitch_interfaces/src/types.rs** Add: - function: private::default - struct: pub::Proxy - impl: impl Default for Proxy **crates/router/src/configs/defaults.rs** Remove: - function: private::default - impl: impl Default for super::settings::Proxy **crates/router/src/configs/secrets_transformers.rs** Modify existing code **crates/router/src/configs/settings.rs** Modify existing code **crates/router/src/consts.rs** Modify existing code **crates/router/src/core/admin.rs** Modify existing code **crates/router/src/core/connector_onboarding/paypal.rs** Modify existing code **crates/router/src/core/recon.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/metrics.rs** Modify existing code **crates/router/src/services/api.rs** Remove: - function: pub::send_request - function: private::is_connection_closed_before_message_could_complete **crates/router/src/services/api/client.rs** Remove: - function: private::get_client_builder - function: private::get_base_client - function: pub::create_client - function: pub::create_identity_from_certificate_and_key - function: pub::create_certificate **crates/router/src/services/api/request.rs** Remove: - function: private::construct_header_map - function: private::add_headers - trait: pub::HeaderExt - trait: pub::RequestBuilderExt - impl: impl HeaderExt for Headers - impl: impl RequestBuilderExt for reqwest::RequestBuilder **crates/router/src/services/email/types.rs** Remove: - function: pub::get_base_url **crates/router/src/services/openidconnect.rs** Modify existing code **crates/router/src/utils/user.rs** Add: - function: pub::get_base_url **crates/router/src/workflows/api_key_expiry.rs** Modify existing code
{"pr_number": 7798, "pr_title": "chore(users): add hubspot tracking to prod intent", "merged_at": "2025-05-13T12:33:04Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/user/dashboard_metadata.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/connector_onboarding/paypal.rs", "crates/router/src/core/recon.rs", "crates/router/src/core/user.rs", "crates/router/src/core/user/dashboard_metadata.rs"], "types": ["crates/hyperswitch_interfaces/src/types.rs", "crates/router/src/services/email/types.rs"], "utils": ["crates/common_utils/src/consts.rs", "crates/router/src/utils/user.rs"], "config": ["config/config.example.toml", "config/deployments/env_specific.toml", "crates/external_services/Cargo.toml", "crates/router/Cargo.toml", "crates/router/src/configs/defaults.rs", "crates/router/src/configs/secrets_transformers.rs", "crates/router/src/configs/settings.rs"], "other": ["Cargo.lock", "crates/external_services/src/crm.rs", "crates/external_services/src/http_client.rs", "crates/external_services/src/http_client/client.rs", "crates/external_services/src/http_client/metrics.rs", "crates/external_services/src/http_client/request.rs", "crates/external_services/src/hubspot_proxy.rs", "crates/external_services/src/lib.rs", "crates/hyperswitch_interfaces/src/crm.rs", "crates/hyperswitch_interfaces/src/errors.rs", "crates/hyperswitch_interfaces/src/lib.rs", "crates/router/src/consts.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/metrics.rs", "crates/router/src/services/api.rs", "crates/router/src/services/api/client.rs", "crates/router/src/services/api/request.rs", "crates/router/src/services/openidconnect.rs", "crates/router/src/workflows/api_key_expiry.rs"]}, "change_types": {"structs_added": 6, "functions_added": 27, "enums_added": 2, "fields_added": 84, "imports_added": 46, "conditionals_added": 6}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(recovery-events): add revenue recovery topic and vector config to push these events to s3 ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This new Kafka Event consume the revenue recovery related events which will be constructed from both `RecoveryPaymentIntent` and `RecoveryPaymentAttempt` in revenue recovery flow. The events form Kafka will be picked up by vector and this be eventually batched and pushed to s3 based on the set config. They file path will look like this `merchant_id/Year/month/timestamp.csv`. The events will be recorded at two places. `Webhook Flow`(External Payments done by billing processor) and `Internal Proxy Flow`(Internal Done by Hyperswitch as a part of retrying). The event structure is mentioned in the kafka message in code. The estimated size of each event is around 1000bytes. We want to keep the config at 1000 batches and one day(86400s) timeout in vector. So that vector collects all the events till the end of the time out or till it hits 1000 events and push them to s3 file in the designated file path in a csv format in the order mentioned in the config. Based on the above config vector needs 10mb size buffer to support this. S3 auth will be done using the IAM Instance profile which will be taken care off at the time of the deployment. ### 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 As for the Revenue Recovery System we needed a pipeline which can move transaction based data to s3 where we store the entire transactional data which can be further used to train models. The transactional data consists of various parameters from both payment intent and payment attempt. So we created a new topic to facilitate this requirement. ## 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)? --> At the time of this pr getting merged, Kafka is not enabled for V2 . So we cannot test it. It can be tested by the following steps once kafka is enabled for v2. Follow the steps in this pr #7461 and check the s3 attached to that kafka topic to find a file after waiting for one day. Sample Kafka Event : <img width="1723" alt="Screenshot 2025-07-07 at 4 57 59 PM" src="https://github.com/user-attachments/assets/f61040e1-2def-46ea-aee6-4652418ebdfb" /> Here is the S3 File Path: <img width="897" alt="Screenshot 2025-06-11 at 7 20 08 PM" src="https://github.com/user-attachments/assets/7f89d1c9-1af4-4edf-b051-2371d5198ce9" /> Here is the AWS File sample <img width="1643" alt="Screenshot 2025-07-07 at 5 01 25 PM" src="https://github.com/user-attachments/assets/64e64767-fa72-48e8-a885-2a4db7d45cf7" /> ## 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. Database Layer (Queries & Schema)** - `crates/diesel_models/src/types.rs` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/lib.rs` - `crates/hyperswitch_domain_models/src/payments.rs` - `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs` - ... and 1 more files **4. Core Business Logic** - `crates/router/src/core/payments/transformers.rs` - `crates/router/src/core/revenue_recovery/types.rs` - `crates/router/src/core/webhooks/recovery_incoming.rs` **5. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs` - `crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs` **6. Configuration Files** - `config/config.example.toml` - `config/deployments/env_specific.toml` - `config/development.toml` - ... and 2 more files **7. Other** - `api-reference/v2/openapi_spec_v2.json` - `crates/openapi/src/openapi_v2.rs` - `crates/router/src/events.rs` - ... and 3 more files **Code Patterns Applied:** - Define new data structures (2 changes) - Implement new functions (8 changes) - Extend existing types with new fields (164 changes) - Add conditional logic for feature flags or filtering (6 changes) **Detailed Identifier Changes:** Commit 17d34a29: Files to modify: **crates/api_models/src/payments.rs** Add: - function: pub::get_billing_connector_card_info - impl: impl BillingConnectorPaymentMethodDetails **crates/diesel_models/src/types.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs** Modify existing code **crates/hyperswitch_domain_models/src/lib.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_attempt.rs** Add: - function: private::from - impl: impl From<ErrorDetails> for api_models::payments::RecordAttemptErrorDetails **crates/hyperswitch_domain_models/src/revenue_recovery.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/core/revenue_recovery/types.rs** Modify existing code **crates/router/src/core/webhooks/recovery_incoming.rs** Add: - function: pub::new - function: pub::publish_revenue_recovery_event_to_kafka - impl: impl RecoveryPaymentTuple **crates/router/src/events.rs** Modify existing code **crates/router/src/services/kafka.rs** Add: - mod: pub::revenue_recovery **crates/router/src/services/kafka/revenue_recovery.rs** Add: - function: private::key - function: private::event_type - struct: pub::RevenueRecovery - impl: impl super::KafkaMessage for RevenueRecovery<'_> **crates/storage_impl/src/errors.rs** Modify existing code
{"pr_number": 8285, "pr_title": "feat(recovery-events): add revenue recovery topic and vector config to push these events to s3", "merged_at": "2025-07-25T12:00:14Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/types.rs"], "domain": ["crates/hyperswitch_domain_models/src/lib.rs", "crates/hyperswitch_domain_models/src/payments.rs", "crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "crates/hyperswitch_domain_models/src/revenue_recovery.rs"], "core_business": ["crates/router/src/core/payments/transformers.rs", "crates/router/src/core/revenue_recovery/types.rs", "crates/router/src/core/webhooks/recovery_incoming.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs", "crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs"], "config": ["config/config.example.toml", "config/deployments/env_specific.toml", "config/development.toml", "config/docker_compose.toml", "config/vector.yaml"], "other": ["api-reference/v2/openapi_spec_v2.json", "crates/openapi/src/openapi_v2.rs", "crates/router/src/events.rs", "crates/router/src/services/kafka.rs", "crates/router/src/services/kafka/revenue_recovery.rs", "crates/storage_impl/src/errors.rs"]}, "change_types": {"structs_added": 2, "functions_added": 8, "fields_added": 164, "imports_added": 6, "conditionals_added": 6}, "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 Main PR - https://github.com/juspay/hyperswitch/pull/7347 Clippy Successful Locally <img width="906" alt="image" src="https://github.com/user-attachments/assets/85ba726c-dd13-4071-8025-edab3485a230" /> ### 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)? --> test cases in main 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. 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 2515d75f: 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": 7348, "pr_title": "feat(router): add merchant_configuration_id in netcetera metadata and make other merchant configurations optional", "merged_at": "2025-02-21T17:32:29Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["merchant", "user"]}, "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"}
feat(v2): introduce configs and health endpoints 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 <!-- Describe your changes in detail --> Introduced` /v2/configs` and `/v2/health` endpoints and for 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). --> introduced configs and health endpoints for v2 ## 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. 1. Hit V2 health endpoint. ``` curl --location '{{base_url}}/v2/health/ready' \ --header 'Content-Type: application/json' \ --header 'x-tenant-id: public' \ --data '' ``` response: ``` { "database": true, "redis": true, "analytics": true, "opensearch": false, "outgoing_request": true, "unified_connector_service": true } ``` 2. Create a test v2 config ``` curl --location '{{baseUrl}}/v2/configs/' \ --header 'Content-Type: application/json' \ --header 'x-tenant-id: public' \ --header 'authorization: admin-api-key=test_admin' \ --data ' { "key": "test_v2_config_1", "value": "true" } ' ``` 2. Retrive the test v2 config ``` curl --location '{{baseUrl}}/v2/configs/test_v2_config_1' \ --header 'Content-Type: application/json' \ --header 'x-tenant-id: public' \ --header 'authorization: admin-api-key=test_admin' \ --data '' ``` Response for 2 and 3: ``` { "key": "test_v2_config_1", "value": "true" } ``` 3. Config Update ``` curl --location '{{baseUrl}}/v2/configs/test_v2_config_1' \ --header 'Content-Type: application/json' \ --header 'x-tenant-id: public' \ --header 'authorization: admin-api-key=test_admin' \ --data '{ "value": "false" }' ``` Response: ``` { "key": "test_v2_config_1", "value": "true" } ``` ## 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/health_check.rs` **2. Core Business Logic** - `crates/router/src/core/health_check.rs` **3. Configuration Files** - `crates/router/src/routes/configs.rs` **4. Other** - `crates/router/src/routes/app.rs` - `crates/router/src/routes/health.rs` - `crates/storage_impl/src/errors.rs` **Code Patterns Applied:** - Define new data structures (1 changes) - Implement new functions (4 changes) - Extend existing types with new fields (3 changes) - Add conditional logic for feature flags or filtering (1 changes) **Detailed Identifier Changes:** Commit 8bbb7684: Files to modify: **crates/api_models/src/health_check.rs** Modify existing code **crates/router/src/core/health_check.rs** Add: - function: private::health_check_unified_connector_service **crates/router/src/routes/app.rs** Add: - function: pub::server - function: pub::server - impl: impl Health - impl: impl Configs **crates/router/src/routes/configs.rs** Modify existing code **crates/router/src/routes/health.rs** Modify existing code **crates/storage_impl/src/errors.rs** Add: - enum: pub::HealthCheckUnifiedConnectorServiceError
{"pr_number": 8835, "pr_title": "feat(v2): introduce configs and health endpoints for v2", "merged_at": "2025-08-08T12:56:47Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/health_check.rs"], "core_business": ["crates/router/src/core/health_check.rs"], "config": ["crates/router/src/routes/configs.rs"], "other": ["crates/router/src/routes/app.rs", "crates/router/src/routes/health.rs", "crates/storage_impl/src/errors.rs"]}, "change_types": {"structs_added": 1, "functions_added": 4, "enums_added": 1, "fields_added": 3, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(router): add retry support for debit routing ## 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 --> In the case of debit routing flow, the routing output (`CallConnectorType`) will include both the connector and its associated card network. In our current implementation, we simply iterate over the connector list and pass the connector. With the updated requirement, we will also need to pass the corresponding card network for each connector in the case of debit routing. ### 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 business profile and enable debit routing for it ``` curl --location 'http://localhost:8080/account/merchant_1748851578/business_profile/pro_gEwS6ve9KVqywWL0hmAq' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: ' \ --data '{ "is_debit_routing_enabled": true }' ``` -> Create a adyen connector -> I have created a db entry that contains the wrong card network so that the payment can be retried ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-feature: router-custom' \ --header 'x-tenant-id: hyperswitch' \ --header 'api-key: ' \ --data-raw '{ "amount": 10000, "amount_to_capture": 10000, "currency": "USD", "confirm": true, "capture_method": "automatic", "setup_future_usage": "on_session", "capture_on": "2022-09-10T10:11:12Z", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+1", "description": "Its my first payment request", "authentication_type": "no_three_ds", "customer_id": "cu_1748948839", "return_url": "http://127.0.0.1:4040", "payment_method": "card", "payment_method_type": "debit", "payment_method_data": { "card": { "card_number": "4000033003300335", "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", "state": "California", "zip": "94122", "country": "US", "first_name": "PiX", "last_name": "ss" }, "email": "raj@gmail.com" }, "shipping": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "PiX" } }, "customer_acceptance": { "acceptance_type": "offline", "accepted_at": "1963-05-03T04:07:52.723Z", "online": { "ip_address": "in sit", "user_agent": "amet irure esse" } }, "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": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } }' ``` ``` { "payment_id": "pay_JMfKcXwsfYNl06UWsCc0", "merchant_id": "merchant_1748851578", "status": "succeeded", "amount": 10000, "net_amount": 10000, "shipping_cost": null, "amount_capturable": 0, "amount_received": 10000, "connector": "adyen", "client_secret": "pay_JMfKcXwsfYNl06UWsCc0_secret_IHW3HhesmOpMBaUyGd8l", "created": "2025-06-03T11:07:12.121Z", "currency": "USD", "customer_id": "cu_1748948832", "customer": { "id": "cu_1748948832", "name": "John Doe", "email": "guest@example.com", "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": "on_session", "off_session": null, "capture_on": null, "capture_method": "automatic", "payment_method": "card", "payment_method_data": { "card": { "last4": "0335", "card_type": "DEBIT", "card_network": "Visa", "card_issuer": "VISA U.S.A. INC.", "card_issuing_country": "UNITEDSTATES", "card_isin": "400003", "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": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": null }, "phone": null, "email": null }, "billing": { "address": { "city": "San", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": "ss" }, "phone": null, "email": "raj@gmail.com" }, "order_details": null, "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "return_url": "http://127.0.0.1:4040/", "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": "debit", "connector_label": null, "business_country": null, "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": { "customer_id": "cu_1748948832", "created_at": 1748948832, "expires": 1748952432, "secret": "epk_caf2195bee8848358df1077b25cf2a73" }, "manual_retry_allowed": false, "connector_transaction_id": "DF4NDC3W8WH68775", "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_JMfKcXwsfYNl06UWsCc0_2", "payment_link": null, "profile_id": "pro_gEwS6ve9KVqywWL0hmAq", "surcharge_details": null, "attempt_count": 2, "merchant_decision": null, "merchant_connector_id": "mca_zMyPaKk9qUVauLL7wFrV", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-06-03T11:22:12.120Z", "fingerprint": null, "browser_info": { "language": "nl-NL", "time_zone": 0, "ip_address": "125.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-06-03T11:07:15.083Z", "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 } ``` -> the payment response contains two attempts -> List all the attempts for a payments ``` curl --location 'http://localhost:8080/payments/pay_JMfKcXwsfYNl06UWsCc0?force_sync=true&expand_attempts=true' \ --header 'Accept: application/json' \ --header 'api-key: ' ``` ``` { "payment_id": "pay_JMfKcXwsfYNl06UWsCc0", "merchant_id": "merchant_1748851578", "status": "succeeded", "amount": 10000, "net_amount": 10000, "shipping_cost": null, "amount_capturable": 0, "amount_received": 10000, "connector": "adyen", "client_secret": "pay_JMfKcXwsfYNl06UWsCc0_secret_IHW3HhesmOpMBaUyGd8l", "created": "2025-06-03T11:07:12.121Z", "currency": "USD", "customer_id": "cu_1748948832", "customer": { "id": "cu_1748948832", "name": "John Doe", "email": "guest@example.com", "phone": "999999999", "phone_country_code": "+1" }, "description": "Its my first payment request", "refunds": null, "disputes": null, "attempts": [ { "attempt_id": "pay_JMfKcXwsfYNl06UWsCc0_2", "status": "charged", "amount": 10000, "order_tax_amount": null, "currency": "USD", "connector": "adyen", "error_message": null, "payment_method": "card", "connector_transaction_id": "DF4NDC3W8WH68775", "capture_method": "automatic", "authentication_type": "no_three_ds", "created_at": "2025-06-03T11:07:14.071Z", "modified_at": "2025-06-03T11:07:15.143Z", "cancellation_reason": null, "mandate_id": null, "error_code": null, "payment_token": null, "connector_metadata": null, "payment_experience": null, "payment_method_type": "debit", "reference_id": "pay_JMfKcXwsfYNl06UWsCc0_2", "unified_code": null, "unified_message": null, "client_source": null, "client_version": null }, { "attempt_id": "pay_JMfKcXwsfYNl06UWsCc0_1", "status": "failure", "amount": 10000, "order_tax_amount": null, "currency": "USD", "connector": "adyen", "error_message": "Invalid variant", "payment_method": "card", "connector_transaction_id": "ZBRJ4V4RGLQD2HV5", "capture_method": "automatic", "authentication_type": "no_three_ds", "created_at": "2025-06-03T11:07:12.121Z", "modified_at": "2025-06-03T11:07:14.075Z", "cancellation_reason": null, "mandate_id": null, "error_code": "109", "payment_token": null, "connector_metadata": null, "payment_experience": null, "payment_method_type": "debit", "reference_id": null, "unified_code": null, "unified_message": null, "client_source": null, "client_version": null } ], "mandate_id": null, "mandate_data": null, "setup_future_usage": "on_session", "off_session": null, "capture_on": null, "capture_method": "automatic", "payment_method": "card", "payment_method_data": { "card": { "last4": "0335", "card_type": "DEBIT", "card_network": "Visa", "card_issuer": "VISA U.S.A. INC.", "card_issuing_country": "UNITEDSTATES", "card_isin": "400003", "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": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": null }, "phone": null, "email": null }, "billing": { "address": { "city": "San", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": "ss" }, "phone": null, "email": "raj@gmail.com" }, "order_details": null, "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "return_url": "http://127.0.0.1:4040/", "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": "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": false, "connector_transaction_id": "DF4NDC3W8WH68775", "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_JMfKcXwsfYNl06UWsCc0_2", "payment_link": null, "profile_id": "pro_gEwS6ve9KVqywWL0hmAq", "surcharge_details": null, "attempt_count": 2, "merchant_decision": null, "merchant_connector_id": "mca_zMyPaKk9qUVauLL7wFrV", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-06-03T11:22:12.120Z", "fingerprint": null, "browser_info": { "language": "nl-NL", "time_zone": 0, "ip_address": "125.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": "pm_d6OTFivsWBpZpC9u53Hh", "payment_method_status": "active", "updated": "2025-06-03T11:07:15.083Z", "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 } ``` -> The payment was first tried with `star` card network and then with the `visa` ![image](https://github.com/user-attachments/assets/9167038f-b03b-411a-8d13-a52b14c9685e) ![image](https://github.com/user-attachments/assets/7f1f1120-b3ff-4556-9140-248f922b279b) ## 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/retry.rs` - `crates/router/src/core/routing/helpers.rs` **Code Patterns Applied:** - Extend existing types with new fields (3 changes) **Detailed Identifier Changes:** Commit b5b7cfaf: Files to modify: **crates/router/src/core/payments.rs** Modify existing code **crates/router/src/core/payments/retry.rs** Modify existing code **crates/router/src/core/routing/helpers.rs** Modify existing code
{"pr_number": 8220, "pr_title": "feat(router): add retry support for debit routing", "merged_at": "2025-06-16T11:50:20Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/retry.rs", "crates/router/src/core/routing/helpers.rs"]}, "change_types": {"fields_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
fix(cybersource): Add truncation logic for administrative area ## Type of Change <!-- Put an `x` in the boxes that apply --> - [X] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Cybersource throws error if state length exceeds 20 characters, to fix this this PR addes truncation of state at Hyperswitch end ### 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 /payments with state greater than 20 characters ``` curl --location --request POST 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_eM1Lq0Ebo27JrIBD9t71RWadvwqQzRuDLoLNSYsYYJkFE6SfIpHzGbxFF3MVedWL' \ --data-raw '{ "amount": 700, "currency": "USD", "confirm": true, "payment_link": false, "amount_to_capture": 700, "name": "John Doe", "email": "dg@example.com", "phone": "999999999", "phone_country_code": "+1", "description": "Its my first payment request", "authentication_type": "no_three_ds", "return_url": "https://google.com", "payment_method_data": { "card": { "card_number": "4917610000000000", "card_exp_month": "03", "card_exp_year": "30", "card_cvc": "737" }, "billing": { "address": { "line1": "1467", "line2": "CA", "city": "ABCD", "state": "Bourgogne-Franche-Comte", "zip": "94122", "country": "FR", "first_name": "john", "last_name": "doe" } } }, "payment_method": "card", "payment_method_type": "credit", "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" } }' ``` ### Output <img width="882" alt="Screenshot 2025-02-21 at 16 42 43" src="https://github.com/user-attachments/assets/4009b8b8-5174-419b-b82a-c96b402f9881" /> <img width="913" alt="Screenshot 2025-02-21 at 16 53 45" src="https://github.com/user-attachments/assets/7a1caa4a-f5bb-4bd0-a6cd-5090f72f2dba" /> ## 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/cybersource/transformers.rs` **2. Utils** - `crates/scheduler/src/utils.rs` **Code Patterns Applied:** - Implement new functions (2 changes) - Extend existing types with new fields (3 changes) **Detailed Identifier Changes:** Commit 6b52449c: Files to modify: **crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs** Add: - function: private::truncate_string **crates/scheduler/src/utils.rs** Modify existing code
{"pr_number": 7343, "pr_title": "fix(cybersource): Add truncation logic for administrative area", "merged_at": "2025-02-25T06:44:26Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "card"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs"], "utils": ["crates/scheduler/src/utils.rs"]}, "change_types": {"functions_added": 2, "fields_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
refactor(schema): add a new column for storing large connector transaction IDs ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR introduces below changes around Worldpay connector ### Core changes - add new columns (TEXT) for storing the JWE based connector transaction ID - `payment_attempt` - `processor_transaction_data` - `refund` - `processor_transaction_data` and `processor_refund_data` - `captures` - `processor_capture_data` ### Connector integration changes (Worldpay only) - make `line1` and `city` non optional in payment request - add `zip` in dynamic required fields for Worldpay cards ### QA - add cypress test cases for dynamic fields for Worldpay ### Additional Changes - [ ] This PR modifies the API contract - [x] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables ## Motivation and Context This PR keeps Worldpay's payments integration intact. ## How did you test it? <details> <summary>1. Route a payment through Worldpay</summary> cURL curl --location --request POST 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_Wc9lMS2KJ6l35ehmlSsR3dwwiOvGZaWLmkk3BqRLRe6vqa1rkiNJ3mVza3U1EdWh' \ --data-raw '{"amount":100,"currency":"USD","confirm":true,"capture_method":"automatic","capture_on":"2022-09-10T10:11:12Z","customer_id":"cus_JgZZwioWal2CoKgsLXEb","email":"guest@example.com","name":"John Doe","phone":"999999999","profile_id":"pro_NyQDoa1SRAC4rZ5QjDv9","phone_country_code":"+65","description":"Its my first payment request","authentication_type":"no_three_ds","return_url":"https://hyperswitch.io","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"}},"connector":["worldpay"],"payment_method":"card","payment_method_data":{"card":{"card_number":"4917610000000000","card_exp_month":"03","card_exp_year":"2030","card_cvc":"737","nick_name":"JD"},"billing":{"email":"guest@example.com","address":{"first_name":"John","last_name":"US"}}},"billing":{"address":{"line1":"1467","line2":"Harrison Street","line3":"Harrison Street","city":"San Fransico","state":"California","zip":"94122","country":"US","first_name":"John","last_name":"US"}},"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}}' Response {"payment_id":"pay_wY8cJE6MgvO13EE0vIyx","merchant_id":"merchant_1736497521","status":"succeeded","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":0,"amount_received":100,"connector":"worldpay","client_secret":"pay_wY8cJE6MgvO13EE0vIyx_secret_42yawtMDmMbJf15nP8TP","created":"2025-01-10T09:35:51.576Z","currency":"USD","customer_id":"cus_JgZZwioWal2CoKgsLXEb","customer":{"id":"cus_JgZZwioWal2CoKgsLXEb","name":"John Doe","email":"guest@example.com","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":"off_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"0000","card_type":"CREDIT","card_network":"Visa","card_issuer":"BANKPOLSKAKASAOPIEKIS.A.(BANKPEKAOSA)","card_issuing_country":"POLAND","card_isin":"491761","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"2030","card_holder_name":"John US","payment_checks":null,"authentication_data":null},"billing":{"address":{"city":null,"country":null,"line1":null,"line2":null,"line3":null,"zip":null,"state":null,"first_name":"John","last_name":"US"},"phone":null,"email":"guest@example.com"}},"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":"John","last_name":"US"},"phone":null,"email":null},"order_details":null,"email":"guest@example.com","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":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"cus_JgZZwioWal2CoKgsLXEb","created_at":1736501751,"expires":1736505351,"secret":"epk_d47f022a1de246bebe54d6898c408836"},"manual_retry_allowed":false,"connector_transaction_id":"eyJrIjoiazNhYjYzMiIsImxpbmtWZXJzaW9uIjoiNi4wLjAifQ==.sN:g8wd64bwkbrp0md+bPxcanBnk2zLdsIqSa1pR99GGg8fCNQpPLoWNslSzWNPFBM5Tpa8tW7EFI5onKINsgChMHeJVoeH2lrBWCRyjZYT6h+lbqfJa+1BSoKFSY8HLJDIunO0DhjaUi3niPBfv98:VUQcO2wyJ4EGywR:l4ssCpZY8cZeCeMgt1ol:GABqQG6u+T:u3sfHv3ezSOJxioRTixsThPEhzFW4ZZ6mObj3CK0rnFndcM0swvZMqgQwSEj5tBsydfzM4XKX20O6Nme96ha9twqxTSQIfr1rtl9V3q7fw3w5O9UZT4vQi9BMyCcaHkWSD:RbCWCcmiQqa5EPu9d6p6Bt0lCYl:Np4aWZ0pJCEaV4g9uGTAlKDtig0jKl6MU3ArZWtDWm7LKjrd+hQ9RR:Z491q0vLPK+etFBNqgwjiceXMDUvG7lafYHHR5Ak5lI+Sa7YaesgGkXXzgiDTOQzNK9UH+W9rzqFt6t5VcedliH8B9MKI3IKaPyVavYo4YzMmVfRID7seWtakAYMzGq+YEqwioSKkuPXbo=","frm_message":null,"metadata":{"udf1":"value1","login_date":"2019-09-10T10:11:12Z","new_customer":"true"},"connector_metadata":null,"feature_metadata":null,"reference_id":"95f4583f-a8ee-426c-acd8-f475d85b0bef","payment_link":null,"profile_id":"pro_NyQDoa1SRAC4rZ5QjDv9","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_jJbWUjL9iGOEfQo8Uw8P","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-01-10T09:50:51.576Z","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_xeVtmDykRQKg3pvt4EI5","payment_method_status":"active","updated":"2025-01-10T09:35:52.981Z","split_payments":null,"frm_metadata":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":"https://try.access.worldpay.com/tokens/eyJrIjoxLCJkIjoiWndnc0NNQjJXNkZFTkl4TUZUZFBKdzhQdm9OS3JjYnFnT0haOThuOVE4RT0ifQ"} </details> <details> <summary>2. Create a payment link without passing in details</summary> cURL curl --location --request POST 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_Wc9lMS2KJ6l35ehmlSsR3dwwiOvGZaWLmkk3BqRLRe6vqa1rkiNJ3mVza3U1EdWh' \ --data-raw '{"authentication_type":"three_ds","customer_id":"cus_JgZZwioWal2CoKgsLXEb","profile_id":"pro_NyQDoa1SRAC4rZ5QjDv9","amount":100,"currency":"USD","payment_link":true,"connector":["worldpay"],"description":"This is my description of why this payment was requested.","capture_method":"automatic","billing":{"address":{"line2":"Harrison Street","line3":"Harrison Street","state":"CA","first_name":"John","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"}},"email":"john.doe@example.co.in","session_expiry":100000,"return_url":"https://example.com","payment_link_config":{"theme":"#0E103D","logo":"https://hyperswitch.io/favicon.ico","seller_name":"Hyperswitch Inc.","enabled_saved_payment_method":true,"hide_card_nickname_field":true,"show_card_form_by_default":true,"transaction_details":[{"key":"Policy Number","value":"938478327648","ui_configuration":{"is_key_bold":false,"is_value_bold":false,"position":2}},{"key":"Business Country","value":"Germany","ui_configuration":{"is_key_bold":false,"is_value_bold":false,"position":1}},{"key":"Product Name","value":"Life Insurance Elite","ui_configuration":{"is_key_bold":false,"is_value_bold":false,"position":3}}]}}' - Open payment link <img width="599" alt="Screenshot 2025-01-10 at 3 08 50 PM" src="https://github.com/user-attachments/assets/8a3b0a75-ff52-4f5e-b889-460e5261556b" /> </details> <details> <summary>3. Dynamic field tests</summary> <img width="642" alt="Screenshot 2025-01-10 at 3 10 29 PM" src="https://github.com/user-attachments/assets/5929d89e-341c-4a86-a488-5a77d983a08e" /> </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. Database Layer (Queries & Schema)** - `crates/diesel_models/src/capture.rs` - `crates/diesel_models/src/kv.rs` - `crates/diesel_models/src/payment_attempt.rs` - ... and 5 more files **2. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs` **3. Core Business Logic** - `crates/router/src/core/payments/operations/payment_response.rs` - `crates/router/src/core/payments/transformers.rs` - `crates/router/src/core/refunds.rs` - ... and 1 more files **4. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs` - `crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs` - `crates/router/src/configs/defaults/payment_connector_required_fields.rs` **5. Type Definitions** - `crates/common_utils/src/types.rs` - `crates/router/src/types/storage/payment_attempt.rs` **6. Utils** - `crates/router/src/utils/user/sample_data.rs` **7. Tests** - `cypress-tests/cypress/e2e/configs/Payment/WorldPay.js` **8. Other** - `crates/router/src/db/capture.rs` - `crates/router/src/db/refund.rs` - `crates/storage_impl/src/payments/payment_attempt.rs` - ... and 5 more files **Code Patterns Applied:** - Extend existing types with new fields (222 changes) **Detailed Identifier Changes:** Commit fa09db15: Files to modify: **crates/common_utils/src/types.rs** Modify existing code **crates/diesel_models/src/capture.rs** Modify existing code **crates/diesel_models/src/kv.rs** Modify existing code **crates/diesel_models/src/payment_attempt.rs** Modify existing code **crates/diesel_models/src/query/capture.rs** Modify existing code **crates/diesel_models/src/refund.rs** Modify existing code **crates/diesel_models/src/schema.rs** Modify existing code **crates/diesel_models/src/schema_v2.rs** Modify existing code **crates/diesel_models/src/user/sample_data.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_attempt.rs** Modify existing code **crates/router/src/configs/defaults/payment_connector_required_fields.rs** Modify existing code **crates/router/src/core/payments/operations/payment_response.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code **crates/router/src/core/refunds.rs** Modify existing code **crates/router/src/core/webhooks/incoming.rs** Modify existing code **crates/router/src/db/capture.rs** Modify existing code **crates/router/src/db/refund.rs** Modify existing code **crates/router/src/types/storage/payment_attempt.rs** Modify existing code **crates/router/src/utils/user/sample_data.rs** Modify existing code **crates/storage_impl/src/payments/payment_attempt.rs** Modify existing code
{"pr_number": 7017, "pr_title": "refactor(schema): add a new column for storing large connector transaction IDs", "merged_at": "2025-02-12T08:49:11Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"database": ["crates/diesel_models/src/capture.rs", "crates/diesel_models/src/kv.rs", "crates/diesel_models/src/payment_attempt.rs", "crates/diesel_models/src/query/capture.rs", "crates/diesel_models/src/refund.rs", "crates/diesel_models/src/schema.rs", "crates/diesel_models/src/schema_v2.rs", "crates/diesel_models/src/user/sample_data.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments/payment_attempt.rs"], "core_business": ["crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/refunds.rs", "crates/router/src/core/webhooks/incoming.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/worldpay/requests.rs", "crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs", "crates/router/src/configs/defaults/payment_connector_required_fields.rs"], "types": ["crates/common_utils/src/types.rs", "crates/router/src/types/storage/payment_attempt.rs"], "utils": ["crates/router/src/utils/user/sample_data.rs"], "tests": ["cypress-tests/cypress/e2e/configs/Payment/WorldPay.js"], "other": ["crates/router/src/db/capture.rs", "crates/router/src/db/refund.rs", "crates/storage_impl/src/payments/payment_attempt.rs", "migrations/2025-01-09-135057_add_processor_transaction_data/down.sql", "migrations/2025-01-09-135057_add_processor_transaction_data/up.sql", "v2_migrations/2024-08-28-081721_add_v2_columns/up.sql", "v2_migrations/2024-11-08-081847_drop_v1_columns/down.sql", "v2_migrations/2024-11-08-081847_drop_v1_columns/up.sql"]}, "change_types": {"fields_added": 222}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
chore(docker): docker compose changes for stable release This PR contains the docker compose file changes for stable release. The PRs included in this file are - https://github.com/juspay/hyperswitch/pull/7762 - https://github.com/juspay/hyperswitch/pull/7839 - https://github.com/juspay/hyperswitch/pull/7841 - https://github.com/juspay/hyperswitch/pull/7653
To implement this **unknown** feature, you'll need to modify these architectural layers: **1. Configuration Files** - `docker-compose.yml` **2. Other** - `README.md` - `docs/one_click_setup.md` - `docs/try_local_system.md` - ... and 4 more files **Code Patterns Applied:** - Extend existing types with new fields (24 changes) - Add conditional logic for feature flags or filtering (18 changes)
{"pr_number": 7894, "pr_title": "chore(docker): docker compose changes for stable release", "merged_at": "2025-04-29T08:00:26Z", "intent": {"feature_type": "unknown", "action": "unknown", "entities": []}, "hierarchy": {"config": ["docker-compose.yml"], "other": ["README.md", "docs/one_click_setup.md", "docs/try_local_system.md", "scripts/docker_output.sh", "scripts/poststart_hook.sh", "scripts/prestart_hook.sh", "scripts/setup.sh"]}, "change_types": {"fields_added": 24, "conditionals_added": 18}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
refactor(payment_methods): Add new field_type UserBsbNumber, UserBankSortCode and UserBankRoutingNumber for payment_connector_required_fields ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Add new field_type `UserBsbNumber`, `UserBankSortCode` and `UserBankRoutingNumber` for `payment_connector_required_fields` ### 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? 1. Create a Merchant 2. Create API_KEY 3. Create Adyen connector ``` curl --location 'http://localhost:8080/account/merchant_1733479025/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' \ --data '{ "connector_type": "payment_processor", "connector_name": "adyen", "connector_account_details": { "auth_type": "BodyKey", "api_key": "", "key1": "", "api_secret": "" }, "test_mode": false, "disabled": false, "business_country": "US", "business_label": "default", "payment_methods_enabled": [ { "payment_method": "bank_debit", "payment_method_types": [ { "payment_method_type": "ach", "recurring_enabled": true, "installment_payment_enabled": true }, { "payment_method_type": "bacs", "recurring_enabled": true, "installment_payment_enabled": true } ] } ], "metadata": { "endpoint_prefix" : "" }, "connector_webhook_details": { "merchant_secret": "BE8E89E2CC5A5EB3886777B5BB7874A183E13D03D398691FD4951C228CD642A3" } }' ``` 4. Crete a Payment Intent with confirm false 5. List Payment Methods for a merchant ``` curl --location 'http://localhost:8080/account/payment_methods?client_secret=_' \ --header 'Accept: application/json' \ --header 'api-key: __' ``` Response - Check for bacs and becs ``` { "redirect_url": "https://duck.com/", "currency": "GBP", "payment_methods": [ { "payment_method": "bank_debit", "payment_method_types": [ { "payment_method_type": "bacs", "payment_experience": null, "card_networks": null, "bank_names": null, "bank_debits": { "eligible_connectors": [ "adyen" ] }, "bank_transfers": null, "required_fields": { "billing.address.last_name": { "required_field": "payment_method_data.billing.address.last_name", "display_name": "owner_name", "field_type": "user_billing_name", "value": null }, "payment_method_data.bank_debit.bacs.sort_code": { "required_field": "payment_method_data.bank_debit.bacs.sort_code", "display_name": "bank_sort_code", "field_type": "user_bank_sort_code", "value": null }, "payment_method_data.bank_debit.bacs.account_number": { "required_field": "payment_method_data.bank_debit.bacs.account_number", "display_name": "bank_account_number", "field_type": "user_bank_account_number", "value": null }, "billing.address.first_name": { "required_field": "payment_method_data.billing.address.first_name", "display_name": "owner_name", "field_type": "user_billing_name", "value": null } }, "surcharge_details": null, "pm_auth_connector": null }, { "payment_method_type": "ach", "payment_experience": null, "card_networks": null, "bank_names": null, "bank_debits": { "eligible_connectors": [ "adyen" ] }, "bank_transfers": null, "required_fields": { "payment_method_data.bank_debit.ach.account_number": { "required_field": "payment_method_data.bank_debit.ach.account_number", "display_name": "bank_account_number", "field_type": "user_bank_account_number", "value": null }, "payment_method_data.bank_debit.ach.routing_number": { "required_field": "payment_method_data.bank_debit.ach.routing_number", "display_name": "bank_routing_number", "field_type": "user_bank_routing_number", "value": null }, "billing.address.last_name": { "required_field": "payment_method_data.billing.address.last_name", "display_name": "owner_name", "field_type": "user_billing_name", "value": null }, "billing.address.first_name": { "required_field": "payment_method_data.billing.address.first_name", "display_name": "owner_name", "field_type": "user_billing_name", "value": "PiX" } }, "surcharge_details": null, "pm_auth_connector": null } ] } ], "mandate_payment": null, "merchant_name": "NewAge Retailer", "show_surcharge_breakup_screen": false, "payment_type": "new_mandate", "request_external_three_ds_authentication": false, "collect_shipping_details_from_wallets": false, "collect_billing_details_from_wallets": false, "is_tax_calculation_enabled": false } ``` ___________________________________________________________________ 1. Create Stripe connector ``` curl --location 'http://localhost:8080/account/postman_merchant_GHAction_f57f4475-c610-463d-8a51-cbff3fd6dc51/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' \ --data '{ "connector_type": "payment_processor", "connector_name": "stripe", "business_country": "US", "business_label": "default", "connector_account_details": { "auth_type": "HeaderKey", "api_key": "" }, "test_mode": false, "disabled": false, "payment_methods_enabled": [ { "payment_method": "bank_debit", "payment_method_types": [ { "payment_method_type": "ach", "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true }, { "payment_method_type": "becs", "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true }, { "payment_method_type": "bacs", "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true }, { "payment_method_type": "sepa", "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ] } ], "metadata": { "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", "parameters": { "gateway": "example", "gateway_merchant_id": "" } } } ], "merchant_info": { "merchant_name": "Narayan Bhat" } } } }' ``` 2. Create Payment Intent ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: ___' \ --data-raw '{ "amount": 1800, "currency": "USD", "confirm": false, "capture_method": "automatic", "customer_id": "klarna", "capture_on": "2022-09-10T10:11:12Z", "authentication_type": "three_ds", "email": "guest1@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "return_url": "https://google.com", "statement_descriptor_name": "Juspay", "statement_descriptor_suffix": "Router", "setup_future_usage": "off_session", "business_country": "US", "payment_method": "bank_debit", "payment_method_type": "ach", "payment_method_data": { "bank_debit": { "ach_bank_debit": { "billing_details": { "name": "John Doe", "email": "johndoe@example.com" }, "account_number": "000123456789", "routing_number": "110000000" } } }, "mandate_data": { "customer_acceptance": { "acceptance_type": "online", "accepted_at": "2022-09-10T10:11:12Z", "online": { "ip_address": "123.32.25.123", "user_agent": "Mozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/80.0.3987.119 Mobile Safari/537.36" } }, "mandate_type": { "single_use": { "amount": 6540, "currency": "USD" } } }, "metadata": { "order_details": { "product_name": "Apple iphone 15", "quantity": 1, "amount": 1800, "account_name": "transaction_processing" } } }' ``` 3. List Payment Methods for a merchant ``` curl --location 'http://localhost:8080/account/payment_methods?client_secret=_' \ --header 'Accept: application/json' \ --header 'api-key: _' ``` Response ``` { "redirect_url": "https://duck.com/", "currency": "USD", "payment_methods": [ { "payment_method": "bank_debit", "payment_method_types": [ { "payment_method_type": "sepa", "payment_experience": null, "card_networks": null, "bank_names": null, "bank_debits": { "eligible_connectors": [ "stripe" ] }, "bank_transfers": null, "required_fields": { "billing.email": { "required_field": "payment_method_data.billing.email", "display_name": "email", "field_type": "user_email_address", "value": "guest1@example.com" }, "billing.address.first_name": { "required_field": "payment_method_data.billing.address.first_name", "display_name": "billing_first_name", "field_type": "user_billing_name", "value": null }, "billing.address.last_name": { "required_field": "payment_method_data.billing.address.last_name", "display_name": "owner_name", "field_type": "user_billing_name", "value": null }, "payment_method_data.bank_debit.sepa_bank_debit.iban": { "required_field": "payment_method_data.bank_debit.sepa_bank_debit.iban", "display_name": "iban", "field_type": "user_iban", "value": null } }, "surcharge_details": null, "pm_auth_connector": null }, { "payment_method_type": "ach", "payment_experience": null, "card_networks": null, "bank_names": null, "bank_debits": { "eligible_connectors": [ "stripe" ] }, "bank_transfers": null, "required_fields": { "payment_method_data.bank_debit.ach_bank_debit.account_number": { "required_field": "payment_method_data.bank_debit.ach_bank_debit.account_number", "display_name": "bank_account_number", "field_type": "user_bank_account_number", "value": null }, "billing.address.last_name": { "required_field": "payment_method_data.billing.address.last_name", "display_name": "owner_name", "field_type": "user_billing_name", "value": null }, "payment_method_data.bank_debit.ach_bank_debit.routing_number": { "required_field": "payment_method_data.bank_debit.ach_bank_debit.routing_number", "display_name": "bank_routing_number", "field_type": "user_bank_routing_number", "value": null }, "billing.address.first_name": { "required_field": "payment_method_data.billing.address.first_name", "display_name": "billing_first_name", "field_type": "user_billing_name", "value": null } }, "surcharge_details": null, "pm_auth_connector": null }, { "payment_method_type": "bacs", "payment_experience": null, "card_networks": null, "bank_names": null, "bank_debits": { "eligible_connectors": [ "stripe" ] }, "bank_transfers": null, "required_fields": { "billing.address.country": { "required_field": "payment_method_data.billing.address.country", "display_name": "country", "field_type": { "user_address_country": { "options": [ "UK" ] } }, "value": null }, "billing.address.zip": { "required_field": "payment_method_data.billing.address.zip", "display_name": "zip", "field_type": "user_address_pincode", "value": null }, "payment_method_data.bank_debit.bacs_bank_debit.account_number": { "required_field": "payment_method_data.bank_debit.bacs_bank_debit.account_number", "display_name": "bank_account_number", "field_type": "user_bank_account_number", "value": null }, "billing.address.first_name": { "required_field": "payment_method_data.billing.address.first_name", "display_name": "billing_first_name", "field_type": "user_billing_name", "value": null }, "payment_method_data.bank_debit.bacs_bank_debit.sort_code": { "required_field": "payment_method_data.bank_debit.bacs_bank_debit.sort_code", "display_name": "bank_sort_code", "field_type": "user_bank_sort_code", "value": null }, "billing.address.line1": { "required_field": "payment_method_data.billing.address.line1", "display_name": "line1", "field_type": "user_address_line1", "value": null } }, "surcharge_details": null, "pm_auth_connector": null }, { "payment_method_type": "becs", "payment_experience": null, "card_networks": null, "bank_names": null, "bank_debits": { "eligible_connectors": [ "stripe" ] }, "bank_transfers": null, "required_fields": { "billing.address.first_name": { "required_field": "payment_method_data.billing.address.first_name", "display_name": "billing_first_name", "field_type": "user_billing_name", "value": null }, "payment_method_data.bank_debit.becs_bank_debit.account_number": { "required_field": "payment_method_data.bank_debit.becs_bank_debit.account_number", "display_name": "bank_account_number", "field_type": "user_bank_account_number", "value": null }, "billing.address.last_name": { "required_field": "payment_method_data.billing.address.last_name", "display_name": "owner_name", "field_type": "user_billing_name", "value": null }, "payment_method_data.bank_debit.becs_bank_debit.bsb_number": { "required_field": "payment_method_data.bank_debit.becs_bank_debit.bsb_number", "display_name": "bsb_number", "field_type": "user_bsb_number", "value": null }, "billing.email": { "required_field": "payment_method_data.billing.email", "display_name": "email", "field_type": "user_email_address", "value": "guest1@example.com" } }, "surcharge_details": null, "pm_auth_connector": null } ] } ], "mandate_payment": { "single_use": { "amount": 6540, "currency": "USD", "start_date": null, "end_date": null, "metadata": null } }, "merchant_name": "NewAge Retailer", "show_surcharge_breakup_screen": false, "payment_type": "new_mandate", "request_external_three_ds_authentication": false, "collect_shipping_details_from_wallets": false, "collect_billing_details_from_wallets": false, "is_tax_calculation_enabled": false } ``` In Response check field type, it should be `UserBsbNumber`, `UserBankSortCode` and `UserBankRoutingNumber` instead of text ## 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/enums.rs` **2. External Connector Integration** - `crates/router/src/configs/defaults/payment_connector_required_fields.rs` **3. Other** - `api-reference-v2/openapi_spec.json` - `api-reference/openapi_spec.json` **Code Patterns Applied:** - Extend existing types with new fields (6 changes) **Detailed Identifier Changes:** Commit 6f841458: Files to modify: **crates/api_models/src/enums.rs** Modify existing code **crates/router/src/configs/defaults/payment_connector_required_fields.rs** Modify existing code
{"pr_number": 6758, "pr_title": "refactor(payment_methods): Add new field_type UserBsbNumber, UserBankSortCode and UserBankRoutingNumber for payment_connector_required_fields", "merged_at": "2024-12-10T11:54:21Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/enums.rs"], "connectors": ["crates/router/src/configs/defaults/payment_connector_required_fields.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {"fields_added": 6}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
fix(core): add fix for stopping multiple event locking idempotent logs ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Adds fix for stopping multiple event locking idempotent logs Fix on top of previous PR - https://github.com/juspay/hyperswitch/pull/7579 What got missed in the previous PR? - We should be searching by merchant ID and idempotent event ID instead of searching by merchant ID and event ID [outgoing.rs](https://github.com/juspay/hyperswitch/blob/a4a564fee2782947e3d75ed20d4b18f9b45e7e8a/crates/router/src/core/webhooks/outgoing.rs#L158-L167) Since Event ID would be randomly generated each time, but idempotent event ID remains the same when inserting the event for the first time. ### 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)? --> Testing using test fn **test_concurrent_webhook_insertion_with_redis_lock** <img width="898" height="356" alt="Screenshot 2025-07-08 at 9 03 28 PM" src="https://github.com/user-attachments/assets/7f49ed57-8b6e-4db5-a27e-b3677229e86d" /> ## 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/events.rs` **2. Core Business Logic** - `crates/router/src/core/webhooks/outgoing.rs` **3. Other** - `crates/router/src/db/events.rs` - `crates/router/src/db/kafka_store.rs` **Code Patterns Applied:** - Implement new functions (10 changes) - Extend existing types with new fields (211 changes) - Modify database queries (2 changes) **Detailed Identifier Changes:** Commit 312c7337: Files to modify: **crates/diesel_models/src/query/events.rs** Add: - function: pub::find_by_merchant_id_idempotent_event_id **crates/router/src/core/webhooks/outgoing.rs** Modify existing code **crates/router/src/db/events.rs** Add: - function: private::find_event_by_merchant_id_idempotent_event_id - function: private::find_event_by_merchant_id_idempotent_event_id - function: private::test_concurrent_webhook_insertion_with_redis_lock **crates/router/src/db/kafka_store.rs** Add: - function: private::find_event_by_merchant_id_idempotent_event_id
{"pr_number": 8034, "pr_title": "fix(core): add fix for stopping multiple event locking idempotent logs", "merged_at": "2025-08-05T14:04:00Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["merchant", "user", "webhook"]}, "hierarchy": {"database": ["crates/diesel_models/src/query/events.rs"], "core_business": ["crates/router/src/core/webhooks/outgoing.rs"], "other": ["crates/router/src/db/events.rs", "crates/router/src/db/kafka_store.rs"]}, "change_types": {"functions_added": 10, "fields_added": 211, "imports_added": 7, "database_queries": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
refactor(dynamic_routing): change insert operation to upsert for dynamic_routing_stats ## 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 --> So previously we were only inserting in dynamic_routing_stats table, after this change we will be doing an Upsert operation instead of directly performing an insert operation. ### 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)? --> The same flow is required, the way we test dynamic routing: 1. enable SR for a merchant. 2. set volume of payments to 100 for dynamic routing 3. make two consecutive payments(insure they end up in terminal state). 4. check the table `dynami_routing stats` for entry of both of them. ![Screenshot 2025-03-17 at 5 08 53 PM](https://github.com/user-attachments/assets/4cda988d-117c-45e5-9b5b-4dd8ff730ae5) ## 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/dynamic_routing_stats.rs` - `crates/diesel_models/src/query/dynamic_routing_stats.rs` **2. Core Business Logic** - `crates/router/src/core/routing/helpers.rs` **3. Type Definitions** - `crates/router/src/types/storage/dynamic_routing_stats.rs` **4. Other** - `crates/router/src/db/dynamic_routing_stats.rs` **Code Patterns Applied:** - Define new data structures (1 changes) - Implement new functions (10 changes) - Extend existing types with new fields (65 changes) - Add conditional logic for feature flags or filtering (1 changes) - Modify database queries (4 changes) **Detailed Identifier Changes:** Commit 68aac34e: Files to modify: **crates/diesel_models/src/dynamic_routing_stats.rs** Add: - struct: pub::DynamicRoutingStatsUpdate **crates/diesel_models/src/query/dynamic_routing_stats.rs** Add: - function: pub::find_optional_by_attempt_id_merchant_id - function: pub::update - impl: impl DynamicRoutingStats **crates/router/src/core/routing/helpers.rs** Modify existing code **crates/router/src/db/dynamic_routing_stats.rs** Add: - function: private::find_dynamic_routing_stats_optional_by_attempt_id_merchant_id - function: private::update_dynamic_routing_stats - function: private::find_dynamic_routing_stats_optional_by_attempt_id_merchant_id - function: private::update_dynamic_routing_stats - function: private::find_dynamic_routing_stats_optional_by_attempt_id_merchant_id - function: private::update_dynamic_routing_stats **crates/router/src/types/storage/dynamic_routing_stats.rs** Modify existing code
{"pr_number": 7398, "pr_title": "refactor(dynamic_routing): change insert operation to upsert for dynamic_routing_stats", "merged_at": "2025-03-21T12:28:00Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"database": ["crates/diesel_models/src/dynamic_routing_stats.rs", "crates/diesel_models/src/query/dynamic_routing_stats.rs"], "core_business": ["crates/router/src/core/routing/helpers.rs"], "types": ["crates/router/src/types/storage/dynamic_routing_stats.rs"], "other": ["crates/router/src/db/dynamic_routing_stats.rs"]}, "change_types": {"structs_added": 1, "functions_added": 10, "fields_added": 65, "imports_added": 5, "conditionals_added": 1, "database_queries": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
chore(env): revert wasm changes for payload connector ## 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 reverts wasm changes for the payload connector that was introduced in https://github.com/juspay/hyperswitch/pull/8597 ### 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` --> crates/connector_configs/toml/* ## 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 change broke wasm. ## 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="673" height="303" alt="image" src="https://github.com/user-attachments/assets/b8a266e9-842f-4a79-b25c-c2a97feadf79" /> this shouldn't pop-up during the wasm build. ## 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/connector_configs/toml/development.toml` - `crates/connector_configs/toml/production.toml` - `crates/connector_configs/toml/sandbox.toml`
{"pr_number": 8818, "pr_title": "chore(env): revert wasm changes for payload connector", "merged_at": "2025-08-01T10:36:57Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "connector"]}, "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"}
feat(analytics): revert remove additional filters from PaymentIntentFilters ## 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 --> Reverts [https://github.com/juspay/hyperswitch/pull/6403](https://github.com/juspay/hyperswitch/pull/6403) When global filters are applied on the dashboard, these filters are being sent to both Payment Attempt and Payment Intent related metrics. Initially backend support was not present for capturing these filters and adding to the queries, for Payment Intent related metrics, but for the new Analytics V2 dashboard, since the Sessionizer Tables are being used, all these filter fields are supported in the Sessionizer Payment Intents table. When backend support was added to apply these filters for the new dashboard, the old dashboard started breaking, as the filter fields are not present in the existing Payment Intents table. FE stopped sending these filters to Payment Intent metrics on the old dashboard, and so adding these filters back to PaymentIntentFilters to support the filters on the new Analytics V2 dashboard. The additional filters added: - connector - authentication_type - payment_method - payment_method_type - card_network - merchant_id - card_last_4 - card_issuer - error_reason ### 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 filters for Payment Intent related metrics on the new Analytics V2 dashboard. ## 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: ```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.eyJ1c2VyX2lkIjoiNTQ5ZTNkMmItMTY5Yi00NzUzLWJmNTQtZDcxMTM2YjRiN2JkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzI2MDQ2MzI4Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTczMDkxNDM0Mywib3JnX2lkIjoib3JnX1ZwU0hPanNZZkR2YWJWWUpnQ0FKIiwicHJvZmlsZV9pZCI6InByb19BN1F4SjN6TG05Z1NmYkZqUTNpNSJ9.Y7RdCF52kfFCUld587axdN5d4Xl7SGK4wv7C-bdDI0M' \ --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": { "connector": [ "stripe_test" ] }, "timeSeries": { "granularity": "G_ONEDAY" }, "mode": "ORDER", "source": "BATCH", "metrics": [ "sessionized_total_smart_retries" ] } ]' ``` We should be able to extract the results based on the additional filters that are applied: - connector - authentication_type - payment_method - payment_method_type - card_network - merchant_id - card_last_4 - card_issuer - error_reason ## 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` **2. Core Business Logic** - `crates/analytics/src/payment_intents/core.rs` **3. Type Definitions** - `crates/analytics/src/payment_intents/types.rs` **4. Utils** - `crates/analytics/src/utils.rs` **5. Other** - `crates/analytics/src/payment_intents/filters.rs` - `crates/analytics/src/payment_intents/metrics.rs` - `crates/analytics/src/payment_intents/metrics/payment_intent_count.rs` - ... and 13 more files **Code Patterns Applied:** - Extend existing types with new fields (45 changes) - Add conditional logic for feature flags or filtering (9 changes) **Detailed Identifier Changes:** Commit ce95b653: Files to modify: **crates/analytics/src/payment_intents/core.rs** Modify existing code **crates/analytics/src/payment_intents/filters.rs** Modify existing code **crates/analytics/src/payment_intents/metrics.rs** Modify existing code **crates/analytics/src/payment_intents/metrics/payment_intent_count.rs** Modify existing code **crates/analytics/src/payment_intents/metrics/payment_processed_amount.rs** Modify existing code **crates/analytics/src/payment_intents/metrics/payments_success_rate.rs** Modify existing code **crates/analytics/src/payment_intents/metrics/sessionized_metrics/payment_intent_count.rs** Modify existing code **crates/analytics/src/payment_intents/metrics/sessionized_metrics/payment_processed_amount.rs** Modify existing code **crates/analytics/src/payment_intents/metrics/sessionized_metrics/payments_distribution.rs** Modify existing code **crates/analytics/src/payment_intents/metrics/sessionized_metrics/payments_success_rate.rs** Modify existing code **crates/analytics/src/payment_intents/metrics/sessionized_metrics/smart_retried_amount.rs** Modify existing code **crates/analytics/src/payment_intents/metrics/sessionized_metrics/successful_smart_retries.rs** Modify existing code **crates/analytics/src/payment_intents/metrics/sessionized_metrics/total_smart_retries.rs** Modify existing code **crates/analytics/src/payment_intents/metrics/smart_retried_amount.rs** Modify existing code **crates/analytics/src/payment_intents/metrics/successful_smart_retries.rs** Modify existing code **crates/analytics/src/payment_intents/metrics/total_smart_retries.rs** Modify existing code **crates/analytics/src/payment_intents/types.rs** Modify existing code **crates/analytics/src/sqlx.rs** Modify existing code **crates/analytics/src/utils.rs** Modify existing code **crates/api_models/src/analytics/payment_intents.rs** Modify existing code
{"pr_number": 6492, "pr_title": "feat(analytics): revert remove additional filters from PaymentIntentFilters", "merged_at": "2024-11-08T16:07:08Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"api_models": ["crates/api_models/src/analytics/payment_intents.rs"], "core_business": ["crates/analytics/src/payment_intents/core.rs"], "types": ["crates/analytics/src/payment_intents/types.rs"], "utils": ["crates/analytics/src/utils.rs"], "other": ["crates/analytics/src/payment_intents/filters.rs", "crates/analytics/src/payment_intents/metrics.rs", "crates/analytics/src/payment_intents/metrics/payment_intent_count.rs", "crates/analytics/src/payment_intents/metrics/payment_processed_amount.rs", "crates/analytics/src/payment_intents/metrics/payments_success_rate.rs", "crates/analytics/src/payment_intents/metrics/sessionized_metrics/payment_intent_count.rs", "crates/analytics/src/payment_intents/metrics/sessionized_metrics/payment_processed_amount.rs", "crates/analytics/src/payment_intents/metrics/sessionized_metrics/payments_distribution.rs", "crates/analytics/src/payment_intents/metrics/sessionized_metrics/payments_success_rate.rs", "crates/analytics/src/payment_intents/metrics/sessionized_metrics/smart_retried_amount.rs", "crates/analytics/src/payment_intents/metrics/sessionized_metrics/successful_smart_retries.rs", "crates/analytics/src/payment_intents/metrics/sessionized_metrics/total_smart_retries.rs", "crates/analytics/src/payment_intents/metrics/smart_retried_amount.rs", "crates/analytics/src/payment_intents/metrics/successful_smart_retries.rs", "crates/analytics/src/payment_intents/metrics/total_smart_retries.rs", "crates/analytics/src/sqlx.rs"]}, "change_types": {"fields_added": 45, "imports_added": 2, "conditionals_added": 9}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
build: bump MSRV to 1.85.0 ## 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 bumps the Minimum Supported Rust Version (MSRV) from Rust 1.80 to 1.85. Clippy Warning Fixes: 1. Replace repeat().take() with repeat_n() - More concise iterator creation 2. Replace map_or(true, ...) with is_none_or(...) - Modern idiomatic Option handling ### 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). --> Superposition has dependencies on the `askama` crate, which now requires a minimum Rust version of 1.81. Our current setup is still on 1.80. Bumping up the MSRV to 1.85 should solve this issue. ## 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 --> - [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/merchant_connector_account.rs` **2. Core Business Logic** - `crates/router/src/core/payment_methods/cards.rs` - `crates/router/src/core/payments/payment_methods.rs` - `crates/router/src/core/payments/routing.rs` - ... and 2 more files **3. Utils** - `crates/router/src/utils/user_role.rs` - `crates/storage_impl/src/utils.rs` **4. Configuration Files** - `.deepsource.toml` - `Cargo.toml` **5. Other** - `INSTALL_dependencies.sh` - `crates/analytics/src/search.rs` - `crates/euclid/src/backend/vir_interpreter.rs` - ... and 3 more files **Code Patterns Applied:** - Add conditional logic for feature flags or filtering (1 changes) - Modify database queries (21 changes) **Detailed Identifier Changes:** Commit 1d8290ce: Files to modify: **crates/analytics/src/search.rs** Modify existing code **crates/euclid/src/backend/vir_interpreter.rs** Modify existing code **crates/euclid/src/dssa/state_machine.rs** Modify existing code **crates/hyperswitch_domain_models/src/merchant_connector_account.rs** Modify existing code **crates/router/src/core/payment_methods/cards.rs** Modify existing code **crates/router/src/core/payments/payment_methods.rs** Modify existing code **crates/router/src/core/payments/routing.rs** Modify existing code **crates/router/src/core/user_role/role.rs** Modify existing code **crates/router/src/core/webhooks/incoming.rs** Modify existing code **crates/router/src/db/dispute.rs** Modify existing code **crates/router/src/db/refund.rs** Modify existing code **crates/router/src/utils/user_role.rs** Modify existing code **crates/storage_impl/src/utils.rs** Modify existing code
{"pr_number": 9390, "pr_title": "build: bump MSRV to 1.85.0", "merged_at": "2025-09-16T07:03:28Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/merchant_connector_account.rs"], "core_business": ["crates/router/src/core/payment_methods/cards.rs", "crates/router/src/core/payments/payment_methods.rs", "crates/router/src/core/payments/routing.rs", "crates/router/src/core/user_role/role.rs", "crates/router/src/core/webhooks/incoming.rs"], "utils": ["crates/router/src/utils/user_role.rs", "crates/storage_impl/src/utils.rs"], "config": [".deepsource.toml", "Cargo.toml"], "other": ["INSTALL_dependencies.sh", "crates/analytics/src/search.rs", "crates/euclid/src/backend/vir_interpreter.rs", "crates/euclid/src/dssa/state_machine.rs", "crates/router/src/db/dispute.rs", "crates/router/src/db/refund.rs"]}, "change_types": {"conditionals_added": 1, "database_queries": 21}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(connector): [ACI] cypress added ## 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 cypress for ACI. Following bugs were detected while adding cypress, this PR includes the fix for those as well: 1. `card_network` is required field only for network_token and not for normal card_payment, so made the field optional and populated missing error only for network_token flow. 2. When clicked technical_error after redirection, on returning back server was throwing 500 because the code for technical_error was not included in `aci/aci_result_codes.rs`. 3. Some fields are optional in capture response, handled it by making them optional. 4. For Void flow, separate `try_from` was not there previously and one for `Capture` was getting used up. This was causing incorrect status mapping for `Void`. ### 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)? --> <img width="742" height="902" alt="Screenshot 2025-09-23 at 6 07 35 PM" src="https://github.com/user-attachments/assets/895d2bc4-ad14-4bfe-9e73-ae6e940efd58" /> ## 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/aci/aci_result_codes.rs` - `crates/hyperswitch_connectors/src/connectors/aci/transformers.rs` **2. Tests** - `cypress-tests/cypress/e2e/configs/Payment/Aci.js` - `cypress-tests/cypress/support/redirectionHandler.js` **Code Patterns Applied:** - Define new data structures (1 changes) - Implement new functions (3 changes) - Extend existing types with new fields (235 changes) **Detailed Identifier Changes:** Commit 1c52f699: Files to modify: **crates/hyperswitch_connectors/src/connectors/aci/aci_result_codes.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/aci/transformers.rs** Modify existing code
{"pr_number": 9502, "pr_title": "feat(connector): [ACI] cypress added", "merged_at": "2025-09-29T09:09:41Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "token"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/aci/aci_result_codes.rs", "crates/hyperswitch_connectors/src/connectors/aci/transformers.rs"], "tests": ["cypress-tests/cypress/e2e/configs/Payment/Aci.js", "cypress-tests/cypress/support/redirectionHandler.js"]}, "change_types": {"structs_added": 1, "functions_added": 3, "enums_added": 1, "fields_added": 235}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(revenue_recovery): Invoke attempt list instead of payment get in recovery webhooks flow ## 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 --> Previously we were using payment get to find whether attempt is present in db or not, but for the first invoice webhook there won't be any attempt present in db and recently we added a validation to use payment get only in case of attempt is present. This PR solves this issue by invoking payment get attempt list instead of payment get. Also for stripe billing / stripe connector_transaction_id remains same instead charge id keeps changing , so we added a support for this by checking if charge id is present we compare charge id if not we check for connector transaction id. ### 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). --> ## 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 complete revenue recovery flow with stripebilling 1) Set up merchant and mca for billing and payment connector for stripebilling and stripe 2) Make sure merchant have retry_algorithm_type to cascading in business profile 3) Trigger payment invoice from stripe, after threshold external attempts , pt entry should be done in and start triggering internal payments. ## 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. Database Layer (Queries & Schema)** - `crates/diesel_models/src/payment_attempt.rs` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/payments.rs` - `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs` - `crates/hyperswitch_domain_models/src/revenue_recovery.rs` - ... and 1 more files **4. Core Business Logic** - `crates/router/src/core/payments/transformers.rs` - `crates/router/src/core/routing/helpers.rs` - `crates/router/src/core/webhooks/recovery_incoming.rs` **5. 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` **6. Other** - `api-reference/README.md` - `api-reference/v2/openapi_spec_v2.json` **Code Patterns Applied:** - Implement new functions (1 changes) - Extend existing types with new fields (17 changes) - Modify database queries (2 changes) **Detailed Identifier Changes:** Commit fc72c3ee: Files to modify: **crates/api_models/src/payments.rs** Modify existing code **crates/diesel_models/src/payment_attempt.rs** Modify existing code **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/payments/payment_attempt.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/payments/transformers.rs** Modify existing code **crates/router/src/core/routing/helpers.rs** Modify existing code **crates/router/src/core/webhooks/recovery_incoming.rs** Modify existing code
{"pr_number": 8393, "pr_title": "feat(revenue_recovery): Invoke attempt list instead of payment get in recovery webhooks flow", "merged_at": "2025-06-20T09:01:12Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/payment_attempt.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments.rs", "crates/hyperswitch_domain_models/src/payments/payment_attempt.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/payments/transformers.rs", "crates/router/src/core/routing/helpers.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"], "other": ["api-reference/README.md", "api-reference/v2/openapi_spec_v2.json"]}, "change_types": {"functions_added": 1, "fields_added": 17, "database_queries": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
refactor(connector): [Coingate] add add metadata keys for coingate in ConfigMetadata struct ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description add add metadata keys for coingate in ConfigMetadata struct ### 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? 1. Create Merchant 2. Create API key 3. Create MCA of coingate ``` curl --location 'http://localhost:8080/account/merchant_1742369861/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' \ --data '{ "connector_type": "payment_processor", "connector_name": "coingate", "connector_account_details": { "auth_type": "HeaderKey", "api_key": "___" }, "test_mode": false, "disabled": false, "payment_methods_enabled": [ { "payment_method": "crypto", "payment_method_types": [ { "payment_method_type": "crypto_currency", "payment_experience": "redirect_to_url", "card_networks": null, "accepted_currencies": null, "accepted_countries": null, "minimum_amount": 0, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": false } ] } ], "metadata":{ "currency_id": 1, "platform_id": 6, "ledger_account_id": "___" } }' Response ``` { "connector_type": "payment_processor", "connector_name": "coingate", "connector_label": "coingate_US_food", "merchant_connector_id": "mca_1P9UPEEiqxrOd5LL2QFu", "profile_id": "pro_uHYtW2yoEpfpSzKht6FY", "connector_account_details": { "auth_type": "BodyKey", "api_key": "8H************************************SV", "key1": "qe****we" }, "payment_methods_enabled": [ { "payment_method": "crypto", "payment_method_types": [ { "payment_method_type": "crypto_currency", "payment_experience": "redirect_to_url", "card_networks": null, "accepted_currencies": null, "accepted_countries": null, "minimum_amount": 0, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": false } ] } ], "connector_webhook_details": null, "metadata": { "currency_id": 1, "platform_id": 6, "ledger_account_id": "01JP4KPNNMF0S26GVP99RZXGWP" }, "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 } ``` ## 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/src/connector.rs` **Code Patterns Applied:** - Extend existing types with new fields (3 changes) **Detailed Identifier Changes:** Commit 45e4a276: Files to modify: **crates/connector_configs/src/connector.rs** Modify existing code
{"pr_number": 7655, "pr_title": "refactor(connector): [Coingate] add add metadata keys for coingate in ConfigMetadata struct ", "merged_at": "2025-03-28T11:12:41Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "connector"]}, "hierarchy": {"connectors": ["crates/connector_configs/src/connector.rs"]}, "change_types": {"fields_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(router): add support for relay refund incoming webhooks ## 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 --> Some connectors, like Adyen, do not support a refund sync API, so we need to rely on refund webhooks for the status. To address this, support for relay refund webhooks is being added. To support this use case, a new webhook endpoint needs to be introduced for relay webhooks: /webhooks/relay/{merchant_id}/{connector_id_or_name} Once the webhook is identified as a relay webhook, it should be handled based on the flow type, such as refunds, payments, etc. For now, only support for relay refund webhooks has been added. ### 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 change is to update the relay status when we have to rely on the connector webhooks for the refund status. ## 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 for stripe -> Setup the webhook url in the stripe dashboard -> Relay webhook testing -> Make payment through stripe connector. As this relay webhooks can only handle relay refunds webhooks, we need to return 200 OK for the payments webhooks that we received. ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-tenant-id: hyperswitch' \ --header 'api-key:' \ --data-raw '{ "amount": 100, "amount_to_capture": 100, "currency": "USD", "confirm": true, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+1", "description": "Its my first payment request", "authentication_type": "no_three_ds", "customer_id": "cu_1736430184", "return_url": "http://127.0.0.1:4040", "customer_acceptance": { "acceptance_type": "offline", "accepted_at": "1963-05-03T04:07:52.723Z", "online": { "ip_address": "in sit", "user_agent": "amet irure esse" } }, "payment_method": "card", "payment_method_data": { "card": { "card_number": "4111111111111111", "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", "state": "California", "zip": "94122", "country": "US", "first_name": "PiX", "last_name": "ss" }, "email": "raj@gmail.com" }, "shipping": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "PiX" } }, "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" }, "routing": { "type": "single", "data": { "connector": "cybersource", "merchant_connector_id": "mca_8W0CQfwE89J1BJBbpcnt" } }, "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } }' ``` ``` { "payment_id": "pay_9IYMeErPOtFrHTxEundR", "merchant_id": "merchant_1736429319", "status": "succeeded", "amount": 100, "net_amount": 100, "shipping_cost": null, "amount_capturable": 0, "amount_received": 100, "connector": "stripe", "client_secret": "pay_9IYMeErPOtFrHTxEundR_secret_A9BwRKPAld2g2fPwpN0Z", "created": "2025-01-09T13:42:58.438Z", "currency": "USD", "customer_id": "cu_1736430178", "customer": { "id": "cu_1736430178", "name": "John Doe", "email": "guest@example.com", "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": 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": "joseph Doe", "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": "PiX", "last_name": null }, "phone": null, "email": null }, "billing": { "address": { "city": "San", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": "ss" }, "phone": null, "email": "raj@gmail.com" }, "order_details": null, "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "return_url": "http://127.0.0.1:4040/", "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": null, "connector_label": null, "business_country": null, "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": { "customer_id": "cu_1736430178", "created_at": 1736430178, "expires": 1736433778, "secret": "epk_54d28c2dcea8416fa84ce3ec9f960102" }, "manual_retry_allowed": false, "connector_transaction_id": "pi_3QfM0lD5R7gDAGff1L1eaicn", "frm_message": null, "metadata": { "udf1": "value1", "login_date": "2019-09-10T10:11:12Z", "new_customer": "true" }, "connector_metadata": null, "feature_metadata": null, "reference_id": "pi_3QfM0lD5R7gDAGff1L1eaicn", "payment_link": null, "profile_id": "pro_GhoiAnNpnyEAqAAbwULW", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_YhBV1Nr6PXdkkG7md9ro", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-01-09T13:57:58.438Z", "fingerprint": null, "browser_info": { "language": "nl-NL", "time_zone": 0, "ip_address": "125.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-01-09T13:43:00.565Z", "split_payments": null, "frm_metadata": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": null } ``` ![image](https://github.com/user-attachments/assets/8f422071-09fa-41a1-9ef3-096baed78c64) -> Create a relay refund ``` curl --location 'http://localhost:8080/relay' \ --header 'Content-Type: application/json' \ --header 'x-profile-id: pro_GhoiAnNpnyEAqAAbwULW' \ --header 'api-key:' \ --data '{ "connector_id": "mca_YhBV1Nr6PXdkkG7md9ro", "connector_resource_id": "pi_3QfM0lD5R7gDAGff1L1eaicn", "data": { "refund": { "amount": 1, "currency": "USD" } }, "type": "refund" }' ``` ``` { "id": "relay_WhRindDie9fcGbLRvE3G", "status": "success", "connector_resource_id": "pi_3QfM0lD5R7gDAGff1L1eaicn", "error": null, "connector_reference_id": "re_3QfM0lD5R7gDAGff1533tuY2", "connector_id": "mca_YhBV1Nr6PXdkkG7md9ro", "profile_id": "pro_GhoiAnNpnyEAqAAbwULW", "type": "refund", "data": { "refund": { "amount": 1, "currency": "USD", "reason": null } } } ``` ![image](https://github.com/user-attachments/assets/c9bca26d-2bf5-472b-b38c-686821b08b4a) -> Manually setting the db recording the pending to test relay status update by webhook ``` curl --location 'http://localhost:8080/relay/relay_WhRindDie9fcGbLRvE3G' \ --header 'Content-Type: application/json' \ --header 'X-Idempotency-Key: <x-idempotency-key>' \ --header 'X-Profile-Id: pro_GhoiAnNpnyEAqAAbwULW' \ --header 'api-key:' \ --data '' ``` ``` { "id": "relay_WhRindDie9fcGbLRvE3G", "status": "pending", "connector_resource_id": "pi_3QfM0lD5R7gDAGff1L1eaicn", "error": null, "connector_reference_id": "re_3QfM0lD5R7gDAGff1533tuY2", "connector_id": "mca_YhBV1Nr6PXdkkG7md9ro", "profile_id": "pro_GhoiAnNpnyEAqAAbwULW", "type": "refund", "data": { "refund": { "amount": 1, "currency": "USD", "reason": null } } } ``` -> Re trigger the relay webhook and when retrieved the status is expected to be succeeded ![image](https://github.com/user-attachments/assets/c860f611-7b81-49d8-85cd-55e7f52ad347) ``` curl --location 'http://localhost:8080/relay/relay_WhRindDie9fcGbLRvE3G' \ --header 'Content-Type: application/json' \ --header 'X-Idempotency-Key: <x-idempotency-key>' \ --header 'X-Profile-Id: pro_GhoiAnNpnyEAqAAbwULW' \ --header 'api-key:' \ --data '' ``` ``` { "id": "relay_WhRindDie9fcGbLRvE3G", "status": "success", "connector_resource_id": "pi_3QfM0lD5R7gDAGff1L1eaicn", "error": null, "connector_reference_id": "re_3QfM0lD5R7gDAGff1533tuY2", "connector_id": "mca_YhBV1Nr6PXdkkG7md9ro", "profile_id": "pro_GhoiAnNpnyEAqAAbwULW", "type": "refund", "data": { "refund": { "amount": 1, "currency": "USD", "reason": null } } } ``` -> Test stripe normal payments webhooks to ensure that the webhook behaviour is not affected for all other events -> Create a payment ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-tenant-id: hyperswitch' \ --header 'api-key:' \ --data-raw '{ "amount": 100, "amount_to_capture": 100, "currency": "USD", "confirm": true, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+1", "description": "Its my first payment request", "authentication_type": "no_three_ds", "customer_id": "cu_1736432186", "return_url": "http://127.0.0.1:4040", "customer_acceptance": { "acceptance_type": "offline", "accepted_at": "1963-05-03T04:07:52.723Z", "online": { "ip_address": "in sit", "user_agent": "amet irure esse" } }, "payment_method": "card", "payment_method_data": { "card": { "card_number": "4111111111111111", "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", "state": "California", "zip": "94122", "country": "US", "first_name": "PiX", "last_name": "ss" }, "email": "raj@gmail.com" }, "shipping": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "PiX" } }, "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" }, "routing": { "type": "single", "data": { "connector": "cybersource", "merchant_connector_id": "mca_8W0CQfwE89J1BJBbpcnt" } }, "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } }' ``` ``` { "payment_id": "pay_bnl7rTJB6WUbfsQRTRU3", "merchant_id": "merchant_1736429319", "status": "succeeded", "amount": 100, "net_amount": 100, "shipping_cost": null, "amount_capturable": 0, "amount_received": 100, "connector": "stripe", "client_secret": "pay_bnl7rTJB6WUbfsQRTRU3_secret_YRCZCEKKcDxD6VnbtBGl", "created": "2025-01-09T14:07:10.134Z", "currency": "USD", "customer_id": "cu_1736431630", "customer": { "id": "cu_1736431630", "name": "John Doe", "email": "guest@example.com", "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": 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": "joseph Doe", "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": "PiX", "last_name": null }, "phone": null, "email": null }, "billing": { "address": { "city": "San", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": "ss" }, "phone": null, "email": "raj@gmail.com" }, "order_details": null, "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "return_url": "http://127.0.0.1:4040/", "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": null, "connector_label": null, "business_country": null, "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": { "customer_id": "cu_1736431630", "created_at": 1736431630, "expires": 1736435230, "secret": "epk_bf70a02d2bb64f5c81712679dedac0aa" }, "manual_retry_allowed": false, "connector_transaction_id": "pi_3QfMOBD5R7gDAGff0l6jmTHK", "frm_message": null, "metadata": { "udf1": "value1", "login_date": "2019-09-10T10:11:12Z", "new_customer": "true" }, "connector_metadata": null, "feature_metadata": null, "reference_id": "pi_3QfMOBD5R7gDAGff0l6jmTHK", "payment_link": null, "profile_id": "pro_GhoiAnNpnyEAqAAbwULW", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_YhBV1Nr6PXdkkG7md9ro", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-01-09T14:22:10.134Z", "fingerprint": null, "browser_info": { "language": "nl-NL", "time_zone": 0, "ip_address": "125.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-01-09T14:07:12.259Z", "split_payments": null, "frm_metadata": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": null } ``` -> Manually set the status to pending in the db to test webhooks flow ``` curl --location 'http://localhost:8080/payments/pay_bnl7rTJB6WUbfsQRTRU3' \ --header 'Accept: application/json' \ --header 'api-key:' ``` ``` { "payment_id": "pay_bnl7rTJB6WUbfsQRTRU3", "merchant_id": "merchant_1736429319", "status": "processing", "amount": 100, "net_amount": 100, "shipping_cost": null, "amount_capturable": 0, "amount_received": 100, "connector": "stripe", "client_secret": "pay_bnl7rTJB6WUbfsQRTRU3_secret_YRCZCEKKcDxD6VnbtBGl", "created": "2025-01-09T14:07:10.134Z", "currency": "USD", "customer_id": "cu_1736431630", "customer": { "id": "cu_1736431630", "name": "John Doe", "email": "guest@example.com", "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": 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": "joseph Doe", "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": "PiX", "last_name": null }, "phone": null, "email": null }, "billing": { "address": { "city": "San", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": "ss" }, "phone": null, "email": "raj@gmail.com" }, "order_details": null, "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "return_url": "http://127.0.0.1:4040/", "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": 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": "pi_3QfMOBD5R7gDAGff0l6jmTHK", "frm_message": null, "metadata": { "udf1": "value1", "login_date": "2019-09-10T10:11:12Z", "new_customer": "true" }, "connector_metadata": null, "feature_metadata": null, "reference_id": "pi_3QfMOBD5R7gDAGff0l6jmTHK", "payment_link": null, "profile_id": "pro_GhoiAnNpnyEAqAAbwULW", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_YhBV1Nr6PXdkkG7md9ro", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-01-09T14:22:10.134Z", "fingerprint": null, "browser_info": { "language": "nl-NL", "time_zone": 0, "ip_address": "125.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": "pm_2aJAicSBjlanyP8w6jYQ", "payment_method_status": "active", "updated": "2025-01-09T14:15:56.696Z", "split_payments": null, "frm_metadata": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": null } ``` -> resend the webhook and when retrieved the payment status is expected to be succeeded ``` curl --location 'http://localhost:8080/payments/pay_bnl7rTJB6WUbfsQRTRU3' \ --header 'Accept: application/json' \ --header 'api-key:' ``` ``` { "payment_id": "pay_bnl7rTJB6WUbfsQRTRU3", "merchant_id": "merchant_1736429319", "status": "succeeded", "amount": 100, "net_amount": 100, "shipping_cost": null, "amount_capturable": 0, "amount_received": 100, "connector": "stripe", "client_secret": "pay_bnl7rTJB6WUbfsQRTRU3_secret_YRCZCEKKcDxD6VnbtBGl", "created": "2025-01-09T14:07:10.134Z", "currency": "USD", "customer_id": "cu_1736431630", "customer": { "id": "cu_1736431630", "name": "John Doe", "email": "guest@example.com", "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": 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": "joseph Doe", "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": "PiX", "last_name": null }, "phone": null, "email": null }, "billing": { "address": { "city": "San", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": "ss" }, "phone": null, "email": "raj@gmail.com" }, "order_details": null, "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "return_url": "http://127.0.0.1:4040/", "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": 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": "pi_3QfMOBD5R7gDAGff0l6jmTHK", "frm_message": null, "metadata": { "udf1": "value1", "login_date": "2019-09-10T10:11:12Z", "new_customer": "true" }, "connector_metadata": null, "feature_metadata": null, "reference_id": "pi_3QfMOBD5R7gDAGff0l6jmTHK", "payment_link": null, "profile_id": "pro_GhoiAnNpnyEAqAAbwULW", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_YhBV1Nr6PXdkkG7md9ro", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-01-09T14:22:10.134Z", "fingerprint": null, "browser_info": { "language": "nl-NL", "time_zone": 0, "ip_address": "125.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": "pm_2aJAicSBjlanyP8w6jYQ", "payment_method_status": "active", "updated": "2025-01-09T14:21:04.293Z", "split_payments": 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. API Request/Response Models** - `crates/api_models/src/webhooks.rs` **2. Database Layer (Queries & Schema)** - `crates/diesel_models/src/query/relay.rs` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/relay.rs` **4. Core Business Logic** - `crates/router/src/core/webhooks/incoming.rs` - `crates/router/src/core/webhooks/incoming_v2.rs` **5. Type Definitions** - `crates/router/src/types/transformers.rs` - `crates/router_env/src/logger/types.rs` **6. Utils** - `crates/common_utils/src/id_type/relay.rs` - `crates/router/src/routes/lock_utils.rs` **7. Other** - `crates/router/src/db/relay.rs` - `crates/router/src/lib.rs` - `crates/router/src/routes.rs` - ... and 4 more files **Code Patterns Applied:** - Define new data structures (1 changes) - Implement new functions (13 changes) - Extend existing types with new fields (58 changes) - Add conditional logic for feature flags or filtering (2 changes) - Modify database queries (2 changes) **Detailed Identifier Changes:** Commit d850f17b: Files to modify: **crates/api_models/src/webhooks.rs** Modify existing code **crates/common_utils/src/id_type/relay.rs** Add: - function: private::from_str - impl: impl FromStr for RelayId **crates/diesel_models/src/query/relay.rs** Add: - function: pub::find_by_profile_id_connector_reference_id **crates/hyperswitch_domain_models/src/relay.rs** Modify existing code **crates/router/src/core/webhooks/incoming.rs** Add: - function: private::relay_refunds_incoming_webhook_flow - function: private::relay_incoming_webhook_flow **crates/router/src/core/webhooks/incoming_v2.rs** Modify existing code **crates/router/src/db/relay.rs** Add: - function: private::find_relay_by_profile_id_connector_reference_id - function: private::find_relay_by_profile_id_connector_reference_id - function: private::find_relay_by_profile_id_connector_reference_id **crates/router/src/lib.rs** Modify existing code **crates/router/src/routes.rs** Modify existing code **crates/router/src/routes/app.rs** Add: - function: pub::server - struct: pub::RelayWebhooks - impl: impl RelayWebhooks **crates/router/src/routes/lock_utils.rs** Modify existing code **crates/router/src/routes/webhooks.rs** Add: - function: pub::receive_incoming_relay_webhook - function: pub::receive_incoming_relay_webhook **crates/router/src/types/transformers.rs** Add: - function: private::foreign_try_from - impl: impl ForeignTryFrom<api_models::webhooks::IncomingWebhookEvent> for api_enums::RelayStatus **crates/router_env/src/logger/types.rs** Modify existing code
{"pr_number": 6974, "pr_title": "feat(router): add support for relay refund incoming webhooks", "merged_at": "2025-01-10T08:07:42Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/webhooks.rs"], "database": ["crates/diesel_models/src/query/relay.rs"], "domain": ["crates/hyperswitch_domain_models/src/relay.rs"], "core_business": ["crates/router/src/core/webhooks/incoming.rs", "crates/router/src/core/webhooks/incoming_v2.rs"], "types": ["crates/router/src/types/transformers.rs", "crates/router_env/src/logger/types.rs"], "utils": ["crates/common_utils/src/id_type/relay.rs", "crates/router/src/routes/lock_utils.rs"], "other": ["crates/router/src/db/relay.rs", "crates/router/src/lib.rs", "crates/router/src/routes.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/webhooks.rs", "migrations/2025-01-07-105739_create_index_for_relay/down.sql", "migrations/2025-01-07-105739_create_index_for_relay/up.sql"]}, "change_types": {"structs_added": 1, "functions_added": 13, "fields_added": 58, "imports_added": 3, "conditionals_added": 2, "database_queries": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
refactor(core): accept manual retry from profile ## 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 --> Currently manual retry is enabled through request. We need to make it profile configurable such that the merchant/SDK doesn't need to send it for each request - `is_manual_retry` is enabled through profile with this pr - if it is enabled, it lets merchant do multiple confirm with the same client_secret/payment_id - This helps in manually retrying the payment with other payment method if the current one fails - the behaviour in the core is changed, the condition is not based on profile config rather than request - the response is populated as well based on profile config ### 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(Cybersource): Case 1: (without manual retry enabled) - Create an intent: ``` curl --location '{{baseUrl}}/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key:{{api_key}}' \ --data-raw '{ "amount": 10, "currency": "EUR", "confirm": false, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "customer_id": "cus_r4hlpxACcjdVr64ypkwQ", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "authentication_type": "no_three_ds", "return_url": "https://hyperswitch.io", "billing": { "address": { "city": "test", "country": "AT", "line1": "here is some \n there is some \n none is some? \n ", "line2": "there", "line3": "anywhere", "zip": "560095", "state": "Varaždin County", "first_name": "S@k!l", "last_name": "M*st@k" } }, "shipping": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "AT", "first_name": "PiX" } }, "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } , "setup_future_usage": "on_session" }' ``` - Create an confirm (failed) ``` curl --location '{{baseUrl}}/payments/pay_WCYhYBAJAarSdk2xosGs/confirm' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key:{{api_key}}' \ --data-raw '{ "payment_method": "card", "retry_action": "manual_retry", "payment_method_data": { "billing": { "address": { "city": "sakilmostak", "country": "US", "line1": "here", "line2": "there", "line3": "anywhere", "zip": "560090", "state": "Washington", "first_name": "One", "last_name": "Two" }, "phone": { "number": "1234567890", "country_code": "+1" }, "email": "guest@example.com" }, "card": { "card_number": "4242424242424242", "card_exp_month": "02", "card_exp_year": "2026", "card_holder_name": "Sakil Mostak", "card_cvc": "999" } }, "billing": { "address": { "city": "Mostak", "country": "GB", "line1": "here is some \n there is some \n none is some? \n ", "line2": "there", "line3": "anywhere", "zip": "560095", "state": "Varaždin County", "first_name": "Sakil", "last_name": "Mostak" } }, "client_secret": "pay_WCYhYBAJAarSdk2xosGs_secret_BKtUnpRi4V90A5pqlvb6", "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" } }' ``` - Try to confirm again, it should through the below error ``` { "error": { "type": "invalid_request", "message": "You cannot confirm this payment because it has status failed, you can enable `manual_retry` in profile to try this payment again", "code": "IR_16" } } ``` Case 2: (with manual retry enabeld) - Enable manual retry in profile ``` curl --location '{{baseUrl}}/account/{{merchant_id}}/business_profile/{{profile_id}}' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key:{{api_key}}' \ --data '{ "is_manual_retry_enabled": true }' ``` - Create an intent: ``` curl --location '{{baseUrl}}/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key:{{api_key}}' \ --data-raw '{ "amount": 10, "currency": "EUR", "confirm": false, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "customer_id": "cus_r4hlpxACcjdVr64ypkwQ", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "authentication_type": "no_three_ds", "return_url": "https://hyperswitch.io", "billing": { "address": { "city": "test", "country": "AT", "line1": "here is some \n there is some \n none is some? \n ", "line2": "there", "line3": "anywhere", "zip": "560095", "state": "Varaždin County", "first_name": "S@k!l", "last_name": "M*st@k" } }, "shipping": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "AT", "first_name": "PiX" } }, "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } , "setup_future_usage": "on_session" }' ``` - Create an confirm (failed) ``` curl --location '{{baseUrl}}/payments/pay_WCYhYBAJAarSdk2xosGs/confirm' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key:{{api_key}}' \ --data-raw '{ "payment_method": "card", "retry_action": "manual_retry", "payment_method_data": { "billing": { "address": { "city": "sakilmostak", "country": "US", "line1": "here", "line2": "there", "line3": "anywhere", "zip": "560090", "state": "Washington", "first_name": "One", "last_name": "Two" }, "phone": { "number": "1234567890", "country_code": "+1" }, "email": "guest@example.com" }, "card": { "card_number": "4242424242424242", "card_exp_month": "02", "card_exp_year": "2026", "card_holder_name": "Sakil Mostak", "card_cvc": "999" } }, "billing": { "address": { "city": "Mostak", "country": "GB", "line1": "here is some \n there is some \n none is some? \n ", "line2": "there", "line3": "anywhere", "zip": "560095", "state": "Varaždin County", "first_name": "Sakil", "last_name": "Mostak" } }, "client_secret": "pay_WCYhYBAJAarSdk2xosGs_secret_BKtUnpRi4V90A5pqlvb6", "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" } }' ``` - Try to confirm again with correct request, it should be able to make the payment (success) like below ``` { "payment_id": "pay_yZ9S88KzkI8uWZ20No6M", "merchant_id": "merchant_1757326993", "status": "succeeded", "amount": 10, "net_amount": 10, "shipping_cost": null, "amount_capturable": 0, "amount_received": 10, "connector": "cybersource", "client_secret": "pay_yZ9S88KzkI8uWZ20No6M_secret_qkjjAiTzixC5O58X1K3A", "created": "2025-09-08T10:24:10.474Z", "currency": "EUR", "customer_id": "cus_r4hlpxACcjdVr64ypkwQ", "customer": { "id": "cus_r4hlpxACcjdVr64ypkwQ", "name": "John Doe", "email": "guest@example.com", "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": "card", "payment_method_data": { "card": { "last4": "4242", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "424242", "card_extended_bin": null, "card_exp_month": "02", "card_exp_year": "2026", "card_holder_name": "Sakil Mostak", "payment_checks": { "avs_response": { "code": "X", "codeRaw": "I1" }, "card_verification": null }, "authentication_data": null }, "billing": { "address": { "city": "sakilmostak", "country": "US", "line1": "here", "line2": "there", "line3": "anywhere", "zip": "560090", "state": "Washington", "first_name": "One", "last_name": "Two", "origin_zip": null }, "phone": { "number": "1234567890", "country_code": "+1" }, "email": "guest@example.com" } }, "payment_token": "token_85KAtvBNQqHs4BoAdG0y", "shipping": { "address": { "city": "San Fransico", "country": "AT", "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": "Mostak", "country": "GB", "line1": "here is some \n there is some \n none is some? \n ", "line2": "there", "line3": "anywhere", "zip": "560095", "state": "Varaždin County", "first_name": "Sakil", "last_name": "Mostak", "origin_zip": null }, "phone": null, "email": null }, "order_details": null, "email": "guest@example.com", "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": 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": "7573271056056775504805", "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": "pay_yZ9S88KzkI8uWZ20No6M_3", "payment_link": null, "profile_id": "pro_f5v9oKg0pFd4YK6UA03Y", "surcharge_details": null, "attempt_count": 3, "merchant_decision": null, "merchant_connector_id": "mca_DfPtPa3pBRQmbymilR38", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-09-08T10:39:10.474Z", "fingerprint": null, "browser_info": { "os_type": null, "language": "nl-NL", "time_zone": 0, "ip_address": "125.0.0.1", "os_version": null, "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, "device_model": null, "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, "accept_language": "en", "java_script_enabled": true }, "payment_channel": null, "payment_method_id": null, "network_transaction_id": "123456789619999", "payment_method_status": null, "updated": "2025-09-08T10:25:05.916Z", "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 } ``` ## 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/enums.rs` **2. Core Business Logic** - `crates/router/src/core/payments.rs` - `crates/router/src/core/payments/helpers.rs` - `crates/router/src/core/payments/operations/payment_approve.rs` - ... and 16 more files **Code Patterns Applied:** - Implement new functions (2 changes) - Extend existing types with new fields (18 changes) - Add conditional logic for feature flags or filtering (1 changes) **Detailed Identifier Changes:** Commit 59870a96: Files to modify: **crates/api_models/src/enums.rs** Modify existing code **crates/router/src/core/payments.rs** Add: - function: private::get_is_manual_retry_enabled **crates/router/src/core/payments/helpers.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_cancel_post_capture.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_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/payment_update_metadata.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
{"pr_number": 9302, "pr_title": "refactor(core): accept manual retry from profile ", "merged_at": "2025-09-11T14:32:09Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/enums.rs"], "core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/helpers.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_cancel_post_capture.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_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/payment_update_metadata.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"]}, "change_types": {"functions_added": 2, "fields_added": 18, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(connector): [Fiuu] Add support for cards recurring payments ## 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 mandates support for fiuu ### 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)? --> Complete flow for mandates can be tested for fiuu, since it only works in Production environment. But CIT can be tested in sandbox. **Test cases** added cypress tests : cypress tests cannot be written for manual capture mandates, since token is not stored in our system when payment status is authoirzed and after authoirze we don't recieve connector mandate id via psync/ webhooks. <img width="720" alt="Screenshot 2024-10-25 at 9 12 37 AM" src="https://github.com/user-attachments/assets/d742bb79-ce7f-4d5e-865e-9531ac77bfb1"> payments create curl ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: ••••••' \ --data '{ "amount": 1650, "currency": "EUR", "confirm": false, "customer_id": "customer123" }' ``` payments confirm curl(non 3ds) ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: ••••••' \ --data-raw '{ "amount": 100, "currency": "MYR", "confirm": true, "payment_link": false, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 100, "customer_id": "askdjfhak", "email": "guest@example.com", "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": "card", "payment_method_type": "credit", "payment_method_data": { "card": { "card_number": "5105105105105100", "card_exp_month": "12", "card_exp_year": "2030", "card_holder_name": "Max Mustermann", "card_cvc": "444" } }, "billing": { "address": { "line1": "1467", "line2": "CA", "line3": "CA", "city": "Musterhausen", "state": "California", "zip": "12345", "country": "MY", "first_name": "Max", "last_name": "Mustermann" }, "email": "test@novalnet.de", "phone": { "number": "8056594427", "country_code": "+91" } }, "shipping": { "address": { "line1": "Musterstr", "line2": "CA", "line3": "CA", "city": "Musterhausen", "state": "California", "zip": "94122", "country": "MY", "first_name": "joseph", "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, "ip_address": "103.77.139.95", "screen_height": 723, "screen_width": 1536, "time_zone": 0, "java_enabled": true, "java_script_enabled": true }, "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", "customer_acceptance": { "acceptance_type": "offline", "accepted_at": "2024-05-03T04:07:52.723Z", "online": { "ip_address": "in sit", "user_agent": "amet irure esse" } } }' ``` payments confirm curl(3ds) To test this flow you must enable source verification of webhooks, since we get connector mandate id after customer redirection ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: ••••••' \ --data-raw '{ "amount": 100, "currency": "MYR", "confirm": true, "payment_link": false, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 100, "customer_id": "askdjfhak", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "phone_country_code": "+1", "description": "Its my first payment request", "authentication_type": "three_ds", "return_url": "https://google.com", "payment_method": "card", "payment_method_type": "credit", "payment_method_data": { "card": { "card_number": "5105105105105100", "card_exp_month": "12", "card_exp_year": "2030", "card_holder_name": "Max Mustermann", "card_cvc": "444" } }, "billing": { "address": { "line1": "1467", "line2": "CA", "line3": "CA", "city": "Musterhausen", "state": "California", "zip": "12345", "country": "MY", "first_name": "Max", "last_name": "Mustermann" }, "email": "test@novalnet.de", "phone": { "number": "8056594427", "country_code": "+91" } }, "shipping": { "address": { "line1": "Musterstr", "line2": "CA", "line3": "CA", "city": "Musterhausen", "state": "California", "zip": "94122", "country": "MY", "first_name": "joseph", "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, "ip_address": "103.77.139.95", "screen_height": 723, "screen_width": 1536, "time_zone": 0, "java_enabled": true, "java_script_enabled": true }, "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", "customer_acceptance": { "acceptance_type": "offline", "accepted_at": "2024-05-03T04:07:52.723Z", "online": { "ip_address": "in sit", "user_agent": "amet irure esse" } } }' ``` MIT payment ``` { "amount": 100, "currency": "MYR", "confirm": true, "customer_id": "askdjfhak", "recurring_details": { "type": "payment_method_id", "data": "pm_5eoWmqvkM5yNV6NXLq1Y" }, "off_session": true } ``` Failed MIT response(MIT is only available in prod, so this expected to be failed in sandbox) ``` { "payment_id": "pay_fPsF4EScs9b6XBaDmkTH", "merchant_id": "merchant_1729234816", "status": "failed", "amount": 100, "net_amount": 100, "amount_capturable": 0, "amount_received": null, "connector": "fiuu", "client_secret": "pay_fPsF4EScs9b6XBaDmkTH_secret_xAGbTuDRi7DaS4p8cMpz", "created": "2024-10-18T09:35:01.594Z", "currency": "MYR", "customer_id": "askdjfhak", "customer": { "id": "askdjfhak", "name": "John Doe", "email": "guest@example.com", "phone": "999999999", "phone_country_code": "+1" }, "description": null, "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": "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": "guest@example.com", "name": "John Doe", "phone": "999999999", "return_url": null, "authentication_type": "no_three_ds", "statement_descriptor_name": null, "statement_descriptor_suffix": null, "next_action": null, "cancellation_reason": null, "error_code": "Your transaction has been denied due to merchant account issue", "error_message": "Your transaction has been denied due to merchant account issue", "unified_code": "UE_000", "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": { "customer_id": "askdjfhak", "created_at": 1729244101, "expires": 1729247701, "secret": "epk_a494b068207e428f953b7fc8918f6208" }, "manual_retry_allowed": true, "connector_transaction_id": null, "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": null, "payment_link": null, "profile_id": "pro_F72cs1AonZSiAcoUAPab", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_5e5QYpZY6LNZKRvOju4h", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2024-10-18T09:50:01.594Z", "fingerprint": null, "browser_info": null, "payment_method_id": "pm_5eoWmqvkM5yNV6NXLq1Y", "payment_method_status": "active", "updated": "2024-10-18T09:35:02.149Z", "charges": null, "frm_metadata": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": "e2740266aab85558" } ``` ## 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/operations/payment_create.rs` **2. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/fiuu.rs` - `crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs` - `crates/hyperswitch_connectors/src/utils.rs` **3. Tests** - `config/deployments/integration_test.toml` - `cypress-tests/cypress/e2e/PaymentUtils/Fiuu.js` - `cypress-tests/cypress/support/commands.js` **4. Configuration Files** - `config/deployments/production.toml` - `config/deployments/sandbox.toml` - `config/development.toml` - ... and 1 more files **Code Patterns Applied:** - Define new data structures (4 changes) - Implement new functions (7 changes) - Extend existing types with new fields (342 changes) - Add conditional logic for feature flags or filtering (3 changes) **Detailed Identifier Changes:** Commit 4647a2f6: Files to modify: **crates/hyperswitch_connectors/src/connectors/fiuu.rs** Add: - function: private::validate_mandate_payment **crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs** Add: - function: private::try_from - function: pub::calculate_check_sum - function: private::try_from - struct: pub::FiuuMandateRequest - struct: pub::FiuuRecurringRequest - enum: pub::FiuuRecordType - impl: impl TryFrom<&FiuuRouterData<&PaymentsAuthorizeRouterData>> for FiuuMandateRequest - impl: impl TryFrom<(&Card, &PaymentsAuthorizeRouterData)> for FiuuPaymentMethodData **crates/hyperswitch_connectors/src/utils.rs** Add: - function: private::get_customer_name **crates/router/src/configs/defaults.rs** Modify existing code **crates/router/src/core/payments/operations/payment_create.rs** Modify existing code
{"pr_number": 6361, "pr_title": "feat(connector): [Fiuu] Add support for cards recurring payments", "merged_at": "2024-10-25T13:24:25Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/operations/payment_create.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/fiuu.rs", "crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs"], "tests": ["config/deployments/integration_test.toml", "cypress-tests/cypress/e2e/PaymentUtils/Fiuu.js", "cypress-tests/cypress/support/commands.js"], "config": ["config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "crates/router/src/configs/defaults.rs"]}, "change_types": {"structs_added": 4, "functions_added": 7, "enums_added": 2, "fields_added": 342, "imports_added": 3, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(connector): [ADYEN] Add Support for MOTO Payments ## 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 --> Passing shopperReference as "Moto" if paymentChannel is being sent as Moto ### 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. Payments - One-off cURL: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_bZNtom2bqG07oqTtUo4Yj6Jj5juI2FAN7xD6DUQdM4ARrHqZMNhKwNQQuY1bet2A' \ --data-raw '{ "amount": 10000, "payment_channel": "mail_order", "connector": ["adyen"], "currency": "BRL", "confirm": true, "payment_link": false, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 10000, "customer_id": "StripeCustomer", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "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": "370000000000002", "card_exp_month": "03", "card_exp_year": "2030", "card_holder_name": "Max Mustermann", "card_cvc": "7373" } }, "billing": { "address": { "line1": "1467", "line2": "CA", "line3": "CA", "city": "Musterhausen", "state": "California", "zip": "12345", "country": "DE", "first_name": "Max", "last_name": "Mustermann" }, "email": "test@novalnet.de", "phone": { "number": "8056594427", "country_code": "+91" } }, "shipping": { "address": { "line1": "Musterstr", "line2": "CA", "line3": "CA", "city": "Musterhausen", "state": "California", "zip": "94122", "country": "DE", "first_name": "joseph", "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, "ip_address": "103.77.139.95", "screen_height": 723, "screen_width": 1536, "time_zone": 0, "java_enabled": true, "java_script_enabled": true }, "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_76xdIRDuuNhwIRcVRtMj", "merchant_id": "merchant_1756724966", "status": "succeeded", "amount": 10000, "net_amount": 10000, "shipping_cost": null, "amount_capturable": 0, "amount_received": 10000, "connector": "adyen", "client_secret": "pay_76xdIRDuuNhwIRcVRtMj_secret_kpSxr4OtIik9dE56EYKq", "created": "2025-09-01T13:14:23.509Z", "currency": "BRL", "customer_id": "StripeCustomer", "customer": { "id": "StripeCustomer", "name": "John Doe", "email": "guest@example.com", "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": "0002", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "370000", "card_extended_bin": null, "card_exp_month": "03", "card_exp_year": "2030", "card_holder_name": "Max Mustermann", "payment_checks": null, "authentication_data": null }, "billing": null }, "payment_token": null, "shipping": { "address": { "city": "Musterhausen", "country": "DE", "line1": "Musterstr", "line2": "CA", "line3": "CA", "zip": "94122", "state": "California", "first_name": "joseph", "last_name": "Doe", "origin_zip": null }, "phone": { "number": "8056594427", "country_code": "+91" }, "email": null }, "billing": { "address": { "city": "Musterhausen", "country": "DE", "line1": "1467", "line2": "CA", "line3": "CA", "zip": "12345", "state": "California", "first_name": "Max", "last_name": "Mustermann", "origin_zip": null }, "phone": { "number": "8056594427", "country_code": "+91" }, "email": "test@novalnet.de" }, "order_details": null, "email": "guest@example.com", "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": 1756732463, "expires": 1756736063, "secret": "epk_7255aec93b66481789b23a0e5279a617" }, "manual_retry_allowed": false, "connector_transaction_id": "K3QWP4L8GQV4S675", "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": "pay_76xdIRDuuNhwIRcVRtMj_1", "payment_link": null, "profile_id": "pro_4qr8Ic1hafrkqBwcowfQ", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_bPjRsEsIXmOjOEvB0cbR", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-09-01T13:29:23.509Z", "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_channel": "mail_order", "payment_method_id": null, "network_transaction_id": "763348876884444", "payment_method_status": null, "updated": "2025-09-01T13:14:26.247Z", "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 } ``` 2. Payments - CIT cURL: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_bZNtom2bqG07oqTtUo4Yj6Jj5juI2FAN7xD6DUQdM4ARrHqZMNhKwNQQuY1bet2A' \ --data-raw '{ "amount": 10000, "payment_channel": "mail_order", "setup_future_usage": "off_session", "customer_acceptance": { "acceptance_type": "offline", "accepted_at": "1963-05-03T04:07:52.723Z", "online": { "ip_address": "in sit", "user_agent": "amet irure esse" } }, "connector": ["adyen"], "currency": "BRL", "confirm": true, "payment_link": false, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 10000, "customer_id": "StripeCustomer", "email": "guest@example.com", "name": "John Doe", "phone": "999999999", "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": "370000000000002", "card_exp_month": "03", "card_exp_year": "2030", "card_holder_name": "Max Mustermann", "card_cvc": "7373" } }, "billing": { "address": { "line1": "1467", "line2": "CA", "line3": "CA", "city": "Musterhausen", "state": "California", "zip": "12345", "country": "DE", "first_name": "Max", "last_name": "Mustermann" }, "email": "test@novalnet.de", "phone": { "number": "8056594427", "country_code": "+91" } }, "shipping": { "address": { "line1": "Musterstr", "line2": "CA", "line3": "CA", "city": "Musterhausen", "state": "California", "zip": "94122", "country": "DE", "first_name": "joseph", "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, "ip_address": "103.77.139.95", "screen_height": 723, "screen_width": 1536, "time_zone": 0, "java_enabled": true, "java_script_enabled": true }, "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_rEhqZaAc9edqOljkQaWh", "merchant_id": "merchant_1756724966", "status": "succeeded", "amount": 10000, "net_amount": 10000, "shipping_cost": null, "amount_capturable": 0, "amount_received": 10000, "connector": "adyen", "client_secret": "pay_rEhqZaAc9edqOljkQaWh_secret_8ajyMSTVHsJOjgskuF8k", "created": "2025-09-01T12:16:51.273Z", "currency": "BRL", "customer_id": "StripeCustomer", "customer": { "id": "StripeCustomer", "name": "John Doe", "email": "guest@example.com", "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": "0002", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "370000", "card_extended_bin": null, "card_exp_month": "03", "card_exp_year": "2030", "card_holder_name": "Max Mustermann", "payment_checks": null, "authentication_data": null }, "billing": null }, "payment_token": null, "shipping": { "address": { "city": "Musterhausen", "country": "DE", "line1": "Musterstr", "line2": "CA", "line3": "CA", "zip": "94122", "state": "California", "first_name": "joseph", "last_name": "Doe", "origin_zip": null }, "phone": { "number": "8056594427", "country_code": "+91" }, "email": null }, "billing": { "address": { "city": "Musterhausen", "country": "DE", "line1": "1467", "line2": "CA", "line3": "CA", "zip": "12345", "state": "California", "first_name": "Max", "last_name": "Mustermann", "origin_zip": null }, "phone": { "number": "8056594427", "country_code": "+91" }, "email": "test@novalnet.de" }, "order_details": null, "email": "guest@example.com", "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": 1756729011, "expires": 1756732611, "secret": "epk_73c9371b7c0344c3a8f7e35a905a1b50" }, "manual_retry_allowed": false, "connector_transaction_id": "GGRQZJBPJK93D675", "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": "pay_rEhqZaAc9edqOljkQaWh_1", "payment_link": null, "profile_id": "pro_4qr8Ic1hafrkqBwcowfQ", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_bPjRsEsIXmOjOEvB0cbR", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-09-01T12:31:51.273Z", "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_channel": "mail_order", "payment_method_id": "pm_5FFUCX71Bw9woHtc6YWf", "network_transaction_id": "768478185885530", "payment_method_status": "active", "updated": "2025-09-01T12:16:54.379Z", "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": "XQJRWM2GZQRFRQV5", "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 } ``` 3. Payments - MIT cURL: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_bZNtom2bqG07oqTtUo4Yj6Jj5juI2FAN7xD6DUQdM4ARrHqZMNhKwNQQuY1bet2A' \ --data '{ "amount": 1000, "currency": "BRL", "confirm": true, "customer_id": "StripeCustomer", "recurring_details": { "type": "payment_method_id", "data": "pm_5FFUCX71Bw9woHtc6YWf" }, "off_session": true }' ``` Response: ``` { "payment_id": "pay_LqSlwx30BwhXiJg8HxxI", "merchant_id": "merchant_1756724966", "status": "succeeded", "amount": 1000, "net_amount": 1000, "shipping_cost": null, "amount_capturable": 0, "amount_received": 1000, "connector": "adyen", "client_secret": "pay_LqSlwx30BwhXiJg8HxxI_secret_ZwLKB4V8G9LNFOCbsyfm", "created": "2025-09-01T12:17:13.316Z", "currency": "BRL", "customer_id": "StripeCustomer", "customer": { "id": "StripeCustomer", "name": "John Doe", "email": "guest@example.com", "phone": "999999999", "phone_country_code": "+1" }, "description": null, "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": "0002", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "370000", "card_extended_bin": null, "card_exp_month": "03", "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": "guest@example.com", "name": "John Doe", "phone": "999999999", "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": "StripeCustomer", "created_at": 1756729033, "expires": 1756732633, "secret": "epk_64745b15ee2c4e4387b0f66ecab5ff2d" }, "manual_retry_allowed": false, "connector_transaction_id": "CQB6WFDSWN4QWJ65", "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": "pay_LqSlwx30BwhXiJg8HxxI_1", "payment_link": null, "profile_id": "pro_4qr8Ic1hafrkqBwcowfQ", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_bPjRsEsIXmOjOEvB0cbR", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-09-01T12:32:13.316Z", "fingerprint": null, "browser_info": null, "payment_channel": null, "payment_method_id": "pm_5FFUCX71Bw9woHtc6YWf", "network_transaction_id": "356791357504896", "payment_method_status": "active", "updated": "2025-09-01T12:17:14.462Z", "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": "XQJRWM2GZQRFRQV5", "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 } ``` ## Cypress Tests <details> <summary> <code> santander/boleto </code> branch </summary> <img width="393" height="959" alt="Screenshot 2025-09-02 at 10 53 13 PM" src="https://github.com/user-attachments/assets/c1b3cc4b-5ca7-4951-9321-303f3f5146f4" /> </details> <details> <summary> <code> main </code> branch </summary> <img width="393" height="978" alt="Screenshot 2025-09-02 at 11 09 05 PM" src="https://github.com/user-attachments/assets/06caf327-3229-42e2-abe4-93f4eb343809" /> </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/adyen/transformers.rs` **Detailed Identifier Changes:** Commit 44ffb4fe: Files to modify: **crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs** Modify existing code
{"pr_number": 9134, "pr_title": "feat(connector): [ADYEN] Add Support for MOTO Payments", "merged_at": "2025-09-03T13:23:03Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(routing): Contract based routing integration ## 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 --> - Built an interface for Contract based routing - Integrated Contract based routing with hyperswitch - Built new APIs for contract routing config setup - Refactored some existing dynamic routing code ### 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)? --> 1. Enable Contract routing config ``` curl --location --request POST 'http://localhost:8080/account/sarthak2/business_profile/pro_YozTgS8HebvBlk0UaeWW/dynamic_routing/contracts/toggle?enable=dynamic_connector_selection' \ --header 'api-key: dev_1aD8YuFd6Ovanf3oOtAYobqI6qw4ZBRSfw6BgYbifWHpaopkisBtm8obNXkFbVJn' \ --header 'Content-Type: application/json' \ --data-raw '{ "config": { "constants": [0.7,0.35], "time_scale": "day" }, "label_info": [{ "label": "stripe", "target_count": 10000, "incremental_count": 0, "target_time": 1780486655, "mca_id": "mca_5Mk0Qcum2tnbmKoyqeuL" }] }' ``` Response - ``` { "id": "routing_FlQ49V71J8ZCXEwPzFy9", "profile_id": "pro_YozTgS8HebvBlk0UaeWW", "name": "Contract based dynamic routing algorithm", "kind": "dynamic", "description": "", "created_at": 1734009361, "modified_at": 1734009361, "algorithm_for": "payment" } ``` 2. Set Volume split for dynamic routing ``` curl --location --request POST 'http://localhost:8080/account/sarthak2/business_profile/pro_YozTgS8HebvBlk0UaeWW/dynamic_routing/set_volume_split?split=80' \ --header 'api-key: dev_1aD8YuFd6Ovanf3oOtAYobqI6qw4ZBRSfw6BgYbifWHpaopkisBtm8obNXkFbVJn' ``` 3. Create a Payment Metrics Population post payment - <img width="1512" alt="image" src="https://github.com/user-attachments/assets/3d21293d-7e2c-4b8f-8758-cf5fecf5c528" /> ## 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/events/routing.rs` - `crates/api_models/src/routing.rs` **2. Core Business Logic** - `crates/router/src/core/errors.rs` - `crates/router/src/core/metrics.rs` - `crates/router/src/core/payments.rs` - ... and 4 more files **3. Other** - `.github/CODEOWNERS` - `api-reference/openapi_spec.json` - `crates/external_services/build.rs` - ... and 11 more files **Code Patterns Applied:** - Define new data structures (8 changes) - Implement new functions (42 changes) - Extend existing types with new fields (225 changes) - Add conditional logic for feature flags or filtering (19 changes) - Modify database queries (2 changes) **Detailed Identifier Changes:** Commit 60ddddf2: Files to modify: **crates/api_models/src/events/routing.rs** Remove: - impl: impl ApiEventMetric for SuccessBasedRoutingUpdateConfigQuery Add: - function: private::get_api_event_type - function: private::get_api_event_type - impl: impl ApiEventMetric for ContractBasedRoutingPayloadWrapper - impl: impl ApiEventMetric for ContractBasedRoutingSetupPayloadWrapper - impl: impl ApiEventMetric for DynamicRoutingUpdateConfigQuery **crates/api_models/src/routing.rs** Remove: - function: pub::update_specific_ref - function: pub::new - function: pub::new - impl: impl SuccessBasedAlgorithm Add: - function: pub::new - function: private::get_algorithm_id_with_timestamp - function: private::get_enabled_features - function: pub::new - function: pub::new - function: pub::update_enabled_features - function: private::default - function: pub::update - function: pub::update - enum: pub::ContractBasedTimeScale - impl: impl DynamicAlgorithmWithTimestamp<T> - impl: impl DynamicRoutingAlgoAccessor for ContractRoutingAlgorithm - impl: impl EliminationRoutingAlgorithm - impl: impl SuccessBasedAlgorithm - impl: impl Default for ContractBasedRoutingConfig - impl: impl ContractBasedRoutingConfig - impl: impl ContractBasedRoutingConfigBody **crates/external_services/build.rs** Modify existing code **crates/external_services/src/grpc_client/dynamic_routing.rs** Remove: - mod: pub::elimination_rate_client Add: - mod: pub::contract_routing_client - mod: pub::elimination_based_client **crates/external_services/src/grpc_client/dynamic_routing/contract_routing_client.rs** Add: - function: private::calculate_contract_score - function: private::update_contracts - function: private::invalidate_contracts - function: private::foreign_from - function: private::foreign_try_from - function: private::foreign_from - trait: pub::ContractBasedDynamicRouting - impl: impl ContractBasedDynamicRouting for ContractScoreCalculatorClient<Client> - impl: impl ForeignFrom<ContractBasedTimeScale> for TimeScale - impl: impl ForeignTryFrom<ContractBasedRoutingConfigBody> for CalContractScoreConfig - impl: impl ForeignFrom<LabelInformation> for ProtoLabelInfo - mod: pub::contract_routing **crates/openapi/src/openapi.rs** Modify existing code **crates/openapi/src/routes/routing.rs** Add: - function: pub::contract_based_routing_setup_config - function: pub::contract_based_routing_update_configs **crates/router/src/core/errors.rs** Modify existing code **crates/router/src/core/metrics.rs** Modify existing code **crates/router/src/core/payments.rs** Modify existing code **crates/router/src/core/payments/operations/payment_response.rs** Modify existing code **crates/router/src/core/payments/routing.rs** Modify existing code **crates/router/src/core/routing.rs** Modify existing code **crates/router/src/core/routing/helpers.rs** Add: - function: private::get_cached_dynamic_routing_config_for_profile - function: private::refresh_dynamic_routing_cache - function: private::get_cached_dynamic_routing_config_for_profile - function: private::refresh_dynamic_routing_cache - trait: pub::DynamicRoutingCache **crates/router/src/routes/app.rs** Modify existing code **crates/router/src/routes/metrics/bg_metrics_collector.rs** Modify existing code **crates/router/src/routes/routing.rs** Add: - function: pub::contract_based_routing_setup_config - function: pub::contract_based_routing_update_configs **crates/storage_impl/src/redis/cache.rs** Modify existing code **crates/storage_impl/src/redis/pub_sub.rs** Modify existing code
{"pr_number": 6761, "pr_title": "feat(routing): Contract based routing integration ", "merged_at": "2025-02-06T14:35:08Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/events/routing.rs", "crates/api_models/src/routing.rs"], "core_business": ["crates/router/src/core/errors.rs", "crates/router/src/core/metrics.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/routing.rs", "crates/router/src/core/routing.rs", "crates/router/src/core/routing/helpers.rs"], "other": [".github/CODEOWNERS", "api-reference/openapi_spec.json", "crates/external_services/build.rs", "crates/external_services/src/grpc_client/dynamic_routing.rs", "crates/external_services/src/grpc_client/dynamic_routing/contract_routing_client.rs", "crates/external_services/src/grpc_client/dynamic_routing/elimination_rate_client.rs", "crates/openapi/src/openapi.rs", "crates/openapi/src/routes/routing.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/metrics/bg_metrics_collector.rs", "crates/router/src/routes/routing.rs", "crates/storage_impl/src/redis/cache.rs", "crates/storage_impl/src/redis/pub_sub.rs", "proto/contract_routing.proto"]}, "change_types": {"structs_added": 8, "functions_added": 42, "enums_added": 4, "fields_added": 225, "imports_added": 15, "conditionals_added": 19, "database_queries": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
ci(cypress): add payu connector ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description Add Payu Connector to the cypress test suits - PayU doesn't support mandates so tests are skipped accordingly - PayU doesn't support three_ds ### 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 Connector tests enhancement ## How did you test it? <img width="742" alt="image" src="https://github.com/user-attachments/assets/23817bbc-b445-4415-ac3b-83c24ff88512" /> Failure issues: 1.3ds payments silently falling back to no-3ds(Should throw validation 2. Payment are going to succeeded state for manual capture payment 3. Connector doesn't support multiple refunds ## 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/configs/Payment/Payu.js` - `cypress-tests/cypress/e2e/configs/Payment/Utils.js` **Code Patterns Applied:** - Extend existing types with new fields (565 changes)
{"pr_number": 8567, "pr_title": "ci(cypress): add payu connector", "merged_at": "2025-07-08T12:28:51Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "refund"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/configs/Payment/Payu.js", "cypress-tests/cypress/e2e/configs/Payment/Utils.js"]}, "change_types": {"fields_added": 565}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
fix(connector): update required fields for xendit ## 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 addresses an issue where hyperswitch sdk did not return required fields resulting in transactions to not happen. ### 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>Initiate Payment Link</summary> ```curl curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'Accept-Language: en' \ --header 'api-key: dev_NCd2znDULlKeAM6hrgsfRaQe4zgRhvAQJUwpT3UgoVGJUjcjwJgZBT7BMgkEHb8I' \ --data-raw '{ "amount": 1001200, "currency": "IDR", "confirm": false, "payment_link": true, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "customer_id": "customer", "email": "guesjhvghht@example.com", "phone": "999999999", "phone_country_code": "+1", "description": "Its my first payment request", "authentication_type": "no_three_ds", "return_url": "https://duck.com", "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } }' ``` ```json { "payment_id": "pay_eTNUFfS27ZBvBiTIOalZ", "merchant_id": "postman_merchant_GHAction_1755084978", "status": "requires_payment_method", "amount": 1001200, "net_amount": 1001200, "shipping_cost": null, "amount_capturable": 0, "amount_received": null, "connector": null, "client_secret": "pay_eTNUFfS27ZBvBiTIOalZ_secret_wzOFZMbwSWLLvc6O7rzx", "created": "2025-08-13T12:28:02.711Z", "currency": "IDR", "customer_id": "customer", "customer": { "id": "customer", "name": null, "email": "guesjhvghht@example.com", "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": null, "payment_method_data": null, "payment_token": null, "shipping": null, "billing": null, "order_details": null, "email": "guesjhvghht@example.com", "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": null, "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": 1755088082, "expires": 1755091682, "secret": "epk_c63e165ddae2420e975cb21b0f9f894b" }, "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": { "link": "http://localhost:8080/payment_link/postman_merchant_GHAction_1755084978/pay_eTNUFfS27ZBvBiTIOalZ?locale=en", "secure_link": "http://localhost:8080/payment_link/s/postman_merchant_GHAction_1755084978/pay_eTNUFfS27ZBvBiTIOalZ?locale=en", "payment_link_id": "plink_JesEx1Pk1rYTlkh2Zr8f" }, "profile_id": "pro_Xq3nbFTRwHDP9JFgz2w0", "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-13T12:43:02.708Z", "fingerprint": null, "browser_info": null, "payment_channel": null, "payment_method_id": null, "network_transaction_id": null, "payment_method_status": null, "updated": "2025-08-13T12:28:02.725Z", "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 } ``` </details> <details> <summary>Open Payment link</summary> <img width="1587" height="862" alt="image" src="https://github.com/user-attachments/assets/f7aaa9bd-3528-4f34-9684-3d5b67f648ef" /> <img width="555" height="636" alt="image" src="https://github.com/user-attachments/assets/6cc13f7c-4394-4997-87b9-c872ddf23c6c" /> </details> <details> <summary>Payment Retrieve</summary> ```curl curl --location 'http://localhost:8080/payments/pay_eTNUFfS27ZBvBiTIOalZ?force_sync=true' \ --header 'Accept: application/json' \ --header 'api-key: dev_NCd2znDULlKeAM6hrgsfRaQe4zgRhvAQJUwpT3UgoVGJUjcjwJgZBT7BMgkEHb8I' ``` ```json { "payment_id": "pay_eTNUFfS27ZBvBiTIOalZ", "merchant_id": "postman_merchant_GHAction_1755084978", "status": "succeeded", "amount": 1001200, "net_amount": 1001200, "shipping_cost": null, "amount_capturable": 0, "amount_received": 1001200, "connector": "xendit", "client_secret": "pay_eTNUFfS27ZBvBiTIOalZ_secret_wzOFZMbwSWLLvc6O7rzx", "created": "2025-08-13T12:28:02.711Z", "currency": "IDR", "customer_id": "customer", "customer": { "id": "customer", "name": null, "email": "guesjhvghht@example.com", "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": "12", "card_exp_year": "2034", "card_holder_name": "champa lal", "payment_checks": null, "authentication_data": null }, "billing": { "address": { "city": null, "country": null, "line1": null, "line2": null, "line3": null, "zip": null, "state": null, "first_name": "champa", "last_name": "lal", "origin_zip": null }, "phone": { "number": "9123456789", "country_code": "+93" }, "email": "guesjhvghht@example.com" } }, "payment_token": null, "shipping": null, "billing": null, "order_details": null, "email": "guesjhvghht@example.com", "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": null, "manual_retry_allowed": false, "connector_transaction_id": "pr-1a099d71-0f2f-4dd5-979b-dcb04d577fe4", "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": "adee5a45-0856-4a35-a8b9-64f589a4f776", "payment_link": { "link": "http://localhost:8080/payment_link/postman_merchant_GHAction_1755084978/pay_eTNUFfS27ZBvBiTIOalZ?locale=en", "secure_link": "http://localhost:8080/payment_link/s/postman_merchant_GHAction_1755084978/pay_eTNUFfS27ZBvBiTIOalZ?locale=en", "payment_link_id": "plink_JesEx1Pk1rYTlkh2Zr8f" }, "profile_id": "pro_Xq3nbFTRwHDP9JFgz2w0", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_uvxifwBKb8ywNkz1sqHV", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-08-13T12:43:02.708Z", "fingerprint": null, "browser_info": { "os_type": "macOS", "language": "en-US", "time_zone": -330, "ip_address": "127.0.0.1", "os_version": "10.15", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:141.0) Gecko/20100101 Firefox/141.0", "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.5", "java_script_enabled": true }, "payment_channel": null, "payment_method_id": null, "network_transaction_id": null, "payment_method_status": null, "updated": "2025-08-13T12:32:03.344Z", "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 } ``` </details> > [!NOTE] > DO NOTE THAT, FOR XENDIT, PASSING `00` AT LSB IS MANDATORY WITHOUT WHICH PAYMENT FAILS. THIS HAPPENS TO BE AN ISSUE FROM XENDIT THEMSELVES. ## 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/payment_methods/src/configs/payment_connector_required_fields.rs` **Detailed Identifier Changes:** Commit dc2357af: Files to modify: **crates/payment_methods/src/configs/payment_connector_required_fields.rs** Modify existing code
{"pr_number": 8941, "pr_title": "fix(connector): update required fields for xendit", "merged_at": "2025-08-13T15:17:43Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/payment_methods/src/configs/payment_connector_required_fields.rs"]}, "change_types": {}, "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 ### 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_colour": "#afff7b", "payment_button_colour": "#000000", "payment_button_text_colour": "#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 0dd62e86: 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": 7340, "pr_title": "feat(payments): [Payment links] add configs for payment link", "merged_at": "2025-02-27T13:32: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"}
fix(analytics): fix first_attempt filter value parsing for Payments ## 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 --> Fixes this issue: [https://github.com/juspay/hyperswitch-cloud/issues/7580](https://github.com/juspay/hyperswitch-cloud/issues/7580) - `first_attempt` filter takes in `true` or `false` as variants. - But while it is getting applied in the query, it is being converted into a string: `'true'` or `'false'` This works on latest clickhouse versions, but fails on the older clickhouse versions, with the error: ```error DB::Exception: Cannot convert string false to type Bool: While processing (first_attempt IN ('false')) ``` Now, internally converting `'true'` to `'1'` and `'false'` to `'0'` to fix the issue, and this gets accepted in both the versions. The query which was previously running was: ```bash SELECT connector, status, sum(sign_flag) as count, first_attempt, min(created_at) as start_bucket, max(created_at) as end_bucket FROM sessionizer_payment_attempts WHERE ( first_attempt IN ('false') AND organization_id = 'org_id' AND created_at >= '1731803400' AND created_at <= '1732577400' ) GROUP BY connector, status, first_attempt HAVING sum(sign_flag) >= '1' ``` Now the query which will run is: ```bash SELECT connector, status, sum(sign_flag) as count, first_attempt, min(created_at) as start_bucket, max(created_at) as end_bucket FROM sessionizer_payment_attempts WHERE ( first_attempt IN ('0') AND organization_id = 'org_id' AND created_at >= '1731803400' AND created_at <= '1732577400' ) GROUP BY connector, status, first_attempt HAVING sum(sign_flag) >= '1' ``` ### 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 issue: [https://github.com/juspay/hyperswitch/issues/6666](https://github.com/juspay/hyperswitch/issues/6666) ## 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 with first_attempt filter containing either `true` or `false`: ```bash curl --location 'http://localhost:8080/analytics/v1/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 '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: test_admin' \ --header 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTQ5ZTNkMmItMTY5Yi00NzUzLWJmNTQtZDcxMTM2YjRiN2JkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzI2MDQ2MzI4Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTczMjc5Mjk0OCwib3JnX2lkIjoib3JnX1ZwU0hPanNZZkR2YWJWWUpnQ0FKIiwicHJvZmlsZV9pZCI6InByb192NXNGb0hlODBPZWlVbElvbm9jTSIsInRlbmFudF9pZCI6InB1YmxpYyJ9.Q5ruAj8DwAp5XDj1ktFhma4aZXAHSZBmRSw_EnPk4HE' \ --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-11-17T00:30:00Z", "endTime": "2024-11-25T23:30:00Z" }, "groupByNames": [ "connector" ], "filters":{ "first_attempt": [false] }, "source": "BATCH", "metrics": [ "payments_distribution" ], "delta": true } ]' ``` Response: ```json { "queryData": [ { "payment_success_rate": null, "payment_count": null, "payment_success_count": null, "payment_processed_amount": 0, "payment_processed_amount_in_usd": null, "payment_processed_count": null, "payment_processed_amount_without_smart_retries": 0, "payment_processed_amount_without_smart_retries_usd": null, "payment_processed_count_without_smart_retries": null, "avg_ticket_size": null, "payment_error_message": null, "retries_count": null, "retries_amount_processed": 0, "connector_success_rate": null, "payments_success_rate_distribution": 100.0, "payments_success_rate_distribution_without_smart_retries": null, "payments_success_rate_distribution_with_only_retries": 100.0, "payments_failure_rate_distribution": 0.0, "payments_failure_rate_distribution_without_smart_retries": null, "payments_failure_rate_distribution_with_only_retries": 0.0, "failure_reason_count": 0, "failure_reason_count_without_smart_retries": 0, "currency": null, "status": null, "connector": "stripe_test", "authentication_type": null, "payment_method": null, "payment_method_type": null, "client_source": null, "client_version": null, "profile_id": null, "card_network": null, "merchant_id": null, "card_last_4": null, "card_issuer": null, "error_reason": null, "time_range": { "start_time": "2024-11-17T00:30:00.000Z", "end_time": "2024-11-25T23:30:00.000Z" }, "time_bucket": "2024-11-17 00:30:00" } ], "metaData": [ { "total_payment_processed_amount": 0, "total_payment_processed_amount_in_usd": 0, "total_payment_processed_amount_without_smart_retries": 0, "total_payment_processed_amount_without_smart_retries_usd": 0, "total_payment_processed_count": 0, "total_payment_processed_count_without_smart_retries": 0, "total_failure_reasons_count": 0, "total_failure_reasons_count_without_smart_retries": 0 } ] } ``` If smart retries are made, then these fields will show null: ```json "payments_success_rate_distribution_without_smart_retries": null, "payments_failure_rate_distribution_without_smart_retries": null, ``` And these fields will have some value: ```json "payments_success_rate_distribution_with_only_retries": 100.0, "payments_failure_rate_distribution_with_only_retries": 0.0, ``` <img width="1728" alt="image" src="https://github.com/user-attachments/assets/591a1b3f-ced4-4fb4-a16d-1ddc246ad5c1"> <img width="1726" alt="image" src="https://github.com/user-attachments/assets/eea88a15-41c6-4998-b2a5-7485c3aebf75"> ## 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/analytics/src/query.rs` **Detailed Identifier Changes:** Commit abcaa539: Files to modify: **crates/analytics/src/query.rs** Modify existing code
{"pr_number": 6667, "pr_title": "fix(analytics): fix first_attempt filter value parsing for Payments", "merged_at": "2024-11-29T10:11:16Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"database": ["crates/analytics/src/query.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
chore: address Rust 1.85.0 clippy lints ## Type of Change - [ ] 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.85.0 https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables ## 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 **validation** feature, you'll need to modify these architectural layers: **1. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/customer.rs` - `crates/hyperswitch_domain_models/src/errors/api_error_response.rs` **2. Core Business Logic** - `crates/router/src/core/admin.rs` - `crates/router/src/core/customers.rs` - `crates/router/src/core/payment_methods.rs` - ... and 7 more files **3. 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` **4. Other** - `crates/router/src/services/authorization/roles.rs` **Code Patterns Applied:** - Extend existing types with new fields (5 changes) **Detailed Identifier Changes:** Commit 38bb7676: Files to modify: **crates/hyperswitch_domain_models/src/customer.rs** Modify existing code **crates/hyperswitch_domain_models/src/errors/api_error_response.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_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/services/authorization/roles.rs** Modify existing code **crates/router/src/types/api/admin.rs** Modify existing code
{"pr_number": 7376, "pr_title": "chore: address Rust 1.85.0 clippy lints", "merged_at": "2025-03-05T11:22:58Z", "intent": {"feature_type": "validation", "action": "add_feature", "entities": []}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/customer.rs", "crates/hyperswitch_domain_models/src/errors/api_error_response.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/customers.rs", "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"], "other": ["crates/router/src/services/authorization/roles.rs"]}, "change_types": {"fields_added": 5}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
docs: Updated open-api spec for Intelligent routing ## 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 --> Updated open-api spec for Intelligent routing ### 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)? --> <img width="1728" alt="image" src="https://github.com/user-attachments/assets/63adbc60-e89b-417f-ad4e-b8241ebdebbf" /> <img width="1728" alt="image" src="https://github.com/user-attachments/assets/2a50d145-c50b-4aba-b9ce-e19a67416b6c" /> <img width="1728" alt="image" src="https://github.com/user-attachments/assets/112ca2eb-d015-43e1-a916-6ea76227ab80" /> <img width="1728" alt="image" src="https://github.com/user-attachments/assets/9714570d-c8e6-41ce-932d-3562a5fc9603" /> ## 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** - `api-reference/intelligent-router-api-reference/contract-routing/fetch-contract-scores-for-an-entity.mdx` **2. Configuration Files** - `api-reference/hyperswitch_intelligent_router_open_api_spec.yml` **3. Other** - `api-reference/intelligent-router-api-reference/contract-routing/invalidate-contract-information-for-an-entity.mdx` - `api-reference/intelligent-router-api-reference/contract-routing/update-contract-information-for-an-entity.mdx` - `api-reference/intelligent-router-api-reference/static-routing/create-a-routing-rule.mdx` - ... and 2 more files **Code Patterns Applied:** - Extend existing types with new fields (702 changes)
{"pr_number": 7777, "pr_title": "docs: Updated open-api spec for Intelligent routing", "merged_at": "2025-04-23T14:01:26Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"core_business": ["api-reference/intelligent-router-api-reference/contract-routing/fetch-contract-scores-for-an-entity.mdx"], "config": ["api-reference/hyperswitch_intelligent_router_open_api_spec.yml"], "other": ["api-reference/intelligent-router-api-reference/contract-routing/invalidate-contract-information-for-an-entity.mdx", "api-reference/intelligent-router-api-reference/contract-routing/update-contract-information-for-an-entity.mdx", "api-reference/intelligent-router-api-reference/static-routing/create-a-routing-rule.mdx", "api-reference/intelligent-router-api-reference/static-routing/evaluate-routing-rule.mdx", "api-reference/mint.json"]}, "change_types": {"fields_added": 702}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
refactor(payment-link): use shouldRemoveBeforeUnloadEvents flag for handling removal of beforeunload events through SDK ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Hotfix for https://github.com/juspay/hyperswitch/pull/7072 ### 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. 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 (6 changes)
{"pr_number": 7086, "pr_title": "refactor(payment-link): use shouldRemoveBeforeUnloadEvents flag for handling removal of beforeunload events through SDK", "merged_at": "2025-01-22T07:30:59Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "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": 6}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
refactor(router): refactor ctp flow to fetch mca_id and get the connector creds instead of connector_name ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Refactoring ## Description <!-- Describe your changes in detail --> refactor ctp flow to fetch mca_id and get the connector creds instead of connector_name ## 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)? --> Add config to make the merchant eligible for authentication service ```shell curl --location 'http://localhost:8080/configs/' \ --header 'Content-Type: application/json' \ --header 'api-key: test_admin' \ --data '{ "key": "merchants_eligible_for_authentication_service", "value": "[\"sahkal\", \"cewqcewc\", \"dqwdwljildwduoqwhduwqcqwjd\"]" }' ``` Create merchant connector account for Ctp_mastercard ```shell curl --location 'http://localhost:8080/account/dqwdwljildwduoqwhduwqcqwjd/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' \ --data ' { "connector_type": "authentication_processor", "connector_name": "ctp_mastercard", "connector_account_details": { "auth_type": "HeaderKey", "api_key": "API-KEY" }, "test_mode": true, "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 } ] } ], "business_country": "US", "business_label": "default", "metadata": { "dpa_id": "b6e06cc6-3018-4c4c-bbf5-9fb232615090", "dpa_name": "TestMerchant", "locale": "en_AU", "card_brands": ["mastercard", "visa"], "acquirer_bin": "545301", "acquirer_merchant_id": "SRC3DS", "merchant_category_code": "0001", "merchant_country_code": "US" } } ' ``` Adyen ```shell curl --location 'http://localhost:8080/account/dqwdwljildwduoqwhduwqcqwjd/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' \ --data ' { "connector_type": "payment_processor", "connector_name": "adyen", "connector_account_details": { "auth_type": "SignatureKey", "api_key": "API-KEY", "key1": "KEY-1", "api_secret": "API-SECRET" }, "test_mode": true, "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 } ] } ], "metadata": { "city": "NY", "unit": "245", "live_endpoint_prefix": "vsfbjh" }, "connector_webhook_details": { "merchant_secret": "MERCHANT SECRET" }, "business_country": "US", "business_label": "default" } ' ``` update business profile with ctp_mastercard mca_id ```shell curl --location 'http://localhost:8080/account/dqwdwljildwduoqwhduwqcqwjd/business_profile/pro_KCTRv8sFQfC0r65CZxrn' \ --header 'Content-Type: application/json' \ --header 'api-key: test_admin' \ --data '{ "is_click_to_pay_enabled": true, "authentication_product_ids": {"click_to_pay": "mca_XAXUpel8ABbpoGNF8lGz"} }' ``` do payments create ```shell curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_fQsdc9JbERQ7CWvmguo84XDROuXOD1oK9sdfCJXOko3SossoI4zdxpJkOIPmojwn' \ --data '{ "amount": 1130, "currency": "USD", "confirm": false, "return_url": "https://hyperswitch.io" } ' ``` do payments confirm ```shell curl --location 'http://localhost:8080/payments/pay_Ft9Ke5Lun924OCJa7yll/confirm' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: pk_dev_1f712ac5fd7f4d8c91da6a627862a4f0' \ --data ' { "payment_method": "card", "payment_method_type": "debit", "client_secret": "pay_Ft9Ke5Lun924OCJa7yll_secret_po1FVW5adQWFolWJUhMb", "ctp_service_details" : { "merchant_transaction_id": "0a4e0d3.34f4a04b.803eb38b0a56f082296538d4a70c064a6b320639", "correlation_id": "34f4a04b.bcd1ac39-e0f3-479e-b3ee-703ade0c66dc", "x_src_flow_id" : "34f4a04b.bcd1ac39-e0f3-479e-b3ee-703ade0c66dc.1727438793" }, "browser_info": { "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "color_depth": 24, "java_enabled":true, "java_script_enabled": true, "language": "en-GB", "screen_height": 1440, "screen_width": 2560, "time_zone": -330, "user_agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Mobile Safari/537.36" } }' ``` Expected Response ```shell { "payment_id": "pay_Ft9Ke5Lun924OCJa7yll", "merchant_id": "dqwdwljildwduoqwhduwqcqwjd", "status": "failed", "amount": 1130, "net_amount": 1130, "shipping_cost": null, "amount_capturable": 0, "amount_received": null, "connector": "adyen", "client_secret": "pay_Ft9Ke5Lun924OCJa7yll_secret_po1FVW5adQWFolWJUhMb", "created": "2024-12-18T13:00:47.663Z", "currency": "USD", "customer_id": null, "customer": 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": 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": "https://hyperswitch.io/", "authentication_type": "no_three_ds", "statement_descriptor_name": null, "statement_descriptor_suffix": null, "next_action": null, "cancellation_reason": null, "error_code": "2", "error_message": "Refused", "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": null, "manual_retry_allowed": true, "connector_transaction_id": "KN8X64SH6PRRVS65", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": null, "payment_link": null, "profile_id": "pro_KCTRv8sFQfC0r65CZxrn", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_L6N77PiH3BI2BTPwkZPL", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2024-12-18T13:15:47.663Z", "fingerprint": null, "browser_info": { "language": "en-GB", "time_zone": -330, "ip_address": "::1", "user_agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Mobile Safari/537.36", "color_depth": 24, "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, "java_script_enabled": true }, "payment_method_id": null, "payment_method_status": null, "updated": "2024-12-18T13:04:08.461Z", "split_payments": 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 **payment** 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` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/business_profile.rs` - `crates/hyperswitch_domain_models/src/merchant_connector_account.rs` **4. Core Business Logic** - `crates/router/src/core/admin.rs` - `crates/router/src/core/payments.rs` - `crates/router/src/core/payments/helpers.rs` - ... and 5 more files **5. Type Definitions** - `crates/common_types/src/payments.rs` - `crates/router/src/types/api/admin.rs` **6. Other** - `crates/common_enums/src/enums.rs` - `crates/router/src/consts.rs` **Code Patterns Applied:** - Define new data structures (1 changes) - Implement new functions (6 changes) - Extend existing types with new fields (41 changes) - Add conditional logic for feature flags or filtering (2 changes) **Detailed Identifier Changes:** Commit e9fcfc45: Files to modify: **crates/api_models/src/admin.rs** Modify existing code **crates/common_enums/src/enums.rs** Add: - enum: pub::AuthenticationProduct **crates/common_types/src/payments.rs** Add: - function: pub::get_click_to_pay_connector_account_id - struct: pub::AuthenticationConnectorAccountMap - impl: impl AuthenticationConnectorAccountMap **crates/diesel_models/src/business_profile.rs** Modify existing code **crates/hyperswitch_domain_models/src/business_profile.rs** Modify existing code **crates/hyperswitch_domain_models/src/merchant_connector_account.rs** Add: - function: pub::get_connector_wallets_details - function: pub::get_connector_wallets_details **crates/router/src/consts.rs** Modify existing code **crates/router/src/core/admin.rs** Modify existing code **crates/router/src/core/payments.rs** Modify existing code **crates/router/src/core/payments/helpers.rs** Add: - function: pub::is_merchant_eligible_authentication_service **crates/router/src/core/payments/operations.rs** Modify existing code **crates/router/src/core/payments/operations/payment_confirm.rs** Modify existing code **crates/router/src/core/unified_authentication_service.rs** Modify existing code **crates/router/src/core/unified_authentication_service/types.rs** Modify existing code **crates/router/src/core/unified_authentication_service/utils.rs** Modify existing code **crates/router/src/types/api/admin.rs** Modify existing code
{"pr_number": 6859, "pr_title": "refactor(router): refactor ctp flow to fetch mca_id and get the connector creds instead of connector_name", "merged_at": "2025-01-20T12:02:06Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/admin.rs"], "database": ["crates/diesel_models/src/business_profile.rs"], "domain": ["crates/hyperswitch_domain_models/src/business_profile.rs", "crates/hyperswitch_domain_models/src/merchant_connector_account.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/operations.rs", "crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/unified_authentication_service.rs", "crates/router/src/core/unified_authentication_service/types.rs", "crates/router/src/core/unified_authentication_service/utils.rs"], "types": ["crates/common_types/src/payments.rs", "crates/router/src/types/api/admin.rs"], "other": ["crates/common_enums/src/enums.rs", "crates/router/src/consts.rs"]}, "change_types": {"structs_added": 1, "functions_added": 6, "enums_added": 1, "fields_added": 41, "imports_added": 5, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(connector): [Celero] add Connector Template Code ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Template new connection integration `celero` ### 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 as this is template ## 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` - [ ] 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/configs.rs` **2. Core Business Logic** - `crates/router/src/core/connector_validation.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 **7. Other** - `api-reference/v1/openapi_spec_v1.json` - `api-reference/v2/openapi_spec_v2.json` **Code Patterns Applied:** - Define new data structures (10 changes) - Implement new functions (78 changes) - Extend existing types with new fields (157 changes) **Detailed Identifier Changes:** Commit dfed2be2: 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::celero **crates/hyperswitch_connectors/src/connectors/celero.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::Celero - impl: impl Celero - impl: impl api::Payment for Celero - impl: impl api::PaymentSession for Celero - impl: impl api::ConnectorAccessToken for Celero - impl: impl api::MandateSetup for Celero - impl: impl api::PaymentAuthorize for Celero - impl: impl api::PaymentSync for Celero - impl: impl api::PaymentCapture for Celero - impl: impl api::PaymentVoid for Celero - impl: impl api::Refund for Celero - impl: impl api::RefundExecute for Celero - impl: impl api::RefundSync for Celero - impl: impl api::PaymentToken for Celero - impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Celero - impl: impl ConnectorCommonExt<Flow, Request, Response> for Celero - impl: impl ConnectorCommon for Celero - impl: impl ConnectorValidation for Celero - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Celero - impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Celero - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Celero - impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Celero - impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Celero - impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Celero - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Celero - impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Celero - impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Celero - impl: impl webhooks::IncomingWebhook for Celero - impl: impl ConnectorSpecifications for Celero - mod: pub::transformers **crates/hyperswitch_connectors/src/connectors/celero/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::CeleroRouterData - struct: pub::CeleroPaymentsRequest - struct: pub::CeleroCard - struct: pub::CeleroAuthType - struct: pub::CeleroPaymentsResponse - struct: pub::CeleroRefundRequest - struct: pub::RefundResponse - struct: pub::CeleroErrorResponse - enum: pub::CeleroPaymentStatus - enum: pub::RefundStatus - impl: impl From<(StringMinorUnit, T)> for CeleroRouterData<T> - impl: impl TryFrom<&CeleroRouterData<&PaymentsAuthorizeRouterData>> for CeleroPaymentsRequest - impl: impl TryFrom<&ConnectorAuthType> for CeleroAuthType - impl: impl From<CeleroPaymentStatus> for common_enums::AttemptStatus - impl: impl TryFrom<ResponseRouterData<F, CeleroPaymentsResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData> - impl: impl TryFrom<&CeleroRouterData<&RefundsRouterData<F>>> for CeleroRefundRequest - 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/connector_validation.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/celero.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::CeleroTest - impl: impl ConnectorActions for CeleroTest - impl: impl utils::Connector for CeleroTest **crates/router/tests/connectors/main.rs** Add: - mod: private::celero **crates/test_utils/src/connector_auth.rs** Modify existing code
{"pr_number": 8489, "pr_title": "feat(connector): [Celero] add Connector Template Code", "merged_at": "2025-07-07T11:57:07Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/configs.rs"], "core_business": ["crates/router/src/core/connector_validation.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/celero.rs", "crates/hyperswitch_connectors/src/connectors/celero/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/celero.rs", "crates/router/tests/connectors/main.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"], "other": ["api-reference/v1/openapi_spec_v1.json", "api-reference/v2/openapi_spec_v2.json"]}, "change_types": {"structs_added": 10, "functions_added": 78, "enums_added": 2, "fields_added": 157, "imports_added": 19}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
chore: resolve warnings in v2 ## 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 --> This PR resolves the v2 warnings generated in crates common_utils, api_models, hyperswitch_domain_models, diesel_models, kgraph_utils, storage_impl, hyperswitch_connectors, payment_methods. ### 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)? --> Testing not required. ## 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/admin.rs` - `crates/api_models/src/refunds.rs` - `crates/api_models/src/tokenization.rs` **2. Database Layer (Queries & Schema)** - `crates/diesel_models/src/query/tokenization.rs` - `crates/diesel_models/src/tokenization.rs` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/business_profile.rs` - `crates/hyperswitch_domain_models/src/customer.rs` - `crates/hyperswitch_domain_models/src/merchant_connector_account.rs` - ... and 8 more files **4. Core Business Logic** - `crates/payment_methods/src/core/migration.rs` - `crates/payment_methods/src/core/migration/payment_methods.rs` - `crates/router/src/core/customers.rs` - ... and 9 more files **5. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/chargebee.rs` - `crates/hyperswitch_connectors/src/connectors/razorpay.rs` - `crates/hyperswitch_connectors/src/connectors/recurly.rs` - ... and 4 more files **6. Utils** - `crates/common_utils/src/id_type/global_id/token.rs` - `crates/common_utils/src/tokenization.rs` - `crates/kgraph_utils/src/mca.rs` - ... and 1 more files **7. Other** - `crates/payment_methods/src/controller.rs` - `crates/payment_methods/src/state.rs` - `crates/router/src/db/kafka_store.rs` - ... and 8 more files **Code Patterns Applied:** - Extend existing types with new fields (39 changes) **Detailed Identifier Changes:** Commit d2d4f3d1: Files to modify: **crates/api_models/src/admin.rs** Modify existing code **crates/api_models/src/refunds.rs** Modify existing code **crates/api_models/src/tokenization.rs** Modify existing code **crates/common_utils/src/id_type/global_id/token.rs** Modify existing code **crates/common_utils/src/tokenization.rs** Modify existing code **crates/diesel_models/src/query/tokenization.rs** Modify existing code **crates/diesel_models/src/tokenization.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/chargebee.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/razorpay.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/recurly.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/stripebilling.rs** Modify existing code **crates/hyperswitch_connectors/src/types.rs** Modify existing code **crates/hyperswitch_domain_models/src/business_profile.rs** Modify existing code **crates/hyperswitch_domain_models/src/customer.rs** Modify existing code **crates/hyperswitch_domain_models/src/merchant_connector_account.rs** Modify existing code **crates/hyperswitch_domain_models/src/network_tokenization.rs** Modify existing code **crates/hyperswitch_domain_models/src/payment_methods.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_attempt.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_intent.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_data.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_request_types.rs** Modify existing code **crates/hyperswitch_domain_models/src/tokenization.rs** Modify existing code **crates/kgraph_utils/src/mca.rs** Modify existing code **crates/payment_methods/src/configs/payment_connector_required_fields.rs** Modify existing code **crates/payment_methods/src/controller.rs** Modify existing code **crates/payment_methods/src/core/migration.rs** Modify existing code **crates/payment_methods/src/core/migration/payment_methods.rs** Modify existing code **crates/payment_methods/src/helpers.rs** Modify existing code **crates/payment_methods/src/state.rs** Modify existing code **crates/router/src/core/customers.rs** Modify existing code **crates/router/src/core/payment_methods.rs** Modify existing code **crates/router/src/core/payments/helpers.rs** Modify existing code **crates/router/src/core/payments/operations/payment_capture_v2.rs** Modify existing code **crates/router/src/core/payments/operations/payment_confirm_intent.rs** Modify existing code **crates/router/src/core/payments/operations/payment_create_intent.rs** Modify existing code **crates/router/src/core/payments/operations/payment_get.rs** Modify existing code **crates/router/src/core/payments/operations/payment_session_intent.rs** Modify existing code **crates/router/src/core/payments/vault_session.rs** Modify existing code **crates/router/src/core/payouts.rs** Modify existing code **crates/router/src/db/kafka_store.rs** Modify existing code **crates/storage_impl/src/customers.rs** Modify existing code **crates/storage_impl/src/lib.rs** Modify existing code **crates/storage_impl/src/mock_db/payment_intent.rs** Modify existing code **crates/storage_impl/src/payment_method.rs** Modify existing code **crates/storage_impl/src/payments/payment_attempt.rs** Modify existing code **crates/storage_impl/src/payments/payment_intent.rs** Modify existing code **crates/storage_impl/src/payouts/payouts.rs** Modify existing code **crates/storage_impl/src/tokenization.rs** Modify existing code
{"pr_number": 8373, "pr_title": "chore: resolve warnings in v2", "merged_at": "2025-06-22T11:59:35Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/admin.rs", "crates/api_models/src/refunds.rs", "crates/api_models/src/tokenization.rs"], "database": ["crates/diesel_models/src/query/tokenization.rs", "crates/diesel_models/src/tokenization.rs"], "domain": ["crates/hyperswitch_domain_models/src/business_profile.rs", "crates/hyperswitch_domain_models/src/customer.rs", "crates/hyperswitch_domain_models/src/merchant_connector_account.rs", "crates/hyperswitch_domain_models/src/network_tokenization.rs", "crates/hyperswitch_domain_models/src/payment_methods.rs", "crates/hyperswitch_domain_models/src/payments.rs", "crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "crates/hyperswitch_domain_models/src/payments/payment_intent.rs", "crates/hyperswitch_domain_models/src/router_data.rs", "crates/hyperswitch_domain_models/src/router_request_types.rs", "crates/hyperswitch_domain_models/src/tokenization.rs"], "core_business": ["crates/payment_methods/src/core/migration.rs", "crates/payment_methods/src/core/migration/payment_methods.rs", "crates/router/src/core/customers.rs", "crates/router/src/core/payment_methods.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/operations/payment_capture_v2.rs", "crates/router/src/core/payments/operations/payment_confirm_intent.rs", "crates/router/src/core/payments/operations/payment_create_intent.rs", "crates/router/src/core/payments/operations/payment_get.rs", "crates/router/src/core/payments/operations/payment_session_intent.rs", "crates/router/src/core/payments/vault_session.rs", "crates/router/src/core/payouts.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/chargebee.rs", "crates/hyperswitch_connectors/src/connectors/razorpay.rs", "crates/hyperswitch_connectors/src/connectors/recurly.rs", "crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs", "crates/hyperswitch_connectors/src/connectors/stripebilling.rs", "crates/hyperswitch_connectors/src/types.rs", "crates/payment_methods/src/configs/payment_connector_required_fields.rs"], "utils": ["crates/common_utils/src/id_type/global_id/token.rs", "crates/common_utils/src/tokenization.rs", "crates/kgraph_utils/src/mca.rs", "crates/payment_methods/src/helpers.rs"], "other": ["crates/payment_methods/src/controller.rs", "crates/payment_methods/src/state.rs", "crates/router/src/db/kafka_store.rs", "crates/storage_impl/src/customers.rs", "crates/storage_impl/src/lib.rs", "crates/storage_impl/src/mock_db/payment_intent.rs", "crates/storage_impl/src/payment_method.rs", "crates/storage_impl/src/payments/payment_attempt.rs", "crates/storage_impl/src/payments/payment_intent.rs", "crates/storage_impl/src/payouts/payouts.rs", "crates/storage_impl/src/tokenization.rs"]}, "change_types": {"fields_added": 39, "imports_added": 59}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
fix: fix api url in dashboard configuration ## 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 pull request updates the API endpoint configuration in the `dashboard.toml` file. The only change is the `api_url` value, which now points to port 8080 instead of 9000. Earlier PR for reference : https://github.com/juspay/hyperswitch/pull/9243 ### 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. Configuration Files** - `config/dashboard.toml`
{"pr_number": 9334, "pr_title": "fix: fix api url in dashboard configuration", "merged_at": "2025-09-10T10:38:50Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"config": ["config/dashboard.toml"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
refactor(payment_methods_v2): rename `payment_method` and `payment_method_type` fields and use concrete type for `payment_method_data` ## 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 involves the following changes in payment methods v2 code: - Renames the `payment_method` field to `payment_method_type`, and `payment_method_type` to `payment_method_subtype`. This change affect the database columns itself, the diesel models, the domain models and the API models. - Updates the `payment_method_data` field in the domain model to have the concrete type wrapped by `EncryptedJsonType`, instead of the existing `serde_json::Value` type. - The `EncryptedJsonType` was also introduced in this PR. It adds support to use a concrete type in domain models, while handling the JSON serialization and deserialization before encryption and after decryption of data, respectively. In addition, this PR removes the `PaymentMethodList` struct from the API models, which isn't being used anywhere. By the way, I'm open to better name suggestions for the newly introduced things! ### 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` --> - This PR renames database columns in payment methods v2 code. - This PR renames fields in payment methods v2 API models. - This PR removes an unused type from the API models crate. ## 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). --> - The renaming of columns was suggested in https://github.com/juspay/hyperswitch/pull/6433#discussion_r1828880058. This also follows the changes done in the payment attempt v2 types for these two fields. - Using of the concrete type in the domain models helps prevent JSON deserialization happening multiple times in different parts of the codebase. ## 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 mostly affects the payment methods v2 code, with focus on the customer payment methods list v2 code. I haven't been able to test these changes, there are still a couple of panics remaining in the customer payment methods list v2 code. Ideally, nothing in the payment methods v1 code should be affected and existing Postman and Cypress tests should pass. ## 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.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/payment_method.rs` - `crates/diesel_models/src/schema_v2.rs` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/payment_methods.rs` - `crates/hyperswitch_domain_models/src/type_encryption.rs` **4. Core Business Logic** - `crates/router/src/core/customers.rs` - `crates/router/src/core/locker_migration.rs` - `crates/router/src/core/payment_methods.rs` - ... and 8 more files **5. Type Definitions** - `crates/router/src/types/api/mandates.rs` - `crates/router/src/types/api/payment_methods.rs` - `crates/router/src/types/domain/types.rs` - ... and 1 more files **6. Configuration Files** - `crates/openapi/Cargo.toml` **7. Other** - `api-reference-v2/openapi_spec.json` - `api-reference/openapi_spec.json` - `crates/openapi/src/openapi.rs` - ... and 4 more files **Code Patterns Applied:** - Define new data structures (3 changes) - Implement new functions (19 changes) - Extend existing types with new fields (147 changes) - Add conditional logic for feature flags or filtering (6 changes) - Modify database queries (4 changes) **Detailed Identifier Changes:** Commit 11e92413: Files to modify: **crates/api_models/src/events.rs** Modify existing code **crates/api_models/src/events/payment.rs** Add: - function: private::get_api_event_type **crates/api_models/src/payment_methods.rs** Modify existing code **crates/api_models/src/payments.rs** Modify existing code **crates/diesel_models/src/payment_method.rs** Add: - struct: pub::PaymentsMandateReferenceRecord **crates/diesel_models/src/schema_v2.rs** Modify existing code **crates/hyperswitch_domain_models/src/payment_methods.rs** Add: - function: pub::get_payment_method_type - function: pub::get_payment_method_type - function: pub::get_payment_method_subtype - function: pub::get_payment_method_subtype **crates/hyperswitch_domain_models/src/type_encryption.rs** Add: - function: private::serialize_json_bytes - function: private::deserialize_json_bytes - function: private::encrypt_via_api - function: private::decrypt_via_api - function: private::encrypt - function: private::decrypt - function: private::batch_encrypt_via_api - function: private::batch_decrypt_via_api - function: private::batch_encrypt - function: private::batch_decrypt - function: pub::inner - function: pub::into_inner - function: private::from - function: private::deref - struct: pub::EncryptedJsonType - impl: impl EncryptedJsonType<T> - impl: impl TypeEncryption<EncryptedJsonType<T>, V, S> for crypto::Encryptable<Secret<EncryptedJsonType<T>, S>> - impl: impl EncryptedJsonType<T> - impl: impl From<T> for EncryptedJsonType<T> - impl: impl std::ops::Deref for EncryptedJsonType<T> **crates/openapi/src/openapi.rs** Modify existing code **crates/openapi/src/openapi_v2.rs** Modify existing code **crates/router/src/core/customers.rs** Modify existing code **crates/router/src/core/locker_migration.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/surcharge_decision_configs.rs** Modify existing code **crates/router/src/core/payment_methods/transformers.rs** Modify existing code **crates/router/src/core/payments.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 **crates/router/src/core/payments/tokenization.rs** Modify existing code **crates/router/src/core/pm_auth.rs** Modify existing code **crates/router/src/routes/payment_methods.rs** Modify existing code **crates/router/src/types/api/mandates.rs** Modify existing code **crates/router/src/types/api/payment_methods.rs** Modify existing code **crates/router/src/types/domain/types.rs** Modify existing code **crates/router/src/types/transformers.rs** Modify existing code
{"pr_number": 6555, "pr_title": "refactor(payment_methods_v2): rename `payment_method` and `payment_method_type` fields and use concrete type for `payment_method_data`", "merged_at": "2024-11-19T16:05:19Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment"]}, "hierarchy": {"api_models": ["crates/api_models/src/events.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/payment_method.rs", "crates/diesel_models/src/schema_v2.rs"], "domain": ["crates/hyperswitch_domain_models/src/payment_methods.rs", "crates/hyperswitch_domain_models/src/type_encryption.rs"], "core_business": ["crates/router/src/core/customers.rs", "crates/router/src/core/locker_migration.rs", "crates/router/src/core/payment_methods.rs", "crates/router/src/core/payment_methods/cards.rs", "crates/router/src/core/payment_methods/surcharge_decision_configs.rs", "crates/router/src/core/payment_methods/transformers.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/payments/tokenization.rs", "crates/router/src/core/pm_auth.rs"], "types": ["crates/router/src/types/api/mandates.rs", "crates/router/src/types/api/payment_methods.rs", "crates/router/src/types/domain/types.rs", "crates/router/src/types/transformers.rs"], "config": ["crates/openapi/Cargo.toml"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/openapi/src/openapi.rs", "crates/openapi/src/openapi_v2.rs", "crates/router/src/routes/payment_methods.rs", "v2_migrations/2024-08-23-112510_payment_methods_v2_db_changes/down.sql", "v2_migrations/2024-08-23-112510_payment_methods_v2_db_changes/up.sql"]}, "change_types": {"structs_added": 3, "functions_added": 19, "fields_added": 147, "imports_added": 3, "conditionals_added": 6, "database_queries": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(subscription): Add estimate to subscriptions flow and remove amount and currency ## 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 --> Currently, `subscription/create`, `/subscription`, and `/subscription/:id/update` accept amount and currency as input parameters(this pr removes that). Retrieved the amount and currency from the `get_subscription_estimate` from item_price_id. ### 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)? --> Create customer ``` curl --location 'http://localhost:8080/customers' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_ihB1dFGcaW8dbAHI3gXtuWPErJXbUrHqt0vYTvWpT70n6yzUhbClhncYEVz4QvLr' \ --data-raw '{ "email": "guest@example.com", "name": "Gauarv", "phone": "999999999", "phone_country_code": "+65", "description": "First customer", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } }' ``` Response ``` { "customer_id": "cus_sP3ouUy0J01OSngw2Q3G", "name": "Gauarv", "email": "guest@example.com", "phone": "999999999", "phone_country_code": "+65", "description": "First customer", "address": null, "created_at": "2025-10-14T12:40:19.251Z", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" }, "default_payment_method_id": null, "tax_registration_id": null } ``` subscription create and confirm ``` curl --location 'http://localhost:8080/subscriptions' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'X-Profile-Id: pro_Y83W2MtvQkrqcMJ4xPnE' \ --header 'api-key: dev_ihB1dFGcaW8dbAHI3gXtuWPErJXbUrHqt0vYTvWpT70n6yzUhbClhncYEVz4QvLr' \ --data '{ "item_price_id": "cbdemo_enterprise-suite-monthly", "customer_id": "cus_SDD7vSsXqQxZ2S4f7K6Y", "description": "Hello this is description", "merchant_reference_id": "mer_ref_1759334677", "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" } }, "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_yAVIFT8qYHapAXwj6pQy", "merchant_reference_id": "mer_ref_1759334677", "status": "active", "plan_id": null, "item_price_id": "cbdemo_enterprise-suite-monthly", "coupon": null, "profile_id": "pro_Y83W2MtvQkrqcMJ4xPnE", "payment": { "payment_id": "pay_MZey8c4E4b1gJr94LLAN", "status": "succeeded", "amount": 14100, "currency": "INR", "profile_id": "pro_Y83W2MtvQkrqcMJ4xPnE", "connector": "stripe", "payment_method_id": "pm_ts9XJdSnlujF7QRzwowE", "return_url": "https://google.com/", "next_action": null, "payment_experience": null, "error_code": null, "error_message": null, "payment_method_type": "credit", "client_secret": "pay_MZey8c4E4b1gJr94LLAN_secret_UnbqBbhcjFkNw1XIQM97", "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_SDD7vSsXqQxZ2S4f7K6Y", "invoice": { "id": "invoice_8NTGYqKJmqJFuZo7CzY0", "subscription_id": "sub_yAVIFT8qYHapAXwj6pQy", "merchant_id": "merchant_1760132209", "profile_id": "pro_Y83W2MtvQkrqcMJ4xPnE", "merchant_connector_id": "mca_nh1mc6KDDpo6xpSnMwzy", "payment_intent_id": "pay_MZey8c4E4b1gJr94LLAN", "payment_method_id": null, "customer_id": "cus_SDD7vSsXqQxZ2S4f7K6Y", "amount": 14100, "currency": "INR", "status": "payment_pending" }, "billing_processor_subscription_id": "sub_yAVIFT8qYHapAXwj6pQy" } ``` Subscription create ``` curl --location 'http://localhost:8080/subscriptions/create' \ --header 'Content-Type: application/json' \ --header 'X-Profile-Id: pro_Y83W2MtvQkrqcMJ4xPnE' \ --header 'api-key: dev_ihB1dFGcaW8dbAHI3gXtuWPErJXbUrHqt0vYTvWpT70n6yzUhbClhncYEVz4QvLr' \ --data '{ "item_price_id": "cbdemo_enterprise-suite-monthly", "plan_id": "cbdemo_enterprise-suite", "customer_id": "cus_sP3ouUy0J01OSngw2Q3G", "payment_details": { "authentication_type": "no_three_ds", "setup_future_usage": "off_session", "capture_method": "automatic", "return_url": "https://google.com" } }' ``` Response ``` { "id": "sub_pQJmsFqhaqhe69MP2rdh", "merchant_reference_id": null, "status": "created", "plan_id": "cbdemo_enterprise-suite", "item_price_id": "cbdemo_enterprise-suite-monthly", "profile_id": "pro_Y83W2MtvQkrqcMJ4xPnE", "client_secret": "sub_pQJmsFqhaqhe69MP2rdh_secret_ZV8W1UDL8HLTPfQhjbqf", "merchant_id": "merchant_1760132209", "coupon_code": null, "customer_id": "cus_sP3ouUy0J01OSngw2Q3G", "payment": { "payment_id": "pay_F4UtZneFoU2VLUMwOX8W", "status": "requires_payment_method", "amount": 14100, "currency": "INR", "profile_id": "pro_Y83W2MtvQkrqcMJ4xPnE", "connector": null, "payment_method_id": null, "return_url": "https://google.com/", "next_action": null, "payment_experience": null, "error_code": null, "error_message": null, "payment_method_type": null, "client_secret": "pay_F4UtZneFoU2VLUMwOX8W_secret_kNStCQ5sdP0ffrrp0Vs1", "billing": null, "shipping": null, "payment_type": null }, "invoice": { "id": "invoice_q6gxyDf9PlCCE87o7Jzu", "subscription_id": "sub_pQJmsFqhaqhe69MP2rdh", "merchant_id": "merchant_1760132209", "profile_id": "pro_Y83W2MtvQkrqcMJ4xPnE", "merchant_connector_id": "mca_nh1mc6KDDpo6xpSnMwzy", "payment_intent_id": "pay_F4UtZneFoU2VLUMwOX8W", "payment_method_id": null, "customer_id": "cus_sP3ouUy0J01OSngw2Q3G", "amount": 14100, "currency": "INR", "status": "invoice_created" } } ``` Subscription update ``` curl --location --request PUT 'http://localhost:8080/subscriptions/sub_pQJmsFqhaqhe69MP2rdh/update' \ --header 'Content-Type: application/json' \ --header 'X-Profile-Id: pro_Y83W2MtvQkrqcMJ4xPnE' \ --header 'api-key: dev_ihB1dFGcaW8dbAHI3gXtuWPErJXbUrHqt0vYTvWpT70n6yzUhbClhncYEVz4QvLr' \ --data '{ "plan_id":"cbdemo_enterprise-suite", "item_price_id":"cbdemo_enterprise-suite-monthly" }' ``` Response ``` { "id": "sub_pQJmsFqhaqhe69MP2rdh", "merchant_reference_id": null, "status": "created", "plan_id": "cbdemo_enterprise-suite", "item_price_id": "cbdemo_enterprise-suite-monthly", "profile_id": "pro_Y83W2MtvQkrqcMJ4xPnE", "client_secret": "sub_pQJmsFqhaqhe69MP2rdh_secret_ZV8W1UDL8HLTPfQhjbqf", "merchant_id": "merchant_1760132209", "coupon_code": null, "customer_id": "cus_sP3ouUy0J01OSngw2Q3G", "payment": null, "invoice": null } ``` Subscription confirm ``` curl --location 'http://localhost:8080/subscriptions/sub_pQJmsFqhaqhe69MP2rdh/confirm' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'X-Profile-Id: pro_Y83W2MtvQkrqcMJ4xPnE' \ --header 'api-key: pk_dev_70bbe854c72a45ac9ac643d1d559c395' \ --data '{ "client_secret": "sub_pQJmsFqhaqhe69MP2rdh_secret_ZV8W1UDL8HLTPfQhjbqf", "payment_details": { "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" } }, "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" }, "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" } } }, "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_pQJmsFqhaqhe69MP2rdh", "merchant_reference_id": null, "status": "active", "plan_id": "cbdemo_enterprise-suite", "item_price_id": "cbdemo_enterprise-suite-monthly", "coupon": null, "profile_id": "pro_Y83W2MtvQkrqcMJ4xPnE", "payment": { "payment_id": "pay_F4UtZneFoU2VLUMwOX8W", "status": "succeeded", "amount": 14100, "currency": "INR", "profile_id": "pro_Y83W2MtvQkrqcMJ4xPnE", "connector": "stripe", "payment_method_id": "pm_PX92DQnxZm7nGAwSNkmx", "return_url": "https://google.com/", "next_action": null, "payment_experience": null, "error_code": null, "error_message": null, "payment_method_type": "credit", "client_secret": "pay_F4UtZneFoU2VLUMwOX8W_secret_kNStCQ5sdP0ffrrp0Vs1", "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_sP3ouUy0J01OSngw2Q3G", "invoice": { "id": "invoice_q6gxyDf9PlCCE87o7Jzu", "subscription_id": "sub_pQJmsFqhaqhe69MP2rdh", "merchant_id": "merchant_1760132209", "profile_id": "pro_Y83W2MtvQkrqcMJ4xPnE", "merchant_connector_id": "mca_nh1mc6KDDpo6xpSnMwzy", "payment_intent_id": "pay_F4UtZneFoU2VLUMwOX8W", "payment_method_id": "pm_PX92DQnxZm7nGAwSNkmx", "customer_id": "cus_sP3ouUy0J01OSngw2Q3G", "amount": 14100, "currency": "INR", "status": "payment_pending" }, "billing_processor_subscription_id": "sub_pQJmsFqhaqhe69MP2rdh" } ``` ## 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/subscription.rs` **2. Core Business Logic** - `crates/router/src/core/subscription.rs` - `crates/router/src/core/subscription/invoice_handler.rs` **Code Patterns Applied:** - Extend existing types with new fields (10 changes) **Detailed Identifier Changes:** Commit c2c48940: Files to modify: **crates/api_models/src/subscription.rs** Modify existing code **crates/router/src/core/subscription.rs** Modify existing code **crates/router/src/core/subscription/invoice_handler.rs** Modify existing code
{"pr_number": 9835, "pr_title": "feat(subscription): Add estimate to subscriptions flow and remove amount and currency", "merged_at": "2025-10-16T10:36:29Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/subscription.rs"], "core_business": ["crates/router/src/core/subscription.rs", "crates/router/src/core/subscription/invoice_handler.rs"]}, "change_types": {"fields_added": 10}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
ci(cypress): log `x-request-id` for failed requests ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description Logging x-request-id for failed requests ### 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 Previously we were logging x-request-id for failed payments ## How did you test it? <img width="980" alt="failedpaypal" src="https://github.com/user-attachments/assets/9919c1f2-67be-4596-855b-ffdc34db4bd1" /> - Paypal <img width="725" alt="paypalsuccess" src="https://github.com/user-attachments/assets/04b08e44-e639-4e21-b347-dc0ceeb5ffe2" /> - Stripe <img width="725" alt="image" src="https://github.com/user-attachments/assets/246f692c-ed48-47da-b41b-76802dc1af92" /> - Adyen <img width="725" alt="image" src="https://github.com/user-attachments/assets/caba1b0c-666f-4d84-a200-0c7be3497350" /> - Cybersource <img width="725" alt="image" src="https://github.com/user-attachments/assets/dfb25041-a6d8-4d58-9729-7ba25d8e3688" /> ## 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/configs/Payment/Stripe.js` - `cypress-tests/cypress/support/commands.js` **2. Other** - `.github/data/cards_info.csv` - `postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/request.json` - `postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Create/request.json` - ... and 43 more files **Code Patterns Applied:** - Extend existing types with new fields (8 changes) - Add conditional logic for feature flags or filtering (93 changes)
{"pr_number": 7118, "pr_title": "ci(cypress): log `x-request-id` for failed requests", "merged_at": "2025-01-30T18:37:25Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/configs/Payment/Stripe.js", "cypress-tests/cypress/support/commands.js"], "other": [".github/data/cards_info.csv", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario10-Create a mandate and recurring payment/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario11-Refund recurring payment/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario2-Create a payment and Confirm/Payments - Confirm/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario22- Update Amount/Payments - Confirm/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario23-Add card flow/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario26-Create payment without customer_id and with billing address and shipping address/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario27-Confirm a payment with requires_customer_action status/Payments - Confirm/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario28-Create payment with payment method billing/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario29-Update payment with payment method billing/Payments - Update/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario2a-Create payment with confirm false card holder name null/Payments - Confirm/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario2b-Create payment with confirm false card holder name empty/Payments - Confirm/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario3-Create payment without PMD/Payments - Confirm/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario30-Pass payment method billing in Confirm/Payments - Confirm/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario31-Ensure API Contract for Payment Method Data/Payments - Card Payment Method Invalid Card CVC/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario31-Ensure API Contract for Payment Method Data/Payments - Card Payment Method Invalid Expiry month/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario31-Ensure API Contract for Payment Method Data/Payments - Card Payment Method Invalid Expiry year/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario31-Ensure API Contract for Payment Method Data/Payments - Card Payment Method Success/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario32-Check is payment checks are populated/Payments - cvv check fails/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario32-Check is payment checks are populated/Payments - payment check populated for successful payment without billing/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario32-Check is payment checks are populated/Payments - successful payment with billing/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario4-Create payment with Manual capture/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario4a-Create payment with manual_multiple capture/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario5-Void the payment/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario9-Refund full payment/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/Happy Cases/Scenario9a-Partial refund/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/QuickStart/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp Year)/request.json", "postman/collection-dir/stripe/Flow Testcases/Variation Cases/Scenario1-Create payment with Invalid card details/Payments - Create(Invalid Exp month)/request.json", "postman/collection-dir/stripe/Flow Testcases/Variation Cases/Scenario10-Refund exceeds amount captured/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/Variation Cases/Scenario3-Capture greater amount/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/Variation Cases/Scenario4-Capture the succeeded payment/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/Variation Cases/Scenario5-Void the success_slash_failure payment/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/Variation Cases/Scenario7-Refund exceeds amount/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/Variation Cases/Scenario8-Refund for unsuccessful payment/Payments - Create/request.json", "postman/collection-dir/stripe/Flow Testcases/Variation Cases/Scenario9-Create a recurring payment with greater mandate amount/Payments - Create/request.json", "postman/collection-dir/stripe/PaymentMethods/PaymentMethods - Create/request.json", "postman/collection-dir/stripe/PaymentMethods/Payments - Create/request.json", "postman/collection-dir/stripe/Payments/Payments - Create Again/request.json", "postman/collection-dir/stripe/Payments/Payments - Create Yet Again/request.json", "postman/collection-dir/stripe/Payments/Payments - Create/request.json", "postman/collection-dir/stripe/Payments/Payments - Update/request.json", "postman/collection-dir/stripe/QuickStart/Payments - Create-copy/request.json", "postman/collection-dir/stripe/QuickStart/Payments - Create/request.json", "postman/collection-dir/stripe/Refunds/Payments - Create/request.json"]}, "change_types": {"fields_added": 8, "conditionals_added": 93}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
chore(wasm): add wasm changes for ctp_mastercard 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 wasm changes for ctp_mastercard 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)? --> Compiler guided ## 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/src/common_config.rs` - `crates/connector_configs/src/connector.rs` - `crates/connector_configs/toml/development.toml` - ... and 1 more files **Code Patterns Applied:** - Extend existing types with new fields (10 changes) **Detailed Identifier Changes:** Commit b301d092: Files to modify: **crates/connector_configs/src/common_config.rs** Modify existing code **crates/connector_configs/src/connector.rs** Modify existing code
{"pr_number": 6838, "pr_title": "chore(wasm): add wasm changes for ctp_mastercard connector", "merged_at": "2024-12-17T12:22:34Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector", "card"]}, "hierarchy": {"connectors": ["crates/connector_configs/src/common_config.rs", "crates/connector_configs/src/connector.rs", "crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/sandbox.toml"]}, "change_types": {"fields_added": 10}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
refactor(enums): recon - include ReconOps variant in PermissionsGroup for backwards compatibility with data in DB ## 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 introduces a new variant - `ReconOps` in the `PermissionGroup` enum for deserializing the custom recon related roles in the existing DB. **Why?** In `PermissionGroup` enum, `ReconOps` was recently renamed to `ReconOpsManage`. These values are serialized and stored in DB in case custom roles are created. For existing custom recon related roles, this would be stored as `recon_ops` in the DB. Application would expect this to be `recon_ops_manage` leading to deserialization failures. This cannot be solved using serde's alias or strum's serialize attributes. **Why?** using strum's serialize attribute will expect the DB to always have `recon_ops` - application will always store this as `recon_ops_manage` in the new builds. Serde's alias attribute is not taken into account for DB enums or texts - which depends on FromStr impls. **Solution** - Add a dummy variant `ReconOps` and treat it as `ReconOpsManage` in the application. - Run migrations in DB once this build is rolled out - Delete the redundant variants once the data is migrated ### 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 Helps maintain backward compatibility for recon related custom roles with DB. ## How did you test it? Performing backwards compatibility with DB and application - Ensure existing DB has `recon_ops` in custom roles - Fetch roles using the new application Current behavior (if custom recon roles are present in DB, and new application is used) <img width="744" alt="Screenshot 2024-12-06 at 6 13 38 PM" src="https://github.com/user-attachments/assets/8b407de8-e616-49fb-828c-3b25e0ba5b42"> <img width="1258" alt="Screenshot 2024-12-06 at 6 15 26 PM" src="https://github.com/user-attachments/assets/f50d6db5-a367-4665-8b2c-f65e7ad95d91"> Updated behavior for the same case <img width="696" alt="Screenshot 2024-12-06 at 6 18 05 PM" src="https://github.com/user-attachments/assets/fee2ce67-79ec-4ecb-95b0-4964b506d88d"> ## 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** - `crates/common_enums/src/enums.rs` - `crates/router/src/services/authorization/info.rs` - `crates/router/src/services/authorization/permission_groups.rs` **Detailed Identifier Changes:** Commit a5282829: Files to modify: **crates/common_enums/src/enums.rs** Modify existing code **crates/router/src/services/authorization/info.rs** Modify existing code **crates/router/src/services/authorization/permission_groups.rs** Modify existing code
{"pr_number": 6767, "pr_title": "refactor(enums): recon - include ReconOps variant in PermissionsGroup for backwards compatibility with data in DB", "merged_at": "2024-12-10T12:03:38Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"other": ["crates/common_enums/src/enums.rs", "crates/router/src/services/authorization/info.rs", "crates/router/src/services/authorization/permission_groups.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
ci(cypress): add assertion for `connector_mandate_id` ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description added the assertion for connector_mandate_id in mandates and zero auth mandates test cases ### 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 Verify the connector_mandate_id in mandate cases ## 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)? --> - Mandates : <img width="502" alt="image" src="https://github.com/user-attachments/assets/c017ad3a-4d69-4e81-abfb-f5e97263c17c" /> - Zero auth mandates: <img width="502" alt="image" src="https://github.com/user-attachments/assets/34d23eee-e127-44e7-80ce-87260e428aa4" /> - Cybersources <img width="706" alt="image" src="https://github.com/user-attachments/assets/8a9a7014-bf55-427b-ad5d-9b3b869d1664" /> - paypal <img width="732" alt="image" src="https://github.com/user-attachments/assets/c0cbc537-812b-4698-b836-7cb6637a9c5d" /> - adyen <img width="732" alt="image" src="https://github.com/user-attachments/assets/611f7adb-c8f3-41e2-9470-f2b556540e13" /> - bluesnap <img width="732" alt="image" src="https://github.com/user-attachments/assets/b0c5b9df-9923-4494-a65d-790cf58a55e9" /> - nmi <img width="732" alt="image" src="https://github.com/user-attachments/assets/c367bef5-6c16-4d56-81a8-17d15e52369e" /> ## 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/00019-MandatesUsingPMID.cy.js` - `cypress-tests/cypress/support/commands.js` **Code Patterns Applied:** - Add conditional logic for feature flags or filtering (4 changes)
{"pr_number": 7474, "pr_title": "ci(cypress): add assertion for `connector_mandate_id`", "merged_at": "2025-03-12T10:01:36Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "connector"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/spec/Payment/00019-MandatesUsingPMID.cy.js", "cypress-tests/cypress/support/commands.js"]}, "change_types": {"conditionals_added": 4}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
feat(router): Add support for Vault in connector_accounts endpoint ## 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 --> - Added `Vault` as a connector type - Added connector template code for VGS vault ### 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)? --> 1. Request: ``` curl --location 'http://localhost:8080/v2/connector-accounts' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-merchant-id: cloth_seller_72Uo6UDJCwMVnZXGWmXz' \ --header 'x-profile-id: pro_JA5jyPns6Fgulug2zYgA' \ --header 'Authorization: admin-api-key=test_admin' \ --header 'api-key: test_admin' \ --data '{ "connector_type": "vault_processor", "connector_name": "vgs", "connector_account_details": { "auth_type": "BodyKey", "api_key": "REDACTED", "key1": "REDACTED" }, "frm_configs": null, "connector_webhook_details": { "merchant_secret": "" }, "profile_id": "pro_JA5jyPns6Fgulug2zYgA" }' ``` 2. Response: ```json { "connector_type": "vault_processor", "connector_name": "vgs", "connector_label": "vgs_business_1746687680", "id": "mca_EWki4tQSmcQcisZGxCJ0", "profile_id": "pro_JA5jyPns6Fgulug2zYgA", "connector_account_details": { "auth_type": "BodyKey", "api_key": "US********************q4", "key1": "ca********************************07" }, "payment_methods_enabled": null, "connector_webhook_details": { "merchant_secret": "", "additional_secret": null }, "metadata": null, "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` - [ ] 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/enums.rs` **2. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/configs.rs` **3. Core Business Logic** - `crates/router/src/core/admin.rs` **4. External Connector Integration** - `crates/common_enums/src/connector_enums.rs` - `crates/connector_configs/src/connector.rs` - `crates/hyperswitch_connectors/src/connectors.rs` - ... and 11 more files **5. Type Definitions** - `crates/router/src/types/api.rs` - `crates/router/src/types/transformers.rs` **6. Tests** - `loadtest/config/development.toml` **7. Configuration Files** - `config/config.example.toml` - `config/development.toml` - `config/docker_compose.toml` **8. 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 (10 changes) - Implement new functions (80 changes) - Extend existing types with new fields (159 changes) - Add conditional logic for feature flags or filtering (1 changes) **Detailed Identifier Changes:** Commit 89b421f8: Files to modify: **crates/api_models/src/enums.rs** Add: - function: private::from - function: pub::convert_vault_connector - enum: pub::VaultConnectors - impl: impl From<VaultConnectors> for Connector **crates/common_enums/src/connector_enums.rs** Modify existing code **crates/common_enums/src/enums.rs** Modify existing code **crates/connector_configs/src/connector.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors.rs** Add: - mod: pub::vgs **crates/hyperswitch_connectors/src/connectors/vgs.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::Vgs - impl: impl Vgs - impl: impl api::Payment for Vgs - impl: impl api::PaymentSession for Vgs - impl: impl api::ConnectorAccessToken for Vgs - impl: impl api::MandateSetup for Vgs - impl: impl api::PaymentAuthorize for Vgs - impl: impl api::PaymentSync for Vgs - impl: impl api::PaymentCapture for Vgs - impl: impl api::PaymentVoid for Vgs - impl: impl api::Refund for Vgs - impl: impl api::RefundExecute for Vgs - impl: impl api::RefundSync for Vgs - impl: impl api::PaymentToken for Vgs - impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Vgs - impl: impl ConnectorCommonExt<Flow, Request, Response> for Vgs - impl: impl ConnectorCommon for Vgs - impl: impl ConnectorValidation for Vgs - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Vgs - impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Vgs - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Vgs - impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Vgs - impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Vgs - impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Vgs - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Vgs - impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Vgs - impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Vgs - impl: impl webhooks::IncomingWebhook for Vgs - impl: impl ConnectorSpecifications for Vgs - mod: pub::transformers **crates/hyperswitch_connectors/src/connectors/vgs/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::VgsRouterData - struct: pub::VgsPaymentsRequest - struct: pub::VgsCard - struct: pub::VgsAuthType - struct: pub::VgsPaymentsResponse - struct: pub::VgsRefundRequest - struct: pub::RefundResponse - struct: pub::VgsErrorResponse - enum: pub::VgsPaymentStatus - enum: pub::RefundStatus - impl: impl From<(StringMinorUnit, T)> for VgsRouterData<T> - impl: impl TryFrom<&VgsRouterData<&PaymentsAuthorizeRouterData>> for VgsPaymentsRequest - impl: impl TryFrom<&ConnectorAuthType> for VgsAuthType - impl: impl From<VgsPaymentStatus> for common_enums::AttemptStatus - impl: impl TryFrom<ResponseRouterData<F, VgsPaymentsResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData> - impl: impl TryFrom<&VgsRouterData<&RefundsRouterData<F>>> for VgsRefundRequest - 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::vgs **crates/router/tests/connectors/vgs.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::VgsTest - impl: impl ConnectorActions for VgsTest - impl: impl utils::Connector for VgsTest **crates/test_utils/src/connector_auth.rs** Modify existing code
{"pr_number": 7814, "pr_title": "feat(router): Add support for Vault in connector_accounts endpoint", "merged_at": "2025-05-15T11:57:04Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/enums.rs"], "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/vgs.rs", "crates/hyperswitch_connectors/src/connectors/vgs/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/vgs.rs", "crates/test_utils/src/connector_auth.rs", "migrations/2025-05-08-062918_add-vault-processor-in-connector-type/down.sql", "migrations/2025-05-08-062918_add-vault-processor-in-connector-type/up.sql", "scripts/add_connector.sh"], "types": ["crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "tests": ["loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/development.toml", "config/docker_compose.toml"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/common_enums/src/enums.rs"]}, "change_types": {"structs_added": 10, "functions_added": 80, "enums_added": 3, "fields_added": 159, "imports_added": 19, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
fix(router): get apple pay certificates only from metadata during the 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 --> Currently we have apple pay certificates being stored in the `metadata` as well as `connector_wallet_details` when a merchant connector account is created. During the session call we try to get the certificates from the `connector_wallet_details` if it fails we try to get it from `metadata`. Currently when apple pay certificates are being updated with the merchant connector update call only the metadata is being updated. Because of this `connector_wallet_details` will still have the old data using which we make the session call. In order to fix it, this pr contains the changes to get the `apple pay certificates` from the `metadata` only as it will have the latest updated data. In subsequent pr mca update inconsistency will be handled. ### 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 merchant connector account with apple pay enabled (pass the certificates only in the metadata) -> Create a payment with confirm false ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_1mlXU5snhPhX9lzhh489Hafi6psrvNuTYGqgB7IWO10tUN81hYwfxqr54iHN9LqM' \ --data-raw '{ "amount": 6100, "currency": "USD", "confirm": false, "business_country": "US", "business_label": "default", "amount_to_capture": 6100, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "return_url": "https://google.com", "email": "something@gmail.com", "name": "Joseph Doe", "phone": "999999999", "phone_country_code": "+65", "description": "Its my first payment request", "statement_descriptor_name": "Juspay", "statement_descriptor_suffix": "Router", "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_13yS6rPTfz2flIVwTdOD", "merchant_id": "merchant_1731058139", "status": "requires_payment_method", "amount": 6100, "net_amount": 6100, "shipping_cost": null, "amount_capturable": 0, "amount_received": null, "connector": null, "client_secret": "pay_13yS6rPTfz2flIVwTdOD_secret_LDRqGrN0l1Oepne0sswI", "created": "2024-11-08T09:29:43.101Z", "currency": "USD", "customer_id": null, "customer": { "id": null, "name": "Joseph Doe", "email": "something@gmail.com", "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": null, "name": null, "phone": null, "return_url": "https://google.com/", "authentication_type": null, "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": "US", "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": null, "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_qk2Nf6soRabKK4PTZPI7", "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-11-08T09:44:43.101Z", "fingerprint": null, "browser_info": null, "payment_method_id": null, "payment_method_status": null, "updated": "2024-11-08T09:29:43.156Z", "charges": null, "frm_metadata": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": null } ``` -> Make a session call ``` curl --location 'http://localhost:8080/payments/session_tokens' \ --header 'Content-Type: application/json' \ --header 'api-key: pk_dev_8f588c72e93146fd85d7888b57813cae' \ --data '{ "payment_id": "pay_13yS6rPTfz2flIVwTdOD", "wallets": [], "client_secret": "pay_13yS6rPTfz2flIVwTdOD_secret_LDRqGrN0l1Oepne0sswI" }' ``` ``` { "payment_id": "pay_9dkYqqMjqhB6HVEdmtH8", "client_secret": "pay_9dkYqqMjqhB6HVEdmtH8_secret_yLYrfUXwlbhz1WTcwAZ0", "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": "61.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-9dkYqqMjqhB6HVEdmtH8", "merchant": { "name": "Hyperswitch", "url": null, "country_code": "IN" }, "amount": { "option": "FORMAT_TOTAL_PRICE_ONLY", "currency_code": "USD", "total": "61.00" }, "protocol": "PROTOCOL3DS", "allowed_brands": [ "visa", "masterCard", "amex", "discover" ] }, { "wallet_name": "apple_pay", "session_token_data": { "epoch_timestamp": 1731058299555, "expires_at": 1731061899555, "merchant_session_identifier": "SSH56D7E29D55C14575B8A72585526E9989_7E0DD1295E42A30B376B18CB4E6B9B9FB4C5E36B3EDF9FB0DEA51F9419420173", "nonce": "bee270b5", "merchant_identifier": "A73398AA267417BF8F26F7168B22908662D517F8FF2FC31C76CBF7511F572AB8", "domain_name": "hyperswitch-demo-store.netlify.app", "display_name": "Shankar", "signature": "308006092a864886f70d010702a0803080020101310d300b0609608648016503040201308006092a864886f70d0107010000a080308203e330820388a003020102020816634c8b0e305717300a06082a8648ce3d040302307a312e302c06035504030c254170706c65204170706c69636174696f6e20496e746567726174696f6e204341202d20473331263024060355040b0c1d4170706c652043657274696669636174696f6e20417574686f7269747931133011060355040a0c0a4170706c6520496e632e310b3009060355040613025553301e170d3234303432393137343732375a170d3239303432383137343732365a305f3125302306035504030c1c6563632d736d702d62726f6b65722d7369676e5f5543342d50524f4431143012060355040b0c0b694f532053797374656d7331133011060355040a0c0a4170706c6520496e632e310b30090603550406130255533059301306072a8648ce3d020106082a8648ce3d03010703420004c21577edebd6c7b2218f68dd7090a1218dc7b0bd6f2c283d846095d94af4a5411b83420ed811f3407e83331f1c54c3f7eb3220d6bad5d4eff49289893e7c0f13a38202113082020d300c0603551d130101ff04023000301f0603551d2304183016801423f249c44f93e4ef27e6c4f6286c3fa2bbfd2e4b304506082b0601050507010104393037303506082b060105050730018629687474703a2f2f6f6373702e6170706c652e636f6d2f6f63737030342d6170706c65616963613330323082011d0603551d2004820114308201103082010c06092a864886f7636405013081fe3081c306082b060105050702023081b60c81b352656c69616e6365206f6e207468697320636572746966696361746520627920616e7920706172747920617373756d657320616363657074616e6365206f6620746865207468656e206170706c696361626c65207374616e64617264207465726d7320616e6420636f6e646974696f6e73206f66207573652c20636572746966696361746520706f6c69637920616e642063657274696669636174696f6e2070726163746963652073746174656d656e74732e303606082b06010505070201162a687474703a2f2f7777772e6170706c652e636f6d2f6365727469666963617465617574686f726974792f30340603551d1f042d302b3029a027a0258623687474703a2f2f63726c2e6170706c652e636f6d2f6170706c6561696361332e63726c301d0603551d0e041604149457db6fd57481868989762f7e578507e79b5824300e0603551d0f0101ff040403020780300f06092a864886f76364061d04020500300a06082a8648ce3d0403020349003046022100c6f023cb2614bb303888a162983e1a93f1056f50fa78cdb9ba4ca241cc14e25e022100be3cd0dfd16247f6494475380e9d44c228a10890a3a1dc724b8b4cb8889818bc308202ee30820275a0030201020208496d2fbf3a98da97300a06082a8648ce3d0403023067311b301906035504030c124170706c6520526f6f74204341202d20473331263024060355040b0c1d4170706c652043657274696669636174696f6e20417574686f7269747931133011060355040a0c0a4170706c6520496e632e310b3009060355040613025553301e170d3134303530363233343633305a170d3239303530363233343633305a307a312e302c06035504030c254170706c65204170706c69636174696f6e20496e746567726174696f6e204341202d20473331263024060355040b0c1d4170706c652043657274696669636174696f6e20417574686f7269747931133011060355040a0c0a4170706c6520496e632e310b30090603550406130255533059301306072a8648ce3d020106082a8648ce3d03010703420004f017118419d76485d51a5e25810776e880a2efde7bae4de08dfc4b93e13356d5665b35ae22d097760d224e7bba08fd7617ce88cb76bb6670bec8e82984ff5445a381f73081f4304606082b06010505070101043a3038303606082b06010505073001862a687474703a2f2f6f6373702e6170706c652e636f6d2f6f63737030342d6170706c65726f6f7463616733301d0603551d0e0416041423f249c44f93e4ef27e6c4f6286c3fa2bbfd2e4b300f0603551d130101ff040530030101ff301f0603551d23041830168014bbb0dea15833889aa48a99debebdebafdacb24ab30370603551d1f0430302e302ca02aa0288626687474703a2f2f63726c2e6170706c652e636f6d2f6170706c65726f6f74636167332e63726c300e0603551d0f0101ff0404030201063010060a2a864886f7636406020e04020500300a06082a8648ce3d040302036700306402303acf7283511699b186fb35c356ca62bff417edd90f754da28ebef19c815e42b789f898f79b599f98d5410d8f9de9c2fe0230322dd54421b0a305776c5df3383b9067fd177c2c216d964fc6726982126f54f87a7d1b99cb9b0989216106990f09921d00003182018830820184020101308186307a312e302c06035504030c254170706c65204170706c69636174696f6e20496e746567726174696f6e204341202d20473331263024060355040b0c1d4170706c652043657274696669636174696f6e20417574686f7269747931133011060355040a0c0a4170706c6520496e632e310b3009060355040613025553020816634c8b0e305717300b0609608648016503040201a08193301806092a864886f70d010903310b06092a864886f70d010701301c06092a864886f70d010905310f170d3234313130383039333133395a302806092a864886f70d010934311b3019300b0609608648016503040201a10a06082a8648ce3d040302302f06092a864886f70d01090431220420a43222765aad8e37be22057b06a5ff6b4a889b86eb254c8388ecfeb483bd2d20300a06082a8648ce3d04030204473045022005d15b2d109fff00c1f25743f54b973fc0868648bdfde0a53cb08c1b9f618dca022100b68baa956928c8ef13aeadf335868abefabd1ca358e546901d0a53961018187d000000000000", "operational_analytics_identifier": "Shankar:A73398AA267417BF8F26F7168B22908662D517F8FF2FC31C76CBF7511F572AB8", "retries": 0, "psp_id": "A73398AA267417BF8F26F7168B22908662D517F8FF2FC31C76CBF7511F572AB8" }, "payment_request_data": { "country_code": "US", "currency_code": "USD", "total": { "label": "applepay", "type": "final", "amount": "61.00" }, "merchant_capabilities": [ "supports3DS" ], "supported_networks": [ "visa", "masterCard", "amex", "discover" ], "merchant_identifier": "merchant.test.fb" }, "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 } ] } ``` -> Now update the mca with different apple pay session data and make the session call ``` { "payment_id": "pay_9dkYqqMjqhB6HVEdmtH8", "client_secret": "pay_9dkYqqMjqhB6HVEdmtH8_secret_yLYrfUXwlbhz1WTcwAZ0", "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": "61.00" }, "delayed_session_token": false, "connector": "cybersource", "sdk_next_action": { "next_action": "confirm" }, "secrets": null }, { "wallet_name": "apple_pay", "session_token_data": { "epoch_timestamp": 1731058447406, "expires_at": 1731062047406, "merchant_session_identifier": "SSH9AE703AD4E89431CA6995DEB16AECED6_A0E617ED4A56A343E07C6E1255BD4098423B3A8E1243236462D07B14B4A0F7C3", "nonce": "1ccfd4d4", "merchant_identifier": "A73398AA267417BF8F26F7168B22908662D517F8FF2FC31C76CBF7511F572AB8", "domain_name": "hyperswitch-demo-store.netlify.app", "display_name": "hyperswitch", "signature": "308006092a864886f70d010702a0803080020101310d300b0609608648016503040201308006092a864886f70d0107010000a080308203e330820388a003020102020816634c8b0e305717300a06082a8648ce3d040302307a312e302c06035504030c254170706c65204170706c69636174696f6e20496e746567726174696f6e204341202d20473331263024060355040b0c1d4170706c652043657274696669636174696f6e20417574686f7269747931133011060355040a0c0a4170706c6520496e632e310b3009060355040613025553301e170d3234303432393137343732375a170d3239303432383137343732365a305f3125302306035504030c1c6563632d736d702d62726f6b65722d7369676e5f5543342d50524f4431143012060355040b0c0b694f532053797374656d7331133011060355040a0c0a4170706c6520496e632e310b30090603550406130255533059301306072a8648ce3d020106082a8648ce3d03010703420004c21577edebd6c7b2218f68dd7090a1218dc7b0bd6f2c283d846095d94af4a5411b83420ed811f3407e83331f1c54c3f7eb3220d6bad5d4eff49289893e7c0f13a38202113082020d300c0603551d130101ff04023000301f0603551d2304183016801423f249c44f93e4ef27e6c4f6286c3fa2bbfd2e4b304506082b0601050507010104393037303506082b060105050730018629687474703a2f2f6f6373702e6170706c652e636f6d2f6f63737030342d6170706c65616963613330323082011d0603551d2004820114308201103082010c06092a864886f7636405013081fe3081c306082b060105050702023081b60c81b352656c69616e6365206f6e207468697320636572746966696361746520627920616e7920706172747920617373756d657320616363657074616e6365206f6620746865207468656e206170706c696361626c65207374616e64617264207465726d7320616e6420636f6e646974696f6e73206f66207573652c20636572746966696361746520706f6c69637920616e642063657274696669636174696f6e2070726163746963652073746174656d656e74732e303606082b06010505070201162a687474703a2f2f7777772e6170706c652e636f6d2f6365727469666963617465617574686f726974792f30340603551d1f042d302b3029a027a0258623687474703a2f2f63726c2e6170706c652e636f6d2f6170706c6561696361332e63726c301d0603551d0e041604149457db6fd57481868989762f7e578507e79b5824300e0603551d0f0101ff040403020780300f06092a864886f76364061d04020500300a06082a8648ce3d0403020349003046022100c6f023cb2614bb303888a162983e1a93f1056f50fa78cdb9ba4ca241cc14e25e022100be3cd0dfd16247f6494475380e9d44c228a10890a3a1dc724b8b4cb8889818bc308202ee30820275a0030201020208496d2fbf3a98da97300a06082a8648ce3d0403023067311b301906035504030c124170706c6520526f6f74204341202d20473331263024060355040b0c1d4170706c652043657274696669636174696f6e20417574686f7269747931133011060355040a0c0a4170706c6520496e632e310b3009060355040613025553301e170d3134303530363233343633305a170d3239303530363233343633305a307a312e302c06035504030c254170706c65204170706c69636174696f6e20496e746567726174696f6e204341202d20473331263024060355040b0c1d4170706c652043657274696669636174696f6e20417574686f7269747931133011060355040a0c0a4170706c6520496e632e310b30090603550406130255533059301306072a8648ce3d020106082a8648ce3d03010703420004f017118419d76485d51a5e25810776e880a2efde7bae4de08dfc4b93e13356d5665b35ae22d097760d224e7bba08fd7617ce88cb76bb6670bec8e82984ff5445a381f73081f4304606082b06010505070101043a3038303606082b06010505073001862a687474703a2f2f6f6373702e6170706c652e636f6d2f6f63737030342d6170706c65726f6f7463616733301d0603551d0e0416041423f249c44f93e4ef27e6c4f6286c3fa2bbfd2e4b300f0603551d130101ff040530030101ff301f0603551d23041830168014bbb0dea15833889aa48a99debebdebafdacb24ab30370603551d1f0430302e302ca02aa0288626687474703a2f2f63726c2e6170706c652e636f6d2f6170706c65726f6f74636167332e63726c300e0603551d0f0101ff0404030201063010060a2a864886f7636406020e04020500300a06082a8648ce3d040302036700306402303acf7283511699b186fb35c356ca62bff417edd90f754da28ebef19c815e42b789f898f79b599f98d5410d8f9de9c2fe0230322dd54421b0a305776c5df3383b9067fd177c2c216d964fc6726982126f54f87a7d1b99cb9b0989216106990f09921d00003182018830820184020101308186307a312e302c06035504030c254170706c65204170706c69636174696f6e20496e746567726174696f6e204341202d20473331263024060355040b0c1d4170706c652043657274696669636174696f6e20417574686f7269747931133011060355040a0c0a4170706c6520496e632e310b3009060355040613025553020816634c8b0e305717300b0609608648016503040201a08193301806092a864886f70d010903310b06092a864886f70d010701301c06092a864886f70d010905310f170d3234313130383039333430375a302806092a864886f70d010934311b3019300b0609608648016503040201a10a06082a8648ce3d040302302f06092a864886f70d01090431220420aba73465373dde2c582d797f825db72d3cc16bde7b453859381fbe56ea62a66b300a06082a8648ce3d040302044730450221008c76d246dbd8929261aea7a0035b005213d065c8a3ac66339e66ecacdfc589e202200360ac83bb14a1954cfe02f0aef3213d3310a3fef863894bb47e21cea2a39631000000000000", "operational_analytics_identifier": "hyperswitch:A73398AA267417BF8F26F7168B22908662D517F8FF2FC31C76CBF7511F572AB8", "retries": 0, "psp_id": "A73398AA267417BF8F26F7168B22908662D517F8FF2FC31C76CBF7511F572AB8" }, "payment_request_data": { "country_code": "US", "currency_code": "USD", "total": { "label": "applepay", "type": "final", "amount": "61.00" }, "merchant_capabilities": [ "supports3DS" ], "supported_networks": [ "visa", "masterCard", "amex", "discover" ], "merchant_identifier": "merchant.test.fb" }, "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` - `crates/router/src/core/payments/helpers.rs` **Detailed Identifier Changes:** Commit 51b6cdfa: Files to modify: **crates/router/src/core/payments/flows/session_flow.rs** Modify existing code **crates/router/src/core/payments/helpers.rs** Modify existing code
{"pr_number": 6514, "pr_title": "fix(router): get apple pay certificates only from metadata during the session call", "merged_at": "2024-11-08T11:59:23Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/flows/session_flow.rs", "crates/router/src/core/payments/helpers.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
build(deps): bump dependencies to compatible versions ## 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 --> This PR updates our Rust dependencies to compatible versions (not major version bumps). Additionally, this PR addresses a couple of deprecation warnings in the `time` crate that were arising in our `cards` crate. ## 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). --> Keeping up-to-date with newer version of dependencies. ## 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)? --> Performed sanity testing with Postman. Additionally, all CI checks are expected to pass. I've confirmed that the code builds on the MSRV toolchain as well. <img width="418" alt="Screenshot of successful compilation with the 1.80.0 Rust toolchain" src="https://github.com/user-attachments/assets/ffc51d59-47ea-4ffc-8cfa-ed50a95ce929" /> ## 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/Cargo.toml` **2. Database Layer (Queries & Schema)** - `crates/diesel_models/Cargo.toml` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/Cargo.toml` **4. Core Business Logic** - `crates/router/src/core/payment_methods/vault.rs` - `crates/router/src/core/tokenization.rs` **5. External Connector Integration** - `crates/connector_configs/Cargo.toml` - `crates/hyperswitch_connectors/Cargo.toml` **6. Type Definitions** - `crates/common_types/Cargo.toml` **7. Utils** - `crates/common_utils/Cargo.toml` - `crates/kgraph_utils/Cargo.toml` - `crates/test_utils/Cargo.toml` **8. Configuration Files** - `Cargo.toml` - `crates/analytics/Cargo.toml` - `crates/cards/Cargo.toml` - ... and 22 more files **9. Other** - `Cargo.lock` - `crates/cards/src/lib.rs` **Code Patterns Applied:** - Implement new functions (1 changes) **Detailed Identifier Changes:** Commit 9a9fb3de: Files to modify: **crates/cards/src/lib.rs** Modify existing code **crates/router/src/core/payment_methods/vault.rs** Modify existing code **crates/router/src/core/tokenization.rs** Modify existing code
{"pr_number": 8164, "pr_title": "build(deps): bump dependencies to compatible versions", "merged_at": "2025-05-31T21:43:26Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["user", "card"]}, "hierarchy": {"api_models": ["crates/api_models/Cargo.toml"], "database": ["crates/diesel_models/Cargo.toml"], "domain": ["crates/hyperswitch_domain_models/Cargo.toml"], "core_business": ["crates/router/src/core/payment_methods/vault.rs", "crates/router/src/core/tokenization.rs"], "connectors": ["crates/connector_configs/Cargo.toml", "crates/hyperswitch_connectors/Cargo.toml"], "types": ["crates/common_types/Cargo.toml"], "utils": ["crates/common_utils/Cargo.toml", "crates/kgraph_utils/Cargo.toml", "crates/test_utils/Cargo.toml"], "config": ["Cargo.toml", "crates/analytics/Cargo.toml", "crates/cards/Cargo.toml", "crates/common_enums/Cargo.toml", "crates/config_importer/Cargo.toml", "crates/currency_conversion/Cargo.toml", "crates/drainer/Cargo.toml", "crates/euclid/Cargo.toml", "crates/euclid_macros/Cargo.toml", "crates/euclid_wasm/Cargo.toml", "crates/events/Cargo.toml", "crates/external_services/Cargo.toml", "crates/hsdev/Cargo.toml", "crates/hyperswitch_constraint_graph/Cargo.toml", "crates/hyperswitch_interfaces/Cargo.toml", "crates/masking/Cargo.toml", "crates/openapi/Cargo.toml", "crates/payment_methods/Cargo.toml", "crates/pm_auth/Cargo.toml", "crates/redis_interface/Cargo.toml", "crates/router/Cargo.toml", "crates/router_derive/Cargo.toml", "crates/router_env/Cargo.toml", "crates/scheduler/Cargo.toml", "crates/storage_impl/Cargo.toml"], "other": ["Cargo.lock", "crates/cards/src/lib.rs"]}, "change_types": {"functions_added": 1, "imports_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(router): [dummy_connector] add upi collect ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Add UPI Collect support to dummy_connector 1. To simulate a failure case, use: failure@upi 2. To test a successful case, use success@upi. You will be redirected to a screen that simulates the waiting screen. 3. Any other vpa data will result in an invalid VPA data error > Note : The waiting screen does not include a timer. > Note: Unlike the actual UPI Collect flow, this simulation does not involve webhooks ## 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>Success</summary> 1. Create a upi collect payment with stripe_test (dummy connector) ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_U9IBMuzndIcvICSELvrPGsmmi7jTWK1pOXMXKL4KpLbr4Gtg175t3UXukjU0U1w6' \ --data-raw '{ "amount": 10, "currency": "EUR", "confirm": true, "capture_method": "automatic", "authentication_type": "three_ds", "billing": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "Ceutâ", "zip": "94122", "country": "ES", "first_name": "joseph", "last_name": "Doe" }, "email": "mauro.morandi@nexi.it", "phone": { "number": "9123456789", "country_code": "+91" } }, "payment_method": "upi", "payment_method_type": "upi_collect", "payment_method_data": { "upi": { "upi_collect": { "vpa_id": "success@upi" } } }, "return_url": "https://hyperswitch.io" }' ``` Response ``` {"payment_id":"pay_0HqygbvFE9WNt5oCM1Ra","merchant_id":"postman_merchant_GHAction_fbbf6c87-c0b3-4b76-84b3-b0bb04059ba3","status":"requires_customer_action","amount":10,"net_amount":10,"shipping_cost":null,"amount_capturable":10,"amount_received":null,"connector":"stripe_test","client_secret":"pay_0HqygbvFE9WNt5oCM1Ra_secret_xrD43aZQm90PFglQ2pbm","created":"2025-05-13T11:54:31.629Z","currency":"EUR","customer_id":null,"customer":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":"upi","payment_method_data":{"upi":{"upi_collect":{"vpa_id":"su*****@upi"}},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":"San Fransico","country":"ES","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":"Ceutâ","first_name":"joseph","last_name":"Doe"},"phone":{"number":"9123456789","country_code":"+91"},"email":"mauro.morandi@nexi.it"},"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":{"type":"redirect_to_url","redirect_to_url":"http://localhost:8080/payments/redirect/pay_0HqygbvFE9WNt5oCM1Ra/postman_merchant_GHAction_fbbf6c87-c0b3-4b76-84b3-b0bb04059ba3/pay_0HqygbvFE9WNt5oCM1Ra_1"},"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"upi_collect","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":"pay_DPbMTZqgNL64ZcCzvSKy","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":null,"payment_link":null,"profile_id":"pro_ZLINwcXdgJlnx7VtnbTb","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_DGAdDTRmgnYhkSx7lYO9","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-05-13T12:09:31.629Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-05-13T11:54:32.743Z","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> <details> <summary>Failure</summary> 1. Create a upi collect payment with stripe_test (dummy connector) ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_U9IBMuzndIcvICSELvrPGsmmi7jTWK1pOXMXKL4KpLbr4Gtg175t3UXukjU0U1w6' \ --data-raw '{ "amount": 10, "currency": "EUR", "confirm": true, "capture_method": "automatic", "authentication_type": "three_ds", "billing": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "Ceutâ", "zip": "94122", "country": "ES", "first_name": "joseph", "last_name": "Doe" }, "email": "mauro.morandi@nexi.it", "phone": { "number": "9123456789", "country_code": "+91" } }, "payment_method": "upi", "payment_method_type": "upi_collect", "payment_method_data": { "upi": { "upi_collect": { "vpa_id": "failure@upi" } } }, "return_url": "https://hyperswitch.io" }' ``` Response ``` {"payment_id":"pay_agk2kqjZCJ6ji1XLXXsN","merchant_id":"postman_merchant_GHAction_fbbf6c87-c0b3-4b76-84b3-b0bb04059ba3","status":"failed","amount":10,"net_amount":10,"shipping_cost":null,"amount_capturable":0,"amount_received":null,"connector":"stripe_test","client_secret":"pay_agk2kqjZCJ6ji1XLXXsN_secret_W4bCEQCHfSPHBx5zr8U4","created":"2025-05-13T10:42:14.250Z","currency":"EUR","customer_id":null,"customer":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":"upi","payment_method_data":{"upi":{"upi_collect":{"vpa_id":"fa*****@upi"}},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":"San Fransico","country":"ES","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":"Ceutâ","first_name":"joseph","last_name":"Doe"},"phone":{"number":"9123456789","country_code":"+91"},"email":"mauro.morandi@nexi.it"},"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://hyperswitch.io/","authentication_type":"three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":"DC_06","error_message":"Payment is not successful","unified_code":"UE_9000","unified_message":"Something went wrong","payment_experience":null,"payment_method_type":"upi_collect","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":null,"frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":null,"payment_link":null,"profile_id":"pro_ZLINwcXdgJlnx7VtnbTb","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_DGAdDTRmgnYhkSx7lYO9","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-05-13T10:57:14.250Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-05-13T10:42:15.342Z","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> <details> <summary>Invalid Data</summary> 1. Create a upi collect payment with stripe_test (dummy connector) ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_U9IBMuzndIcvICSELvrPGsmmi7jTWK1pOXMXKL4KpLbr4Gtg175t3UXukjU0U1w6' \ --data-raw '{ "amount": 10, "currency": "EUR", "confirm": true, "capture_method": "automatic", "authentication_type": "three_ds", "billing": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "Ceutâ", "zip": "94122", "country": "ES", "first_name": "joseph", "last_name": "Doe" }, "email": "mauro.morandi@nexi.it", "phone": { "number": "9123456789", "country_code": "+91" } }, "payment_method": "upi", "payment_method_type": "upi_collect", "payment_method_data": { "upi": { "upi_collect": { "vpa_id": "failureupi" } } }, "return_url": "https://hyperswitch.io" }' ``` Response ``` {"payment_id":"pay_TA9zg7M8Uvdr2Hd72ZrE","merchant_id":"postman_merchant_GHAction_fbbf6c87-c0b3-4b76-84b3-b0bb04059ba3","status":"failed","amount":10,"net_amount":10,"shipping_cost":null,"amount_capturable":0,"amount_received":null,"connector":"stripe_test","client_secret":"pay_TA9zg7M8Uvdr2Hd72ZrE_secret_nrYJW0BNRtZbPZiZwrCx","created":"2025-05-13T10:43:19.791Z","currency":"EUR","customer_id":null,"customer":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":"upi","payment_method_data":{"upi":{"upi_collect":{"vpa_id":"********pi"}},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":"San Fransico","country":"ES","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":"Ceutâ","first_name":"joseph","last_name":"Doe"},"phone":{"number":"9123456789","country_code":"+91"},"email":"mauro.morandi@nexi.it"},"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://hyperswitch.io/","authentication_type":"three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":"DC_08","error_message":"Payment declined: Invalid Upi id","unified_code":"UE_9000","unified_message":"Something went wrong","payment_experience":null,"payment_method_type":"upi_collect","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":null,"frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":null,"payment_link":null,"profile_id":"pro_ZLINwcXdgJlnx7VtnbTb","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_DGAdDTRmgnYhkSx7lYO9","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-05-13T10:58:19.791Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-05-13T10:43:20.767Z","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> ## Sanity <details> <summary>Card test </summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_U9IBMuzndIcvICSELvrPGsmmi7jTWK1pOXMXKL4KpLbr4Gtg175t3UXukjU0U1w6' \ --data-raw '{ "amount": 10, "currency": "EUR", "confirm": true, "capture_method": "automatic", "billing": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "Ceutâ", "zip": "94122", "country": "ES", "first_name": "joseph", "last_name": "Doe" }, "email": "mauro.morandi@nexi.it", "phone": { "number": "9123456789", "country_code": "+91" } }, "payment_method": "card", "payment_method_type": "credit", "payment_method_data": { "card": { "card_number": "4242424242424242", "card_exp_month": "12", "card_exp_year": "49", "card_holder_name": "Joseph", "card_cvc": "123" } } ,"return_url": "https://hyperswitch.io" }' ``` Response ``` {"payment_id":"pay_OaUBGJbTMxaNfxrysssW","merchant_id":"postman_merchant_GHAction_fbbf6c87-c0b3-4b76-84b3-b0bb04059ba3","status":"succeeded","amount":10,"net_amount":10,"shipping_cost":null,"amount_capturable":0,"amount_received":10,"connector":"stripe_test","client_secret":"pay_OaUBGJbTMxaNfxrysssW_secret_Oa7Ay6atjfCldbuCejzO","created":"2025-05-13T10:45:25.009Z","currency":"EUR","customer_id":null,"customer":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":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"424242","card_extended_bin":null,"card_exp_month":"12","card_exp_year":"49","card_holder_name":"Joseph","payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":"San Fransico","country":"ES","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":"Ceutâ","first_name":"joseph","last_name":"Doe"},"phone":{"number":"9123456789","country_code":"+91"},"email":"mauro.morandi@nexi.it"},"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":null,"manual_retry_allowed":false,"connector_transaction_id":"pay_qwFoLJPAFDlMtcVsqjEM","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":null,"payment_link":null,"profile_id":"pro_ZLINwcXdgJlnx7VtnbTb","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_DGAdDTRmgnYhkSx7lYO9","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-05-13T11:00:25.009Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-05-13T10:45:26.127Z","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} ``` </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 **payment** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/router/src/connector/dummyconnector.rs` - `crates/router/src/connector/dummyconnector/transformers.rs` - `crates/router/src/routes/dummy_connector/consts.rs` - ... and 2 more files **Code Patterns Applied:** - Define new data structures (3 changes) - Implement new functions (5 changes) - Extend existing types with new fields (19 changes) - Add conditional logic for feature flags or filtering (1 changes) **Detailed Identifier Changes:** Commit 32df4012: Files to modify: **crates/router/src/connector/dummyconnector.rs** Modify existing code **crates/router/src/connector/dummyconnector/transformers.rs** Add: - function: private::try_from - struct: pub::DummyConnectorUpiCollect - enum: pub::DummyConnectorUpi - enum: pub::DummyConnectorUpiType - impl: impl TryFrom<domain::UpiCollectData> for DummyConnectorUpi **crates/router/src/routes/dummy_connector/consts.rs** Modify existing code **crates/router/src/routes/dummy_connector/types.rs** Add: - function: private::get_name - function: private::get_image_link - struct: pub::DummyConnectorUpiCollect - struct: pub::DummyConnectorUpiFlow - enum: pub::DummyConnectorUpi - enum: pub::DummyConnectorUpiType - impl: impl GetPaymentMethodDetails for DummyConnectorUpiType **crates/router/src/routes/dummy_connector/utils.rs** Add: - function: private::build_payment_data_from_payment_attempt - function: pub::get_flow_from_upi_collect - impl: impl ProcessPaymentAttempt for types::DummyConnectorUpiCollect - impl: impl types::DummyConnectorUpiCollect
{"pr_number": 8014, "pr_title": "feat(router): [dummy_connector] add upi collect ", "merged_at": "2025-05-15T11:52:15Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/router/src/connector/dummyconnector.rs", "crates/router/src/connector/dummyconnector/transformers.rs", "crates/router/src/routes/dummy_connector/consts.rs", "crates/router/src/routes/dummy_connector/types.rs", "crates/router/src/routes/dummy_connector/utils.rs"]}, "change_types": {"structs_added": 3, "functions_added": 5, "enums_added": 5, "fields_added": 19, "imports_added": 2, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
refactor(payment_methods_v2): refactor network tokenization flow for v2 ## 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 --> Refactor network tokenization flow for v2 payment method. 1. moved the network tokenization req, response types from domain to router types, since the types are not generic for Hyperswitch but req and response types of token service. 2. replaced hanging functions to impl based in the flow 3. Update ListCustomerPaymentMethod response and Payment Method response with network token details. ### 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 <!-- 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. API Request/Response Models** - `crates/api_models/src/payment_methods.rs` **2. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/lib.rs` - `crates/hyperswitch_domain_models/src/network_tokenization.rs` - `crates/hyperswitch_domain_models/src/payment_method_data.rs` - ... and 2 more files **3. Core Business Logic** - `crates/router/src/core/errors.rs` - `crates/router/src/core/payment_methods.rs` - `crates/router/src/core/payment_methods/network_tokenization.rs` - ... and 4 more files **4. Type Definitions** - `crates/router/src/types/api/payment_methods.rs` - `crates/router/src/types/domain.rs` - `crates/router/src/types/payment_methods.rs` **Code Patterns Applied:** - Define new data structures (24 changes) - Implement new functions (10 changes) - Extend existing types with new fields (129 changes) - Add conditional logic for feature flags or filtering (2 changes) **Detailed Identifier Changes:** Commit bba414cd: Files to modify: **crates/api_models/src/payment_methods.rs** Add: - struct: pub::NetworkTokenDetailsPaymentMethod - struct: pub::NetworkTokenResponse **crates/hyperswitch_domain_models/src/lib.rs** Add: - mod: pub::vault **crates/hyperswitch_domain_models/src/network_tokenization.rs** Remove: - struct: pub::CardData - struct: pub::CardData - struct: pub::OrderData - struct: pub::OrderData - struct: pub::ApiPayload - struct: pub::CardNetworkTokenResponse - struct: pub::CardNetworkTokenResponsePayload - struct: pub::GenerateNetworkTokenResponsePayload - struct: pub::GetCardToken - struct: pub::GetCardToken - struct: pub::AuthenticationDetails - struct: pub::TokenDetails - struct: pub::TokenResponse - struct: pub::DeleteCardToken - struct: pub::DeleteCardToken - struct: pub::NetworkTokenErrorInfo - struct: pub::NetworkTokenErrorResponse - struct: pub::DeleteNetworkTokenResponse - struct: pub::CheckTokenStatus - struct: pub::CheckTokenStatus - struct: pub::CheckTokenStatusResponsePayload - struct: pub::CheckTokenStatusResponse - enum: pub::DeleteNetworkTokenStatus - enum: pub::TokenStatus **crates/hyperswitch_domain_models/src/payment_method_data.rs** Add: - function: private::from - impl: impl From<NetworkTokenDetailsPaymentMethod> for payment_methods::NetworkTokenDetailsPaymentMethod **crates/hyperswitch_domain_models/src/payment_methods.rs** Modify existing code **crates/hyperswitch_domain_models/src/vault.rs** Add: - function: pub::get_card - function: pub::get_payment_methods_data - function: private::get_vaulting_data_key - function: private::from - enum: pub::PaymentMethodVaultingData - trait: pub::VaultingDataInterface - impl: impl PaymentMethodVaultingData - impl: impl VaultingDataInterface for PaymentMethodVaultingData - impl: impl From<payment_methods::PaymentMethodCreateData> for PaymentMethodVaultingData **crates/router/src/core/errors.rs** Modify existing code **crates/router/src/core/payment_methods.rs** Add: - function: private::populate_bin_details_for_payment_method - impl: impl PaymentMethodExt for domain::PaymentMethodVaultingData **crates/router/src/core/payment_methods/network_tokenization.rs** Modify existing code **crates/router/src/core/payment_methods/tokenize.rs** Modify existing code **crates/router/src/core/payment_methods/transformers.rs** Modify existing code **crates/router/src/core/payment_methods/vault.rs** Modify existing code **crates/router/src/core/payments/operations/payment_response.rs** Modify existing code **crates/router/src/types/api/payment_methods.rs** Modify existing code **crates/router/src/types/domain.rs** Add: - mod: pub::payment_method_data - mod: pub::vault **crates/router/src/types/payment_methods.rs** Remove: - function: private::get_vaulting_data_key - enum: pub::PaymentMethodVaultingData - trait: pub::VaultingDataInterface - impl: impl VaultingDataInterface for PaymentMethodVaultingData Add: - struct: pub::CardData - struct: pub::CardData - struct: pub::OrderData - struct: pub::OrderData - struct: pub::ApiPayload - struct: pub::CardNetworkTokenResponse - struct: pub::CardNetworkTokenResponsePayload - struct: pub::GenerateNetworkTokenResponsePayload - struct: pub::GetCardToken - struct: pub::GetCardToken - struct: pub::AuthenticationDetails - struct: pub::TokenDetails - struct: pub::TokenResponse - struct: pub::DeleteCardToken - struct: pub::DeleteCardToken - struct: pub::NetworkTokenErrorInfo - struct: pub::NetworkTokenErrorResponse - struct: pub::DeleteNetworkTokenResponse - struct: pub::CheckTokenStatus - struct: pub::CheckTokenStatus - struct: pub::CheckTokenStatusResponsePayload - struct: pub::CheckTokenStatusResponse - enum: pub::DeleteNetworkTokenStatus - enum: pub::TokenStatus
{"pr_number": 7309, "pr_title": "refactor(payment_methods_v2): refactor network tokenization flow for v2", "merged_at": "2025-03-12T22:03:23Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "token"]}, "hierarchy": {"api_models": ["crates/api_models/src/payment_methods.rs"], "domain": ["crates/hyperswitch_domain_models/src/lib.rs", "crates/hyperswitch_domain_models/src/network_tokenization.rs", "crates/hyperswitch_domain_models/src/payment_method_data.rs", "crates/hyperswitch_domain_models/src/payment_methods.rs", "crates/hyperswitch_domain_models/src/vault.rs"], "core_business": ["crates/router/src/core/errors.rs", "crates/router/src/core/payment_methods.rs", "crates/router/src/core/payment_methods/network_tokenization.rs", "crates/router/src/core/payment_methods/tokenize.rs", "crates/router/src/core/payment_methods/transformers.rs", "crates/router/src/core/payment_methods/vault.rs", "crates/router/src/core/payments/operations/payment_response.rs"], "types": ["crates/router/src/types/api/payment_methods.rs", "crates/router/src/types/domain.rs", "crates/router/src/types/payment_methods.rs"]}, "change_types": {"structs_added": 24, "functions_added": 10, "enums_added": 3, "fields_added": 129, "imports_added": 12, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
fix(stripe): partial capture issue when fully captured on redirection flow like card3ds , eps bank redirect ## 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 --> On successful redirection on CARDS3ds Friction , eps bank redirect, even when fully captured the status is `partially_captured` ### Affected core flow: PSYNC ### Connector : STRIPE ### Flows affected in stripe: Redirection flows like 3ds cards, EPS bank redirect. ### 🔴 potentially other connectors might also be affected ## CAUSE - https://github.com/juspay/hyperswitch/pull/8833 this pr changes PSYNC flow and returns amount captured from payment_intent first ```rust impl Capturable for PaymentsSyncData { #[cfg(feature = "v1")] fn get_captured_amount<F>( &self, _amount_captured: Option<i64>, payment_data: &PaymentData<F>, ) -> Option<i64> where F: Clone, { payment_data .payment_attempt .amount_to_capture .or(payment_data.payment_intent.amount_captured) // added for partial capture .or_else(|| Some(payment_data.payment_attempt.get_total_amount())) .map(|amt| amt.get_amount_as_i64()) } ``` - Stripe return `amount_captured=0` for redirection flow instead of `null` ## test case payment request ```json { "amount": 689, "customer_id":"hello_world", "currency": "EUR", "confirm": true, "capture_method": "automatic", "authentication_type": "three_ds", "description": "hellow world", "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" }, // "setup_future_usage":"on_session", // "connector":["paypal_test","stripe_test"], "billing": { "address": { "zip": "560095", "country": "US", "first_name": "Sakil", "last_name": "Mostak", "line1": "Fasdf", "line2": "Fasdf", "city": "Fasdf" } }, "payment_method_data": { "card": { "card_number": "4000582600000045", "card_exp_month": "01", "card_exp_year": "2026", "card_holder_name": "John Smith", "card_cvc": "100" } }, "payment_method": "card", "payment_method_type": "debit" } ``` ### Response ```json { "payment_id": "pay_FBU4tzIB9s5ikRJo9JYl", "merchant_id": "merchant_1755160362", "status": "requires_customer_action", "amount": 689, "net_amount": 689, "shipping_cost": null, "amount_capturable": 689, "amount_received": null, "connector": "stripe", "client_secret": "pay_FBU4tzIB9s5ikRJo9JYl_secret_wIPSjXgMkrV3RYtvGRNc", "created": "2025-08-14T09:05:24.493Z", "currency": "EUR", "customer_id": "hello_world", "customer": { "id": "hello_world", "name": null, "email": null, "phone": null, "phone_country_code": null }, "description": "hellow world", "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": "0045", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "400058", "card_extended_bin": null, "card_exp_month": "01", "card_exp_year": "2026", "card_holder_name": "John Smith", "payment_checks": null, "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": null, "name": null, "phone": null, "return_url": null, "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_FBU4tzIB9s5ikRJo9JYl/merchant_1755160362/pay_FBU4tzIB9s5ikRJo9JYl_1" }, "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": 1755162324, "expires": 1755165924, "secret": "epk_2cfbbf8e6d5d4a41a2f6869301843cfc" }, "manual_retry_allowed": null, "connector_transaction_id": "pi_3Rvx69D5R7gDAGff0Ov9te3b", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pi_3Rvx69D5R7gDAGff0Ov9te3b", "payment_link": null, "profile_id": "pro_27idcUZ9odpGCuWxokRv", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_fxrK7vmhBNuG2kPhJHm8", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-08-14T09:20:24.493Z", "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-08-14T09:05:25.601Z", "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 } ``` ### make redirection ### Response ```json { "payment_id": "pay_FBU4tzIB9s5ikRJo9JYl", "merchant_id": "merchant_1755160362", "status": "succeeded", "amount": 689, "net_amount": 689, "shipping_cost": null, "amount_capturable": 0, "amount_received": 689, "connector": "stripe", "client_secret": "pay_FBU4tzIB9s5ikRJo9JYl_secret_wIPSjXgMkrV3RYtvGRNc", "created": "2025-08-14T09:05:24.493Z", "currency": "EUR", "customer_id": "hello_world", "customer": { "id": "hello_world", "name": null, "email": null, "phone": null, "phone_country_code": null }, "description": "hellow world", "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": "0045", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "400058", "card_extended_bin": null, "card_exp_month": "01", "card_exp_year": "2026", "card_holder_name": "John Smith", "payment_checks": null, "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": 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": false, "connector_transaction_id": "pi_3Rvx69D5R7gDAGff0Ov9te3b", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pi_3Rvx69D5R7gDAGff0Ov9te3b", "payment_link": null, "profile_id": "pro_27idcUZ9odpGCuWxokRv", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_fxrK7vmhBNuG2kPhJHm8", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-08-14T09:20:24.493Z", "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-08-14T09:05:57.723Z", "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 } ```
To implement this **payment** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs` - `crates/hyperswitch_connectors/src/utils.rs` **Code Patterns Applied:** - Implement new functions (1 changes) - Extend existing types with new fields (5 changes) **Detailed Identifier Changes:** Commit 2309c531: Files to modify: **crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/utils.rs** Add: - function: pub::deserialize_zero_minor_amount_as_none
{"pr_number": 8956, "pr_title": "fix(stripe): partial capture issue when fully captured on redirection flow like card3ds , eps bank redirect", "merged_at": "2025-08-14T11:44:01Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs"]}, "change_types": {"functions_added": 1, "fields_added": 5}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
refactor: exposed auth analytics at merchant,org and profile levels ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Exposed endpoints for auth analytics under profile, merchant and org access levels. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables Here are the cURLs for the endpoint modified ``` curl 'http://localhost:8080/analytics/v1/merchant/metrics/auth_events' \ -H 'Accept: */*' \ -H 'Accept-Language: en-US,en;q=0.5' \ -H 'Cache-Control: no-cache' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json' \ -b 'login_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiY2IzYjdjNGQtYjQ0Mi00ZDk0LWJkMjQtNjk5NjI4ZjQ1MzBkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQ4Mjg1ODc1Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc1MDQxODczNiwib3JnX2lkIjoib3JnX1VBQnlpWmZ4TW44dFpuSnZUemlvIiwicHJvZmlsZV9pZCI6InByb19Pcjh5cmlGYzBPY1pJZHFBOVFVVyIsInRlbmFudF9pZCI6InB1YmxpYyJ9.ihLlIahjaxw1Tq8OYv0601E93UpT8TKgYoskRK6Os0M' \ -H 'Origin: http://localhost:9000' \ -H 'Pragma: no-cache' \ -H 'Referer: http://localhost:9000/dashboard/analytics-authentication' \ -H 'Sec-Fetch-Dest: empty' \ -H 'Sec-Fetch-Mode: cors' \ -H 'Sec-Fetch-Site: same-origin' \ -H 'Sec-GPC: 1' \ -H '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' \ -H 'X-Merchant-Id: merchant_1748285875' \ -H 'X-Profile-Id: pro_Or8yriFc0OcZIdqA9QUW' \ -H 'api-key: hyperswitch' \ -H 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiY2IzYjdjNGQtYjQ0Mi00ZDk0LWJkMjQtNjk5NjI4ZjQ1MzBkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQ4Mjg1ODc1Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc1MDQxODczNiwib3JnX2lkIjoib3JnX1VBQnlpWmZ4TW44dFpuSnZUemlvIiwicHJvZmlsZV9pZCI6InByb19Pcjh5cmlGYzBPY1pJZHFBOVFVVyIsInRlbmFudF9pZCI6InB1YmxpYyJ9.ihLlIahjaxw1Tq8OYv0601E93UpT8TKgYoskRK6Os0M' \ -H 'sec-ch-ua: "Brave";v="137", "Chromium";v="137", "Not/A)Brand";v="24"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'sec-ch-ua-platform: "macOS"' \ --data-raw '[{"timeRange":{"startTime":"2025-01-10T18:30:00Z","endTime":"2025-06-18T11:25:39Z"},"mode":"ORDER","source":"BATCH","metrics":["authentication_count","authentication_attempt_count","authentication_success_count","challenge_flow_count","frictionless_flow_count","frictionless_success_count","challenge_attempt_count","challenge_success_count"],"delta":true}]' ``` ``` curl 'http://localhost:8080/analytics/v1/org/metrics/auth_events' \ -H 'Accept: */*' \ -H 'Accept-Language: en-US,en;q=0.5' \ -H 'Cache-Control: no-cache' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json' \ -b 'login_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiY2IzYjdjNGQtYjQ0Mi00ZDk0LWJkMjQtNjk5NjI4ZjQ1MzBkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQ4Mjg1ODc1Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc1MDQxODczNiwib3JnX2lkIjoib3JnX1VBQnlpWmZ4TW44dFpuSnZUemlvIiwicHJvZmlsZV9pZCI6InByb19Pcjh5cmlGYzBPY1pJZHFBOVFVVyIsInRlbmFudF9pZCI6InB1YmxpYyJ9.ihLlIahjaxw1Tq8OYv0601E93UpT8TKgYoskRK6Os0M' \ -H 'Origin: http://localhost:9000' \ -H 'Pragma: no-cache' \ -H 'Referer: http://localhost:9000/dashboard/analytics-authentication' \ -H 'Sec-Fetch-Dest: empty' \ -H 'Sec-Fetch-Mode: cors' \ -H 'Sec-Fetch-Site: same-origin' \ -H 'Sec-GPC: 1' \ -H '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' \ -H 'X-Merchant-Id: merchant_1748285875' \ -H 'X-Profile-Id: pro_Or8yriFc0OcZIdqA9QUW' \ -H 'api-key: hyperswitch' \ -H 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiY2IzYjdjNGQtYjQ0Mi00ZDk0LWJkMjQtNjk5NjI4ZjQ1MzBkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQ4Mjg1ODc1Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc1MDQxODczNiwib3JnX2lkIjoib3JnX1VBQnlpWmZ4TW44dFpuSnZUemlvIiwicHJvZmlsZV9pZCI6InByb19Pcjh5cmlGYzBPY1pJZHFBOVFVVyIsInRlbmFudF9pZCI6InB1YmxpYyJ9.ihLlIahjaxw1Tq8OYv0601E93UpT8TKgYoskRK6Os0M' \ -H 'sec-ch-ua: "Brave";v="137", "Chromium";v="137", "Not/A)Brand";v="24"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'sec-ch-ua-platform: "macOS"' \ --data-raw '[{"timeRange":{"startTime":"2025-01-10T18:30:00Z","endTime":"2025-06-18T11:25:39Z"},"mode":"ORDER","source":"BATCH","metrics":["authentication_count","authentication_attempt_count","authentication_success_count","challenge_flow_count","frictionless_flow_count","frictionless_success_count","challenge_attempt_count","challenge_success_count"],"delta":true}]' ``` ``` curl 'http://localhost:8080/analytics/v1/profile/metrics/auth_events' \ -H 'Accept: */*' \ -H 'Accept-Language: en-US,en;q=0.5' \ -H 'Cache-Control: no-cache' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json' \ -b 'login_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiY2IzYjdjNGQtYjQ0Mi00ZDk0LWJkMjQtNjk5NjI4ZjQ1MzBkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQ4Mjg1ODc1Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc1MDQxODczNiwib3JnX2lkIjoib3JnX1VBQnlpWmZ4TW44dFpuSnZUemlvIiwicHJvZmlsZV9pZCI6InByb19Pcjh5cmlGYzBPY1pJZHFBOVFVVyIsInRlbmFudF9pZCI6InB1YmxpYyJ9.ihLlIahjaxw1Tq8OYv0601E93UpT8TKgYoskRK6Os0M' \ -H 'Origin: http://localhost:9000' \ -H 'Pragma: no-cache' \ -H 'Referer: http://localhost:9000/dashboard/analytics-authentication' \ -H 'Sec-Fetch-Dest: empty' \ -H 'Sec-Fetch-Mode: cors' \ -H 'Sec-Fetch-Site: same-origin' \ -H 'Sec-GPC: 1' \ -H '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' \ -H 'X-Merchant-Id: merchant_1748285875' \ -H 'X-Profile-Id: pro_Or8yriFc0OcZIdqA9QUW' \ -H 'api-key: hyperswitch' \ -H 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiY2IzYjdjNGQtYjQ0Mi00ZDk0LWJkMjQtNjk5NjI4ZjQ1MzBkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQ4Mjg1ODc1Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc1MDQxODczNiwib3JnX2lkIjoib3JnX1VBQnlpWmZ4TW44dFpuSnZUemlvIiwicHJvZmlsZV9pZCI6InByb19Pcjh5cmlGYzBPY1pJZHFBOVFVVyIsInRlbmFudF9pZCI6InB1YmxpYyJ9.ihLlIahjaxw1Tq8OYv0601E93UpT8TKgYoskRK6Os0M' \ -H 'sec-ch-ua: "Brave";v="137", "Chromium";v="137", "Not/A)Brand";v="24"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'sec-ch-ua-platform: "macOS"' \ --data-raw '[{"timeRange":{"startTime":"2025-01-10T18:30:00Z","endTime":"2025-06-18T11:25:39Z"},"mode":"ORDER","source":"BATCH","metrics":["authentication_count","authentication_attempt_count","authentication_success_count","challenge_flow_count","frictionless_flow_count","frictionless_success_count","challenge_attempt_count","challenge_success_count"],"delta":true}]' ``` ``` curl 'http://localhost:8080/analytics/v1/org/metrics/auth_events/sankey' \ -H 'Accept: */*' \ -H 'Accept-Language: en-US,en;q=0.6' \ -H 'Cache-Control: no-cache' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json' \ -b 'login_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiY2IzYjdjNGQtYjQ0Mi00ZDk0LWJkMjQtNjk5NjI4ZjQ1MzBkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQ4Mjg1ODc1Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc0OTg5OTA3MCwib3JnX2lkIjoib3JnX1VBQnlpWmZ4TW44dFpuSnZUemlvIiwicHJvZmlsZV9pZCI6InByb19Pcjh5cmlGYzBPY1pJZHFBOVFVVyIsInRlbmFudF9pZCI6InB1YmxpYyJ9.mSG74WirYlo_Bogh2P8mN-EujL3nw9xlRGlOZ5t7Aiw' \ -H 'Origin: http://localhost:9000' \ -H 'Pragma: no-cache' \ -H 'Referer: http://localhost:9000/dashboard/analytics-authentication' \ -H 'Sec-Fetch-Dest: empty' \ -H 'Sec-Fetch-Mode: cors' \ -H 'Sec-Fetch-Site: same-origin' \ -H 'Sec-GPC: 1' \ -H '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' \ -H 'X-Merchant-Id: merchant_1748285875' \ -H 'X-Profile-Id: pro_Or8yriFc0OcZIdqA9QUW' \ -H 'api-key: hyperswitch' \ -H 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiY2IzYjdjNGQtYjQ0Mi00ZDk0LWJkMjQtNjk5NjI4ZjQ1MzBkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQ4Mjg1ODc1Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc0OTg5OTA3MCwib3JnX2lkIjoib3JnX1VBQnlpWmZ4TW44dFpuSnZUemlvIiwicHJvZmlsZV9pZCI6InByb19Pcjh5cmlGYzBPY1pJZHFBOVFVVyIsInRlbmFudF9pZCI6InB1YmxpYyJ9.mSG74WirYlo_Bogh2P8mN-EujL3nw9xlRGlOZ5t7Aiw' \ -H 'sec-ch-ua: "Brave";v="137", "Chromium";v="137", "Not/A)Brand";v="24"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'sec-ch-ua-platform: "macOS"' \ --data-raw '{"startTime": "2025-01-22T18:30:00Z","endTime": "2025-05-29T12:59:33Z"}' ``` ``` curl 'http://localhost:8080/analytics/v1/merchant/metrics/auth_events/sankey' \ -H 'Accept: */*' \ -H 'Accept-Language: en-US,en;q=0.6' \ -H 'Cache-Control: no-cache' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json' \ -b 'login_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiY2IzYjdjNGQtYjQ0Mi00ZDk0LWJkMjQtNjk5NjI4ZjQ1MzBkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQ4Mjg1ODc1Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc0OTg5OTA3MCwib3JnX2lkIjoib3JnX1VBQnlpWmZ4TW44dFpuSnZUemlvIiwicHJvZmlsZV9pZCI6InByb19Pcjh5cmlGYzBPY1pJZHFBOVFVVyIsInRlbmFudF9pZCI6InB1YmxpYyJ9.mSG74WirYlo_Bogh2P8mN-EujL3nw9xlRGlOZ5t7Aiw' \ -H 'Origin: http://localhost:9000' \ -H 'Pragma: no-cache' \ -H 'Referer: http://localhost:9000/dashboard/analytics-authentication' \ -H 'Sec-Fetch-Dest: empty' \ -H 'Sec-Fetch-Mode: cors' \ -H 'Sec-Fetch-Site: same-origin' \ -H 'Sec-GPC: 1' \ -H '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' \ -H 'X-Merchant-Id: merchant_1748285875' \ -H 'X-Profile-Id: pro_Or8yriFc0OcZIdqA9QUW' \ -H 'api-key: hyperswitch' \ -H 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiY2IzYjdjNGQtYjQ0Mi00ZDk0LWJkMjQtNjk5NjI4ZjQ1MzBkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQ4Mjg1ODc1Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc0OTg5OTA3MCwib3JnX2lkIjoib3JnX1VBQnlpWmZ4TW44dFpuSnZUemlvIiwicHJvZmlsZV9pZCI6InByb19Pcjh5cmlGYzBPY1pJZHFBOVFVVyIsInRlbmFudF9pZCI6InB1YmxpYyJ9.mSG74WirYlo_Bogh2P8mN-EujL3nw9xlRGlOZ5t7Aiw' \ -H 'sec-ch-ua: "Brave";v="137", "Chromium";v="137", "Not/A)Brand";v="24"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'sec-ch-ua-platform: "macOS"' \ --data-raw '{"startTime": "2025-01-22T18:30:00Z","endTime": "2025-05-29T12:59:33Z"}' ``` ``` curl 'http://localhost:8080/analytics/v1/profile/metrics/auth_events/sankey' \ -H 'Accept: */*' \ -H 'Accept-Language: en-US,en;q=0.6' \ -H 'Cache-Control: no-cache' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json' \ -b 'login_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiY2IzYjdjNGQtYjQ0Mi00ZDk0LWJkMjQtNjk5NjI4ZjQ1MzBkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQ4Mjg1ODc1Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc0OTg5OTA3MCwib3JnX2lkIjoib3JnX1VBQnlpWmZ4TW44dFpuSnZUemlvIiwicHJvZmlsZV9pZCI6InByb19Pcjh5cmlGYzBPY1pJZHFBOVFVVyIsInRlbmFudF9pZCI6InB1YmxpYyJ9.mSG74WirYlo_Bogh2P8mN-EujL3nw9xlRGlOZ5t7Aiw' \ -H 'Origin: http://localhost:9000' \ -H 'Pragma: no-cache' \ -H 'Referer: http://localhost:9000/dashboard/analytics-authentication' \ -H 'Sec-Fetch-Dest: empty' \ -H 'Sec-Fetch-Mode: cors' \ -H 'Sec-Fetch-Site: same-origin' \ -H 'Sec-GPC: 1' \ -H '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' \ -H 'X-Merchant-Id: merchant_1748285875' \ -H 'X-Profile-Id: pro_Or8yriFc0OcZIdqA9QUW' \ -H 'api-key: hyperswitch' \ -H 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiY2IzYjdjNGQtYjQ0Mi00ZDk0LWJkMjQtNjk5NjI4ZjQ1MzBkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQ4Mjg1ODc1Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc0OTg5OTA3MCwib3JnX2lkIjoib3JnX1VBQnlpWmZ4TW44dFpuSnZUemlvIiwicHJvZmlsZV9pZCI6InByb19Pcjh5cmlGYzBPY1pJZHFBOVFVVyIsInRlbmFudF9pZCI6InB1YmxpYyJ9.mSG74WirYlo_Bogh2P8mN-EujL3nw9xlRGlOZ5t7Aiw' \ -H 'sec-ch-ua: "Brave";v="137", "Chromium";v="137", "Not/A)Brand";v="24"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'sec-ch-ua-platform: "macOS"' \ --data-raw '{"startTime": "2025-01-22T18:30:00Z","endTime": "2025-05-29T12:59:33Z"}' ``` ## 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 **authentication** feature, you'll need to modify these architectural layers: **1. Core Business Logic** - `crates/analytics/src/auth_events/core.rs` **2. Other** - `crates/analytics/src/auth_events/filters.rs` - `crates/analytics/src/auth_events/metrics.rs` - `crates/analytics/src/auth_events/metrics/authentication_attempt_count.rs` - ... and 13 more files **Code Patterns Applied:** - Implement new functions (9 changes) - Extend existing types with new fields (64 changes) - Modify database queries (1 changes) **Detailed Identifier Changes:** Commit e638f239: Files to modify: **crates/analytics/src/auth_events/core.rs** Modify existing code **crates/analytics/src/auth_events/filters.rs** Modify existing code **crates/analytics/src/auth_events/metrics.rs** Modify existing code **crates/analytics/src/auth_events/metrics/authentication_attempt_count.rs** Modify existing code **crates/analytics/src/auth_events/metrics/authentication_count.rs** Modify existing code **crates/analytics/src/auth_events/metrics/authentication_error_message.rs** Modify existing code **crates/analytics/src/auth_events/metrics/authentication_exemption_approved_count.rs** Modify existing code **crates/analytics/src/auth_events/metrics/authentication_exemption_requested_count.rs** Modify existing code **crates/analytics/src/auth_events/metrics/authentication_funnel.rs** Modify existing code **crates/analytics/src/auth_events/metrics/authentication_success_count.rs** Modify existing code **crates/analytics/src/auth_events/metrics/challenge_attempt_count.rs** Modify existing code **crates/analytics/src/auth_events/metrics/challenge_flow_count.rs** Modify existing code **crates/analytics/src/auth_events/metrics/challenge_success_count.rs** Modify existing code **crates/analytics/src/auth_events/metrics/frictionless_flow_count.rs** Modify existing code **crates/analytics/src/auth_events/metrics/frictionless_success_count.rs** Modify existing code **crates/analytics/src/lib.rs** Modify existing code **crates/router/src/analytics.rs** Add: - function: pub::get_org_auth_events_filters - function: pub::get_profile_auth_events_filters - function: pub::get_merchant_auth_event_sankey - function: pub::get_profile_auth_event_sankey
{"pr_number": 8335, "pr_title": "refactor: exposed auth analytics at merchant,org and profile levels", "merged_at": "2025-07-01T12:31:34Z", "intent": {"feature_type": "authentication", "action": "add_feature", "entities": ["merchant", "user", "order"]}, "hierarchy": {"core_business": ["crates/analytics/src/auth_events/core.rs"], "other": ["crates/analytics/src/auth_events/filters.rs", "crates/analytics/src/auth_events/metrics.rs", "crates/analytics/src/auth_events/metrics/authentication_attempt_count.rs", "crates/analytics/src/auth_events/metrics/authentication_count.rs", "crates/analytics/src/auth_events/metrics/authentication_error_message.rs", "crates/analytics/src/auth_events/metrics/authentication_exemption_approved_count.rs", "crates/analytics/src/auth_events/metrics/authentication_exemption_requested_count.rs", "crates/analytics/src/auth_events/metrics/authentication_funnel.rs", "crates/analytics/src/auth_events/metrics/authentication_success_count.rs", "crates/analytics/src/auth_events/metrics/challenge_attempt_count.rs", "crates/analytics/src/auth_events/metrics/challenge_flow_count.rs", "crates/analytics/src/auth_events/metrics/challenge_success_count.rs", "crates/analytics/src/auth_events/metrics/frictionless_flow_count.rs", "crates/analytics/src/auth_events/metrics/frictionless_success_count.rs", "crates/analytics/src/lib.rs", "crates/router/src/analytics.rs"]}, "change_types": {"functions_added": 9, "fields_added": 64, "database_queries": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
chore: add adyen to network_tokenization_supported_connectors list across different environments ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR enables processing payment transactions via Adyen using network tokens and NTI ### 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 This help merchants who has enabled processing network tokens in Adyen to use NetworkTokens along with NTI reference for processing MIT. ## How did you test it? Cannot be tested locally. ## 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** - `config/deployments/integration_test.toml` **2. Configuration Files** - `config/config.example.toml` - `config/deployments/sandbox.toml` - `config/development.toml` - ... and 1 more files
{"pr_number": 8082, "pr_title": "chore: add adyen to network_tokenization_supported_connectors list across different environments", "merged_at": "2025-05-30T14:10:07Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "token"]}, "hierarchy": {"tests": ["config/deployments/integration_test.toml"], "config": ["config/config.example.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
feat(core): add client_auth auth type for list_blocked_payment_methods ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description add client_secret auth auth type for list_blocked_payment_methods ### 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? 1. create a blocklist ``` curl --location 'http://localhost:8080/blocklist' \ --header 'Content-Type: application/json' \ --header 'api-key: ______' \ --data '{ "type": "card_bin", "data": "424242" }' ``` Response ``` { "fingerprint_id": "424242", "data_kind": "card_bin", "created_at": "2025-09-22T11:25:25.775Z" } ``` 2. List using client secret ``` curl --location 'http://localhost:8080/blocklist?data_kind=card_bin&client_secret=______' \ --header 'api-key: ____' ``` Response ``` [ { "fingerprint_id": "424242", "data_kind": "card_bin", "created_at": "2025-09-22T11:25:25.775Z" } ] ``` ## 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/blocklist.rs` **2. Other** - `api-reference/v1/openapi_spec_v1.json` - `api-reference/v2/openapi_spec_v2.json` - `crates/router/src/routes/blocklist.rs` - ... and 1 more files **Code Patterns Applied:** - Implement new functions (1 changes) - Extend existing types with new fields (3 changes) **Detailed Identifier Changes:** Commit 4005a749: Files to modify: **crates/api_models/src/blocklist.rs** Modify existing code **crates/router/src/routes/blocklist.rs** Modify existing code **crates/router/src/services/authentication.rs** Add: - function: private::get_client_secret - impl: impl ClientSecretFetch for api_models::blocklist::ListBlocklistQuery
{"pr_number": 9475, "pr_title": "feat(core): add client_auth auth type for list_blocked_payment_methods", "merged_at": "2025-09-22T18:44:08Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "card"]}, "hierarchy": {"api_models": ["crates/api_models/src/blocklist.rs"], "other": ["api-reference/v1/openapi_spec_v1.json", "api-reference/v2/openapi_spec_v2.json", "crates/router/src/routes/blocklist.rs", "crates/router/src/services/authentication.rs"]}, "change_types": {"functions_added": 1, "fields_added": 3, "imports_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat: remove client_secret from payment_intent and update related code Your PR Description## Type of Change - [x] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description 1. This commit changes how the client secret is generated 2. Change how client secret is made in Create Payment Intent Old `{Payment_id}_secret_{Secret}` `eg : pay_U42c409qyHwOkWo3vK60_secret_el9ksDkiB8hi6j9N78yo` New `cs_{Secret}` `eg: cs_0195d2be95ba7ef1a05066e163295562` 3. Client secret validation in the root level #7487 ``` &auth::V2ClientAuth(common_utils::types::authentication::ResourceId::Payment( global_payment_id, )), ``` 3. And removes client secret from PaymentIntent, PaymentIntentNew, HeaderResponse 4. update authentication logic for global_payment_id in V2ClientAuth ### Additional Changes - [ ] This PR modifies the API contract - [x] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables ## Motivation and Context ## How did you test it? For `/v2/payments/create-intent` Request ``` curl --location 'http://localhost:8080/v2/payments/create-intent' \ --header 'Content-Type: application/json' \ --header 'x-profile-id: pro_REbCm9NzneE8vUBmgWWZ' \ --header 'Authorization: ••••••' \ --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": "example@example.com" }, "shipping": { "address": { "first_name": "John", "last_name": "Dough", "city": "Karwar", "zip": "581301", "state": "Karnataka" }, "email": "example@example.com" } }' ``` Response ``` { "id": "12345_pay_0195d5b7ff767ac094321057ddd9f2eb", "status": "requires_payment_method", "amount_details": { "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 }, "client_secret": "cs_0195d5b7ffaf700397ea3e418d0835f6", "profile_id": "pro_EhW92OOmycGn3j0clrbm", "merchant_reference_id": null, "routing_algorithm_id": null, "capture_method": "manual", "authentication_type": "no_three_ds", "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": "example@example.com" }, "shipping": { "address": { "city": "Karwar", "country": null, "line1": null, "line2": null, "line3": null, "zip": "581301", "state": "Karnataka", "first_name": "John", "last_name": "Dough" }, "phone": null, "email": "example@example.com" }, "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": "2025-03-27T04:04:20.409Z", "frm_metadata": null, "request_external_three_ds_authentication": "Skip" } ``` For `/v2/payments/:id/payment-methods` Request ``` curl --location 'http://localhost:8080/v2/payments/12345_pay_0195d65b6a2c7931ad28b04dba1be6c9/payment-methods' \ --header 'Content-Type: application/json' \ --header 'x-profile-id: pro_XTzqP0yNw5ndliWtB9MJ' \ --header 'Authorization: publishable-key=pk_dev_266ddc923fa940c8a97240b9e690756e,client-secret=cs_0195d65b6a7b7072acf186a4529ae9ad ' ``` Response ``` { "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 }, { "payment_method_type": "wallet", "payment_method_subtype": "google_pay", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "wallet", "payment_method_subtype": "apple_pay", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "wallet", "payment_method_subtype": "we_chat_pay", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "wallet", "payment_method_subtype": "ali_pay", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "wallet", "payment_method_subtype": "paypal", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "wallet", "payment_method_subtype": "mb_way", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "pay_later", "payment_method_subtype": "klarna", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "pay_later", "payment_method_subtype": "affirm", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "pay_later", "payment_method_subtype": "afterpay_clearpay", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "pay_later", "payment_method_subtype": "walley", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "bank_redirect", "payment_method_subtype": "giropay", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "bank_redirect", "payment_method_subtype": "ideal", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "bank_redirect", "payment_method_subtype": "eps", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "bank_redirect", "payment_method_subtype": "bancontact_card", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "bank_redirect", "payment_method_subtype": "przelewy24", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "bank_redirect", "payment_method_subtype": "sofort", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "bank_redirect", "payment_method_subtype": "blik", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "bank_redirect", "payment_method_subtype": "trustly", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "bank_redirect", "payment_method_subtype": "online_banking_finland", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "bank_redirect", "payment_method_subtype": "online_banking_poland", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "bank_transfer", "payment_method_subtype": "ach", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "bank_transfer", "payment_method_subtype": "sepa", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "bank_transfer", "payment_method_subtype": "bacs", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "bank_debit", "payment_method_subtype": "ach", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "bank_debit", "payment_method_subtype": "sepa", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "bank_debit", "payment_method_subtype": "bacs", "required_fields": null, "surcharge_details": null }, { "payment_method_type": "bank_debit", "payment_method_subtype": "becs", "required_fields": null, "surcharge_details": null } ], "customer_payment_methods": null } ``` For `/v2/payments/:id/confirm-intent` Request ``` curl --location 'http://localhost:8080/v2/payments/12345_pay_0195d65b6a2c7931ad28b04dba1be6c9/confirm-intent' \ --header 'x-profile-id: pro_XTzqP0yNw5ndliWtB9MJ' \ --header 'Authorization: publishable-key=pk_dev_266ddc923fa940c8a97240b9e690756e,client-secret=cs_0195d65b6a7b7072acf186a4529ae9ad ' \ --header 'Content-Type: application/json' \ --data '{ "payment_method_data": { "card": { "card_number": "4242424242424242", "card_exp_month": "01", "card_exp_year": "26", "card_holder_name": "John Doe", "card_cvc": "100" } }, "payment_method_type": "card", "payment_method_subtype": "credit" } ``` Response ``` { "id": "12345_pay_0195d65b6a2c7931ad28b04dba1be6c9", "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", "client_secret": null, "created": "2025-03-27T06:47:50.083Z", "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_qB5no08zJFDBYPZBZdFR", "browser_info": null, "error": { "code": "No error code", "message": "No error message", "unified_code": null, "unified_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" } ``` ## 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 **payment** 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/payment_intent.rs` - `crates/diesel_models/src/schema_v2.rs` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/payments.rs` - `crates/hyperswitch_domain_models/src/payments/payment_intent.rs` **4. Core Business Logic** - `crates/router/src/core/payments.rs` - `crates/router/src/core/payments/helpers.rs` - `crates/router/src/core/payments/operations/payment_confirm_intent.rs` - ... and 9 more files **5. Type Definitions** - `crates/common_utils/src/types.rs` - `crates/router/src/types/transformers.rs` **6. Utils** - `crates/common_utils/src/id_type/global_id/payment.rs` **7. Other** - `api-reference-v2/openapi_spec.json` - `crates/router/src/services/authentication.rs` - `v2_migrations/2025-03-25-090538_remove_client_secret_from_payment_intents/down.sql` - ... and 1 more files **Code Patterns Applied:** - Implement new functions (11 changes) - Extend existing types with new fields (7 changes) **Detailed Identifier Changes:** Commit 5730ddfc: Files to modify: **crates/api_models/src/payments.rs** Modify existing code **crates/common_utils/src/id_type/global_id/payment.rs** Remove: - function: pub::generate_client_secret **crates/common_utils/src/types.rs** Remove: - function: pub::get_string_repr - function: pub::new - function: private::from_str - function: private::deserialize - function: private::expecting - function: private::visit_str - function: private::serialize - function: private::to_sql - function: private::from_sql - function: private::build - function: private::test_serialize_client_secret - function: private::test_deserialize_client_secret - struct: pub::ClientSecret - struct: private::ClientSecretVisitor - impl: impl ClientSecret - impl: impl FromStr for ClientSecret - impl: impl Deserialize<'de> for ClientSecret - impl: impl Visitor<'_> for ClientSecretVisitor - impl: impl Serialize for ClientSecret - impl: impl ToSql<sql_types::Text, diesel::pg::Pg> for ClientSecret - impl: impl FromSql<sql_types::Text, DB> for ClientSecret - impl: impl Queryable<sql_types::Text, DB> for ClientSecret - mod: private::client_secret_type - mod: private::client_secret_tests **crates/diesel_models/src/payment_intent.rs** Modify existing code **crates/diesel_models/src/schema_v2.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments.rs** Remove: - function: pub::validate_client_secret **crates/hyperswitch_domain_models/src/payments/payment_intent.rs** Modify existing code **crates/router/src/core/payments.rs** Add: - function: private::get_client_secret - function: private::set_client_secret - function: private::get_client_secret - function: private::set_client_secret - function: private::get_client_secret - function: private::set_client_secret - function: private::get_client_secret - function: private::set_client_secret **crates/router/src/core/payments/helpers.rs** Remove: - function: pub::authenticate_client_secret **crates/router/src/core/payments/operations/payment_confirm_intent.rs** Modify existing code **crates/router/src/core/payments/operations/payment_create_intent.rs** Modify existing code **crates/router/src/core/payments/operations/payment_get_intent.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_session_intent.rs** Modify existing code **crates/router/src/core/payments/operations/payment_start.rs** Modify existing code **crates/router/src/core/payments/operations/payment_update.rs** Modify existing code **crates/router/src/core/payments/operations/payment_update_intent.rs** Modify existing code **crates/router/src/core/payments/payment_methods.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code **crates/router/src/services/authentication.rs** Modify existing code **crates/router/src/types/transformers.rs** Modify existing code
{"pr_number": 7648, "pr_title": "feat: remove client_secret from payment_intent and update related code", "merged_at": "2025-04-10T13:34:30Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/payment_intent.rs", "crates/diesel_models/src/schema_v2.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments.rs", "crates/hyperswitch_domain_models/src/payments/payment_intent.rs"], "core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/operations/payment_confirm_intent.rs", "crates/router/src/core/payments/operations/payment_create_intent.rs", "crates/router/src/core/payments/operations/payment_get_intent.rs", "crates/router/src/core/payments/operations/payment_post_session_tokens.rs", "crates/router/src/core/payments/operations/payment_session_intent.rs", "crates/router/src/core/payments/operations/payment_start.rs", "crates/router/src/core/payments/operations/payment_update.rs", "crates/router/src/core/payments/operations/payment_update_intent.rs", "crates/router/src/core/payments/payment_methods.rs", "crates/router/src/core/payments/transformers.rs"], "types": ["crates/common_utils/src/types.rs", "crates/router/src/types/transformers.rs"], "utils": ["crates/common_utils/src/id_type/global_id/payment.rs"], "other": ["api-reference-v2/openapi_spec.json", "crates/router/src/services/authentication.rs", "v2_migrations/2025-03-25-090538_remove_client_secret_from_payment_intents/down.sql", "v2_migrations/2025-03-25-090538_remove_client_secret_from_payment_intents/up.sql"]}, "change_types": {"functions_added": 11, "fields_added": 7}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
ci: disable stripe 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 <!-- Describe your changes in detail --> disable sprite. closes #7184 ### 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 should pass ## 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 (2 changes)
{"pr_number": 7183, "pr_title": "ci: disable stripe in cypress", "merged_at": "2025-02-04T10:41:55Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"tests": [".github/workflows/cypress-tests-runner.yml"]}, "change_types": {"fields_added": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
fix(payment_methods): card_network and card_scheme should be consistent ## 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 --> In customer payment method list api, card scheme and card network are showing different value for co-branded card it they are saved with both the network, to fix this issue, both these fields are now fetching the data from the card locker Note: This PR is hotfix against [#6849](https://github.com/juspay/hyperswitch/pull/6849) ### 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 Postam: - Create a MCA(Checkout): - Create a payment with co-branded card with network at Visa: ``` { "amount": 1043, "currency": "USD", "confirm": true, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "customer_id": "{{customer_id}}", "email": "guest@example.com", "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": "card", "payment_method_data": { "card": { "card_number": "4010061700000021", "card_exp_month": "01", "card_exp_year": "99", "card_holder_name": "joseph Doe", "card_cvc": "123", "card_network": "Visa", "nick_name": "Sakil" } }, "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" }, "setup_future_usage": "on_session", "customer_acceptance": { "acceptance_type": "online", "accepted_at": "1963-05-03T04:07:52.723Z", "online": { "ip_address": "125.0.0.1", "user_agent": "amet irure esse" } } } ``` - Do a customer payment method list, the response should be following: ``` { "customer_payment_methods": [ { "payment_token": "token_I8i8KGuFhF4KSxQHFePi", "payment_method_id": "pm_3D4MneEjvgweeRyfyiBv", "customer_id": "cus_4hPhaiDFxK9W0qUpOGkq", "payment_method": "card", "payment_method_type": null, "payment_method_issuer": null, "payment_method_issuer_code": null, "recurring_enabled": false, "installment_payment_enabled": false, "payment_experience": [ "redirect_to_url" ], "card": { "scheme": "Visa", "issuer_country": null, "last4_digits": "0021", "expiry_month": "01", "expiry_year": "99", "card_token": null, "card_holder_name": "joseph Doe", "card_fingerprint": null, "nick_name": "Sakil", "card_network": "Visa", "card_isin": "401006", "card_issuer": null, "card_type": null, "saved_to_locker": true }, "metadata": null, "created": "2024-12-16T10:20:59.201Z", "bank": null, "surcharge_details": null, "requires_cvv": true, "last_used_at": "2024-12-16T10:20:59.201Z", "default_payment_method_set": true, "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": null, "email": null } } ], "is_guest_customer": false } ``` - Create a payment again with co-branded card but with network as `CartesBancaires`: ``` { "amount": 1043, "currency": "USD", "confirm": true, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "customer_id": "{{customer_id}}", "email": "guest@example.com", "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": "card", "payment_method_data": { "card": { "card_number": "4010061700000021", "card_exp_month": "01", "card_exp_year": "99", "card_holder_name": "joseph Doe", "card_cvc": "123", "card_network": "CartesBancaires", "nick_name": "Sakil" } }, "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" }, "setup_future_usage": "on_session", "customer_acceptance": { "acceptance_type": "online", "accepted_at": "1963-05-03T04:07:52.723Z", "online": { "ip_address": "125.0.0.1", "user_agent": "amet irure esse" } } } ``` - Do a customer payment method list call, the response should be: ``` { "customer_payment_methods": [ { "payment_token": "token_I8i8KGuFhF4KSxQHFePi", "payment_method_id": "pm_3D4MneEjvgweeRyfyiBv", "customer_id": "cus_4hPhaiDFxK9W0qUpOGkq", "payment_method": "card", "payment_method_type": null, "payment_method_issuer": null, "payment_method_issuer_code": null, "recurring_enabled": false, "installment_payment_enabled": false, "payment_experience": [ "redirect_to_url" ], "card": { "scheme": "CartesBancaires", "issuer_country": null, "last4_digits": "0021", "expiry_month": "01", "expiry_year": "99", "card_token": null, "card_holder_name": "joseph Doe", "card_fingerprint": null, "nick_name": "Sakil", "card_network": "CartesBancaires", "card_isin": "401006", "card_issuer": null, "card_type": null, "saved_to_locker": true }, "metadata": null, "created": "2024-12-16T10:20:59.201Z", "bank": null, "surcharge_details": null, "requires_cvv": true, "last_used_at": "2024-12-16T10:20:59.201Z", "default_payment_method_set": true, "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": null, "email": null } } ], "is_guest_customer": false } ``` ## 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/payment_method.rs` **2. Core Business Logic** - `crates/router/src/core/payment_methods/cards.rs` - `crates/router/src/core/payments/tokenization.rs` **Code Patterns Applied:** - Extend existing types with new fields (16 changes) **Detailed Identifier Changes:** Commit c40fdae0: Files to modify: **crates/diesel_models/src/payment_method.rs** Modify existing code **crates/router/src/core/payment_methods/cards.rs** Modify existing code **crates/router/src/core/payments/tokenization.rs** Modify existing code
{"pr_number": 6867, "pr_title": "fix(payment_methods): card_network and card_scheme should be consistent", "merged_at": "2024-12-18T07:42:26Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "user"]}, "hierarchy": {"database": ["crates/diesel_models/src/payment_method.rs"], "core_business": ["crates/router/src/core/payment_methods/cards.rs", "crates/router/src/core/payments/tokenization.rs"]}, "change_types": {"fields_added": 16}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(connector): [FISERV] Added GooglePay Payment Method - Connector Decryption 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 --> Added GooglePay Payment Method in Fiserv Connector. Added the Connector Level Decryption Flow. The Hyperswitch end decryption flow of Fiserv still remains undone. ### 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: https://developer.fiserv.com/product/CommerceHub/api/?type=post&path=/payments/v1/charges&branch=main&version=1.25.1000 ## 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 GPay cURL: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_JYKTXJwwDWQuGPW0WjUKFXMJmJP468CKJE4U6qddT8LddLXpll9t8e0yWSLczCVm' \ --header 'Cookie: PHPSESSID=0b47db9d7de94c37b6b272087a9f2fa7' \ --data-raw '{ "amount": 700, "capture_method": "automatic", "all_keys_required": true, "currency": "EUR", "connector": [ "fiserv" ], "confirm": true, "payment_link": false, "capture_on": "2029-09-10T10:11:12Z", "amount_to_capture": 700, "name": "John Doe", "email": "dg@example.com", "phone": "999999999", "phone_country_code": "+1", "description": "Its my first payment request", "authentication_type": "three_ds", "return_url": "https://google.com", "payment_method": "wallet", "payment_method_type": "google_pay", "payment_method_data": { "wallet": { "google_pay": { "description": "Success: Visa •••• 0010", "tokenization_data": { "type": "PAYMENT_GATEWAY", "token": "{\"signature\":\"MEQCIBseeCIugjsUobnY+Co0JWNTQa0lrQOKOEDqinJI1ZzmAiBqbfqux1/3HddhVXn9ZW21Vj6/iW8kXFrLd3yUFbLXFw\\u003d\\u003d\",\"intermediateSigningKey\":{\"signedKey\":\"{\\\"keyValue\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEPNE04O5Sw7dPW1vdVVLd+zMBDg3GcPcdBaT2gs7MA06mRStst3BxTDiUI+t3HFrQclwnh1g5fwxiYtPjp3rEGw\\\\u003d\\\\u003d\\\",\\\"keyExpiration\\\":\\\"1753310734316\\\"}\",\"signatures\":[\"MEUCIQDidNp5e6QtJTqYFprRMIuWEs8yJV11rKWB9sSSa6LpxQIgAb6OHdWgayC2DqoVvrwGIZU6glYuBT4prfrup/95xAU\\u003d\"]},\"protocolVersion\":\"ECv2\",\"signedMessage\":\"{\\\"encryptedMessage\\\":\\\"KCAu/yafwhlr2ZK4P50aRU8dcCL68YQeqgzI/ChjUzTofApwuP7n7nEgT6brPGcuhhiSBUpYIVLJR5cTnaSI0g+unLfH0cZX5P0Io6R2hu3MewHAba3RMHsmou7UwKJSC2mi0Dw11k13ATTrWFlqwmGbZg0yvHDJuGfLWicpe34h3Af3cQpNrqvrlfW7Q7f52L/YpZ2zJn5RuvVylmBFtDzTrQ6IKoBDwQwTi6Qm497zrat4GaPTGUtrDzmvYFRJ/Ok5I7WgaNNPSInAM6yLR4XnCaiVcdQcquBx9VDlBPEQQo2yJK4EF0N4z769Z3vMqRWkujHr/yF5/Tm2dUu6m0ssIhyy66XHZQyTqt+d7ODK7q3zDn73eQZZyNRxYzGGm12NYdVfLgfpxZSYveBeg6HiRG3T9aHeEIqc3oYmKL4OmD7gKAVN+YGZzuIjfYMpz8InoB3KS4wQojWT1w\\\\u003d\\\\u003d\\\",\\\"ephemeralPublicKey\\\":\\\"BKtAx3JGiVFT3rw31ifEkrGlC+JlpKxdHWl9V+NMJdp/4lTuidD3C6A9OjdXIXIyfwgWjhUsjesWz+l+lapuV6Q\\\\u003d\\\",\\\"tag\\\":\\\"mSQn8R0btKg5ptqj80z17q0rNL0tS5JOoiIY4wIWiVY\\\\u003d\\\"}\"}" }, "type": "CARD", "info": { "card_network": "VISA", "card_details": "0010" } } } }, "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" }, "metadata": { "disable_avs": true, "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" }, "order_details": [ { "product_name": "Tea", "quantity": 1, "amount": 110, "product_img_link": "https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg" }, { "product_name": "Tea", "quantity": 1, "amount": 110, "product_img_link": "https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg" }, { "product_name": "Tea", "quantity": 1, "amount": 110, "product_img_link": "https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg" } ] }' ``` Response: ``` { "payment_id": "pay_YX7H13HpeOrDWj1y4du9", "merchant_id": "merchant_1752634536", "status": "processing", "amount": 700, "net_amount": 700, "shipping_cost": null, "amount_capturable": 0, "amount_received": null, "connector": "fiserv", "client_secret": "pay_YX7H13HpeOrDWj1y4du9_secret_g6BCZhSP921ZYAdxC6uX", "created": "2025-07-16T03:49:22.803Z", "currency": "EUR", "customer_id": null, "customer": { "id": null, "name": "John Doe", "email": "dg@example.com", "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": { "google_pay": { "last4": "0010", "card_network": "VISA", "type": "CARD" } }, "billing": null }, "payment_token": null, "shipping": null, "billing": null, "order_details": [ { "brand": null, "amount": 110, "category": null, "quantity": 1, "tax_rate": null, "product_id": null, "product_name": "Tea", "product_type": null, "sub_category": null, "product_img_link": "https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg", "product_tax_code": null, "total_tax_amount": null, "requires_shipping": null }, { "brand": null, "amount": 110, "category": null, "quantity": 1, "tax_rate": null, "product_id": null, "product_name": "Tea", "product_type": null, "sub_category": null, "product_img_link": "https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg", "product_tax_code": null, "total_tax_amount": null, "requires_shipping": null }, { "brand": null, "amount": 110, "category": null, "quantity": 1, "tax_rate": null, "product_id": null, "product_name": "Tea", "product_type": null, "sub_category": null, "product_img_link": "https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg", "product_tax_code": null, "total_tax_amount": null, "requires_shipping": 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": "500", "error_message": "{\"gatewayResponse\":{\"transactionProcessingDetails\":{\"orderId\":\"CHG01e87a6816293e379e27619fa78f90f63a\",\"transactionTimestamp\":\"2025-07-16T03:49:24.300135329Z\",\"apiTraceId\":\"c0379cd3a4be4c47a89c8b5b0c61612d\",\"clientRequestId\":\"76c451bf-3d12-4d61-a58f-92f9814f43d3\",\"transactionId\":\"c0379cd3a4be4c47a89c8b5b0c61612d\",\"apiKey\":\"gqeyq0AIZtdj2yuTWf0pzzrZtphKvVHK\"}},\"error\":[{\"type\":\"GATEWAY\",\"code\":\"703\",\"message\":\"Internal Error\"}]}", "unified_code": "UE_9000", "unified_message": "Something went wrong", "payment_experience": null, "payment_method_type": "google_pay", "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": { "udf1": "value1", "login_date": "2019-09-10T10:11:12Z", "disable_avs": true, "new_customer": "true" }, "connector_metadata": null, "feature_metadata": null, "reference_id": null, "payment_link": null, "profile_id": "pro_dRUTV6w1cX2PDwySmqkO", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_5pfIFZaGnx79rGU6ttO6", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-07-16T04:04:22.803Z", "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_method_id": null, "payment_method_status": null, "updated": "2025-07-16T03:49:24.524Z", "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 } ``` The Connector returns a `503` because Gpay hasn't been enabled yet from the Connector Dashboard. <img width="1266" height="95" alt="Screenshot 2025-07-16 at 9 30 40 AM" src="https://github.com/user-attachments/assets/fa5cb66c-f4eb-4137-87cf-e0b49a8d1991" /> ## Cypress test <details> <summary> Fiserv </summary> <img width="489" height="1054" alt="Screenshot 2025-07-25 at 4 53 56 PM" src="https://github.com/user-attachments/assets/9f5d87f6-42d5-4f22-8d9e-cee1d9717d69" /> My Branch <img width="489" height="1054" alt="Screenshot 2025-07-25 at 4 54 07 PM" src="https://github.com/user-attachments/assets/ccc4f68a-6fd8-42ad-afec-6e9b4fa274ec" /> Main </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/connector_configs/toml/development.toml` - `crates/connector_configs/toml/production.toml` - `crates/connector_configs/toml/sandbox.toml` - ... and 2 more files **2. Tests** - `config/deployments/integration_test.toml` **3. 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 (6 changes) - Implement new functions (1 changes) - Extend existing types with new fields (41 changes) - Add conditional logic for feature flags or filtering (3 changes) **Detailed Identifier Changes:** Commit b5586b68: Files to modify: **crates/hyperswitch_connectors/src/connectors/fiserv.rs** Remove: - function: private::validate_connector_against_payment_request - impl: impl ConnectorValidation for Fiserv Add: - impl: impl ConnectorValidation for Fiserv **crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs** Add: - function: pub::parse_googlepay_token_safely - struct: pub::GooglePayData - struct: pub::SignedKey - struct: pub::SignedMessage - struct: pub::FullyParsedGooglePayToken - struct: pub::RawGooglePayToken
{"pr_number": 8658, "pr_title": "feat(connector): [FISERV] Added GooglePay Payment Method - Connector Decryption Flow", "merged_at": "2025-07-29T08:13:32Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "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/fiserv.rs", "crates/hyperswitch_connectors/src/connectors/fiserv/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": 6, "functions_added": 1, "fields_added": 41, "imports_added": 1, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
refactor(nix): Migrate from cargo2nix to rust-flake # Migrate Nix Configuration to rust-flake This PR refactors the existing Nix setup by migrating from `cargo2nix` to `rust-flake`. Resolves: #8538 ## TODO: - [x] **Initial port** - Port current `flake.nix` functionality using rust-flake - [x] @kashif-m The current [`flake.nix`](https://github.com/juspay/hyperswitch/blob/d305fad2e6c403fde11b9eea785fddefbf3477df/flake.nix#L63-L78) has `default`, `dev`, and `qa` shells. Are all three required? Typically we use `default` for development and additional shells for specific purposes. Currently the PR has `default` as development shell and `qa` for QA work. https://github.com/juspay/hyperswitch/blob/d305fad2e6c403fde11b9eea785fddefbf3477df/flake.nix#L63-L78 - [x] **Configuration review** - @kashif-m This ports the existing flake.nix structure, but we should discuss additional features needed and fix any broken functionality - [x] The [`flake.nix`](https://github.com/juspay/hyperswitch/blob/d305fad2e6c403fde11b9eea785fddefbf3477df/flake.nix#L23-L24) defines two rust versions: `rustDevVersion` and `rustMsrv`. The `rustMsrv` is [defined but unused](https://github.com/juspay/hyperswitch/blob/d305fad2e6c403fde11b9eea785fddefbf3477df/flake.nix#L37-L39). Is `rustDevVersion` supposed to be different from the version in `Cargo.toml`? https://github.com/juspay/hyperswitch/blob/d305fad2e6c403fde11b9eea785fddefbf3477df/flake.nix#L23-L24 - [ ] ~~Nixify Docker images using [`nix2container`](https://github.com/nlewo/nix2container)~~ (To be addressed in different PR) - [ ] ~~Additional nix integration items (to be discussed)~~ (To be addressed in different PR) - [x] **Testing** - Ensure nothing breaks and everything works as expected - [x] **Approval** - Get approval from @srid and @kashif-m ## Benefits - Reproducible builds across environments - Consistent development setup - Simplified dependency management
To implement this **connector_integration** feature, you'll need to modify these architectural layers: **1. Other** - `.gitignore` - `flake.lock` - `flake.nix` - ... and 4 more files
{"pr_number": 8503, "pr_title": "refactor(nix): Migrate from cargo2nix to rust-flake", "merged_at": "2025-07-15T08:20:23Z", "intent": {"feature_type": "connector_integration", "action": "add_feature", "entities": []}, "hierarchy": {"other": [".gitignore", "flake.lock", "flake.nix", "nix/modules/flake/devshell.nix", "nix/modules/flake/git-hooks.nix", "nix/modules/flake/rust.nix", "nix/modules/flake/services.nix"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
refactor(process_tracker): Integrate proxy_payments api to process tracker workflow ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description - Integrate proxy_payments api to process tracker passive_churn workflow, to initiate a MIT payment via PT. - This PR also includes another api integration to the same workflow , the update_payments api to update the `payment_transmission` and the active_attempt_id, when the payment is a retryable 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? - create a MA and a MCA - create the payment_intent - The process is inserted into the process tracker table - When picked up by the consumer - The proxy api is getting called by the consumer to confirm the payment <img width="1728" alt="Screenshot 2025-03-12 at 6 25 37 PM" src="https://github.com/user-attachments/assets/2be62b23-1be6-4bc2-a3b9-68e864097c94" /> - if the payment fails it would retry in a given interval for given number of default retries <img width="1700" alt="Screenshot 2025-03-13 at 2 07 42 PM" src="https://github.com/user-attachments/assets/8276fdf5-d52d-4ce5-bdfc-8ed39be11d78" /> ## 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/types.rs` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/lib.rs` - `crates/hyperswitch_domain_models/src/router_data.rs` **4. Core Business Logic** - `crates/router/src/core/passive_churn_recovery.rs` - `crates/router/src/core/passive_churn_recovery/types.rs` - `crates/router/src/core/payments/operations/payment_update_intent.rs` **5. Other** - `crates/common_enums/src/enums.rs` - `crates/router/src/workflows/passive_churn_recovery_workflow.rs` **Code Patterns Applied:** - Implement new functions (8 changes) - Extend existing types with new fields (64 changes) **Detailed Identifier Changes:** Commit ba3ad87e: Files to modify: **crates/api_models/src/payments.rs** Add: - function: pub::update_feature_metadata_and_active_attempt_with_api - function: pub::set_payment_revenue_recovery_metadata_using_api - function: pub::set_payment_transmission_field_for_api_request - function: pub::get_payment_token_for_api_request - function: pub::get_merchant_connector_id_for_api_request - impl: impl PaymentsUpdateIntentRequest - impl: impl PaymentRevenueRecoveryMetadata **crates/common_enums/src/enums.rs** Modify existing code **crates/diesel_models/src/types.rs** Modify existing code **crates/hyperswitch_domain_models/src/lib.rs** Add: - function: private::from - impl: impl From<payments::AmountDetails> for api_models::payments::AmountDetailsSetter **crates/hyperswitch_domain_models/src/router_data.rs** Modify existing code **crates/router/src/core/passive_churn_recovery.rs** Modify existing code **crates/router/src/core/passive_churn_recovery/types.rs** Modify existing code **crates/router/src/core/payments/operations/payment_update_intent.rs** Modify existing code **crates/router/src/workflows/passive_churn_recovery_workflow.rs** Modify existing code
{"pr_number": 7480, "pr_title": "refactor(process_tracker): Integrate proxy_payments api to process tracker workflow", "merged_at": "2025-03-17T05:23:14Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/types.rs"], "domain": ["crates/hyperswitch_domain_models/src/lib.rs", "crates/hyperswitch_domain_models/src/router_data.rs"], "core_business": ["crates/router/src/core/passive_churn_recovery.rs", "crates/router/src/core/passive_churn_recovery/types.rs", "crates/router/src/core/payments/operations/payment_update_intent.rs"], "other": ["crates/common_enums/src/enums.rs", "crates/router/src/workflows/passive_churn_recovery_workflow.rs"]}, "change_types": {"functions_added": 8, "fields_added": 64, "imports_added": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(core): 3ds decision manager 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 Implement 3ds decision manager flow for V2 and use it in payments flows. ### 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? 1. Organization Create ``` curl --location 'http://localhost:8080/v2/organization' \ --header 'Content-Type: application/json' \ --header 'api-key: test_admin' \ --data '{ "organization_name": "random_org_1736926299" }' ``` 2. Merchant Account Create ``` curl --location 'http://localhost:8080/v2/merchant-accounts' \ --header 'x-organization-id: org_ojPeFJQSwbmYHFykF4Md' \ --header 'Content-Type: application/json' \ --header 'api-key: test_admin' \ --data '{ "merchant_name": "cloth_seller" }' ``` 3. Business Profile Create ``` curl --location 'http://localhost:8080/v2/profiles' \ --header 'x-merchant-id: cloth_seller_PXTsb0I3Zu2n8E5xWRUD' \ --header 'Content-Type: application/json' \ --header 'api-key: test_admin' \ --data-raw '{ "profile_name": "business", "return_url": "https://google.com/success", "enable_payment_response_hash": true, "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": "https://webhook.site", "payment_created_enabled": true, "payment_succeeded_enabled": true, "payment_failed_enabled": true }, "metadata": null, "order_fulfillment_time": 900, "order_fulfillment_time_origin": "create", "applepay_verified_domains": null, "session_expiry": 900, "payment_link_config": null, "authentication_connector_details": null, "use_billing_as_payment_method_billing": true, "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 }' ``` 4 Create Connector ``` curl --location 'http://localhost:8080/v2/connector-accounts' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-merchant-id: cloth_seller_qnokkk9vw4xbvXD3ev15' \ --header 'x-profile-id: pro_FUoYC87sU9eA1FZXnLfS' \ --header 'api-key: test_admin' \ --data '{ "connector_type": "payment_processor", "connector_name": "stripe", "connector_account_details": { "auth_type": "HeaderKey", "api_key": "_________" }, "payment_methods_enabled": [ { "payment_method_type": "card_redirect", "payment_method_subtypes": [ { "payment_method_subtype": "card_redirect", "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": "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": "wallet", "payment_method_subtypes": [ { "payment_method_subtype": "google_pay", "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_subtype": "apple_pay", "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_subtype": "we_chat_pay", "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_subtype": "ali_pay", "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": "bank_transfer", "payment_method_subtypes": [ { "payment_method_subtype": "ach", "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": "sepa", "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": "bacs", "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": "bank_debit", "payment_method_subtypes": [ { "payment_method_subtype": "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_subtype": "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_subtype": "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_subtype": "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 } ] } ], "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_FUoYC87sU9eA1FZXnLfS" }' ``` 5. Create API KEY ``` curl --location 'http://localhost:8080/v2/api-keys' \ --header 'x-merchant-id: cloth_seller_qnokkk9vw4xbvXD3ev15' \ --header 'Content-Type: application/json' \ --header 'api-key: test_admin' \ --data '{ "name": "My Api Key", "expiration": "never" }' ``` 6. Configure 3ds Rule to that Profile ``` curl --location --request PUT 'http://localhost:8080/v2/profiles/pro_RuygLuNPMy2PCqcEW96n/decision' \ --header 'x-merchant-id: cloth_seller_PXTsb0I3Zu2n8E5xWRUD' \ --header 'X-Profile-Id: pro_RuygLuNPMy2PCqcEW96n' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_1rmHYg4vdeMtrq77KiCel53UBBoLzvKEfPQfWNQ4lTXTCm4S6Q3OP1uF9uiudmXZ' \ --data '{ "name": "3DS Rule-2025-01-08", "program": { "defaultSelection": { "override_3ds": null }, "rules": [ { "name": "rule_1", "connectorSelection": { "override_3ds": "three_ds" }, "statements": [ { "condition": [ { "lhs": "amount", "comparison": "equal", "value": { "type": "number", "value": 32 }, "metadata": {} }, { "lhs": "currency", "comparison": "equal", "value": { "type": "enum_variant", "value": "USD" }, "metadata": {} } ] } ] } ], "metadata": {} } }' ``` Response ``` { "name": "3DS Rule-2025-01-08", "program": { "defaultSelection": { "override_3ds": null }, "rules": [ { "name": "rule_1", "connectorSelection": { "override_3ds": "three_ds" }, "statements": [ { "condition": [ { "lhs": "amount", "comparison": "equal", "value": { "type": "number", "value": 32 }, "metadata": {} }, { "lhs": "currency", "comparison": "equal", "value": { "type": "enum_variant", "value": "USD" }, "metadata": {} } ], "nested": null } ] } ], "metadata": {} }, "created_at": 1736926264 } ``` 7. Retrive Business Profile ``` curl --location 'http://localhost:8080/v2/profiles/pro_RuygLuNPMy2PCqcEW96n/decision' \ --header 'x-merchant-id: cloth_seller_PXTsb0I3Zu2n8E5xWRUD' \ --header 'X-Profile-Id: pro_RuygLuNPMy2PCqcEW96n' \ --header 'api-key: dev_1rmHYg4vdeMtrq77KiCel53UBBoLzvKEfPQfWNQ4lTXTCm4S6Q3OP1uF9uiudmXZ' ``` Response ``` { "name": "3DS Rule-2025-01-08", "program": { "defaultSelection": { "override_3ds": null }, "rules": [ { "name": "rule_1", "connectorSelection": { "override_3ds": "three_ds" }, "statements": [ { "condition": [ { "lhs": "amount", "comparison": "equal", "value": { "type": "number", "value": 32 }, "metadata": {} }, { "lhs": "currency", "comparison": "equal", "value": { "type": "enum_variant", "value": "USD" }, "metadata": {} } ], "nested": null } ] } ], "metadata": {} }, "created_at": 1736926264 } ``` 8. Create Payment Intent ``` curl --location 'http://localhost:8080/v2/payments/create-intent' \ --header 'api-key: dev_Q9gpokfBalK7zqCbSjuTKgvnml14JKjzCcJD0ZQUf795gPvTvRdhHcS226SLZJdM' \ --header 'Content-Type: application/json' \ --header 'x-profile-id: pro_FUoYC87sU9eA1FZXnLfS' \ --data-raw '{ "amount_details": { "order_amount": 100, "currency": "USD" }, "capture_method":"automatic", "authentication_type": "no_three_ds", "billing": { "address": { "first_name": "John", "last_name": "Dough" }, "email": "example@example.com" }, "shipping": { "address": { "first_name": "John", "last_name": "Dough", "city": "Karwar", "zip": "581301", "state": "Karnataka" }, "email": "example@example.com" } }' ``` Response ``` { "id": "12345_pay_0194ac70f7747ac18ff81435ec66d5c8", "status": "requires_payment_method", "amount_details": { "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 }, "client_secret": "12345_pay_0194ac70f7747ac18ff81435ec66d5c8_secret_0194ac70f7877663be10df8fc8e23e1c", "profile_id": "pro_FUoYC87sU9eA1FZXnLfS", "merchant_reference_id": null, "routing_algorithm_id": null, "capture_method": "automatic", "authentication_type": "no_three_ds", "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": "example@example.com" }, "shipping": { "address": { "city": "Karwar", "country": null, "line1": null, "line2": null, "line3": null, "zip": "581301", "state": "Karnataka", "first_name": "John", "last_name": "Dough" }, "phone": null, "email": "example@example.com" }, "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": "2025-01-28T10:39:32.135Z", "frm_metadata": null, "request_external_three_ds_authentication": "Skip" } ``` 9. Confirm Intent ``` curl --location 'http://localhost:8080/v2/payments/12345_pay_0194ac70f7747ac18ff81435ec66d5c8/confirm-intent' \ --header 'x-client-secret: 12345_pay_0194ac70f7747ac18ff81435ec66d5c8_secret_0194ac70f7877663be10df8fc8e23e1c' \ --header 'x-profile-id: pro_FUoYC87sU9eA1FZXnLfS' \ --header 'Content-Type: application/json' \ --header 'api-key: pk_dev_0111ac24b7734e7d95b0ff107e29b8c4' \ --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" }' ``` Response ``` { "id": "12345_pay_0194ac70f7747ac18ff81435ec66d5c8", "status": "requires_customer_action", "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", "client_secret": "12345_pay_0194ac70f7747ac18ff81435ec66d5c8_secret_0194ac70f7877663be10df8fc8e23e1c", "created": "2025-01-28T10:24:32.135Z", "payment_method_data": { "billing": null }, "payment_method_type": "card", "payment_method_subtype": "credit", "next_action": { "type": "redirect_to_url", "redirect_to_url": "http://localhost:8080/v2/payments/12345_pay_0194ac70f7747ac18ff81435ec66d5c8/start-redirection?publishable_key=pk_dev_0111ac24b7734e7d95b0ff107e29b8c4&profile_id=pro_FUoYC87sU9eA1FZXnLfS" }, "connector_transaction_id": "pi_3QmBy9D5R7gDAGff0LMH0e8i", "connector_reference_id": null, "merchant_connector_id": "mca_w8x9fi7zOa3Qe6hBEA3F", "browser_info": null, "error": null, "authentication_type": "no_three_ds", "applied_authentication_type": "three_ds" } ``` ## 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. Database Layer (Queries & Schema)** - `crates/diesel_models/src/payment_attempt.rs` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/payments.rs` - `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs` - `crates/hyperswitch_domain_models/src/payments/payment_intent.rs` **4. Core Business Logic** - `crates/router/src/core/admin.rs` - `crates/router/src/core/payments.rs` - `crates/router/src/core/payments/conditional_configs.rs` - ... and 5 more files **5. Other** - `api-reference-v2/openapi_spec.json` **Code Patterns Applied:** - Implement new functions (5 changes) - Extend existing types with new fields (48 changes) - Add conditional logic for feature flags or filtering (2 changes) **Detailed Identifier Changes:** Commit 52ae92bc: Files to modify: **crates/api_models/src/payments.rs** Modify existing code **crates/diesel_models/src/payment_attempt.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_attempt.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_intent.rs** Modify existing code **crates/router/src/core/admin.rs** Modify existing code **crates/router/src/core/payments.rs** Modify existing code **crates/router/src/core/payments/conditional_configs.rs** Add: - function: pub::perform_decision_management **crates/router/src/core/payments/operations.rs** Add: - function: private::run_decision_manager **crates/router/src/core/payments/operations/payment_confirm_intent.rs** Add: - function: private::run_decision_manager **crates/router/src/core/payments/operations/payment_update_intent.rs** Modify existing code **crates/router/src/core/payments/routing.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code
{"pr_number": 7089, "pr_title": "feat(core): 3ds decision manager for v2", "merged_at": "2025-02-12T14:07:35Z", "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/payment_attempt.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments.rs", "crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "crates/hyperswitch_domain_models/src/payments/payment_intent.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/conditional_configs.rs", "crates/router/src/core/payments/operations.rs", "crates/router/src/core/payments/operations/payment_confirm_intent.rs", "crates/router/src/core/payments/operations/payment_update_intent.rs", "crates/router/src/core/payments/routing.rs", "crates/router/src/core/payments/transformers.rs"], "other": ["api-reference-v2/openapi_spec.json"]}, "change_types": {"functions_added": 5, "fields_added": 48, "imports_added": 1, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
feat(connector): `multisafepay` added payment methods | TRUSTLY | WeChatpay | Alipay ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Add newer payment methods for `multisafepay` connector - Trustly - WeChatPay - Alipay ### MCA <details> <summary>Create Merchant Account</summary> ```json { "connector_type": "payment_processor", "connector_account_details": { "auth_type": "HeaderKey", "api_key": "**************" }, "connector_name": "multisafepay", "test_mode": false, "disabled": false, "payment_methods_enabled": [ { "payment_method": "wallet", "payment_method_types": [ { "payment_method_type": "we_chat_pay", "payment_experience": "redirect_to_url" } ] }, { "payment_method": "wallet", "payment_method_types": [ { "payment_method_type": "ali_pay", "payment_experience": "redirect_to_url" } ] }, { "payment_method": "wallet", "payment_method_types": [ { "payment_method_type": "amazon_pay", "payment_experience": "redirect_to_url" } ] }, { "payment_method": "bank_redirect", "payment_method_types": [ { "payment_method_type": "trustly" } ] }, { "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 } ] } ], "metadata": { "city": "NY", "unit": "245" }, "business_country": "US", "business_label": "default" } ``` </details> ## Trustly <details> <summary>Create payement</summary> ```json { "amount": 333, "currency": "EUR", "confirm": true, "capture_method": "automatic", "payment_method": "bank_redirect", "payment_method_type": "trustly", "description": "hellow world", "billing": { "address": { "zip": "560095", "first_name": "Sakil", "last_name": "Mostak", "line1": "Fasdf", "country": "AT", "line2": "Fasdf", "city": "Fasdf" } }, "payment_method_data": { "bank_redirect": { "trustly": { "country": "AT" } } } } ``` </details> <details> <summary> Response</summary> ```json { "payment_id": "pay_wRU9qZTZ8Q8VGd8Bry2i", "merchant_id": "merchant_1750676714", "status": "requires_customer_action", "amount": 333, "net_amount": 333, "shipping_cost": null, "amount_capturable": 333, "amount_received": null, "connector": "multisafepay", "client_secret": "pay_wRU9qZTZ8Q8VGd8Bry2i_secret_Cikbt0vSVNo1G9dXT8LR", "created": "2025-06-26T04:55:03.318Z", "currency": "EUR", "customer_id": null, "customer": null, "description": "hellow world", "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": "bank_redirect", "payment_method_data": { "bank_redirect": { "type": "BankRedirectResponse", "bank_name": null }, "billing": null }, "payment_token": null, "shipping": null, "billing": { "address": { "city": "Fasdf", "country": "AT", "line1": "Fasdf", "line2": "Fasdf", "line3": null, "zip": "560095", "state": null, "first_name": "Sakil", "last_name": "Mostak" }, "phone": null, "email": 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_wRU9qZTZ8Q8VGd8Bry2i/merchant_1750676714/pay_wRU9qZTZ8Q8VGd8Bry2i_1" }, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "trustly", "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": "pay_wRU9qZTZ8Q8VGd8Bry2i_1", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pay_wRU9qZTZ8Q8VGd8Bry2i_1", "payment_link": null, "profile_id": "pro_7Pno0Wbshvrioh4kTJLM", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_aliGZhhX1SDuuEtkipSs", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-06-26T05:10:03.318Z", "fingerprint": null, "browser_info": null, "payment_method_id": null, "payment_method_status": null, "updated": "2025-06-26T04:55:05.045Z", "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>Confirm page</summary> <img width="1322" alt="Screenshot 2025-06-26 at 10 26 20 AM" src="https://github.com/user-attachments/assets/6a428b08-d3fb-4b6d-bf94-d6348025d208" /> </details> <details> <summary>Psync</summary> ```json { "payment_id": "pay_wRU9qZTZ8Q8VGd8Bry2i", "merchant_id": "merchant_1750676714", "status": "succeeded", "amount": 333, "net_amount": 333, "shipping_cost": null, "amount_capturable": 0, "amount_received": 333, "connector": "multisafepay", "client_secret": "pay_wRU9qZTZ8Q8VGd8Bry2i_secret_Cikbt0vSVNo1G9dXT8LR", "created": "2025-06-26T04:55:03.318Z", "currency": "EUR", "customer_id": null, "customer": null, "description": "hellow world", "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": "bank_redirect", "payment_method_data": { "bank_redirect": { "type": "BankRedirectResponse", "bank_name": null }, "billing": null }, "payment_token": null, "shipping": null, "billing": { "address": { "city": "Fasdf", "country": "AT", "line1": "Fasdf", "line2": "Fasdf", "line3": null, "zip": "560095", "state": null, "first_name": "Sakil", "last_name": "Mostak" }, "phone": null, "email": 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": "trustly", "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": "pay_wRU9qZTZ8Q8VGd8Bry2i_1", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pay_wRU9qZTZ8Q8VGd8Bry2i_1", "payment_link": null, "profile_id": "pro_7Pno0Wbshvrioh4kTJLM", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_aliGZhhX1SDuuEtkipSs", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-06-26T05:10:03.318Z", "fingerprint": null, "browser_info": null, "payment_method_id": null, "payment_method_status": null, "updated": "2025-06-26T04:56:22.878Z", "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> ## Alipay <details> <summary> Payment create </summary> ```json { "amount": 333, "currency": "EUR", "confirm": true, "capture_method": "automatic", "payment_method": "wallet", "payment_method_type": "ali_pay", "authentication_type": "no_three_ds", "description": "hellow world", "billing": { "address": { "zip": "560095", "first_name": "Sakil", "last_name": "Mostak", "line1": "Fasdf", "country": "AT", "line2": "Fasdf", "city": "Fasdf" } }, "payment_method_data": { "wallet": { "ali_pay_redirect": {} } } } ``` </details> <details> <summary>Payment Response</summary> ```json { "payment_id": "pay_Ovu6Gi04d695EdCCEUlP", "merchant_id": "merchant_1750676714", "status": "requires_customer_action", "amount": 333, "net_amount": 333, "shipping_cost": null, "amount_capturable": 333, "amount_received": null, "connector": "multisafepay", "client_secret": "pay_Ovu6Gi04d695EdCCEUlP_secret_M57QtvAffR5Z5DEAkVko", "created": "2025-06-26T05:00:28.713Z", "currency": "EUR", "customer_id": null, "customer": null, "description": "hellow world", "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": "Fasdf", "country": "AT", "line1": "Fasdf", "line2": "Fasdf", "line3": null, "zip": "560095", "state": null, "first_name": "Sakil", "last_name": "Mostak" }, "phone": null, "email": 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_Ovu6Gi04d695EdCCEUlP/merchant_1750676714/pay_Ovu6Gi04d695EdCCEUlP_1" }, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "ali_pay", "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": "pay_Ovu6Gi04d695EdCCEUlP_1", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pay_Ovu6Gi04d695EdCCEUlP_1", "payment_link": null, "profile_id": "pro_7Pno0Wbshvrioh4kTJLM", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_aliGZhhX1SDuuEtkipSs", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-06-26T05:15:28.713Z", "fingerprint": null, "browser_info": null, "payment_method_id": null, "payment_method_status": null, "updated": "2025-06-26T05:00:30.315Z", "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> Confirm page </summary> <img width="1188" alt="Screenshot 2025-06-26 at 10 44 33 AM" src="https://github.com/user-attachments/assets/86978961-b4c1-42e0-8ae0-a28f72ea44a4" /> </details> <details> <summary>Psync</summary> ```json { "payment_id": "pay_Ovu6Gi04d695EdCCEUlP", "merchant_id": "merchant_1750676714", "status": "succeeded", "amount": 333, "net_amount": 333, "shipping_cost": null, "amount_capturable": 0, "amount_received": 333, "connector": "multisafepay", "client_secret": "pay_Ovu6Gi04d695EdCCEUlP_secret_M57QtvAffR5Z5DEAkVko", "created": "2025-06-26T05:00:28.713Z", "currency": "EUR", "customer_id": null, "customer": null, "description": "hellow world", "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": "Fasdf", "country": "AT", "line1": "Fasdf", "line2": "Fasdf", "line3": null, "zip": "560095", "state": null, "first_name": "Sakil", "last_name": "Mostak" }, "phone": null, "email": 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": "ali_pay", "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": "pay_Ovu6Gi04d695EdCCEUlP_1", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pay_Ovu6Gi04d695EdCCEUlP_1", "payment_link": null, "profile_id": "pro_7Pno0Wbshvrioh4kTJLM", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_aliGZhhX1SDuuEtkipSs", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-06-26T05:15:28.713Z", "fingerprint": null, "browser_info": null, "payment_method_id": null, "payment_method_status": null, "updated": "2025-06-26T05:14:27.864Z", "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> ## WeChat pay <details> <summary>Create payment </summary> ```json { "amount": 333, "currency": "EUR", "confirm": true, "capture_method": "automatic", "payment_method": "wallet", "payment_method_type": "we_chat_pay", "authentication_type": "no_three_ds", "description": "hellow world", "billing": { "address": { "zip": "560095", "first_name": "Sakil", "last_name": "Mostak", "line1": "Fasdf", "country": "CN", "line2": "Fasdf", "city": "Fasdf" } }, "payment_method_data": { "wallet": { "we_chat_pay_redirect": {} } } } ``` </details> <details> <summary>create payment response</summary> ```json { "payment_id": "pay_ly7Ihm9zEVRPGi4Q9rAY", "merchant_id": "merchant_1750676714", "status": "requires_customer_action", "amount": 333, "net_amount": 333, "shipping_cost": null, "amount_capturable": 333, "amount_received": null, "connector": "multisafepay", "client_secret": "pay_ly7Ihm9zEVRPGi4Q9rAY_secret_0QAA4w1LChiYL9nlsVW7", "created": "2025-06-26T05:22:38.368Z", "currency": "EUR", "customer_id": null, "customer": null, "description": "hellow world", "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": "Fasdf", "country": "CN", "line1": "Fasdf", "line2": "Fasdf", "line3": null, "zip": "560095", "state": null, "first_name": "Sakil", "last_name": "Mostak" }, "phone": null, "email": 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_ly7Ihm9zEVRPGi4Q9rAY/merchant_1750676714/pay_ly7Ihm9zEVRPGi4Q9rAY_1" }, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "we_chat_pay", "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": "pay_ly7Ihm9zEVRPGi4Q9rAY_1", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pay_ly7Ihm9zEVRPGi4Q9rAY_1", "payment_link": null, "profile_id": "pro_7Pno0Wbshvrioh4kTJLM", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_aliGZhhX1SDuuEtkipSs", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-06-26T05:37:38.368Z", "fingerprint": null, "browser_info": null, "payment_method_id": null, "payment_method_status": null, "updated": "2025-06-26T05:22:39.622Z", "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>Confirm page</summary> ## You will get a qr page and it needs to be scanned normally and it will direct to confirm page (test mode) <img width="1105" alt="Screenshot 2025-06-26 at 10 53 31 AM" src="https://github.com/user-attachments/assets/e7385469-ae56-4849-a131-d3ff941445ba" /> </details> <details> <summary>Psync </summary> ```json { "payment_id": "pay_ly7Ihm9zEVRPGi4Q9rAY", "merchant_id": "merchant_1750676714", "status": "succeeded", "amount": 333, "net_amount": 333, "shipping_cost": null, "amount_capturable": 0, "amount_received": 333, "connector": "multisafepay", "client_secret": "pay_ly7Ihm9zEVRPGi4Q9rAY_secret_0QAA4w1LChiYL9nlsVW7", "created": "2025-06-26T05:22:38.368Z", "currency": "EUR", "customer_id": null, "customer": null, "description": "hellow world", "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": "Fasdf", "country": "CN", "line1": "Fasdf", "line2": "Fasdf", "line3": null, "zip": "560095", "state": null, "first_name": "Sakil", "last_name": "Mostak" }, "phone": null, "email": 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": "we_chat_pay", "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": "pay_ly7Ihm9zEVRPGi4Q9rAY_1", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pay_ly7Ihm9zEVRPGi4Q9rAY_1", "payment_link": null, "profile_id": "pro_7Pno0Wbshvrioh4kTJLM", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_aliGZhhX1SDuuEtkipSs", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-06-26T05:37:38.368Z", "fingerprint": null, "browser_info": null, "payment_method_id": null, "payment_method_status": null, "updated": "2025-06-26T05:23:57.958Z", "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 - [x] 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 **payment** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/multisafepay.rs` - `crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs` **2. Tests** - `config/deployments/integration_test.toml` **3. Configuration Files** - `config/deployments/production.toml` - `config/deployments/sandbox.toml` - `config/development.toml` **Code Patterns Applied:** - Define new data structures (3 changes) - Extend existing types with new fields (12 changes) **Detailed Identifier Changes:** Commit 01bd8316: Files to modify: **crates/hyperswitch_connectors/src/connectors/multisafepay.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs** Add: - struct: pub::WeChatPayInfo - struct: pub::AlipayInfo - struct: pub::TrustlyInfo
{"pr_number": 8465, "pr_title": "feat(connector): `multisafepay` added payment methods | TRUSTLY | WeChatpay | Alipay", "merged_at": "2025-07-02T07:12:31Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/multisafepay.rs", "crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs"], "tests": ["config/deployments/integration_test.toml"], "config": ["config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml"]}, "change_types": {"structs_added": 3, "fields_added": 12}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
Fix: Ideal Giropay Country Currency Config ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD Closes this [issue](https://github.com/juspay/hyperswitch/issues/9551) ## Description <!-- Describe your changes in detail --> Fixed ideal giropay country currency config ### 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. Tests** - `config/deployments/integration_test.toml` - `loadtest/config/development.toml` **2. Configuration Files** - `config/config.example.toml` - `config/deployments/production.toml` - `config/deployments/sandbox.toml` - ... and 2 more files
{"pr_number": 9552, "pr_title": "Fix: Ideal Giropay Country Currency Config", "merged_at": "2025-09-29T09:09:41Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"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": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
feat(router): [worldpayvantiv] add dispute list sync and implement dispute ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR 1. Adds workflows to sync dispute with the connector to add new records 2. Introduce force_sync in the current dispute-sync API to update the dispute status from connector 3. Integrate dispute list, dispute sync, accept liability, submit evidence, file upload and file retrieve flows Solution for Dispute List Add new dispute records to hyperswitch > Create a connector dispute list api > Store connectors that support only dispute list API in config (.toml) > Within the Profile request, define the polling interval for the connector and store it > While creating the MCA > If dispute list is not supported by the connector - normal flow > If dispute list is supported by the connector - step 4 > Create a Fetch dispute task in process tracker > With respect to the time interval process tracker will trigger the connector dispute list api call > The list returned by the connector dispute list api > For each of the Dispute in the list, a Process Dispute task to will be added to Process Tracker > Process Dispute task will handle the disputes similar to incoming webhooks - adding the records to the dispute table. > Note: If Dispute already present in the db dispute list will not add/ update it Note: Fetch dispute API is temporarily added for certification process and will be removed ### Additional Changes - [x] This PR modifies the API contract - [x] This PR modifies the database schema - [x] This PR modifies application configuration/environment variables ## 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>Dispute List API (for certification)</summary> ``` curl --location 'http://localhost:8080/disputes/mca_kUW6QohIEfNCIQIxzai3/fetch?fetch_from=2013-01-01T12%3A34%3A56&fetch_till=2013-01-01T14%3A34%3A56' \ --header 'Accept: application/json' \ --header 'api-key: dev_4dm4XuKIYXvxNlTSmQSsasR2yEx2ssMnxzp3ivZ79gzBJpAZ0ig7V9g6Sri2Agxk' ``` Response ``` [{"object_reference_id":{"PaymentId":{"ConnectorTransactionId":"2118843710748"}},"amount":"10000","currency":"USD","dispute_stage":"dispute","dispute_status":"dispute_won","connector_status":"Chargeback Reversal","connector_dispute_id":"10193081001","connector_reason":"Allocation Flow - Authorization - No Authorization/Late Presentment","connector_reason_code":"11.3","challenge_required_by":"2026-07-10 00:00:00.0","created_at":"2025-07-10 00:00:00.0","updated_at":null},{"object_reference_id":{"PaymentId":{"ConnectorTransactionId":"2118843711340"}},"amount":"20000","currency":"USD","dispute_stage":"dispute","dispute_status":"dispute_opened","connector_status":"First Chargeback","connector_dispute_id":"10193081002","connector_reason":"Allocation Flow - Authorization - No Authorization/Late Presentment","connector_reason_code":"11.3","challenge_required_by":"2026-07-10 00:00:00.0","created_at":"2025-07-10 00:00:00.0","updated_at":null},{"object_reference_id":{"PaymentId":{"ConnectorTransactionId":"2118843711944"}},"amount":"30000","currency":"USD","dispute_stage":"dispute","dispute_status":"dispute_opened","connector_status":"First Chargeback","connector_dispute_id":"10193081003","connector_reason":"Allocation Flow - Authorization - No Authorization/Late Presentment","connector_reason_code":"11.3","challenge_required_by":"2026-07-10 00:00:00.0","created_at":"2025-07-10 00:00:00.0","updated_at":null},{"object_reference_id":{"PaymentId":{"ConnectorTransactionId":"2118843712546"}},"amount":"40000","currency":"USD","dispute_stage":"dispute","dispute_status":"dispute_opened","connector_status":"First Chargeback","connector_dispute_id":"10193081004","connector_reason":"Allocation Flow - Authorization - No Authorization/Late Presentment","connector_reason_code":"11.3","challenge_required_by":"2026-07-10 00:00:00.0","created_at":"2025-07-10 00:00:00.0","updated_at":null},{"object_reference_id":{"PaymentId":{"ConnectorTransactionId":"2118843713148"}},"amount":"50000","currency":"USD","dispute_stage":"pre_arbitration","dispute_status":"dispute_challenged","connector_status":"Pre-Arbitration","connector_dispute_id":"10193081005","connector_reason":"Collaboration Flow - Processing Error - Duplicate Processing","connector_reason_code":"12.6.1","challenge_required_by":"2026-07-10 00:00:00.0","created_at":"2025-07-10 00:00:00.0","updated_at":null},{"object_reference_id":{"PaymentId":{"ConnectorTransactionId":"2118843713742"}},"amount":"51000","currency":"USD","dispute_stage":"pre_arbitration","dispute_status":"dispute_challenged","connector_status":"Pre-Arbitration","connector_dispute_id":"10193081006","connector_reason":"Collaboration Flow - Processing Error - Duplicate Processing","connector_reason_code":"12.6.1","challenge_required_by":"2026-07-10 00:00:00.0","created_at":"2025-07-10 00:00:00.0","updated_at":null},{"object_reference_id":{"PaymentId":{"ConnectorTransactionId":"2118843714344"}},"amount":"52000","currency":"USD","dispute_stage":"pre_arbitration","dispute_status":"dispute_challenged","connector_status":"Pre-Arbitration","connector_dispute_id":"10193081007","connector_reason":"Collaboration Flow - Processing Error - Duplicate Processing","connector_reason_code":"12.6.1","challenge_required_by":"2026-07-10 00:00:00.0","created_at":"2025-07-10 00:00:00.0","updated_at":null},{"object_reference_id":{"PaymentId":{"ConnectorTransactionId":"2118843714948"}},"amount":"60000","currency":"USD","dispute_stage":"arbitration","dispute_status":"dispute_challenged","connector_status":"Arbitration","connector_dispute_id":"10193081008","connector_reason":"Collaboration Flow - Processing Error - Duplicate Processing","connector_reason_code":"12.6.1","challenge_required_by":"2026-07-10 00:00:00.0","created_at":"2025-07-10 00:00:00.0","updated_at":null},{"object_reference_id":{"PaymentId":{"ConnectorTransactionId":"2118843715549"}},"amount":"70000","currency":"USD","dispute_stage":"pre_arbitration","dispute_status":"dispute_lost","connector_status":"Issuer Declined Pre-Arbitration","connector_dispute_id":"10193081009","connector_reason":"Allocation Flow - Authorization - Card Recovery Bulletin","connector_reason_code":"11.1","challenge_required_by":"2026-07-10 00:00:00.0","created_at":"2025-07-10 00:00:00.0","updated_at":null},{"object_reference_id":{"PaymentId":{"ConnectorTransactionId":"2118843716141"}},"amount":"71000","currency":"USD","dispute_stage":"pre_arbitration","dispute_status":"dispute_lost","connector_status":"Issuer Declined Pre-Arbitration","connector_dispute_id":"101930810010","connector_reason":"Allocation Flow - Authorization - Card Recovery Bulletin","connector_reason_code":"11.1","challenge_required_by":"2026-07-10 00:00:00.0","created_at":"2025-07-10 00:00:00.0","updated_at":null},{"object_reference_id":{"PaymentId":{"ConnectorTransactionId":"2118843716745"}},"amount":"72000","currency":"USD","dispute_stage":"pre_arbitration","dispute_status":"dispute_lost","connector_status":"Issuer Declined Pre-Arbitration","connector_dispute_id":"101930810011","connector_reason":"Allocation Flow - Authorization - Card Recovery Bulletin","connector_reason_code":"11.1","challenge_required_by":"2026-07-10 00:00:00.0","created_at":"2025-07-10 00:00:00.0","updated_at":null},{"object_reference_id":{"PaymentId":{"ConnectorTransactionId":"2118843717347"}},"amount":"73000","currency":"USD","dispute_stage":"pre_dispute","dispute_status":"dispute_opened","connector_status":"Retrieval Request","connector_dispute_id":"101930810012","connector_reason":"Request for copy bearing signature","connector_reason_code":"0028","challenge_required_by":"2002-01-26 00:00:00.0","created_at":"2025-07-10 00:00:00.0","updated_at":null}] ``` This will add task to process tracker <img width="1707" height="451" alt="Screenshot 2025-08-04 at 1 42 04 PM" src="https://github.com/user-attachments/assets/940fcbbf-67a9-4624-bd5a-0443789deac0" /> Then this process will add dispute record in the dispute table <img width="1073" height="647" alt="Screenshot 2025-08-04 at 1 44 19 PM" src="https://github.com/user-attachments/assets/e9c581dc-05d4-48aa-a723-8c79b8025c34" /> </details> <details> <summary>Call Dsync for an open dispute</summary> ``` curl --location 'http://localhost:8080/disputes/dp_GPhcpeMOMe8Qt1tffxKj?force_sync=true' \ --header 'Accept: application/json' \ --header 'api-key: dev_4dm4XuKIYXvxNlTSmQSsasR2yEx2ssMnxzp3ivZ79gzBJpAZ0ig7V9g6Sri2Agxk' ``` Response ``` {"dispute_id":"dp_GPhcpeMOMe8Qt1tffxKj","payment_id":"12345","attempt_id":"12345_1","amount":"20000","currency":"USD","dispute_stage":"dispute","dispute_status":"dispute_opened","connector":"worldpayvantiv","connector_status":"First Chargeback","connector_dispute_id":"10193081002","connector_reason":"Allocation Flow - Authorization - No Authorization/Late Presentment","connector_reason_code":"11.3","challenge_required_by":"2026-07-10T00:00:00.000Z","connector_created_at":"2025-07-10T00:00:00.000Z","connector_updated_at":null,"created_at":"2025-08-04T08:35:05.935Z","profile_id":"pro_HFfHiKmWcDcUPHcZjrlP","merchant_connector_id":"mca_kUW6QohIEfNCIQIxzai3"} ``` </details> <details> <summary>Submit Evidence</summary> ``` curl --location 'http://localhost:8080/disputes/evidence' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_owITsm8FZridroSawvp9B0aioCbdayIRtrIwK3Lz7SNvsualo29CgUFge6fym3B5' \ --data '{ "dispute_id": "dp_EHoGeJDzm92VcwUW7r2m" }' ``` Response ``` {"dispute_id":"dp_EHoGeJDzm92VcwUW7r2m","payment_id":"12345","attempt_id":"12345_1","amount":"30000","currency":"USD","dispute_stage":"dispute","dispute_status":"dispute_challenged","connector":"worldpayvantiv","connector_status":"First Chargeback","connector_dispute_id":"10193081003","connector_reason":"Allocation Flow - Authorization - No Authorization/Late Presentment","connector_reason_code":"11.3","challenge_required_by":"2026-07-10T00:00:00.000Z","connector_created_at":"2025-07-10T00:00:00.000Z","connector_updated_at":null,"created_at":"2025-08-04T22:31:21.220Z","profile_id":"pro_NLBj7qKZ07n0yx6ZiiAO","merchant_connector_id":"mca_Z7eQPZklxLCYuDdPKd4Z"} ``` </details> <details> <summary>Upload and Retrieve File</summary> ``` curl --location 'http://localhost:8080/files' \ --header 'Accept: application/json' \ --header 'api-key: dev_owITsm8FZridroSawvp9B0aioCbdayIRtrIwK3Lz7SNvsualo29CgUFge6fym3B5' \ --form 'purpose="dispute_evidence"' \ --form 'file=@"/Users/akshaya.shankar/Desktop/Screenshot 2025-08-01 at 12.30.51 AM.png"' \ --form 'dispute_id="dp_nXrdQ2PGYdBGXWpriDfJ"' ``` Response ``` {"file_id":"file_KXwteSHkHVgxIy6svNn9"} ``` </details> Note: Accept liability and merchant represents cannot be tested from the connector ## 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. API Request/Response Models** - `crates/api_models/src/admin.rs` - `crates/api_models/src/disputes.rs` - `crates/api_models/src/events/dispute.rs` - ... and 2 more files **2. Database Layer (Queries & Schema)** - `crates/diesel_models/src/business_profile.rs` - `crates/diesel_models/src/schema.rs` - `crates/diesel_models/src/schema_v2.rs` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/business_profile.rs` - `crates/hyperswitch_domain_models/src/connector_endpoints.rs` - `crates/hyperswitch_domain_models/src/merchant_connector_account.rs` - ... and 4 more files **4. Core Business Logic** - `crates/router/src/core/admin.rs` - `crates/router/src/core/disputes.rs` - `crates/router/src/core/disputes/transformers.rs` - ... and 6 more files **5. External Connector Integration** - `crates/common_enums/src/connector_enums.rs` - `crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs` - `crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs` - ... and 3 more files **6. Type Definitions** - `crates/common_types/src/consts.rs` - `crates/common_types/src/primitive_wrappers.rs` - `crates/hyperswitch_interfaces/src/types.rs` - ... and 6 more files **7. Utils** - `crates/scheduler/src/utils.rs` **8. Tests** - `config/deployments/integration_test.toml` - `loadtest/config/development.toml` **9. Configuration Files** - `config/config.example.toml` - `config/deployments/production.toml` - `config/deployments/sandbox.toml` - ... and 4 more files **10. Other** - `api-reference/v1/openapi_spec_v1.json` - `api-reference/v2/openapi_spec_v2.json` - `crates/common_enums/src/enums.rs` - ... and 17 more files **Code Patterns Applied:** - Define new data structures (23 changes) - Implement new functions (86 changes) - Extend existing types with new fields (524 changes) - Add conditional logic for feature flags or filtering (10 changes) - Modify database queries (1 changes) **Detailed Identifier Changes:** Commit 640d0552: Files to modify: **crates/api_models/src/admin.rs** Modify existing code **crates/api_models/src/disputes.rs** Add: - struct: pub::DisputeRetrieveRequest - struct: pub::DisputeRetrieveBody **crates/api_models/src/events/dispute.rs** Add: - function: private::get_api_event_type - impl: impl ApiEventMetric for DisputeRetrieveRequest **crates/api_models/src/files.rs** Add: - struct: pub::FileRetrieveQuery **crates/api_models/src/webhooks.rs** Modify existing code **crates/common_enums/src/connector_enums.rs** Modify existing code **crates/common_enums/src/enums.rs** Modify existing code **crates/common_types/src/consts.rs** Modify existing code **crates/common_types/src/primitive_wrappers.rs** Add: - function: private::deref - function: private::deserialize - function: private::from_sql - function: private::to_sql - function: private::default - struct: pub::DisputePollingIntervalInHours - impl: impl Deref for DisputePollingIntervalInHours - impl: impl Deserialize<'de> for DisputePollingIntervalInHours - impl: impl diesel::deserialize::FromSql<diesel::sql_types::Integer, diesel::pg::Pg> for DisputePollingIntervalInHours - impl: impl diesel::serialize::ToSql<diesel::sql_types::Integer, diesel::pg::Pg> for DisputePollingIntervalInHours - impl: impl Default for DisputePollingIntervalInHours - mod: private::u32_wrappers **crates/diesel_models/src/business_profile.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_connectors/src/connectors/worldpayvantiv.rs** Remove: - function: private::handle_vantiv_json_error_response Add: - 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_url - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - 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_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_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_url - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::handle_vantiv_json_error_response - function: private::handle_vantiv_dispute_error_response - function: private::validate_file_upload - impl: impl Dispute for Worldpayvantiv - impl: impl FetchDisputes for Worldpayvantiv - impl: impl DisputeSync for Worldpayvantiv - impl: impl SubmitEvidence for Worldpayvantiv - impl: impl AcceptDispute for Worldpayvantiv - impl: impl ConnectorIntegration<Fetch, FetchDisputesRequestData, FetchDisputesResponse> for Worldpayvantiv - impl: impl ConnectorIntegration<Dsync, DisputeSyncData, DisputeSyncResponse> for Worldpayvantiv - impl: impl ConnectorIntegration<Evidence, SubmitEvidenceRequestData, SubmitEvidenceResponse> for Worldpayvantiv - impl: impl ConnectorIntegration<Accept, AcceptDisputeRequestData, AcceptDisputeResponse> for Worldpayvantiv - impl: impl UploadFile for Worldpayvantiv - impl: impl ConnectorIntegration<Upload, UploadFileRequestData, UploadFileResponse> for Worldpayvantiv - impl: impl RetrieveFile for Worldpayvantiv - impl: impl ConnectorIntegration<Retrieve, RetrieveFileRequestData, RetrieveFileResponse> for Worldpayvantiv - impl: impl FileUpload for Worldpayvantiv **crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs** Add: - function: private::try_from - function: private::try_from - function: private::get_dispute_stage - function: pub::get_dispute_status - function: private::convert_string_to_primitive_date - function: private::try_from - function: private::from - function: private::from - function: private::is_file_uploaded - function: private::try_from - function: private::try_from - struct: pub::VantivDisputeErrorResponse - struct: pub::VantivDisputeErrors - struct: pub::ChargebackRetrievalResponse - struct: pub::ChargebackCase - struct: pub::Activity - struct: pub::ChargebackUpdateRequest - struct: pub::ChargebackDocumentUploadResponse - enum: pub::ActivityType - enum: pub::WorldpayvantivFileUploadResponseCode - impl: impl TryFrom< ResponseRouterData< Fetch, ChargebackRetrievalResponse, FetchDisputesRequestData, FetchDisputesResponse, >, > for RouterData<Fetch, FetchDisputesRequestData, FetchDisputesResponse> - impl: impl TryFrom< ResponseRouterData< Dsync, ChargebackRetrievalResponse, DisputeSyncData, DisputeSyncResponse, >, > for RouterData<Dsync, DisputeSyncData, DisputeSyncResponse> - impl: impl TryFrom<ChargebackCase> for DisputeSyncResponse - impl: impl From<&SubmitEvidenceRouterData> for ChargebackUpdateRequest - impl: impl From<&AcceptDisputeRouterData> for ChargebackUpdateRequest - impl: impl TryFrom< ResponseRouterData< Upload, ChargebackDocumentUploadResponse, UploadFileRequestData, UploadFileResponse, >, > for RouterData<Upload, UploadFileRequestData, UploadFileResponse> - impl: impl TryFrom< ResponseRouterData< Retrieve, ChargebackDocumentUploadResponse, RetrieveFileRequestData, RetrieveFileResponse, >, > for RouterData<Retrieve, RetrieveFileRequestData, RetrieveFileResponse> **crates/hyperswitch_connectors/src/default_implementations.rs** Add: - impl: impl FetchDisputes for connectors::DummyConnector<T> - impl: impl ConnectorIntegration<Fetch, FetchDisputesRequestData, FetchDisputesResponse> for connectors::DummyConnector<T> - impl: impl DisputeSync for connectors::DummyConnector<T> - impl: impl ConnectorIntegration<Dsync, DisputeSyncData, DisputeSyncResponse> for connectors::DummyConnector<T> **crates/hyperswitch_connectors/src/default_implementations_v2.rs** Remove: - impl: impl SubmitEvidenceV2 for $connector Add: - impl: impl FetchDisputesV2 for $connector **crates/hyperswitch_connectors/src/types.rs** Modify existing code **crates/hyperswitch_domain_models/src/business_profile.rs** Modify existing code **crates/hyperswitch_domain_models/src/connector_endpoints.rs** Modify existing code **crates/hyperswitch_domain_models/src/merchant_connector_account.rs** Add: - function: pub::get_metadata **crates/hyperswitch_domain_models/src/router_flow_types/dispute.rs** Add: - struct: pub::Fetch - struct: pub::Dsync **crates/hyperswitch_domain_models/src/router_request_types.rs** Add: - struct: pub::FetchDisputesRequestData - struct: pub::DisputeSyncData **crates/hyperswitch_domain_models/src/router_response_types.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_response_types/disputes.rs** Add: - struct: pub::DisputeSyncResponse **crates/hyperswitch_interfaces/src/api/disputes.rs** Remove: - trait: pub::Dispute Add: - trait: pub::DisputeSync **crates/hyperswitch_interfaces/src/api/disputes_v2.rs** Modify existing code **crates/hyperswitch_interfaces/src/disputes.rs** Add: - function: private::from - impl: impl From<DisputeSyncResponse> for DisputePayload **crates/hyperswitch_interfaces/src/types.rs** Modify existing code **crates/openapi/src/routes/disputes.rs** Modify existing code **crates/router/src/bin/scheduler.rs** Modify existing code **crates/router/src/configs/secrets_transformers.rs** Modify existing code **crates/router/src/configs/settings.rs** Add: - struct: pub::ListDiputeSupportedConnectors **crates/router/src/consts.rs** Modify existing code **crates/router/src/core/admin.rs** Modify existing code **crates/router/src/core/disputes.rs** Add: - function: pub::should_call_connector_for_dispute_sync - function: pub::connector_sync_disputes - function: pub::fetch_disputes_from_connector - function: pub::update_dispute_data - function: pub::add_process_dispute_task_to_pt - function: pub::add_dispute_list_task_to_pt - function: pub::schedule_dispute_sync_task **crates/router/src/core/disputes/transformers.rs** Modify existing code **crates/router/src/core/errors/utils.rs** Add: - function: private::to_files_failed_response **crates/router/src/core/files.rs** Modify existing code **crates/router/src/core/files/helpers.rs** Modify existing code **crates/router/src/core/utils.rs** Add: - function: pub::construct_dispute_list_router_data - function: pub::construct_dispute_sync_router_data - function: pub::should_add_dispute_sync_task_to_pt - function: pub::should_proceed_with_submit_evidence **crates/router/src/core/webhooks.rs** Remove: - mod: private::incoming Add: - mod: pub::incoming **crates/router/src/core/webhooks/incoming.rs** Modify existing code **crates/router/src/db/events.rs** Modify existing code **crates/router/src/events/api_logs.rs** Modify existing code **crates/router/src/routes/app.rs** Modify existing code **crates/router/src/routes/disputes.rs** Modify existing code **crates/router/src/routes/files.rs** Modify existing code **crates/router/src/types.rs** Modify existing code **crates/router/src/types/api/admin.rs** Modify existing code **crates/router/src/types/api/disputes.rs** Add: - struct: pub::DisputeFetchQueryData - struct: pub::ProcessDisputePTData - struct: pub::DisputeListPTData **crates/router/src/types/api/disputes_v2.rs** Modify existing code **crates/router/src/types/api/files.rs** Add: - struct: pub::FileRetrieveRequest **crates/router/src/types/domain.rs** Add: - mod: private::payment_attempt **crates/router/src/workflows.rs** Add: - mod: pub::process_dispute - mod: pub::dispute_list **crates/router/src/workflows/dispute_list.rs** Add: - function: private::execute_workflow - function: private::execute_workflow - function: private::error_handler - function: pub::get_sync_process_schedule_time - function: pub::retry_sync_task - function: pub::schedule_next_dispute_list_task - struct: pub::DisputeListWorkflow - impl: impl ProcessTrackerWorkflow<SessionState> for DisputeListWorkflow **crates/router/src/workflows/outgoing_webhook_retry.rs** Modify existing code **crates/router/src/workflows/process_dispute.rs** Add: - function: private::execute_workflow - function: private::execute_workflow - function: private::error_handler - function: pub::get_sync_process_schedule_time - function: pub::retry_sync_task - struct: pub::ProcessDisputeWorkflow - impl: impl ProcessTrackerWorkflow<SessionState> for ProcessDisputeWorkflow **crates/scheduler/src/utils.rs** Add: - function: pub::get_process_tracker_id_for_dispute_list
{"pr_number": 8830, "pr_title": "feat(router): [worldpayvantiv] add dispute list sync and implement dispute", "merged_at": "2025-08-06T10:14:56Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"api_models": ["crates/api_models/src/admin.rs", "crates/api_models/src/disputes.rs", "crates/api_models/src/events/dispute.rs", "crates/api_models/src/files.rs", "crates/api_models/src/webhooks.rs"], "database": ["crates/diesel_models/src/business_profile.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/connector_endpoints.rs", "crates/hyperswitch_domain_models/src/merchant_connector_account.rs", "crates/hyperswitch_domain_models/src/router_flow_types/dispute.rs", "crates/hyperswitch_domain_models/src/router_request_types.rs", "crates/hyperswitch_domain_models/src/router_response_types.rs", "crates/hyperswitch_domain_models/src/router_response_types/disputes.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/disputes.rs", "crates/router/src/core/disputes/transformers.rs", "crates/router/src/core/errors/utils.rs", "crates/router/src/core/files.rs", "crates/router/src/core/files/helpers.rs", "crates/router/src/core/utils.rs", "crates/router/src/core/webhooks.rs", "crates/router/src/core/webhooks/incoming.rs"], "connectors": ["crates/common_enums/src/connector_enums.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/hyperswitch_connectors/src/types.rs"], "types": ["crates/common_types/src/consts.rs", "crates/common_types/src/primitive_wrappers.rs", "crates/hyperswitch_interfaces/src/types.rs", "crates/router/src/types.rs", "crates/router/src/types/api/admin.rs", "crates/router/src/types/api/disputes.rs", "crates/router/src/types/api/disputes_v2.rs", "crates/router/src/types/api/files.rs", "crates/router/src/types/domain.rs"], "utils": ["crates/scheduler/src/utils.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/router/src/configs/secrets_transformers.rs", "crates/router/src/configs/settings.rs"], "other": ["api-reference/v1/openapi_spec_v1.json", "api-reference/v2/openapi_spec_v2.json", "crates/common_enums/src/enums.rs", "crates/hyperswitch_interfaces/src/api/disputes.rs", "crates/hyperswitch_interfaces/src/api/disputes_v2.rs", "crates/hyperswitch_interfaces/src/disputes.rs", "crates/openapi/src/routes/disputes.rs", "crates/router/src/bin/scheduler.rs", "crates/router/src/consts.rs", "crates/router/src/db/events.rs", "crates/router/src/events/api_logs.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/disputes.rs", "crates/router/src/routes/files.rs", "crates/router/src/workflows.rs", "crates/router/src/workflows/dispute_list.rs", "crates/router/src/workflows/outgoing_webhook_retry.rs", "crates/router/src/workflows/process_dispute.rs", "migrations/2025-07-14-add_dispute_polling_interval_to_business_profile/down.sql", "migrations/2025-07-14-add_dispute_polling_interval_to_business_profile/up.sql"]}, "change_types": {"structs_added": 23, "functions_added": 86, "enums_added": 2, "fields_added": 524, "imports_added": 23, "conditionals_added": 10, "database_queries": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}