SirajRLX commited on
Commit
c8fa62b
·
verified ·
1 Parent(s): d511b4d

Add files using upload-large-folder tool

Browse files
prs/index_cache.json ADDED
The diff for this file is too large to render. See raw diff
 
prs/pr_10041.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 10041,
3
+ "title": "refactor(connector): [Payouts] Add bankredirect required fields for payout",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [x] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n\r\nhotfix for - https://github.com/juspay/hyperswitch/pull/10037\r\nRefactor bankredirect required fields for payout\r\n\r\nin required fields \r\n- changed `payout_method_data.bank_redirect.interac.email` to `payout_method_data.bank_redirect.email`\r\n- changed `payment_method_data.billing.phone.number` and `payment_method_data.billing.phone.country_code` to `billing.phone.number` and `billing.phone.country_code`\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n1. Create Gigadat payout connector\r\n```\r\n{\r\n \"connector_type\": \"payout_processor\",\r\n \"connector_name\": \"gigadat\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"SignatureKey\",\r\n \"api_key\": \"_\r\n \"key1\": \"_\",\r\n \"api_secret\" : \"_\"\r\n },\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"bank_redirect\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"interac\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\": {\r\n \"site\" : \"https://google.com/\"\r\n }\r\n}\r\n\r\n```\r\n2. Create a payout with confirm false\r\n```\r\n{\r\n \"amount\": 1,\r\n \"currency\": \"CAD\",\r\n \"customer_id\": \"{{customer_id}}\",\r\n \"email\": \"payout_customer@example.com\",\r\n \"name\": \"Doest John\",\r\n \"phone\": \"6168205366\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payout request\",\r\n \"connector\": [\r\n \"gigadat\"\r\n ],\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"127.0.0.1\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"CA\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"Doest\",\r\n \"last_name\": \"John\"\r\n },\r\n \"phone\": {\r\n \"number\": \"6168205366\",\r\n \"country_code\": \"1\"\r\n }\r\n },\r\n \"entity_type\": \"Individual\",\r\n \"recurring\": false,\r\n \"payout_link\": true,\r\n \"payout_link_config\": {\r\n \"logo\": \"https://hyperswitch.io/favicon.ico\",\r\n \"merchant_name\": \"Hyperswitch\",\r\n \"theme\": \"#4285F4\",\r\n \"test_mode\": true,\r\n \"form_layout\": \"tabs\"\r\n }\r\n}\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"payout_id\": \"payout_wOL1qmK6JEbrrm4x97y4\",\r\n \"merchant_id\": \"merchant_1761055504\",\r\n \"merchant_order_reference_id\": null,\r\n \"amount\": 1,\r\n \"currency\": \"CAD\",\r\n \"connector\": null,\r\n \"payout_type\": null,\r\n \"payout_method_data\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"CA\",\r\n \"first_name\": \"Doest\",\r\n \"last_name\": \"John\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"6168205366\",\r\n \"country_code\": \"1\"\r\n },\r\n \"email\": null\r\n },\r\n \"auto_fulfill\": false,\r\n \"customer_id\": \"cus_JME76kNhCBZbnCCt7STw\",\r\n \"customer\": {\r\n \"id\": \"cus_JME76kNhCBZbnCCt7STw\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"6168205366\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"client_secret\": \"payout_payout_wOL1qmK6JEbrrm4x97y4_secret_MlbMUxpR5ZO8gIiwYv8u\",\r\n \"return_url\": null,\r\n \"business_country\": null,\r\n \"business_label\": null,\r\n \"description\": \"Its my first payout request\",\r\n \"entity_type\": \"Individual\",\r\n \"recurring\": false,\r\n \"metadata\": {},\r\n \"merchant_connector_id\": null,\r\n \"status\": \"requires_payout_method_data\",\r\n \"error_message\": null,\r\n \"error_code\": null,\r\n \"profile_id\": \"pro_ZBFKeBzE1jVH95KQwzxl\",\r\n \"created\": \"2025-10-21T14:05:31.518Z\",\r\n \"connector_transaction_id\": null,\r\n \"priority\": null,\r\n \"payout_link\": {\r\n \"payout_link_id\": \"payout_link_gJd0iaL268lZI2KxDqpS\",\r\n \"link\": \"http://localhost:8080/payout_link/merchant_1761055504/payout_wOL1qmK6JEbrrm4x97y4?locale=en\"\r\n },\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"6168205366\",\r\n \"phone_country_code\": \"+1\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payout_method_id\": null\r\n}\r\n```\r\nIn payout link , we can see\r\n```\r\n\"enabled_payment_methods_with_required_fields\": [\r\n {\r\n \"payment_method\": \"bank_redirect\",\r\n \"payment_method_types_info\": [\r\n {\r\n \"payment_method_type\": \"interac\",\r\n \"required_fields\": {\r\n \"billing.phone.country_code\": {\r\n \"required_field\": \"billing.phone.country_code\",\r\n \"display_name\": \"dialing_code\",\r\n \"field_type\": \"user_phone_number_country_code\",\r\n \"value\": null\r\n },\r\n \"billing.address.first_name\": {\r\n \"required_field\": \"billing.address.first_name\",\r\n \"display_name\": \"billing_address_first_name\",\r\n \"field_type\": \"text\",\r\n \"value\": null\r\n },\r\n \"payout_method_data.bank_redirect.email\": {\r\n \"required_field\": \"payout_method_data.bank_redirect.email\",\r\n \"display_name\": \"email\",\r\n \"field_type\": \"text\",\r\n \"value\": null\r\n },\r\n \"billing.address.last_name\": {\r\n \"required_field\": \"billing.address.last_name\",\r\n \"display_name\": \"billing_address_last_name\",\r\n \"field_type\": \"text\",\r\n \"value\": null\r\n },\r\n \"billing.phone.number\": {\r\n \"required_field\": \"billing.phone.number\",\r\n \"display_name\": \"phone\",\r\n \"field_type\": \"user_phone_number\",\r\n \"value\": null\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n],\r\n```\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "swangi-kumari",
6
+ "created_at": "2025-10-29T07:54:45+00:00",
7
+ "merged_at": "2025-10-29T09:36:08+00:00",
8
+ "base_branch": "hotfix-2025.10.27.0",
9
+ "labels": [
10
+ "A-connector-integration",
11
+ "Payouts"
12
+ ],
13
+ "url": "https://github.com/juspay/hyperswitch/pull/10041",
14
+ "commits": [
15
+ {
16
+ "sha": "eec1a55d2a14aa83f25d6b7610003edd7f5deece",
17
+ "message": "refactor: add bankredirect required fields for payout",
18
+ "author": "Swangi Kumari",
19
+ "date": "2025-10-29T06:24:20+00:00",
20
+ "url": "https://github.com/juspay/hyperswitch/commit/eec1a55d2a14aa83f25d6b7610003edd7f5deece"
21
+ }
22
+ ]
23
+ }
prs/pr_10048.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 10048,
3
+ "title": "refactor(connector): [Payouts] Add bankredirect required fields for payout",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [x] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n\r\nhotfix for - https://github.com/juspay/hyperswitch/pull/10037\r\nRefactor bankredirect required fields for payout\r\n\r\nin required fields \r\n- changed `payout_method_data.bank_redirect.interac.email` to `payout_method_data.bank_redirect.email`\r\n- changed `payment_method_data.billing.phone.number` and `payment_method_data.billing.phone.country_code` to `billing.phone.number` and `billing.phone.country_code`\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n1. Create Gigadat payout connector\r\n```\r\n{\r\n \"connector_type\": \"payout_processor\",\r\n \"connector_name\": \"gigadat\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"SignatureKey\",\r\n \"api_key\": \"_\r\n \"key1\": \"_\",\r\n \"api_secret\" : \"_\"\r\n },\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"bank_redirect\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"interac\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\": {\r\n \"site\" : \"https://google.com/\"\r\n }\r\n}\r\n\r\n```\r\n2. Create a payout with confirm false\r\n```\r\n{\r\n \"amount\": 1,\r\n \"currency\": \"CAD\",\r\n \"customer_id\": \"{{customer_id}}\",\r\n \"email\": \"payout_customer@example.com\",\r\n \"name\": \"Doest John\",\r\n \"phone\": \"6168205366\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payout request\",\r\n \"connector\": [\r\n \"gigadat\"\r\n ],\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"127.0.0.1\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"CA\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"Doest\",\r\n \"last_name\": \"John\"\r\n },\r\n \"phone\": {\r\n \"number\": \"6168205366\",\r\n \"country_code\": \"1\"\r\n }\r\n },\r\n \"entity_type\": \"Individual\",\r\n \"recurring\": false,\r\n \"payout_link\": true,\r\n \"payout_link_config\": {\r\n \"logo\": \"https://hyperswitch.io/favicon.ico\",\r\n \"merchant_name\": \"Hyperswitch\",\r\n \"theme\": \"#4285F4\",\r\n \"test_mode\": true,\r\n \"form_layout\": \"tabs\"\r\n }\r\n}\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"payout_id\": \"payout_wOL1qmK6JEbrrm4x97y4\",\r\n \"merchant_id\": \"merchant_1761055504\",\r\n \"merchant_order_reference_id\": null,\r\n \"amount\": 1,\r\n \"currency\": \"CAD\",\r\n \"connector\": null,\r\n \"payout_type\": null,\r\n \"payout_method_data\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"CA\",\r\n \"first_name\": \"Doest\",\r\n \"last_name\": \"John\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"6168205366\",\r\n \"country_code\": \"1\"\r\n },\r\n \"email\": null\r\n },\r\n \"auto_fulfill\": false,\r\n \"customer_id\": \"cus_JME76kNhCBZbnCCt7STw\",\r\n \"customer\": {\r\n \"id\": \"cus_JME76kNhCBZbnCCt7STw\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"6168205366\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"client_secret\": \"payout_payout_wOL1qmK6JEbrrm4x97y4_secret_MlbMUxpR5ZO8gIiwYv8u\",\r\n \"return_url\": null,\r\n \"business_country\": null,\r\n \"business_label\": null,\r\n \"description\": \"Its my first payout request\",\r\n \"entity_type\": \"Individual\",\r\n \"recurring\": false,\r\n \"metadata\": {},\r\n \"merchant_connector_id\": null,\r\n \"status\": \"requires_payout_method_data\",\r\n \"error_message\": null,\r\n \"error_code\": null,\r\n \"profile_id\": \"pro_ZBFKeBzE1jVH95KQwzxl\",\r\n \"created\": \"2025-10-21T14:05:31.518Z\",\r\n \"connector_transaction_id\": null,\r\n \"priority\": null,\r\n \"payout_link\": {\r\n \"payout_link_id\": \"payout_link_gJd0iaL268lZI2KxDqpS\",\r\n \"link\": \"http://localhost:8080/payout_link/merchant_1761055504/payout_wOL1qmK6JEbrrm4x97y4?locale=en\"\r\n },\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"6168205366\",\r\n \"phone_country_code\": \"+1\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payout_method_id\": null\r\n}\r\n```\r\nIn payout link , we can see\r\n```\r\n\"enabled_payment_methods_with_required_fields\": [\r\n {\r\n \"payment_method\": \"bank_redirect\",\r\n \"payment_method_types_info\": [\r\n {\r\n \"payment_method_type\": \"interac\",\r\n \"required_fields\": {\r\n \"billing.phone.country_code\": {\r\n \"required_field\": \"billing.phone.country_code\",\r\n \"display_name\": \"dialing_code\",\r\n \"field_type\": \"user_phone_number_country_code\",\r\n \"value\": null\r\n },\r\n \"billing.address.first_name\": {\r\n \"required_field\": \"billing.address.first_name\",\r\n \"display_name\": \"billing_address_first_name\",\r\n \"field_type\": \"text\",\r\n \"value\": null\r\n },\r\n \"payout_method_data.bank_redirect.email\": {\r\n \"required_field\": \"payout_method_data.bank_redirect.email\",\r\n \"display_name\": \"email\",\r\n \"field_type\": \"text\",\r\n \"value\": null\r\n },\r\n \"billing.address.last_name\": {\r\n \"required_field\": \"billing.address.last_name\",\r\n \"display_name\": \"billing_address_last_name\",\r\n \"field_type\": \"text\",\r\n \"value\": null\r\n },\r\n \"billing.phone.number\": {\r\n \"required_field\": \"billing.phone.number\",\r\n \"display_name\": \"phone\",\r\n \"field_type\": \"user_phone_number\",\r\n \"value\": null\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n],\r\n```\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "swangi-kumari",
6
+ "created_at": "2025-10-29T12:06:08+00:00",
7
+ "merged_at": "2025-10-29T13:39:52+00:00",
8
+ "base_branch": "hotfix-2025.10.29.0",
9
+ "labels": [
10
+ "Payouts"
11
+ ],
12
+ "url": "https://github.com/juspay/hyperswitch/pull/10048",
13
+ "commits": [
14
+ {
15
+ "sha": "bd7fbaffd5e00d77ea71e166e703aadac2ce969b",
16
+ "message": "refactor: add bankredirect required fields for payout",
17
+ "author": "Swangi Kumari",
18
+ "date": "2025-10-29T06:24:20+00:00",
19
+ "url": "https://github.com/juspay/hyperswitch/commit/bd7fbaffd5e00d77ea71e166e703aadac2ce969b"
20
+ }
21
+ ]
22
+ }
prs/pr_10140.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 10140,
3
+ "title": "feat(router): Add is_split_payment field to payments response (v2)",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [x] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n- Added a field `is_split_payment` to Payments - List Response. Used by dashboard to show whether a payment is a split payment in the Payment Operations Screen.\r\n\r\n### Additional Changes\r\n\r\n- [x] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\nCloses #10139 \r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nRequest:\r\n\r\n```\r\ncurl --location 'http://localhost:8080/v2/payments/list' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'x-profile-id: pro_HzkiTClLRhwyS1wsZVh8' \\\r\n--header 'Authorization: api-key=dev_f0AKEGnVxI8krvop8qE1DpicS4ip8NHm0MEQJJ4aQUiuGuBg4ua5OK8OvEOluOJp' \\\r\n--header 'api-key: dev_f0AKEGnVxI8krvop8qE1DpicS4ip8NHm0MEQJJ4aQUiuGuBg4ua5OK8OvEOluOJp'\r\n```\r\n\r\nResponse:\r\n\r\n```json\r\n{\r\n \"count\": 1,\r\n \"total_count\": 1,\r\n \"data\": [\r\n {\r\n \"id\": \"12345_pay_019a57fd21f670a39cca26adff34121d\",\r\n \"merchant_id\": \"cloth_seller_v2_yDO5Rd1r7V2S8L0eFYg1\",\r\n \"profile_id\": \"pro_HzkiTClLRhwyS1wsZVh8\",\r\n \"customer_id\": \"12345_cus_019a57fd056a7ac189e218d16a4b37b5\",\r\n \"payment_method_id\": null,\r\n \"status\": \"requires_capture\",\r\n \"amount\": {\r\n \"order_amount\": 100,\r\n \"currency\": \"USD\",\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"external_tax_calculation\": \"skip\",\r\n \"surcharge_calculation\": \"skip\",\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"net_amount\": 100,\r\n \"amount_to_capture\": null,\r\n \"amount_capturable\": 100,\r\n \"amount_captured\": 0\r\n },\r\n \"created\": \"2025-11-06T07:06:38.466Z\",\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_subtype\": \"card\",\r\n \"connector\": \"adyen\",\r\n \"merchant_connector_id\": \"mca_9z2OVPuwa2ohCwwElOfN\",\r\n \"customer\": null,\r\n \"merchant_reference_id\": null,\r\n \"connector_payment_id\": \"B9G4KNPFWGF5K5V5\",\r\n \"connector_response_reference_id\": \"12345_att_019a57fd2e8679a28ef3ba504d91b5fe\",\r\n \"metadata\": null,\r\n \"description\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"capture_method\": \"manual\",\r\n \"setup_future_usage\": \"on_session\",\r\n \"attempt_count\": 0,\r\n \"error\": null,\r\n \"cancellation_reason\": null,\r\n \"order_details\": null,\r\n \"return_url\": null,\r\n \"statement_descriptor\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"authorization_count\": 0,\r\n \"modified_at\": \"2025-11-06T07:06:44.978Z\",\r\n \"is_split_payment\": false\r\n }\r\n ]\r\n}\r\n```\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "AnuthaDev",
6
+ "created_at": "2025-11-05T12:57:07+00:00",
7
+ "merged_at": "2025-11-11T07:48:54+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "M-api-contract-changes",
11
+ "api-v2",
12
+ "T-Core"
13
+ ],
14
+ "url": "https://github.com/juspay/hyperswitch/pull/10140",
15
+ "commits": [
16
+ {
17
+ "sha": "a4ae47af302147a2736ea576260cabe074b149ca",
18
+ "message": "feat(router): Add is_split_payment field to payments response",
19
+ "author": "Anurag Thakur",
20
+ "date": "2025-11-06T06:59:35+00:00",
21
+ "url": "https://github.com/juspay/hyperswitch/commit/a4ae47af302147a2736ea576260cabe074b149ca"
22
+ },
23
+ {
24
+ "sha": "eea5e7e8593b45cf962d5a2d7bd67a0dfed3aa1d",
25
+ "message": "Address review comments",
26
+ "author": "Anurag Thakur",
27
+ "date": "2025-11-06T07:45:29+00:00",
28
+ "url": "https://github.com/juspay/hyperswitch/commit/eea5e7e8593b45cf962d5a2d7bd67a0dfed3aa1d"
29
+ },
30
+ {
31
+ "sha": "19558407144e7e97f9b9cfdffb66e8a409fbd9f9",
32
+ "message": "Fix clippy",
33
+ "author": "Anurag Thakur",
34
+ "date": "2025-11-06T07:53:37+00:00",
35
+ "url": "https://github.com/juspay/hyperswitch/commit/19558407144e7e97f9b9cfdffb66e8a409fbd9f9"
36
+ },
37
+ {
38
+ "sha": "80eee7f8e01e84055660b63dcefbdcc46bf08292",
39
+ "message": "Address review comments",
40
+ "author": "Anurag Thakur",
41
+ "date": "2025-11-06T10:05:16+00:00",
42
+ "url": "https://github.com/juspay/hyperswitch/commit/80eee7f8e01e84055660b63dcefbdcc46bf08292"
43
+ },
44
+ {
45
+ "sha": "f01b3cda44d3d29bf9067d8a67e244ac4c070536",
46
+ "message": "Merge branch 'main' into split-payments-list",
47
+ "author": "Anurag Thakur",
48
+ "date": "2025-11-11T05:47:29+00:00",
49
+ "url": "https://github.com/juspay/hyperswitch/commit/f01b3cda44d3d29bf9067d8a67e244ac4c070536"
50
+ }
51
+ ]
52
+ }
prs/pr_6734.json ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 6734,
3
+ "title": "feat(core): implement `NameType` for name validation",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nfor card holder name in cards, validation is added before creation of request to flag invalid data in case it is present.\r\nReference is taken from Visa Documetation\r\n<img width=\"889\" alt=\"image\" src=\"https://github.com/user-attachments/assets/02859794-8313-46fb-a2b2-33a009a03600\">\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\nTested through Postman:\r\n- Create a MCA (Cybersource):\r\n\r\nCase 1: Create a Payment with valid name:\r\n```\r\n{\r\n \"amount\": 499,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"customer_id\": \"test_rec7\",\r\n \"email\": \"guest@example.com\",\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"online\"\r\n },\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4242424242424242\",\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": \"Sakil Mostak\",\r\n \"card_cvc\": \"737\",\r\n \"card_network\": \"Visa\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"test\",\r\n \"country\": \"US\",\r\n \"line1\": \"here is some \\n there is some \\n none is some? \\n \",\r\n \"line2\": \"there\",\r\n \"line3\": \"anywhere\",\r\n \"zip\": \"560095\",\r\n \"state\": \"Washington\",\r\n \"first_name\": \"Sakil\",\r\n \"last_name\": \"Mostak\"\r\n },\r\n \"phone\": {\r\n \"number\": \"1234567890\",\r\n \"country_code\": \"+1\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"authentication_type\": \"no_three_ds\"\r\n}\r\n```\r\n\r\n- The payment should succeed, below is an example:\r\n```\r\n{\r\n \"payment_id\": \"pay_7YANCrkBMUVJngRBg36l\",\r\n \"merchant_id\": \"merchant_1737373987\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 499,\r\n \"net_amount\": 499,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 499,\r\n \"connector\": \"cybersource\",\r\n \"client_secret\": \"pay_7YANCrkBMUVJngRBg36l_secret_jp4t6pcoJTnMFrQsGd1R\",\r\n \"created\": \"2025-01-20T17:52:24.651Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"test_rec7\",\r\n \"customer\": {\r\n \"id\": \"test_rec7\",\r\n \"name\": null,\r\n \"email\": \"guest@example.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4242\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"424242\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": \"Sakil Mostak\",\r\n \"payment_checks\": {\r\n \"avs_response\": {\r\n \"code\": \"X\",\r\n \"codeRaw\": \"I1\"\r\n },\r\n \"card_verification\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_7usZJrOsD3Qoy6kLGDnQ\",\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"test\",\r\n \"country\": \"US\",\r\n \"line1\": \"here is some \\n there is some \\n none is some? \\n \",\r\n \"line2\": \"there\",\r\n \"line3\": \"anywhere\",\r\n \"zip\": \"560095\",\r\n \"state\": \"Washington\",\r\n \"first_name\": \"Sakil\",\r\n \"last_name\": \"Mostak\"\r\n },\r\n \"phone\": {\r\n \"number\": \"1234567890\",\r\n \"country_code\": \"+1\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"test_rec7\",\r\n \"created_at\": 1737395544,\r\n \"expires\": 1737399144,\r\n \"secret\": \"epk_b4c0b9ee60c844dd88e6cbc9daa9e7cb\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"7373955459786405604807\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"pay_7YANCrkBMUVJngRBg36l_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_VcDn0jWTcCmofCpz2CAH\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_KXO79qkYuOXsSZCYByGz\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-01-20T18:07:24.651Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-01-20T17:52:26.511Z\",\r\n \"charges\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\n\r\nCase 2: Create a Payment with invalid name:\r\n```\r\n{\r\n \"amount\": 499,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"customer_id\": \"test_rec7\",\r\n \"email\": \"guest@example.com\",\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"online\"\r\n },\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4242424242424242\",\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": \"S@k*l M0st@k\",\r\n \"card_cvc\": \"737\",\r\n \"card_network\": \"Visa\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"test\",\r\n \"country\": \"US\",\r\n \"line1\": \"here is some \\n there is some \\n none is some? \\n \",\r\n \"line2\": \"there\",\r\n \"line3\": \"anywhere\",\r\n \"zip\": \"560095\",\r\n \"state\": \"Washington\",\r\n \"first_name\": \"Sakil\",\r\n \"last_name\": \"Mostak\"\r\n },\r\n \"phone\": {\r\n \"number\": \"1234567890\",\r\n \"country_code\": \"+1\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"authentication_type\": \"no_three_ds\"\r\n}\r\n```\r\n\r\nResponse should contain 400 error with below response:\r\n```\r\n{\r\n \"error\": {\r\n \"error_type\": \"invalid_request\",\r\n \"message\": \"Json deserialize error: invalid character found in card holder name: @ at line 23 column 5\",\r\n \"code\": \"IR_06\"\r\n }\r\n}\r\n```\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [x] I added unit tests for my changes where possible\r\n",
5
+ "author": "Sakilmostak",
6
+ "created_at": "2024-12-03T14:27:45+00:00",
7
+ "merged_at": "2025-04-01T10:03:42+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-core",
11
+ "C-feature"
12
+ ],
13
+ "url": "https://github.com/juspay/hyperswitch/pull/6734",
14
+ "commits": [
15
+ {
16
+ "sha": "1d18cce9c8b8ae465b70d9662cb6000de31f7385",
17
+ "message": "feat: add card_holder_name validation",
18
+ "author": "Sk Sakil Mostak",
19
+ "date": "2024-12-03T14:23:55+00:00",
20
+ "url": "https://github.com/juspay/hyperswitch/commit/1d18cce9c8b8ae465b70d9662cb6000de31f7385"
21
+ },
22
+ {
23
+ "sha": "6bfa78e182265a7a5082edc65621939f4fc6ad46",
24
+ "message": "refactor: spell check",
25
+ "author": "Sk Sakil Mostak",
26
+ "date": "2024-12-03T14:38:24+00:00",
27
+ "url": "https://github.com/juspay/hyperswitch/commit/6bfa78e182265a7a5082edc65621939f4fc6ad46"
28
+ },
29
+ {
30
+ "sha": "8d5c164b2021a63430941d5e8974ce1e43344d67",
31
+ "message": "feat: add unit test cases",
32
+ "author": "Sk Sakil Mostak",
33
+ "date": "2024-12-04T10:18:41+00:00",
34
+ "url": "https://github.com/juspay/hyperswitch/commit/8d5c164b2021a63430941d5e8974ce1e43344d67"
35
+ },
36
+ {
37
+ "sha": "0793d2b0f131bb3cec43a7423b9ef630632e403f",
38
+ "message": "refactor: use unified billing address for payment confirm test",
39
+ "author": "Sk Sakil Mostak",
40
+ "date": "2024-12-04T11:03:18+00:00",
41
+ "url": "https://github.com/juspay/hyperswitch/commit/0793d2b0f131bb3cec43a7423b9ef630632e403f"
42
+ },
43
+ {
44
+ "sha": "8cadc2f1e6e25e150930fb7091c19da9a74b4621",
45
+ "message": "refactor: resolve ci checks",
46
+ "author": "Sk Sakil Mostak",
47
+ "date": "2024-12-04T12:28:43+00:00",
48
+ "url": "https://github.com/juspay/hyperswitch/commit/8cadc2f1e6e25e150930fb7091c19da9a74b4621"
49
+ },
50
+ {
51
+ "sha": "62b63b6c3acd5325b7eb402f845486c687ba0a58",
52
+ "message": "feat: add nametype and implement in domain crate",
53
+ "author": "Sk Sakil Mostak",
54
+ "date": "2024-12-15T16:37:59+00:00",
55
+ "url": "https://github.com/juspay/hyperswitch/commit/62b63b6c3acd5325b7eb402f845486c687ba0a58"
56
+ },
57
+ {
58
+ "sha": "4397e2736a42151e7f1aa095ace9ac00754919b2",
59
+ "message": "feat: add nametype to router crate",
60
+ "author": "Sk Sakil Mostak",
61
+ "date": "2024-12-16T06:57:34+00:00",
62
+ "url": "https://github.com/juspay/hyperswitch/commit/4397e2736a42151e7f1aa095ace9ac00754919b2"
63
+ },
64
+ {
65
+ "sha": "f8980db27e5fd1dad49308c1bcf65e1652583b57",
66
+ "message": "refactor: unit tests",
67
+ "author": "Sk Sakil Mostak",
68
+ "date": "2024-12-20T12:46:29+00:00",
69
+ "url": "https://github.com/juspay/hyperswitch/commit/f8980db27e5fd1dad49308c1bcf65e1652583b57"
70
+ },
71
+ {
72
+ "sha": "998f9900c6db0976ca0492b0569614fc4e1f3407",
73
+ "message": "refactor: nametype implementation for v2",
74
+ "author": "Sk Sakil Mostak",
75
+ "date": "2024-12-20T13:27:53+00:00",
76
+ "url": "https://github.com/juspay/hyperswitch/commit/998f9900c6db0976ca0492b0569614fc4e1f3407"
77
+ },
78
+ {
79
+ "sha": "d06e84be54b5cf9386517e6c7ecb7bf7a06f6e05",
80
+ "message": "refactor: resolve merge main",
81
+ "author": "Sk Sakil Mostak",
82
+ "date": "2024-12-23T08:49:06+00:00",
83
+ "url": "https://github.com/juspay/hyperswitch/commit/d06e84be54b5cf9386517e6c7ecb7bf7a06f6e05"
84
+ },
85
+ {
86
+ "sha": "5199422d15955460762666c932355536fe363e9e",
87
+ "message": "refactor: conversion",
88
+ "author": "Sk Sakil Mostak",
89
+ "date": "2024-12-30T11:56:21+00:00",
90
+ "url": "https://github.com/juspay/hyperswitch/commit/5199422d15955460762666c932355536fe363e9e"
91
+ },
92
+ {
93
+ "sha": "53e92b4b00035ab38349bc773b88dfd6646dbf39",
94
+ "message": "refactor: resolve comment",
95
+ "author": "Sk Sakil Mostak",
96
+ "date": "2025-01-14T14:59:15+00:00",
97
+ "url": "https://github.com/juspay/hyperswitch/commit/53e92b4b00035ab38349bc773b88dfd6646dbf39"
98
+ },
99
+ {
100
+ "sha": "7aef96ea7ee2604acf7c36a63d1a73d093c14b70",
101
+ "message": "refactor: resolve comments",
102
+ "author": "Sk Sakil Mostak",
103
+ "date": "2025-01-14T16:45:38+00:00",
104
+ "url": "https://github.com/juspay/hyperswitch/commit/7aef96ea7ee2604acf7c36a63d1a73d093c14b70"
105
+ },
106
+ {
107
+ "sha": "e377b2b073d60fd87d05593e730a00026adc65bd",
108
+ "message": "refactor: minimum allowed size is zero",
109
+ "author": "Sk Sakil Mostak",
110
+ "date": "2025-01-15T10:31:55+00:00",
111
+ "url": "https://github.com/juspay/hyperswitch/commit/e377b2b073d60fd87d05593e730a00026adc65bd"
112
+ },
113
+ {
114
+ "sha": "56a0254e5ede3b39b4bbece6622c14652d0f7102",
115
+ "message": "Merge branch 'main' into card_holder_name_validator",
116
+ "author": "Sk Sakil Mostak",
117
+ "date": "2025-01-17T08:27:51+00:00",
118
+ "url": "https://github.com/juspay/hyperswitch/commit/56a0254e5ede3b39b4bbece6622c14652d0f7102"
119
+ },
120
+ {
121
+ "sha": "8ebd788e6035c9331c60b38418ec2b5058bb8860",
122
+ "message": "refactor: resolve conflict with main",
123
+ "author": "Sk Sakil Mostak",
124
+ "date": "2025-01-17T08:53:18+00:00",
125
+ "url": "https://github.com/juspay/hyperswitch/commit/8ebd788e6035c9331c60b38418ec2b5058bb8860"
126
+ },
127
+ {
128
+ "sha": "6ae7480bb3b4728e2ff3153665ed5b0ac0a8b973",
129
+ "message": "refactor: resolve comments",
130
+ "author": "Sk Sakil Mostak",
131
+ "date": "2025-01-20T17:45:53+00:00",
132
+ "url": "https://github.com/juspay/hyperswitch/commit/6ae7480bb3b4728e2ff3153665ed5b0ac0a8b973"
133
+ },
134
+ {
135
+ "sha": "4ead56c152a3b2c6956e9e516374b066fea25885",
136
+ "message": "refactor: resolve comments",
137
+ "author": "Sk Sakil Mostak",
138
+ "date": "2025-01-23T12:00:23+00:00",
139
+ "url": "https://github.com/juspay/hyperswitch/commit/4ead56c152a3b2c6956e9e516374b066fea25885"
140
+ },
141
+ {
142
+ "sha": "f5406eabfc848282cc7bdd7772569a6af5a95a7b",
143
+ "message": "Merge branch 'main' into card_holder_name_validator",
144
+ "author": "Sk Sakil Mostak",
145
+ "date": "2025-01-27T10:20:19+00:00",
146
+ "url": "https://github.com/juspay/hyperswitch/commit/f5406eabfc848282cc7bdd7772569a6af5a95a7b"
147
+ },
148
+ {
149
+ "sha": "dc70eca5f961ede39544fa10a001602ba35ef6de",
150
+ "message": "refactor: resolve comments",
151
+ "author": "Sk Sakil Mostak",
152
+ "date": "2025-02-05T12:16:28+00:00",
153
+ "url": "https://github.com/juspay/hyperswitch/commit/dc70eca5f961ede39544fa10a001602ba35ef6de"
154
+ },
155
+ {
156
+ "sha": "b9cb94cd6d2068fa9213c999db7c08972bb636d6",
157
+ "message": "Merge branch 'main' into card_holder_name_validator",
158
+ "author": "Sk Sakil Mostak",
159
+ "date": "2025-02-06T19:48:54+00:00",
160
+ "url": "https://github.com/juspay/hyperswitch/commit/b9cb94cd6d2068fa9213c999db7c08972bb636d6"
161
+ },
162
+ {
163
+ "sha": "f04391ac2e720ff3d6ab0ac796fc820bb58960ef",
164
+ "message": "refactor: resolve conflict with main",
165
+ "author": "Sk Sakil Mostak",
166
+ "date": "2025-02-06T20:35:23+00:00",
167
+ "url": "https://github.com/juspay/hyperswitch/commit/f04391ac2e720ff3d6ab0ac796fc820bb58960ef"
168
+ },
169
+ {
170
+ "sha": "a3ef9d603996735bf76c96a5962bc6c095cee36b",
171
+ "message": "Merge branch 'main' into card_holder_name_validator",
172
+ "author": "Sk Sakil Mostak",
173
+ "date": "2025-02-07T09:56:17+00:00",
174
+ "url": "https://github.com/juspay/hyperswitch/commit/a3ef9d603996735bf76c96a5962bc6c095cee36b"
175
+ },
176
+ {
177
+ "sha": "3e58bddd4adf64ae4e6b46026e7c5c1b020deaea",
178
+ "message": "Merge branch 'main' into card_holder_name_validator",
179
+ "author": "Sk Sakil Mostak",
180
+ "date": "2025-02-10T07:54:23+00:00",
181
+ "url": "https://github.com/juspay/hyperswitch/commit/3e58bddd4adf64ae4e6b46026e7c5c1b020deaea"
182
+ },
183
+ {
184
+ "sha": "170ed95d94158f2829ea24493b4a73e2dc10035b",
185
+ "message": "Merge branch 'main' into card_holder_name_validator",
186
+ "author": "Sk Sakil Mostak",
187
+ "date": "2025-02-14T09:21:26+00:00",
188
+ "url": "https://github.com/juspay/hyperswitch/commit/170ed95d94158f2829ea24493b4a73e2dc10035b"
189
+ },
190
+ {
191
+ "sha": "8b7319e4b043d8eb26c1428a465d339c0c0af7e7",
192
+ "message": "refactor(utils): use to_state_code of hyperswitch_connectors in router (#7278)",
193
+ "author": "Sk Sakil Mostak",
194
+ "date": "2025-02-19T07:53:30+00:00",
195
+ "url": "https://github.com/juspay/hyperswitch/commit/8b7319e4b043d8eb26c1428a465d339c0c0af7e7"
196
+ },
197
+ {
198
+ "sha": "e5653114c2d7f02d62159bf5b7d3a38f9de93f51",
199
+ "message": "refactor: resolve conflct with main",
200
+ "author": "Sk Sakil Mostak",
201
+ "date": "2025-02-21T09:20:34+00:00",
202
+ "url": "https://github.com/juspay/hyperswitch/commit/e5653114c2d7f02d62159bf5b7d3a38f9de93f51"
203
+ },
204
+ {
205
+ "sha": "1cea81b6ba340e847ce8ecffe9a3c21638decad3",
206
+ "message": "Merge branch 'main' into card_holder_name_validator",
207
+ "author": "Sk Sakil Mostak",
208
+ "date": "2025-03-03T06:25:01+00:00",
209
+ "url": "https://github.com/juspay/hyperswitch/commit/1cea81b6ba340e847ce8ecffe9a3c21638decad3"
210
+ },
211
+ {
212
+ "sha": "f97af3cd02bf82d57f045da45e9bdc33bd141ad5",
213
+ "message": "Merge branch 'main' into card_holder_name_validator",
214
+ "author": "Sk Sakil Mostak",
215
+ "date": "2025-03-03T12:13:24+00:00",
216
+ "url": "https://github.com/juspay/hyperswitch/commit/f97af3cd02bf82d57f045da45e9bdc33bd141ad5"
217
+ },
218
+ {
219
+ "sha": "3c0e12924b5effb2e6e3c518d99a8ea73a60e374",
220
+ "message": "Merge branch 'main' into card_holder_name_validator",
221
+ "author": "Sk Sakil Mostak",
222
+ "date": "2025-03-04T07:07:24+00:00",
223
+ "url": "https://github.com/juspay/hyperswitch/commit/3c0e12924b5effb2e6e3c518d99a8ea73a60e374"
224
+ },
225
+ {
226
+ "sha": "c4d4859a03ce01d68070ae3523257db5c493fd9b",
227
+ "message": "refactor: resolve conflict with main",
228
+ "author": "Sk Sakil Mostak",
229
+ "date": "2025-03-04T10:12:56+00:00",
230
+ "url": "https://github.com/juspay/hyperswitch/commit/c4d4859a03ce01d68070ae3523257db5c493fd9b"
231
+ },
232
+ {
233
+ "sha": "04ecc2b1412b9558a3b87d165f052744224add5f",
234
+ "message": "Merge branch 'main' into card_holder_name_validator",
235
+ "author": "Sk Sakil Mostak",
236
+ "date": "2025-03-13T06:51:35+00:00",
237
+ "url": "https://github.com/juspay/hyperswitch/commit/04ecc2b1412b9558a3b87d165f052744224add5f"
238
+ },
239
+ {
240
+ "sha": "85592d896c3ab7e6573046226e87afbae51bdbfa",
241
+ "message": "refactor: update with latest changes in main",
242
+ "author": "Sk Sakil Mostak",
243
+ "date": "2025-03-13T07:45:11+00:00",
244
+ "url": "https://github.com/juspay/hyperswitch/commit/85592d896c3ab7e6573046226e87afbae51bdbfa"
245
+ },
246
+ {
247
+ "sha": "9d0ff6b8a6ec8118c8087d8706dc5053c16fe287",
248
+ "message": "Merge branch 'main' into card_holder_name_validator",
249
+ "author": "Sk Sakil Mostak",
250
+ "date": "2025-03-17T04:55:42+00:00",
251
+ "url": "https://github.com/juspay/hyperswitch/commit/9d0ff6b8a6ec8118c8087d8706dc5053c16fe287"
252
+ },
253
+ {
254
+ "sha": "0a3d671f82eb927c77a56a765e0abb339efda7b3",
255
+ "message": "refactor: resolve comments",
256
+ "author": "Sk Sakil Mostak",
257
+ "date": "2025-03-21T12:42:01+00:00",
258
+ "url": "https://github.com/juspay/hyperswitch/commit/0a3d671f82eb927c77a56a765e0abb339efda7b3"
259
+ },
260
+ {
261
+ "sha": "38086e8a2c840f3e6ef0d238b944fdee8affa143",
262
+ "message": "refactor: resolve comments",
263
+ "author": "Sk Sakil Mostak",
264
+ "date": "2025-03-21T19:32:45+00:00",
265
+ "url": "https://github.com/juspay/hyperswitch/commit/38086e8a2c840f3e6ef0d238b944fdee8affa143"
266
+ },
267
+ {
268
+ "sha": "5d6f6eb08bb719a919a706349752a5e92e3570d7",
269
+ "message": "refactor: remove try_from of NameType from Optional value",
270
+ "author": "Sk Sakil Mostak",
271
+ "date": "2025-03-25T07:10:10+00:00",
272
+ "url": "https://github.com/juspay/hyperswitch/commit/5d6f6eb08bb719a919a706349752a5e92e3570d7"
273
+ },
274
+ {
275
+ "sha": "e1fb40aaaae6447d94ab87e58684affb9e56d242",
276
+ "message": "chore: merge main",
277
+ "author": "Sk Sakil Mostak",
278
+ "date": "2025-03-27T08:16:45+00:00",
279
+ "url": "https://github.com/juspay/hyperswitch/commit/e1fb40aaaae6447d94ab87e58684affb9e56d242"
280
+ },
281
+ {
282
+ "sha": "b830c169e95e74884719aa37142fb660a1bc1842",
283
+ "message": "refactor: merge main",
284
+ "author": "Sk Sakil Mostak",
285
+ "date": "2025-03-27T08:48:42+00:00",
286
+ "url": "https://github.com/juspay/hyperswitch/commit/b830c169e95e74884719aa37142fb660a1bc1842"
287
+ },
288
+ {
289
+ "sha": "648512312722979ccef86969aaa122827ad3b94a",
290
+ "message": "Merge branch 'main' into card_holder_name_validator",
291
+ "author": "Sk Sakil Mostak",
292
+ "date": "2025-03-27T09:36:08+00:00",
293
+ "url": "https://github.com/juspay/hyperswitch/commit/648512312722979ccef86969aaa122827ad3b94a"
294
+ }
295
+ ]
296
+ }
prs/pr_6755.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 6755,
3
+ "title": "feat(connector): [INESPAY] Integrate Sepa Bank Debit",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nAdded payment flows (Auth, PSync, Refund, RSync, and Webhooks) for Inespay Sepa Bank Debit.\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n1. Merchant Account Create\r\n2. API Key Create\r\n3.Inespay Connector Create:\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1736331946/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data '{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"inespay\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"BodyKey\",\r\n \"api_key\": \"abc\",\r\n \"key1\": \"abc\"\r\n },\r\n \"test_mode\": false,\r\n \"disabled\": false,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"bank_debit\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"sepa\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n }\r\n ]\r\n }\r\n ],\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"abc\",\r\n \"additional_secret\": null\r\n }\r\n}'\r\n```\r\n\r\n4. Payments Create:\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_t54RQO5Ci3L3J3sV0GFUeySuR0d3zPe66OxpRV8qKD3Th7Pyquxxro6afDNCapom' \\\r\n--data '{\r\n \"amount\": 6540,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"amount_to_capture\": 6540,\r\n \"customer_id\": \"StripbmnxeCustomer\",\r\n \"description\": \"Its my first payment request\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"bank_debit\",\r\n \"payment_method_type\": \"sepa\",\r\n \"payment_method_data\": {\r\n \"bank_debit\": {\r\n \"sepa_bank_debit\": {\r\n \"iban\": \"ES5031831357110123456789\"\r\n }\r\n }\r\n }\r\n}'\r\n```\r\n\r\nResponse:\r\n```\r\n{\r\n \"payment_id\": \"pay_2hUGMfU0Wv31Gn3unXgG\",\r\n \"merchant_id\": \"merchant_1736331946\",\r\n \"status\": \"requires_customer_action\",\r\n \"amount\": 6540,\r\n \"net_amount\": 6540,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 6540,\r\n \"amount_received\": null,\r\n \"connector\": \"inespay\",\r\n \"client_secret\": \"pay_2hUGMfU0Wv31Gn3unXgG_secret_iYsSbpRHSGd4bEJ3OBET\",\r\n \"created\": \"2025-01-09T08:55:12.497Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"bank_debit\",\r\n \"payment_method_data\": {\r\n \"bank_debit\": {\r\n \"sepa\": {\r\n \"iban\": \"ES503**************56789\",\r\n \"bank_account_holder_name\": null\r\n }\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": {\r\n \"type\": \"redirect_to_url\",\r\n \"redirect_to_url\": \"http://localhost:8080/payments/redirect/pay_2hUGMfU0Wv31Gn3unXgG/merchant_1736331946/pay_2hUGMfU0Wv31Gn3unXgG_1\"\r\n },\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"sepa\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"StripeCustomer\",\r\n \"created_at\": 1736412912,\r\n \"expires\": 1736416512,\r\n \"secret\": \"epk_a8553335e63d4417ba67bfe8301b8799\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"PMWC9HMC-E37E-I83G-FZWOCP9S2GDVX8ZD\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\",\r\n \"new_customer\": \"true\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_oPMGl04eyRD2pY0laexI\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_RTX0eIQOVWNhcTAeKXQQ\",\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-01-09T09:10:12.497Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-01-09T08:55:13.385Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\n\r\n5. Payments Retrieve:\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_xoODE5mPdtuN8tr5xyMz?force_sync=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_t54RQO5Ci3L3J3sV0GFUeySuR0d3zPe66OxpRV8qKD3Th7Pyquxxro6afDNCapom'\r\n```\r\n\r\nResponse:\r\n```\r\n{\r\n \"payment_id\": \"pay_TcadxZAWM2P3PjWJ7PRC\",\r\n \"merchant_id\": \"merchant_1736331946\",\r\n \"status\": \"requires_customer_action\",\r\n \"amount\": 6540,\r\n \"net_amount\": 6540,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 6540,\r\n \"amount_received\": null,\r\n \"connector\": \"inespay\",\r\n \"client_secret\": \"pay_TcadxZAWM2P3PjWJ7PRC_secret_xpi5fQgZ7uqbr42h1uxt\",\r\n \"created\": \"2025-01-09T08:44:46.048Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"bank_debit\",\r\n \"payment_method_data\": {\r\n \"bank_debit\": {\r\n \"sepa\": {\r\n \"iban\": \"ES113**************40674\",\r\n \"bank_account_holder_name\": null\r\n }\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": {\r\n \"type\": \"redirect_to_url\",\r\n \"redirect_to_url\": \"http://localhost:8080/payments/redirect/pay_TcadxZAWM2P3PjWJ7PRC/merchant_1736331946/pay_TcadxZAWM2P3PjWJ7PRC_1\"\r\n },\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"sepa\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"BKBBNZ68-17K5-B4SL-LTC0545XW13LKIBK\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\",\r\n \"new_customer\": \"true\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_oPMGl04eyRD2pY0laexI\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_RTX0eIQOVWNhcTAeKXQQ\",\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-01-09T08:59:46.047Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-01-09T08:45:37.239Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\n6. Refunds:\r\n```\r\ncurl --location 'http://localhost:8080/refunds' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_J5g19W9vemKtoeyfLV5hBEovbKns39FLpAxqj8SnuDnFdLCJcIHJX928eOVl8nkd' \\\r\n--data '{\r\n \"payment_id\": \"pay_2hUGMfU0Wv31Gn3unXgG\",\r\n \"amount\": 600,\r\n \"reason\": \"Customer returned product\",\r\n \"refund_type\": \"instant\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n }\r\n}'\r\n```\r\n7. Refunds Retrieve:\r\n```\r\ncurl --location 'http://localhost:8080/refunds/' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_J5g19W9vemKtoeyfLV5hBEovbKns39FLpAxqj8SnuDnFdLCJcIHJX928eOVl8nkd'\r\n```\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "ImSagnik007",
6
+ "created_at": "2024-12-05T08:14:02+00:00",
7
+ "merged_at": "2025-02-05T15:18:13+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-connector-integration",
11
+ "M-api-contract-changes"
12
+ ],
13
+ "url": "https://github.com/juspay/hyperswitch/pull/6755",
14
+ "commits": [
15
+ {
16
+ "sha": "78ddae0d6643a473550b79716d6eff013a1a9096",
17
+ "message": "inespay sepa bank debit auth and psync flow",
18
+ "author": "Sagnik Mitra",
19
+ "date": "2024-12-05T08:16:29+00:00",
20
+ "url": "https://github.com/juspay/hyperswitch/commit/78ddae0d6643a473550b79716d6eff013a1a9096"
21
+ },
22
+ {
23
+ "sha": "811569c30f5818c5f9bcaf7f9cdd27bb25737df3",
24
+ "message": "refund implementation inespay",
25
+ "author": "Sagnik Mitra",
26
+ "date": "2024-12-05T13:33:45+00:00",
27
+ "url": "https://github.com/juspay/hyperswitch/commit/811569c30f5818c5f9bcaf7f9cdd27bb25737df3"
28
+ },
29
+ {
30
+ "sha": "5f20415808c31ed3e77f8ae8b4419590b140219e",
31
+ "message": "Inespay webhooks",
32
+ "author": "Sagnik Mitra",
33
+ "date": "2024-12-30T09:30:54+00:00",
34
+ "url": "https://github.com/juspay/hyperswitch/commit/5f20415808c31ed3e77f8ae8b4419590b140219e"
35
+ },
36
+ {
37
+ "sha": "a795500f0b603efed60bcba5427eae7c7084b780",
38
+ "message": "Inespay webhook fix",
39
+ "author": "Sagnik Mitra",
40
+ "date": "2025-01-15T17:21:40+00:00",
41
+ "url": "https://github.com/juspay/hyperswitch/commit/a795500f0b603efed60bcba5427eae7c7084b780"
42
+ },
43
+ {
44
+ "sha": "606831bec193d133a0bf4dc0cda7479164c328a6",
45
+ "message": "Added currency filter",
46
+ "author": "Sagnik Mitra",
47
+ "date": "2025-01-16T10:41:32+00:00",
48
+ "url": "https://github.com/juspay/hyperswitch/commit/606831bec193d133a0bf4dc0cda7479164c328a6"
49
+ },
50
+ {
51
+ "sha": "b6676b4130d1cb2866b579f5d21d2458a49dba14",
52
+ "message": "chore: run formatter",
53
+ "author": "hyperswitch-bot[bot]",
54
+ "date": "2025-01-20T05:23:19+00:00",
55
+ "url": "https://github.com/juspay/hyperswitch/commit/b6676b4130d1cb2866b579f5d21d2458a49dba14"
56
+ },
57
+ {
58
+ "sha": "f5862510593c12fb91f2e158401fb61fdb67de4d",
59
+ "message": "docs(openapi): re-generate OpenAPI specification",
60
+ "author": "hyperswitch-bot[bot]",
61
+ "date": "2025-01-20T05:26:17+00:00",
62
+ "url": "https://github.com/juspay/hyperswitch/commit/f5862510593c12fb91f2e158401fb61fdb67de4d"
63
+ }
64
+ ]
65
+ }
prs/pr_6796.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 6796,
3
+ "title": "ci(cypress): Add testcases for unified error code and message",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [x] CI/CD\r\n\r\n## Description\r\n\r\n Added the testcases for unified error code and error message for stripe and adyen connector. And added failure payments testcases.\r\n\r\n\r\n## How did you test it?\r\n\r\nStripe\r\n<img width=\"729\" alt=\"Screenshot 2024-12-10 at 7 58 49\u202fPM\" src=\"https://github.com/user-attachments/assets/1b7cc860-4d07-4891-b839-08749bb850d0\">\r\n\r\nAdyen\r\n<img width=\"730\" alt=\"Screenshot 2024-12-10 at 8 01 29\u202fPM\" src=\"https://github.com/user-attachments/assets/4c72db4f-206f-4467-9af2-b31a149e3c07\">\r\n\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "Gnanasundari24",
6
+ "created_at": "2024-12-10T14:32:00+00:00",
7
+ "merged_at": "2024-12-13T08:25:47+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "C-test"
11
+ ],
12
+ "url": "https://github.com/juspay/hyperswitch/pull/6796",
13
+ "commits": [
14
+ {
15
+ "sha": "23586a752e0eb454c775149dae08701114fb1e3f",
16
+ "message": "ci(cypress): Add testcases for unified error code and message",
17
+ "author": "gnanasundarig",
18
+ "date": "2024-12-10T14:20:25+00:00",
19
+ "url": "https://github.com/juspay/hyperswitch/commit/23586a752e0eb454c775149dae08701114fb1e3f"
20
+ },
21
+ {
22
+ "sha": "a55658dcf04a1e61a866a4394a15d7d7ad7ad76b",
23
+ "message": "ci(cypress): Addressed the comments",
24
+ "author": "gnanasundarig",
25
+ "date": "2024-12-11T07:35:12+00:00",
26
+ "url": "https://github.com/juspay/hyperswitch/commit/a55658dcf04a1e61a866a4394a15d7d7ad7ad76b"
27
+ }
28
+ ]
29
+ }
prs/pr_6827.json ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 6827,
3
+ "title": "feat(redis-interface): add redis interface command to set multiple the keys in redis and increment if the key already exists",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\nadd redis interface command to set multiple the keys in redis and increment if the key already exists\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n \r\n - Wrote a unit test to insert the keys\r\n<img width=\"1725\" alt=\"Screenshot 2024-12-13 at 1 05 33\u202fPM\" src=\"https://github.com/user-attachments/assets/5165c747-6e53-4db2-9dce-6aa338c33517\" />\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "Aprabhat19",
6
+ "created_at": "2024-12-12T11:51:49+00:00",
7
+ "merged_at": "2024-12-17T10:49:01+00:00",
8
+ "base_branch": "main",
9
+ "labels": [],
10
+ "url": "https://github.com/juspay/hyperswitch/pull/6827",
11
+ "commits": [
12
+ {
13
+ "sha": "3f4b9266855ce7a6a78b465a599b98e99e31b5e8",
14
+ "message": "add redis interface command to set multiple the keys in redis",
15
+ "author": "Aprabhat19",
16
+ "date": "2024-12-12T11:41:46+00:00",
17
+ "url": "https://github.com/juspay/hyperswitch/commit/3f4b9266855ce7a6a78b465a599b98e99e31b5e8"
18
+ },
19
+ {
20
+ "sha": "4277780b3524863293b87ac67668af92f34a77e8",
21
+ "message": "chore: run formatter",
22
+ "author": "hyperswitch-bot[bot]",
23
+ "date": "2024-12-12T11:52:51+00:00",
24
+ "url": "https://github.com/juspay/hyperswitch/commit/4277780b3524863293b87ac67668af92f34a77e8"
25
+ },
26
+ {
27
+ "sha": "0d01c27b91d8c1e94a4de70a66df21f6c90e6502",
28
+ "message": "change the number of keys in test",
29
+ "author": "Aprabhat19",
30
+ "date": "2024-12-12T11:54:42+00:00",
31
+ "url": "https://github.com/juspay/hyperswitch/commit/0d01c27b91d8c1e94a4de70a66df21f6c90e6502"
32
+ },
33
+ {
34
+ "sha": "5b9b3a93733234305d7f1744e1ce5578bde1ecbd",
35
+ "message": "Merge branch 'add-redis-script' of https://github.com/juspay/hyperswitch into add-redis-script",
36
+ "author": "Aprabhat19",
37
+ "date": "2024-12-12T11:55:22+00:00",
38
+ "url": "https://github.com/juspay/hyperswitch/commit/5b9b3a93733234305d7f1744e1ce5578bde1ecbd"
39
+ },
40
+ {
41
+ "sha": "218c46d466ba2b2131dea26aae9561b6901e6594",
42
+ "message": "fix clippy lints",
43
+ "author": "Aprabhat19",
44
+ "date": "2024-12-12T12:23:14+00:00",
45
+ "url": "https://github.com/juspay/hyperswitch/commit/218c46d466ba2b2131dea26aae9561b6901e6594"
46
+ },
47
+ {
48
+ "sha": "bcf6fafd1afe2c34e7573d50f0312ac7c0bf4e9f",
49
+ "message": "change error message",
50
+ "author": "Aprabhat19",
51
+ "date": "2024-12-12T12:31:23+00:00",
52
+ "url": "https://github.com/juspay/hyperswitch/commit/bcf6fafd1afe2c34e7573d50f0312ac7c0bf4e9f"
53
+ },
54
+ {
55
+ "sha": "2adadecf4a9a3efd85ba652a653c34f9c0e83172",
56
+ "message": "move the script to a file",
57
+ "author": "Aprabhat19",
58
+ "date": "2024-12-13T07:30:49+00:00",
59
+ "url": "https://github.com/juspay/hyperswitch/commit/2adadecf4a9a3efd85ba652a653c34f9c0e83172"
60
+ },
61
+ {
62
+ "sha": "466513e56c4241ee9aa87430d35bc79e452f8146",
63
+ "message": "move script to new file",
64
+ "author": "Aprabhat19",
65
+ "date": "2024-12-13T07:37:03+00:00",
66
+ "url": "https://github.com/juspay/hyperswitch/commit/466513e56c4241ee9aa87430d35bc79e452f8146"
67
+ },
68
+ {
69
+ "sha": "6c768f8bce03f79f625a51bf2149054853963af1",
70
+ "message": "address comments",
71
+ "author": "Aprabhat19",
72
+ "date": "2024-12-13T11:52:27+00:00",
73
+ "url": "https://github.com/juspay/hyperswitch/commit/6c768f8bce03f79f625a51bf2149054853963af1"
74
+ },
75
+ {
76
+ "sha": "b5e7b2ba5904ef228ad631b1ed97404886368b75",
77
+ "message": "make the lua script generic",
78
+ "author": "Aprabhat19",
79
+ "date": "2024-12-13T13:19:44+00:00",
80
+ "url": "https://github.com/juspay/hyperswitch/commit/b5e7b2ba5904ef228ad631b1ed97404886368b75"
81
+ },
82
+ {
83
+ "sha": "e8d65b812974dc278a363aac70aa8879fe7daa16",
84
+ "message": "make generic values",
85
+ "author": "Aprabhat19",
86
+ "date": "2024-12-13T13:47:42+00:00",
87
+ "url": "https://github.com/juspay/hyperswitch/commit/e8d65b812974dc278a363aac70aa8879fe7daa16"
88
+ },
89
+ {
90
+ "sha": "d4e9a7ea3d0874364ca6d2cadcfb37593a0917e8",
91
+ "message": "Update crates/redis_interface/src/commands.rs\n\nCo-authored-by: Nishant Joshi <nishant.joshi@juspay.in>",
92
+ "author": "Amisha Prabhat",
93
+ "date": "2024-12-15T14:46:59+00:00",
94
+ "url": "https://github.com/juspay/hyperswitch/commit/d4e9a7ea3d0874364ca6d2cadcfb37593a0917e8"
95
+ }
96
+ ]
97
+ }
prs/pr_6855.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 6855,
3
+ "title": "fix(core): Populate off_session based on payments request",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n`off_session` value needs to be populated based on the value passed in the payment request instead of mapping it using `mandate_id`\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\nhttps://github.com/juspay/hyperswitch/issues/6856\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nSaved card payment flow via Stripe needs to be tested\r\nPayments Intent:\r\nRequest:\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_6xYIfowUNa5WtbnutyrwXVAoMGqGjUuhfgSksLrTFWMVhcrdDgOoGAwKMt7xIman' \\\r\n--data-raw '{\r\n \"amount\": 6777,\r\n \"currency\": \"USD\",\r\n \"confirm\": false,\r\n \"customer_id\": \"new-c77\",\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \"email\": \"something@gmail.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"Its my first payment request\",\r\n \"setup_future_usage\": \"off_session\",\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"connector_metadata\": {\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n }\r\n}'\r\n```\r\n\r\nResponse:\r\n```\r\n{\r\n \"payment_id\": \"pay_FqbEWnqUDYTqn1COTWBA\",\r\n \"merchant_id\": \"merchant_1734419321\",\r\n \"status\": \"requires_payment_method\",\r\n \"amount\": 6777,\r\n \"net_amount\": 6777,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": null,\r\n \"client_secret\": \"pay_FqbEWnqUDYTqn1COTWBA_secret_4uHf7pszEzRmtRlQTotG\",\r\n \"created\": \"2024-12-17T07:08:58.987Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"new-c77\",\r\n \"customer\": {\r\n \"id\": \"new-c77\",\r\n \"name\": \"Joseph Doe\",\r\n \"email\": \"something@gmail.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": null,\r\n \"payment_method_data\": null,\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"something@gmail.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": null,\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"new-c77\",\r\n \"created_at\": 1734419338,\r\n \"expires\": 1734422938,\r\n \"secret\": \"epk_9db0e66a58de4f31b621d9a834c2d61a\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": null,\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": {\r\n \"apple_pay\": null,\r\n \"airwallex\": null,\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n },\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_6YmHK5p4Nga5XxEjoUBW\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": null,\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2024-12-17T07:23:58.987Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2024-12-17T07:08:59.027Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\n\r\nPayments Confirm:\r\nRequest:\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_FqbEWnqUDYTqn1COTWBA/confirm' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_6xYIfowUNa5WtbnutyrwXVAoMGqGjUuhfgSksLrTFWMVhcrdDgOoGAwKMt7xIman' \\\r\n--data '{\r\n \"confirm\": true,\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_token\": \"token_9SsS9D4o2NfnAXtXm2FO\"\r\n}'\r\n```\r\n\r\nResponse:\r\n```\r\n{\r\n \"payment_id\": \"pay_FqbEWnqUDYTqn1COTWBA\",\r\n \"merchant_id\": \"merchant_1734419321\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 6777,\r\n \"net_amount\": 6777,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 6777,\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"pay_FqbEWnqUDYTqn1COTWBA_secret_4uHf7pszEzRmtRlQTotG\",\r\n \"created\": \"2024-12-17T07:08:58.987Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"new-c77\",\r\n \"customer\": {\r\n \"id\": \"new-c77\",\r\n \"name\": \"Joseph Doe\",\r\n \"email\": \"something@gmail.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"4242\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"424242\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_9SsS9D4o2NfnAXtXm2FO\",\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"something@gmail.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"pi_3QWuuGD5R7gDAGff0mzx08ix\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": {\r\n \"apple_pay\": null,\r\n \"airwallex\": null,\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n },\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"pi_3QWuuGD5R7gDAGff0mzx08ix\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_6YmHK5p4Nga5XxEjoUBW\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_SvilGuZ7pklt1HOzqu1m\",\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2024-12-17T07:23:58.987Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": null,\r\n \"time_zone\": null,\r\n \"ip_address\": \"::1\",\r\n \"user_agent\": null,\r\n \"color_depth\": null,\r\n \"java_enabled\": null,\r\n \"screen_width\": null,\r\n \"accept_header\": null,\r\n \"screen_height\": null,\r\n \"java_script_enabled\": null\r\n },\r\n \"payment_method_id\": \"pm_awj5TPhYRnMWDQfvPdcw\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2024-12-17T07:09:25.523Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"pm_1QWutnD5R7gDAGffcNKrApAS\"\r\n}\r\n```\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "deepanshu-iiitu",
6
+ "created_at": "2024-12-16T13:39:34+00:00",
7
+ "merged_at": "2024-12-17T13:31:21+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-core",
11
+ "C-bug"
12
+ ],
13
+ "url": "https://github.com/juspay/hyperswitch/pull/6855",
14
+ "commits": [
15
+ {
16
+ "sha": "e197e81f104c7e7eadb51c2cd0fd3828e5d57a4b",
17
+ "message": "fix(core): Populate off_session based on payments request",
18
+ "author": "deepanshu-iiitu",
19
+ "date": "2024-12-16T13:38:10+00:00",
20
+ "url": "https://github.com/juspay/hyperswitch/commit/e197e81f104c7e7eadb51c2cd0fd3828e5d57a4b"
21
+ },
22
+ {
23
+ "sha": "61bd43c06ac1a50b04f7f809d09eecb85507ed05",
24
+ "message": "fix(core): Populate off_session based on payments request",
25
+ "author": "deepanshu-iiitu",
26
+ "date": "2024-12-16T13:43:43+00:00",
27
+ "url": "https://github.com/juspay/hyperswitch/commit/61bd43c06ac1a50b04f7f809d09eecb85507ed05"
28
+ },
29
+ {
30
+ "sha": "827793a831f5fd657c60ee67e1a4ac283b6a6be3",
31
+ "message": "fix(core): Populate off_session based on payments request",
32
+ "author": "deepanshu-iiitu",
33
+ "date": "2024-12-17T07:12:48+00:00",
34
+ "url": "https://github.com/juspay/hyperswitch/commit/827793a831f5fd657c60ee67e1a4ac283b6a6be3"
35
+ },
36
+ {
37
+ "sha": "15a1c2a61b143070064058b24250a08df65c9db4",
38
+ "message": "Merge branch 'main' into off-session-fix",
39
+ "author": "DEEPANSHU BANSAL",
40
+ "date": "2024-12-17T07:20:37+00:00",
41
+ "url": "https://github.com/juspay/hyperswitch/commit/15a1c2a61b143070064058b24250a08df65c9db4"
42
+ },
43
+ {
44
+ "sha": "5c2ab87753e7a490c235540a710539536d15fcaf",
45
+ "message": "fix(core): Populate off_session based on payments request",
46
+ "author": "deepanshu-iiitu",
47
+ "date": "2024-12-17T07:50:00+00:00",
48
+ "url": "https://github.com/juspay/hyperswitch/commit/5c2ab87753e7a490c235540a710539536d15fcaf"
49
+ },
50
+ {
51
+ "sha": "ee5b12e92d7d757f7821e8131eabdab4a382f9e2",
52
+ "message": "chore: Update Cypress Tests",
53
+ "author": "deepanshu-iiitu",
54
+ "date": "2024-12-17T10:59:47+00:00",
55
+ "url": "https://github.com/juspay/hyperswitch/commit/ee5b12e92d7d757f7821e8131eabdab4a382f9e2"
56
+ },
57
+ {
58
+ "sha": "13a298414ff2a3380ff06e0071f9ea7cb3c873c0",
59
+ "message": "Merge branch 'main' into off-session-fix",
60
+ "author": "DEEPANSHU BANSAL",
61
+ "date": "2024-12-17T11:04:05+00:00",
62
+ "url": "https://github.com/juspay/hyperswitch/commit/13a298414ff2a3380ff06e0071f9ea7cb3c873c0"
63
+ }
64
+ ]
65
+ }
prs/pr_6945.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 6945,
3
+ "title": "fix(router): rename `management_url` to `management_u_r_l` in the apple pay session response",
4
+ "description": "\r\n## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nParent issue describing the feature (https://github.com/juspay/hyperswitch/issues/6841)\r\n\r\nWe need to rename `management_url` to `management_u_r_l` in the apple pay session response as our sdk converts the apple pay session request to camelCase before sending it to the apple pay team, after which `management_url` will be sent as `managementUrl`. But apple pay expects it to be passed as `managementURL`.\r\n\r\nHence renaming it to `management_u_r_l` as that when it is converted to snake case it will be passed as `managementURL`.\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n-> create a merchant connector account with apple pay enabled\r\n-> create a payment with recurring details passed in the `feature_metadata`\r\n```\r\n{\r\n \"amount\": 6500,\r\n \"currency\": \"USD\",\r\n \"confirm\": false,\r\n \"amount_to_capture\": 6500,\r\n \"customer_id\": \"test_fb\",\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \"email\": \"something@gmail.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"Its my first payment request\",\r\n \"statement_descriptor_name\": \"Juspay\",\r\n \"statement_descriptor_suffix\": \"Router\",\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": {\r\n \"payment_description\": \"this is the apple pay recurring payment\",\r\n \"regular_billing\": {\r\n \"label\": \"pay to hyperswitchs merchant\",\r\n \"recurring_payment_start_date\": \"2027-09-10T10:11:12.000Z\",\r\n \"recurring_payment_end_date\": \"2027-09-10T10:11:12.000Z\",\r\n \"recurring_payment_interval_unit\": \"year\",\r\n \"recurring_payment_interval_count\": 1\r\n },\r\n \"billing_agreement\": \"billing starts from the above mentioned start date\",\r\n \"management_url\": \"https://applepaydemo.apple.com/\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n \r\n }\r\n}\r\n```\r\n```\r\n{\r\n \"payment_id\": \"pay_IkF0eZObdRKHRaW2qPjP\",\r\n \"merchant_id\": \"merchant_1735037046\",\r\n \"status\": \"requires_payment_method\",\r\n \"amount\": 6500,\r\n \"net_amount\": 6500,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": null,\r\n \"client_secret\": \"pay_IkF0eZObdRKHRaW2qPjP_secret_NiGZ8jzWUD0Eul78MWKG\",\r\n \"created\": \"2024-12-26T10:11:17.687Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"test_fb\",\r\n \"customer\": {\r\n \"id\": \"test_fb\",\r\n \"name\": \"Joseph Doe\",\r\n \"email\": \"something@gmail.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": null,\r\n \"payment_method_data\": null,\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"something@gmail.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"three_ds\",\r\n \"statement_descriptor_name\": \"Juspay\",\r\n \"statement_descriptor_suffix\": \"Router\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": null,\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"test_fb\",\r\n \"created_at\": 1735207877,\r\n \"expires\": 1735211477,\r\n \"secret\": \"epk_4a7844e8c4164df8806efc7aeda70607\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": null,\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": {\r\n \"payment_description\": \"this is the apple pay recurring payment\",\r\n \"regular_billing\": {\r\n \"label\": \"pay to hyperswitchs merchant\",\r\n \"recurring_payment_start_date\": \"2027-09-10T10:11:12.000Z\",\r\n \"recurring_payment_end_date\": \"2027-09-10T10:11:12.000Z\",\r\n \"recurring_payment_interval_unit\": \"year\",\r\n \"recurring_payment_interval_count\": 1\r\n },\r\n \"billing_agreement\": \"billing starts from the above mentioned start date\",\r\n \"management_url\": \"https://applepaydemo.apple.com/\"\r\n }\r\n },\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_hyTvjhxF9uXvaibNrP0C\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": null,\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2024-12-26T10:26:17.687Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2024-12-26T10:11:17.740Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\n-> Make session call for above created payment\r\n```\r\ncurl --location 'http://localhost:8080/payments/session_tokens' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: pk_dev_75f912a867024370a73d2e290b9f7623' \\\r\n--data '{\r\n \"payment_id\": \"pay_IkF0eZObdRKHRaW2qPjP\",\r\n \"wallets\": [],\r\n \"client_secret\": \"pay_IkF0eZObdRKHRaW2qPjP_secret_NiGZ8jzWUD0Eul78MWKG\"\r\n}'\r\n```\r\n```\r\n{\r\n \"payment_id\": \"pay_IkF0eZObdRKHRaW2qPjP\",\r\n \"client_secret\": \"pay_IkF0eZObdRKHRaW2qPjP_secret_NiGZ8jzWUD0Eul78MWKG\",\r\n \"session_token\": [\r\n {\r\n \"wallet_name\": \"apple_pay\",\r\n \"session_token_data\": {\r\n \"epoch_timestamp\": 1735207885750,\r\n \"expires_at\": 1735211485750,\r\n \"merchant_session_identifier\": \"SSHABDD07E7A93F47A8AE218B19493987B6_CCE257A9D27B42513B2C3CA67DB49F602F3450D996C0811ED462EDCA0D7477FD\",\r\n \"nonce\": \"6a181236\",\r\n \"merchant_identifier\": \"76B79A8E91F4D365B0B636C8F75CB207D52532E82C2C085DE79D6D8135EF3813\",\r\n \"domain_name\": \"sdk-test-app.netlify.app\",\r\n \"display_name\": \"applepay\",\r\n \"signature\": \"308006092a864886f70d010702a0803080020101310d300b0609608648016503040201308006092a864886f70d0107010000a080308203e330820388a003020102020816634c8b0e305717300a06082a8648ce3d040302307a312e302c06035504030c254170706c65204170706c69636174696f6e20496e746567726174696f6e204341202d20473331263024060355040b0c1d4170706c652043657274696669636174696f6e20417574686f7269747931133011060355040a0c0a4170706c6520496e632e310b3009060355040613025553301e170d3234303432393137343732375a170d3239303432383137343732365a305f3125302306035504030c1c6563632d736d702d62726f6b65722d7369676e5f5543342d50524f4431143012060355040b0c0b694f532053797374656d7331133011060355040a0c0a4170706c6520496e632e310b30090603550406130255533059301306072a8648ce3d020106082a8648ce3d03010703420004c21577edebd6c7b2218f68dd7090a1218dc7b0bd6f2c283d846095d94af4a5411b83420ed811f3407e83331f1c54c3f7eb3220d6bad5d4eff49289893e7c0f13a38202113082020d300c0603551d130101ff04023000301f0603551d2304183016801423f249c44f93e4ef27e6c4f6286c3fa2bbfd2e4b304506082b0601050507010104393037303506082b060105050730018629687474703a2f2f6f6373702e6170706c652e636f6d2f6f63737030342d6170706c65616963613330323082011d0603551d2004820114308201103082010c06092a864886f7636405013081fe3081c306082b060105050702023081b60c81b352656c69616e6365206f6e207468697320636572746966696361746520627920616e7920706172747920617373756d657320616363657074616e6365206f6620746865207468656e206170706c696361626c65207374616e64617264207465726d7320616e6420636f6e646974696f6e73206f66207573652c20636572746966696361746520706f6c69637920616e642063657274696669636174696f6e2070726163746963652073746174656d656e74732e303606082b06010505070201162a687474703a2f2f7777772e6170706c652e636f6d2f6365727469666963617465617574686f726974792f30340603551d1f042d302b3029a027a0258623687474703a2f2f63726c2e6170706c652e636f6d2f6170706c6561696361332e63726c301d0603551d0e041604149457db6fd57481868989762f7e578507e79b5824300e0603551d0f0101ff040403020780300f06092a864886f76364061d04020500300a06082a8648ce3d0403020349003046022100c6f023cb2614bb303888a162983e1a93f1056f50fa78cdb9ba4ca241cc14e25e022100be3cd0dfd16247f6494475380e9d44c228a10890a3a1dc724b8b4cb8889818bc308202ee30820275a0030201020208496d2fbf3a98da97300a06082a8648ce3d0403023067311b301906035504030c124170706c6520526f6f74204341202d20473331263024060355040b0c1d4170706c652043657274696669636174696f6e20417574686f7269747931133011060355040a0c0a4170706c6520496e632e310b3009060355040613025553301e170d3134303530363233343633305a170d3239303530363233343633305a307a312e302c06035504030c254170706c65204170706c69636174696f6e20496e746567726174696f6e204341202d20473331263024060355040b0c1d4170706c652043657274696669636174696f6e20417574686f7269747931133011060355040a0c0a4170706c6520496e632e310b30090603550406130255533059301306072a8648ce3d020106082a8648ce3d03010703420004f017118419d76485d51a5e25810776e880a2efde7bae4de08dfc4b93e13356d5665b35ae22d097760d224e7bba08fd7617ce88cb76bb6670bec8e82984ff5445a381f73081f4304606082b06010505070101043a3038303606082b06010505073001862a687474703a2f2f6f6373702e6170706c652e636f6d2f6f63737030342d6170706c65726f6f7463616733301d0603551d0e0416041423f249c44f93e4ef27e6c4f6286c3fa2bbfd2e4b300f0603551d130101ff040530030101ff301f0603551d23041830168014bbb0dea15833889aa48a99debebdebafdacb24ab30370603551d1f0430302e302ca02aa0288626687474703a2f2f63726c2e6170706c652e636f6d2f6170706c65726f6f74636167332e63726c300e0603551d0f0101ff0404030201063010060a2a864886f7636406020e04020500300a06082a8648ce3d040302036700306402303acf7283511699b186fb35c356ca62bff417edd90f754da28ebef19c815e42b789f898f79b599f98d5410d8f9de9c2fe0230322dd54421b0a305776c5df3383b9067fd177c2c216d964fc6726982126f54f87a7d1b99cb9b0989216106990f09921d00003182018730820183020101308186307a312e302c06035504030c254170706c65204170706c69636174696f6e20496e746567726174696f6e204341202d20473331263024060355040b0c1d4170706c652043657274696669636174696f6e20417574686f7269747931133011060355040a0c0a4170706c6520496e632e310b3009060355040613025553020816634c8b0e305717300b0609608648016503040201a08193301806092a864886f70d010903310b06092a864886f70d010701301c06092a864886f70d010905310f170d3234313232363130313132355a302806092a864886f70d010934311b3019300b0609608648016503040201a10a06082a8648ce3d040302302f06092a864886f70d010904312204209b43f7e26b7c35184723da6aa89977d89ebf53079f968db5b25d60ed379445b1300a06082a8648ce3d04030204463044022068fc0f182085841b99b8334ec5072017c4f32d93fdd8dac0b344a02f2c7797b3022024d835837764ddbf539c06781d2e41e37094d1c41f65c364da18aa6537e1ce17000000000000\",\r\n \"operational_analytics_identifier\": \"applepay:76B79A8E91F4D365B0B636C8F75CB207D52532E82C2C085DE79D6D8135EF3813\",\r\n \"retries\": 0,\r\n \"psp_id\": \"76B79A8E91F4D365B0B636C8F75CB207D52532E82C2C085DE79D6D8135EF3813\"\r\n },\r\n \"payment_request_data\": {\r\n \"country_code\": \"US\",\r\n \"currency_code\": \"USD\",\r\n \"total\": {\r\n \"label\": \"applepay\",\r\n \"type\": \"final\",\r\n \"amount\": \"65.00\"\r\n },\r\n \"merchant_capabilities\": [\r\n \"supports3DS\"\r\n ],\r\n \"supported_networks\": [\r\n \"visa\",\r\n \"masterCard\",\r\n \"amex\",\r\n \"discover\"\r\n ],\r\n \"merchant_identifier\": \"merchant.com.hyperswitch.checkout\",\r\n \"recurring_payment_request\": {\r\n \"payment_description\": \"this is the apple pay recurring payment\",\r\n \"regular_billing\": {\r\n \"amount\": \"65.00\",\r\n \"label\": \"pay to hyperswitchs merchant\",\r\n \"payment_timing\": \"recurring\",\r\n \"recurring_payment_start_date\": \"2027-09-10T10:11:12.000Z\",\r\n \"recurring_payment_end_date\": \"2027-09-10T10:11:12.000Z\",\r\n \"recurring_payment_interval_unit\": \"year\",\r\n \"recurring_payment_interval_count\": 1\r\n },\r\n \"billing_agreement\": \"billing starts from the above mentioned start date\",\r\n \"management_u_r_l\": \"https://applepaydemo.apple.com/\"\r\n }\r\n },\r\n \"connector\": \"stripe\",\r\n \"delayed_session_token\": false,\r\n \"sdk_next_action\": {\r\n \"next_action\": \"confirm\"\r\n },\r\n \"connector_reference_id\": null,\r\n \"connector_sdk_public_key\": null,\r\n \"connector_merchant_id\": null\r\n },\r\n {\r\n \"wallet_name\": \"google_pay\",\r\n \"merchant_info\": {\r\n \"merchant_name\": \"Stripe\"\r\n },\r\n \"shipping_address_required\": false,\r\n \"email_required\": false,\r\n \"shipping_address_parameters\": {\r\n \"phone_number_required\": false\r\n },\r\n \"allowed_payment_methods\": [\r\n {\r\n \"type\": \"CARD\",\r\n \"parameters\": {\r\n \"allowed_auth_methods\": [\r\n \"PAN_ONLY\",\r\n \"CRYPTOGRAM_3DS\"\r\n ],\r\n \"allowed_card_networks\": [\r\n \"AMEX\",\r\n \"DISCOVER\",\r\n \"INTERAC\",\r\n \"JCB\",\r\n \"MASTERCARD\",\r\n \"VISA\"\r\n ],\r\n \"billing_address_required\": false\r\n },\r\n \"tokenization_specification\": {\r\n \"type\": \"PAYMENT_GATEWAY\",\r\n \"parameters\": {\r\n \"gateway\": \"stripe\",\r\n \"stripe:version\": \"2018-10-31\",\r\n \"stripe:publishableKey\": \"pk_test_51Msk2GAGHc77EJXX78h549SX2uaOnEkUYqBfjcoD05PIpAnDkYxMn8nQ4d19im85NQuX4Z6WDyHaUw2fFTPBWsIY00Wa7oNerO\"\r\n }\r\n }\r\n }\r\n ],\r\n \"transaction_info\": {\r\n \"country_code\": \"US\",\r\n \"currency_code\": \"USD\",\r\n \"total_price_status\": \"Final\",\r\n \"total_price\": \"65.00\"\r\n },\r\n \"delayed_session_token\": false,\r\n \"connector\": \"stripe\",\r\n \"sdk_next_action\": {\r\n \"next_action\": \"confirm\"\r\n },\r\n \"secrets\": null\r\n }\r\n ]\r\n}\r\n```\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "ShankarSinghC",
6
+ "created_at": "2024-12-26T10:17:29+00:00",
7
+ "merged_at": "2024-12-27T06:46:27+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-core",
11
+ "C-bug",
12
+ "A-payment-methods",
13
+ "M-api-contract-changes",
14
+ "A-payments"
15
+ ],
16
+ "url": "https://github.com/juspay/hyperswitch/pull/6945",
17
+ "commits": [
18
+ {
19
+ "sha": "93a3c7bfd51962dfbc618a9a1e390a35c4d9fc72",
20
+ "message": "fix(router): rename management_url to management_u_r_l in the apple pay session resposne",
21
+ "author": "Shankar Singh C",
22
+ "date": "2024-12-26T10:04:48+00:00",
23
+ "url": "https://github.com/juspay/hyperswitch/commit/93a3c7bfd51962dfbc618a9a1e390a35c4d9fc72"
24
+ }
25
+ ]
26
+ }
prs/pr_6998.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 6998,
3
+ "title": "feat(connector): [Fiuu] Consume transaction id for error cases for Fiuu",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [X] Bugfix\r\n- [ ] New feature\r\n- [X] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\nTo consume transaction id for some error cases , where currently its not consumed. This PR addresses this issue.\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nTested manually by hitting payments retrieve\r\n### \r\n\r\n> After\r\n\r\n### cURL\r\n```\r\ncurl --location --request GET 'http://localhost:8080/payments/pay_9EIH03YnsLSJAqfoYkxU' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_laI3IG0iKD2bmhZIwT5b0kq1VrWDKoCZ3eJqkWbWeHGEEUpzSy7rg2ZjjlV7JRhy'\r\n```\r\n### Response\r\n`{\r\n \"payment_id\": \"pay_9EIH03YnsLSJAqfoYkxU\",\r\n \"merchant_id\": \"merchant_1736151941\",\r\n \"status\": \"failed\",\r\n \"amount\": 1000,\r\n \"net_amount\": 1000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": \"fiuu\",\r\n \"client_secret\": \"pay_9EIH03YnsLSJAqfoYkxU_secret_CXYmUD5F0wg8tQbExwjE\",\r\n \"created\": \"2025-01-06T10:45:23.087Z\",\r\n \"currency\": \"MYR\",\r\n \"customer_id\": \"exampel3rewfdsvc2\",\r\n \"customer\": {\r\n \"id\": \"exampel3rewfdsvc2\",\r\n \"name\": null,\r\n \"email\": null,\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"5100\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"510510\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": \"Max Mustermann\",\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": null,\r\n \"order_details\": null,\r\n \"email\": null,\r\n \"name\": null,\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": \"\",\r\n \"error_message\": \"\",\r\n \"unified_code\": \"UE_9000\",\r\n \"unified_message\": \"Something went wrong\",\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": true,\r\n \"connector_transaction_id\": \"30926945\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\",\r\n \"new_customer\": \"true\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_ne27DW6cFOwPOUdMLTLY\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_tfcWJii5BjqSKlxoqbdJ\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-01-06T11:00:23.086Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"103.77.139.95\",\r\n \"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\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 1536,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8\",\r\n \"screen_height\": 723,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-01-06T10:45:29.931Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}`\r\n<img width=\"903\" alt=\"Screenshot 2025-01-06 at 16 34 39\" src=\"https://github.com/user-attachments/assets/0f4f5f37-9d7c-498c-aee0-e5af365d9482\" />\r\n(connector_transaction_id present in response)\r\n\r\n### \r\n\r\n> Before\r\n<img width=\"1153\" alt=\"Screenshot 2025-01-06 at 16 27 42\" src=\"https://github.com/user-attachments/assets/064e30dd-13f0-4877-b946-7a77de08f633\" />\r\n<img width=\"903\" alt=\"Screenshot 2025-01-06 at 16 47 22\" src=\"https://github.com/user-attachments/assets/fb423029-024f-4867-9ea2-38f08cbb3c73\" />\r\n\r\n\r\n(connector_transaction_id not present in response)\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [X] I formatted the code `cargo +nightly fmt --all`\r\n- [X] I addressed lints thrown by `cargo clippy`\r\n- [X] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "dgeee13",
6
+ "created_at": "2025-01-06T11:18:56+00:00",
7
+ "merged_at": "2025-01-07T08:04:42+00:00",
8
+ "base_branch": "main",
9
+ "labels": [],
10
+ "url": "https://github.com/juspay/hyperswitch/pull/6998",
11
+ "commits": [
12
+ {
13
+ "sha": "5a6bed1de2c662e229719025525bed377392a2ab",
14
+ "message": "consume txn id for error cases for fiuu",
15
+ "author": "Debarati",
16
+ "date": "2025-01-06T10:49:13+00:00",
17
+ "url": "https://github.com/juspay/hyperswitch/commit/5a6bed1de2c662e229719025525bed377392a2ab"
18
+ },
19
+ {
20
+ "sha": "ed110f49057cb48d608f02f78ede92e7b96bd6e2",
21
+ "message": "chore: run formatter",
22
+ "author": "hyperswitch-bot[bot]",
23
+ "date": "2025-01-06T11:19:51+00:00",
24
+ "url": "https://github.com/juspay/hyperswitch/commit/ed110f49057cb48d608f02f78ede92e7b96bd6e2"
25
+ }
26
+ ]
27
+ }
prs/pr_7059.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7059,
3
+ "title": "fix(connector): [NETCETERA] add accept-language in browser_information for netcetera authentication request",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nMissing BrowserInformation.AcceptLanguage in Authentication request for Netcetera\r\n - add accept-language in browser_information for netcetera authentication request\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nTested Manually\r\nExternal 3DS authentication request through Netcetera\r\nCURL\r\n```\r\ncurl --location '{{baseURL}}/payments/{{PAYMENT_ID}}/3ds/authentication' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: {{PUBLISHABLE_KEY}}' \\\r\n--data '{\r\n \"client_secret\": \"pay_YgaqwRsJ2D609GavM4R7_secret_dyidRAo6cvSM5Wfbc4Se\",\r\n \"device_channel\": \"BRW\",\r\n \"threeds_method_comp_ind\": \"Y\"\r\n}'\r\n\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"trans_status\": \"Y\",\r\n \"acs_url\": null,\r\n \"challenge_request\": null,\r\n \"acs_reference_number\": null,\r\n \"acs_trans_id\": null,\r\n \"three_dsserver_trans_id\": \"0fa5cf1b-dd17-4314-8fb0-6ef51367a32b\",\r\n \"acs_signed_content\": null,\r\n \"three_ds_requestor_url\": \"https://google.com/\"\r\n}\r\n```\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "sai-harsha-vardhan",
6
+ "created_at": "2025-01-17T11:05:22+00:00",
7
+ "merged_at": "2025-01-17T13:28:24+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-connector-integration",
11
+ "C-bug"
12
+ ],
13
+ "url": "https://github.com/juspay/hyperswitch/pull/7059",
14
+ "commits": [
15
+ {
16
+ "sha": "a802b9eec6ae3d67dfbe7a97dcecc0f84a090cf4",
17
+ "message": "add accept-language in browser_information for netcetera",
18
+ "author": "sai-harsha-vardhan",
19
+ "date": "2025-01-17T11:03:37+00:00",
20
+ "url": "https://github.com/juspay/hyperswitch/commit/a802b9eec6ae3d67dfbe7a97dcecc0f84a090cf4"
21
+ }
22
+ ]
23
+ }
prs/pr_7062.json ADDED
@@ -0,0 +1,458 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7062,
3
+ "title": "feat(connector): [AMAZONPAY] add Payment flows for Amazon Pay Wallet",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\nAdded Amazon Pay connector using Amazon Pay Wallet for the US region.\r\n\r\nFlow:\r\n1. In the Hyperswitch dashboard, when configuring the Amazon Pay connector, merchants are required to provide their API keys, Merchant ID, and Store ID. The Merchant ID and Store ID are specifically necessary for rendering the Amazon Pay SDK.\r\n\r\n2. During the `payments-create` API call, merchants must include the amount and currency (currently, only USD is supported). Additionally, the following fields can be provided:\r\n\r\n - `order_tax_amount`: Required only if tax is being applied to the bill.\r\n\r\n - `shipping_cost`: This value must match the amount specified in the default delivery_option. This validation is enforced in the backend.\r\n\r\n - `delivery_options`: Passed within the metadata field, this should be an array of objects. Each object must include:\r\n\r\n - `id`\r\n\r\n - `price`: An object containing `amount` and `currency`\r\n\r\n - `shipping_method`: An object containing `shipping_method_name` and `shipping_method_code`\r\n\r\n - `is_default`: A boolean indicating whether the option is the default. Exactly one delivery option must have `is_default` set to true, which will determine the applicable shipping cost.\r\n\r\n3. In the `session_tokens` API call, all required information for rendering the Amazon Pay SDK on the frontend is provided.\r\n\r\n4. The Amazon Pay SDK is rendered on the frontend. Upon successful checkout, the frontend returns a `checkout_session_id` via the `confirm` API call. This identifier is essential for making the Authorize call. Currently, only the automatic capture method is supported, meaning the capture process is performed within the same call.\r\n\r\nNote:\r\nThis PR currently supports only the `Automatic` capture method. Therefore, invoking the authorization flow will move the payment to a terminal state.\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n6. `crates/router/src/configs`\r\n7. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\nhttps://developer.amazon.com/docs/amazon-pay-api-v2/introduction.html\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nPostman Test\r\n\r\n<details>\r\n<summary>Connector configuration with merchant account</summary>\r\n\r\n\r\nRequest:\r\n\r\n```\r\ncurl --location --globoff 'http://localhost:8080/account/{{merchant_id}}/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: {{admin_api_key}}' \\\r\n--data '{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"amazonpay\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"BodyKey\",\r\n \"api_key\": \"Merchant'\\''s Public Key here\",\r\n \"key1\": \"Merchant'\\''s Private Key here\"\r\n },\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"amazon_pay\",\r\n \"payment_experience\": \"invoke_sdk_client\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"connector_wallets_details\": {\r\n \"amazon_pay\": {\r\n \"merchant_id\": \"Merchant Id here\",\r\n \"store_id\": \"Store Id here\"\r\n }\r\n },\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\"\r\n },\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"MyWebhookSecret\"\r\n },\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\"\r\n}'\r\n```\r\n\r\nResponse: \r\n\r\n```\r\n{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"amazonpay\",\r\n \"connector_label\": \"amazonpay_US_default\",\r\n \"merchant_connector_id\": \"mca_dzcaJz3OXpbsEUtmnRRB\",\r\n \"profile_id\": \"pro_KjH58F7Kk38DKamoARZo\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"BodyKey\",\r\n \"api_key\": \"SA****************************YL\",\r\n \"key1\": \"--*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************--\"\r\n },\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"amazon_pay\",\r\n \"payment_experience\": \"invoke_sdk_client\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"MyWebhookSecret\",\r\n \"additional_secret\": null\r\n },\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\"\r\n },\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"frm_configs\": null,\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"applepay_verified_domains\": null,\r\n \"pm_auth_config\": null,\r\n \"status\": \"active\",\r\n \"additional_merchant_data\": null,\r\n \"connector_wallets_details\": {\r\n \"amazon_pay\": {\r\n \"merchant_id\": \"***\",\r\n \"store_id\": \"***\"\r\n }\r\n }\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>Create Payment</summary>\r\n\r\n\r\nRequest:\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: {{admin_api_key}}' \\\r\n--data '\r\n{\r\n \"amount\": 5044,\r\n \"currency\": \"USD\",\r\n \"shipping_cost\": 2000,\r\n \"order_tax_amount\": 1000,\r\n \"confirm\": false,\r\n \"metadata\": {\r\n \"delivery_options\": [\r\n {\r\n \"id\": \"standard-delivery\",\r\n \"price\":{\r\n \"amount\": 2000,\r\n \"currency_code\":\"USD\"\r\n },\r\n \"shipping_method\":{\r\n \"shipping_method_name\":\"standard-courier\",\r\n \"shipping_method_code\":\"standard-courier\"\r\n },\r\n \"is_default\":true \r\n },\r\n {\r\n \"id\":\"express-delivery\",\r\n \"price\":{\r\n \"amount\":5000,\r\n \"currency_code\":\"USD\"\r\n },\r\n \"shipping_method\":{\r\n \"shipping_method_name\":\"express-courier\",\r\n \"shipping_method_code\":\"express-courier\"\r\n },\r\n \"is_default\":false \r\n }\r\n ]\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"10 Ditka Ave\",\r\n \"line2\": \"Suite 2500\",\r\n \"line3\": null,\r\n \"city\": \"Chicago\",\r\n \"state\": \"IL\",\r\n \"zip\": \"60602\",\r\n \"country\": \"US\",\r\n \"first_name\": \"Susie\",\r\n \"last_name\": \"Smith\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8000000000\"\r\n }\r\n }\r\n}'\r\n```\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"payment_id\": \"***\",\r\n \"merchant_id\": \"merchant_1738388546\",\r\n \"status\": \"requires_payment_method\",\r\n \"amount\": 5044,\r\n \"net_amount\": 11044,\r\n \"shipping_cost\": 5000,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": null,\r\n \"client_secret\": \"***\",\r\n \"created\": \"2025-02-01T06:04:17.308Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": null,\r\n \"customer\": null,\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": null,\r\n \"payment_method\": null,\r\n \"payment_method_data\": null,\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"Chicago\",\r\n \"country\": \"US\",\r\n \"line1\": \"10 Ditka Ave\",\r\n \"line2\": \"Suite 2500\",\r\n \"line3\": null,\r\n \"zip\": \"60602\",\r\n \"state\": \"IL\",\r\n \"first_name\": \"Susie\",\r\n \"last_name\": \"Smith\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8000000000\",\r\n \"country_code\": null\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": null,\r\n \"order_details\": null,\r\n \"email\": null,\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": null,\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": null,\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": null,\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"delivery_options\": [\r\n {\r\n \"id\": \"standard-delivery\",\r\n \"price\": {\r\n \"amount\": 2000,\r\n \"currency_code\": \"USD\"\r\n },\r\n \"is_default\": true,\r\n \"shipping_method\": {\r\n \"shipping_method_code\": \"standard-courier\",\r\n \"shipping_method_name\": \"standard-courier\"\r\n }\r\n },\r\n {\r\n \"id\": \"express-delivery\",\r\n \"price\": {\r\n \"amount\": 5000,\r\n \"currency_code\": \"USD\"\r\n },\r\n \"is_default\": false,\r\n \"shipping_method\": {\r\n \"shipping_method_code\": \"express-courier\",\r\n \"shipping_method_name\": \"express-courier\"\r\n }\r\n }\r\n ]\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_gv8MXTZYhAFvCVPskAYY\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": null,\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-02-01T06:19:17.308Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-02-01T06:04:17.329Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": 1000,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>Session Token</summary>\r\n\r\nRequest:\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments/session_tokens' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: {{publishable_key}}' \\\r\n--data '{\r\n \"payment_id\": \"Payment Id here\",\r\n \"wallets\": [],\r\n \"client_secret\": \"Client Secret here\"\r\n}'\r\n```\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"payment_id\": \"***\",\r\n \"client_secret\": \"***\",\r\n \"session_token\": [\r\n {\r\n \"wallet_name\": \"amazon_pay\",\r\n \"merchant_id\": \"***\",\r\n \"ledger_currency\": \"USD\",\r\n \"store_id\": \"***\",\r\n \"payment_intent\": \"AuthorizeWithCapture\",\r\n \"total_shipping_amount\": \"20.00\",\r\n \"total_tax_amount\": \"10.00\",\r\n \"total_base_amount\": \"50.44\",\r\n \"delivery_options\": [\r\n {\r\n \"id\": \"standard-delivery\",\r\n \"price\": {\r\n \"amount\": 2000,\r\n \"display_amount\": \"20.00\",\r\n \"currency_code\": \"USD\"\r\n },\r\n \"shipping_method\": {\r\n \"shipping_method_name\": \"standard-courier\",\r\n \"shipping_method_code\": \"standard-courier\"\r\n },\r\n \"is_default\": true\r\n },\r\n {\r\n \"id\": \"express-delivery\",\r\n \"price\": {\r\n \"amount\": 5000,\r\n \"display_amount\": \"50.00\",\r\n \"currency_code\": \"USD\"\r\n },\r\n \"shipping_method\": {\r\n \"shipping_method_name\": \"express-courier\",\r\n \"shipping_method_code\": \"express-courier\"\r\n },\r\n \"is_default\": false\r\n }\r\n ]\r\n }\r\n ]\r\n}\r\n```\r\n</details>\r\n\r\n**If any field within the `metadata` is missing, the `session_token` in the response will be empty.**\r\n\r\n<details>\r\n<summary>Payments - Create (with missing field in metadata)</summary>\r\n\r\nRequest:\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: {{admin_api_key}}' \\\r\n--data '{\r\n \"amount\": 5044,\r\n \"currency\": \"USD\",\r\n \"shipping_cost\": 2000,\r\n \"order_tax_amount\": 1000,\r\n \"confirm\": false,\r\n \"metadata\": {\r\n \"delivery_options\": [\r\n {\r\n \"id\": \"standard-delivery\",\r\n \"price\":{\r\n \"amount\": 2000,\r\n \"currency_code\":\"USD\"\r\n },\r\n \"shipping_method\":{\r\n \"shipping_method_code\":\"standard-courier\"\r\n },\r\n \"is_default\":true\r\n },\r\n {\r\n \"id\":\"express-delivery\",\r\n \"price\":{\r\n \"amount\":5000,\r\n \"currency_code\":\"USD\"\r\n },\r\n \"shipping_method\":{\r\n \"shipping_method_name\":\"express-courier\",\r\n \"shipping_method_code\":\"express-courier\"\r\n },\r\n \"is_default\":false\r\n }\r\n ]\r\n }\r\n}'\r\n```\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"payment_id\": \"****\",\r\n \"merchant_id\": \"****\",\r\n \"status\": \"requires_payment_method\",\r\n \"amount\": 5044,\r\n \"net_amount\": 8044,\r\n \"shipping_cost\": 2000,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": null,\r\n \"client_secret\": \"***\",\r\n \"created\": \"2025-02-11T15:19:11.396Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": null,\r\n \"customer\": null,\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": null,\r\n \"payment_method\": null,\r\n \"payment_method_data\": null,\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": null,\r\n \"order_details\": null,\r\n \"email\": null,\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": null,\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": null,\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": null,\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"delivery_options\": [\r\n {\r\n \"id\": \"standard-delivery\",\r\n \"price\": {\r\n \"amount\": 2000,\r\n \"currency_code\": \"USD\"\r\n },\r\n \"is_default\": true,\r\n \"shipping_method\": {\r\n \"shipping_method_code\": \"standard-courier\"\r\n }\r\n },\r\n {\r\n \"id\": \"express-delivery\",\r\n \"price\": {\r\n \"amount\": 5000,\r\n \"currency_code\": \"USD\"\r\n },\r\n \"is_default\": false,\r\n \"shipping_method\": {\r\n \"shipping_method_code\": \"express-courier\",\r\n \"shipping_method_name\": \"express-courier\"\r\n }\r\n }\r\n ]\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"***\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": null,\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-02-11T15:34:11.396Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-02-11T15:19:11.418Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": 1000,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>Session Token (when metadata is passed with missing field in payments-create call)</summary>\r\n\r\nRequest:\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments/session_tokens' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: {{publishable_key}}' \\\r\n--data '{\r\n \"payment_id\": \"Payment_ID_Here\",\r\n \"wallets\": [],\r\n \"client_secret\": \"Client_Secret_Here\"\r\n}'\r\n```\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"payment_id\": \"***\",\r\n \"client_secret\": \"***\",\r\n \"session_token\": []\r\n}\r\n```\r\n</details>\r\n\r\n\r\n<details>\r\n<summary>Payments - Confirm</summary>\r\n\r\nRequest:\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments/{{payment_id}}/confirm' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: {{api_key}}' \\\r\n--data '{\r\n \"capture_method\": \"automatic\", \r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"10 Ditka Ave\",\r\n \"line2\": \"Suite 2500\",\r\n \"line3\": null,\r\n \"city\": \"Chicago\",\r\n \"state\": \"IL\",\r\n \"zip\": \"60602\",\r\n \"country\": \"US\",\r\n \"first_name\": \"Susie\",\r\n \"last_name\": \"Smith\"\r\n },\r\n \"phone\": {\r\n \"number\": \"800-000-0000\"\r\n }\r\n },\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"amazon_pay\",\r\n \"payment_experience\": \"invoke_sdk_client\",\r\n \"payment_method_data\": {\r\n \"wallet\": {\r\n \"amazon_pay\": {\r\n \"checkout_session_id\": \"Checkout Session Id here\"\r\n }\r\n }\r\n }\r\n}'\r\n```\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"payment_id\": \"***\",\r\n \"merchant_id\": \"merchant_1738388546\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 5044,\r\n \"net_amount\": 11044,\r\n \"shipping_cost\": 5000,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 11044,\r\n \"connector\": \"amazonpay\",\r\n \"client_secret\": \"***\",\r\n \"created\": \"2025-02-01T06:04:17.308Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": null,\r\n \"customer\": null,\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_data\": {\r\n \"wallet\": {},\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"Chicago\",\r\n \"country\": \"US\",\r\n \"line1\": \"10 Ditka Ave\",\r\n \"line2\": \"Suite 2500\",\r\n \"line3\": null,\r\n \"zip\": \"60602\",\r\n \"state\": \"IL\",\r\n \"first_name\": \"Susie\",\r\n \"last_name\": \"Smith\"\r\n },\r\n \"phone\": {\r\n \"number\": \"800-000-0000\",\r\n \"country_code\": null\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": null,\r\n \"order_details\": null,\r\n \"email\": null,\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": \"invoke_sdk_client\",\r\n \"payment_method_type\": \"amazon_pay\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"***\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"delivery_options\": [\r\n {\r\n \"id\": \"standard-delivery\",\r\n \"price\": {\r\n \"amount\": \"20.00\",\r\n \"currency_code\": \"USD\"\r\n },\r\n \"is_default\": true,\r\n \"shipping_method\": {\r\n \"shipping_method_code\": \"standard-courier\",\r\n \"shipping_method_name\": \"standard-courier\"\r\n }\r\n },\r\n {\r\n \"id\": \"express-delivery\",\r\n \"price\": {\r\n \"amount\": \"50\",\r\n \"currency_code\": \"USD\"\r\n },\r\n \"is_default\": false,\r\n \"shipping_method\": {\r\n \"shipping_method_code\": \"express-courier\",\r\n \"shipping_method_name\": \"express-courier\"\r\n }\r\n }\r\n ]\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_gv8MXTZYhAFvCVPskAYY\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_GaSYTsJoc2VB9jkwD9Ag\",\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-02-01T06:19:17.308Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"os_type\": null,\r\n \"language\": null,\r\n \"time_zone\": null,\r\n \"ip_address\": \"::1\",\r\n \"os_version\": null,\r\n \"user_agent\": null,\r\n \"color_depth\": null,\r\n \"device_model\": null,\r\n \"java_enabled\": null,\r\n \"screen_width\": null,\r\n \"accept_header\": null,\r\n \"screen_height\": null,\r\n \"accept_language\": \"en\",\r\n \"java_script_enabled\": null\r\n },\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-02-01T06:12:41.541Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": 1000,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\n</details>\r\n\r\n\r\n<details>\r\n<summary>Refunds - Create</summary>\r\n\r\nRequest:\r\n\r\n```\r\ncurl --location 'http://localhost:8080/refunds' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: {{api_key}}' \\\r\n--data '{\r\n \"payment_id\": \"{{payment_id}}\",\r\n \"amount\": 11044,\r\n \"reason\": \"Customer returned product\",\r\n \"refund_type\": \"instant\" \r\n}'\r\n```\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"refund_id\": \"***\",\r\n \"payment_id\": \"***\",\r\n \"amount\": 11044,\r\n \"currency\": \"USD\",\r\n \"status\": \"pending\",\r\n \"reason\": \"Customer returned product\",\r\n \"metadata\": null,\r\n \"error_message\": null,\r\n \"error_code\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"created_at\": \"2025-02-01T06:16:01.318Z\",\r\n \"updated_at\": \"2025-02-01T06:16:03.084Z\",\r\n \"connector\": \"amazonpay\",\r\n \"profile_id\": \"pro_gv8MXTZYhAFvCVPskAYY\",\r\n \"merchant_connector_id\": \"mca_GaSYTsJoc2VB9jkwD9Ag\",\r\n \"split_refunds\": null\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>Refunds - Retrieve</summary>\r\n\r\nRequest:\r\n\r\n```\r\ncurl --location 'http://localhost:8080/refunds/{{refund_id}}' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: {{api_key}}'\r\n```\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"refund_id\": \"***\",\r\n \"payment_id\": \"***\",\r\n \"amount\": 11044,\r\n \"currency\": \"USD\",\r\n \"status\": \"succeeded\",\r\n \"reason\": \"Customer returned product\",\r\n \"metadata\": null,\r\n \"error_message\": null,\r\n \"error_code\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"created_at\": \"2025-02-01T06:16:01.318Z\",\r\n \"updated_at\": \"2025-02-01T06:18:16.267Z\",\r\n \"connector\": \"amazonpay\",\r\n \"profile_id\": \"pro_gv8MXTZYhAFvCVPskAYY\",\r\n \"merchant_connector_id\": \"mca_GaSYTsJoc2VB9jkwD9Ag\",\r\n \"split_refunds\": null\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>Feature API</summary>\r\n\r\nRequest:\r\n\r\n```\r\ncurl --location 'http://localhost:8080/feature_matrix' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: ***'\r\n```\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"connector_count\": 1,\r\n \"connectors\": [\r\n {\r\n \"name\": \"AMAZONPAY\",\r\n \"description\": \"Amazon Pay is an Alternative Payment Method (APM) connector that allows merchants to accept payments using customers' stored Amazon account details, providing a seamless checkout experience.\",\r\n \"category\": \"alternative_payment_method\",\r\n \"supported_payment_methods\": [\r\n {\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"amazon_pay\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\"\r\n ],\r\n \"supported_countries\": [\r\n \"US\"\r\n ],\r\n \"supported_currencies\": [\r\n \"USD\"\r\n ]\r\n }\r\n ],\r\n \"supported_webhook_flows\": []\r\n },\r\n ]\r\n}\r\n```\r\n</details>\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [x] I added unit tests for my changes where possible\r\n",
5
+ "author": "Anurag-05-prog",
6
+ "created_at": "2025-01-18T16:18:38+00:00",
7
+ "merged_at": "2025-08-29T08:49:23+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-connector-integration",
11
+ "C-feature",
12
+ "M-api-contract-changes"
13
+ ],
14
+ "url": "https://github.com/juspay/hyperswitch/pull/7062",
15
+ "commits": [
16
+ {
17
+ "sha": "83bb7cf59658206e9512e31828071778382e4eeb",
18
+ "message": "feat(connector): [AMAZONPAY] add wallet flows, payment method, and support for SDK integration",
19
+ "author": "Anurag Singh",
20
+ "date": "2025-01-28T07:18:37+00:00",
21
+ "url": "https://github.com/juspay/hyperswitch/commit/83bb7cf59658206e9512e31828071778382e4eeb"
22
+ },
23
+ {
24
+ "sha": "75e761210713185374abe58c64257a327eb8158c",
25
+ "message": "chore: resolve PR comment",
26
+ "author": "Anurag Singh",
27
+ "date": "2025-02-01T05:56:53+00:00",
28
+ "url": "https://github.com/juspay/hyperswitch/commit/75e761210713185374abe58c64257a327eb8158c"
29
+ },
30
+ {
31
+ "sha": "05d28835a6f7def32aa84ff912246793a95ccf1f",
32
+ "message": "feat: add amazonpay in feature api",
33
+ "author": "Anurag Singh",
34
+ "date": "2025-02-05T16:31:42+00:00",
35
+ "url": "https://github.com/juspay/hyperswitch/commit/05d28835a6f7def32aa84ff912246793a95ccf1f"
36
+ },
37
+ {
38
+ "sha": "62855639c3d24f5d0566573817049dcc8742b992",
39
+ "message": "fix: resolve errors",
40
+ "author": "Anurag Singh",
41
+ "date": "2025-02-08T06:21:33+00:00",
42
+ "url": "https://github.com/juspay/hyperswitch/commit/62855639c3d24f5d0566573817049dcc8742b992"
43
+ },
44
+ {
45
+ "sha": "36793a68bb925551b63339e82ea3482586906905",
46
+ "message": "chore: resolve PR comments",
47
+ "author": "Anurag Singh",
48
+ "date": "2025-02-11T18:35:36+00:00",
49
+ "url": "https://github.com/juspay/hyperswitch/commit/36793a68bb925551b63339e82ea3482586906905"
50
+ },
51
+ {
52
+ "sha": "3f9ed21974b3c3a7676f50953fca4f8c5864b19e",
53
+ "message": "fix: cypress test issue",
54
+ "author": "Anurag Singh",
55
+ "date": "2025-02-12T08:03:09+00:00",
56
+ "url": "https://github.com/juspay/hyperswitch/commit/3f9ed21974b3c3a7676f50953fca4f8c5864b19e"
57
+ },
58
+ {
59
+ "sha": "0543d73d57c8477f7e2b1df63dba0fc0badc7d6b",
60
+ "message": "fix: openapi checks failing",
61
+ "author": "Anurag Singh",
62
+ "date": "2025-02-24T15:47:54+00:00",
63
+ "url": "https://github.com/juspay/hyperswitch/commit/0543d73d57c8477f7e2b1df63dba0fc0badc7d6b"
64
+ },
65
+ {
66
+ "sha": "695dea1e82c4c97d56d4cb135aedc0fcf3c8065d",
67
+ "message": "refactor: resolve PR comments",
68
+ "author": "Anurag Singh",
69
+ "date": "2025-02-24T17:24:15+00:00",
70
+ "url": "https://github.com/juspay/hyperswitch/commit/695dea1e82c4c97d56d4cb135aedc0fcf3c8065d"
71
+ },
72
+ {
73
+ "sha": "d8d897070f8181a72b5bc4ede4b7d5ed94f838f6",
74
+ "message": "chore: run formatter",
75
+ "author": "hyperswitch-bot[bot]",
76
+ "date": "2025-03-10T11:44:24+00:00",
77
+ "url": "https://github.com/juspay/hyperswitch/commit/d8d897070f8181a72b5bc4ede4b7d5ed94f838f6"
78
+ },
79
+ {
80
+ "sha": "ec493cbe2a12f3fd5d9d42df77c81a84510d0dfa",
81
+ "message": "fix: payments.rs file",
82
+ "author": "Anurag Singh",
83
+ "date": "2025-03-10T12:15:15+00:00",
84
+ "url": "https://github.com/juspay/hyperswitch/commit/ec493cbe2a12f3fd5d9d42df77c81a84510d0dfa"
85
+ },
86
+ {
87
+ "sha": "5638f498157c1582c91369d9cee37a14bbfc1045",
88
+ "message": "Merge branch 'main' into amazon-pay-flows",
89
+ "author": "Anurag",
90
+ "date": "2025-03-11T10:41:42+00:00",
91
+ "url": "https://github.com/juspay/hyperswitch/commit/5638f498157c1582c91369d9cee37a14bbfc1045"
92
+ },
93
+ {
94
+ "sha": "dbf02637a847fcf8aa9da706bb5976fb3d35fc49",
95
+ "message": "Merge remote-tracking branch 'origin/main' into amazon-pay-flows",
96
+ "author": "Anurag Singh",
97
+ "date": "2025-03-13T20:36:53+00:00",
98
+ "url": "https://github.com/juspay/hyperswitch/commit/dbf02637a847fcf8aa9da706bb5976fb3d35fc49"
99
+ },
100
+ {
101
+ "sha": "71204a900bf3ea7f4fb9b30ac1a834b1395fb1d8",
102
+ "message": "refactor: resolve pr comment",
103
+ "author": "Anurag Singh",
104
+ "date": "2025-03-15T19:23:54+00:00",
105
+ "url": "https://github.com/juspay/hyperswitch/commit/71204a900bf3ea7f4fb9b30ac1a834b1395fb1d8"
106
+ },
107
+ {
108
+ "sha": "6702ad28728766682469b41798d7a82f7e9b5eed",
109
+ "message": "Merge remote-tracking branch 'origin/main' into amazon-pay-flows",
110
+ "author": "Anurag Singh",
111
+ "date": "2025-03-17T18:25:43+00:00",
112
+ "url": "https://github.com/juspay/hyperswitch/commit/6702ad28728766682469b41798d7a82f7e9b5eed"
113
+ },
114
+ {
115
+ "sha": "45611ac39e2d00f619e40c6752e29b73f9132579",
116
+ "message": "refactor: replace lazy_static with lazylock",
117
+ "author": "Anurag Singh",
118
+ "date": "2025-03-19T05:19:21+00:00",
119
+ "url": "https://github.com/juspay/hyperswitch/commit/45611ac39e2d00f619e40c6752e29b73f9132579"
120
+ },
121
+ {
122
+ "sha": "28f8dfa47df64d388bd9930e1a0dfb6624b0b5a0",
123
+ "message": "refactor: resolve PR comments",
124
+ "author": "Anurag Singh",
125
+ "date": "2025-03-24T19:37:05+00:00",
126
+ "url": "https://github.com/juspay/hyperswitch/commit/28f8dfa47df64d388bd9930e1a0dfb6624b0b5a0"
127
+ },
128
+ {
129
+ "sha": "be0ee08448db7dc776def7a320591d681ca8cb5d",
130
+ "message": "Merge remote-tracking branch 'origin/main' into amazon-pay-flows",
131
+ "author": "Anurag Singh",
132
+ "date": "2025-03-24T20:07:09+00:00",
133
+ "url": "https://github.com/juspay/hyperswitch/commit/be0ee08448db7dc776def7a320591d681ca8cb5d"
134
+ },
135
+ {
136
+ "sha": "628ae9686f3a3d80a9be24de77d2f351bf43d01a",
137
+ "message": "Merge remote-tracking branch 'origin/main' into amazon-pay-flows",
138
+ "author": "Anurag Singh",
139
+ "date": "2025-03-25T10:05:03+00:00",
140
+ "url": "https://github.com/juspay/hyperswitch/commit/628ae9686f3a3d80a9be24de77d2f351bf43d01a"
141
+ },
142
+ {
143
+ "sha": "77be9b4a7c8c7e56d0ec0222e2fbbaf96eb689dd",
144
+ "message": "refactor: resolve PR comments",
145
+ "author": "Anurag Singh",
146
+ "date": "2025-03-25T14:14:16+00:00",
147
+ "url": "https://github.com/juspay/hyperswitch/commit/77be9b4a7c8c7e56d0ec0222e2fbbaf96eb689dd"
148
+ },
149
+ {
150
+ "sha": "e039b4db7357fe68ba855342510f01bf0eab34df",
151
+ "message": "Merge branch 'main' into amazon-pay-flows",
152
+ "author": "Anurag",
153
+ "date": "2025-03-26T12:13:02+00:00",
154
+ "url": "https://github.com/juspay/hyperswitch/commit/e039b4db7357fe68ba855342510f01bf0eab34df"
155
+ },
156
+ {
157
+ "sha": "33338d663fbc6aa1c477c213df5b902f90c764c4",
158
+ "message": "Merge remote-tracking branch 'origin/main' into amazon-pay-flows",
159
+ "author": "Anurag Singh",
160
+ "date": "2025-04-23T07:46:17+00:00",
161
+ "url": "https://github.com/juspay/hyperswitch/commit/33338d663fbc6aa1c477c213df5b902f90c764c4"
162
+ },
163
+ {
164
+ "sha": "925ab7a67986b011db1d66c1219220bc7f796a3f",
165
+ "message": "refactor: resolve PR comments",
166
+ "author": "Anurag Singh",
167
+ "date": "2025-04-24T12:27:12+00:00",
168
+ "url": "https://github.com/juspay/hyperswitch/commit/925ab7a67986b011db1d66c1219220bc7f796a3f"
169
+ },
170
+ {
171
+ "sha": "f940a34c8434a15f0bea26366b2119dcaa1b57bf",
172
+ "message": "Merge remote-tracking branch 'origin/main' into amazon-pay-flows",
173
+ "author": "Anurag Singh",
174
+ "date": "2025-04-24T12:29:59+00:00",
175
+ "url": "https://github.com/juspay/hyperswitch/commit/f940a34c8434a15f0bea26366b2119dcaa1b57bf"
176
+ },
177
+ {
178
+ "sha": "3b2a2fbbfe93fc98f98efb947aa418ec99bc6945",
179
+ "message": "refactor: resolve PR comments",
180
+ "author": "Anurag Singh",
181
+ "date": "2025-05-01T14:47:51+00:00",
182
+ "url": "https://github.com/juspay/hyperswitch/commit/3b2a2fbbfe93fc98f98efb947aa418ec99bc6945"
183
+ },
184
+ {
185
+ "sha": "d74a40d50b8eb6a87bb42a9f8bf891cf3119cebd",
186
+ "message": "refactor: remove unused code",
187
+ "author": "Anurag Singh",
188
+ "date": "2025-05-01T15:39:31+00:00",
189
+ "url": "https://github.com/juspay/hyperswitch/commit/d74a40d50b8eb6a87bb42a9f8bf891cf3119cebd"
190
+ },
191
+ {
192
+ "sha": "86a67a62dc424c742fe10b06044616f2e800761b",
193
+ "message": "fix: openapi spec error",
194
+ "author": "Anurag Singh",
195
+ "date": "2025-05-06T10:28:07+00:00",
196
+ "url": "https://github.com/juspay/hyperswitch/commit/86a67a62dc424c742fe10b06044616f2e800761b"
197
+ },
198
+ {
199
+ "sha": "706288f23409e920289fcbdfa8048069bd3f3cd1",
200
+ "message": "Merge remote-tracking branch 'origin/main' into amazon-pay-flows",
201
+ "author": "Anurag Singh",
202
+ "date": "2025-05-06T10:40:11+00:00",
203
+ "url": "https://github.com/juspay/hyperswitch/commit/706288f23409e920289fcbdfa8048069bd3f3cd1"
204
+ },
205
+ {
206
+ "sha": "f70d391d3507dd148266034c1bd6b3df79ad8287",
207
+ "message": "docs(openapi): re-generate OpenAPI specification",
208
+ "author": "hyperswitch-bot[bot]",
209
+ "date": "2025-05-06T10:46:18+00:00",
210
+ "url": "https://github.com/juspay/hyperswitch/commit/f70d391d3507dd148266034c1bd6b3df79ad8287"
211
+ },
212
+ {
213
+ "sha": "6764b220286f042aa5579bd514723a75598adeb2",
214
+ "message": "refactor: replace openssl with rsa",
215
+ "author": "Anurag Singh",
216
+ "date": "2025-05-12T10:12:09+00:00",
217
+ "url": "https://github.com/juspay/hyperswitch/commit/6764b220286f042aa5579bd514723a75598adeb2"
218
+ },
219
+ {
220
+ "sha": "d61353fe82253712989c7aa2fab6d98fcf7c3899",
221
+ "message": "Merge remote-tracking branch 'origin/main' into amazon-pay-flows",
222
+ "author": "Anurag Singh",
223
+ "date": "2025-05-19T11:42:54+00:00",
224
+ "url": "https://github.com/juspay/hyperswitch/commit/d61353fe82253712989c7aa2fab6d98fcf7c3899"
225
+ },
226
+ {
227
+ "sha": "2c93f4b08b7ec21f2664faf606b0d28c9b292443",
228
+ "message": "fix errors and resolve comments",
229
+ "author": "Anurag Singh",
230
+ "date": "2025-05-19T12:23:05+00:00",
231
+ "url": "https://github.com/juspay/hyperswitch/commit/2c93f4b08b7ec21f2664faf606b0d28c9b292443"
232
+ },
233
+ {
234
+ "sha": "ede9f220a96329a2df2e9ea843d552d50bd1eb64",
235
+ "message": "chore: run formatter",
236
+ "author": "hyperswitch-bot[bot]",
237
+ "date": "2025-05-19T12:24:11+00:00",
238
+ "url": "https://github.com/juspay/hyperswitch/commit/ede9f220a96329a2df2e9ea843d552d50bd1eb64"
239
+ },
240
+ {
241
+ "sha": "8656f9195a0772f59353575c294bd911bd6e4f68",
242
+ "message": "resolve comments",
243
+ "author": "Anurag Singh",
244
+ "date": "2025-05-19T14:36:16+00:00",
245
+ "url": "https://github.com/juspay/hyperswitch/commit/8656f9195a0772f59353575c294bd911bd6e4f68"
246
+ },
247
+ {
248
+ "sha": "e6bb121691379197525c228f24657743dc9f09a9",
249
+ "message": "chore: run formatter",
250
+ "author": "hyperswitch-bot[bot]",
251
+ "date": "2025-05-19T14:37:14+00:00",
252
+ "url": "https://github.com/juspay/hyperswitch/commit/e6bb121691379197525c228f24657743dc9f09a9"
253
+ },
254
+ {
255
+ "sha": "a7ca0086635d71b3197e9ffe53abcf19f0bc5370",
256
+ "message": "Merge remote-tracking branch 'origin/main' into amazon-pay-flows",
257
+ "author": "Anurag Singh",
258
+ "date": "2025-05-23T07:02:53+00:00",
259
+ "url": "https://github.com/juspay/hyperswitch/commit/a7ca0086635d71b3197e9ffe53abcf19f0bc5370"
260
+ },
261
+ {
262
+ "sha": "381f29b9f1d3f20170edf8919cc9a030ee4135e8",
263
+ "message": "resolve comments",
264
+ "author": "Anurag Singh",
265
+ "date": "2025-05-23T09:11:33+00:00",
266
+ "url": "https://github.com/juspay/hyperswitch/commit/381f29b9f1d3f20170edf8919cc9a030ee4135e8"
267
+ },
268
+ {
269
+ "sha": "ee6fad50bf1531b177e3a54d28c8a7c8d8143537",
270
+ "message": "Merge remote-tracking branch 'origin/main' into amazon-pay-flows",
271
+ "author": "Anurag Singh",
272
+ "date": "2025-05-27T08:46:50+00:00",
273
+ "url": "https://github.com/juspay/hyperswitch/commit/ee6fad50bf1531b177e3a54d28c8a7c8d8143537"
274
+ },
275
+ {
276
+ "sha": "ae5b77282951cc550643c998dbeb30a9910efe5e",
277
+ "message": "refactor: resolve PR comments",
278
+ "author": "Anurag Singh",
279
+ "date": "2025-05-30T18:34:17+00:00",
280
+ "url": "https://github.com/juspay/hyperswitch/commit/ae5b77282951cc550643c998dbeb30a9910efe5e"
281
+ },
282
+ {
283
+ "sha": "80a488d8492499ddfc10cab6bf52adeb98a1d4e3",
284
+ "message": "Merge remote-tracking branch 'origin/main' into amazon-pay-flows",
285
+ "author": "Anurag Singh",
286
+ "date": "2025-06-01T15:06:28+00:00",
287
+ "url": "https://github.com/juspay/hyperswitch/commit/80a488d8492499ddfc10cab6bf52adeb98a1d4e3"
288
+ },
289
+ {
290
+ "sha": "9d11c9ec0e38e6085a8c8287367668ce66caba8e",
291
+ "message": "Merge remote-tracking branch 'origin/main' into amazon-pay-flows",
292
+ "author": "Anurag Singh",
293
+ "date": "2025-06-09T11:41:41+00:00",
294
+ "url": "https://github.com/juspay/hyperswitch/commit/9d11c9ec0e38e6085a8c8287367668ce66caba8e"
295
+ },
296
+ {
297
+ "sha": "bb9a8685cfca94f9d4a1166eeb1e2c3283f6faca",
298
+ "message": "fix merge conflict",
299
+ "author": "Anurag Singh",
300
+ "date": "2025-07-18T10:45:13+00:00",
301
+ "url": "https://github.com/juspay/hyperswitch/commit/bb9a8685cfca94f9d4a1166eeb1e2c3283f6faca"
302
+ },
303
+ {
304
+ "sha": "29ea959545611db7331af2f463f46ded28ec07f9",
305
+ "message": "fix clippy error",
306
+ "author": "Anurag Singh",
307
+ "date": "2025-07-18T12:27:48+00:00",
308
+ "url": "https://github.com/juspay/hyperswitch/commit/29ea959545611db7331af2f463f46ded28ec07f9"
309
+ },
310
+ {
311
+ "sha": "cfa82cea4ce3090bacf798601681500a1e6ad579",
312
+ "message": "add unit test for signature function",
313
+ "author": "Anurag Singh",
314
+ "date": "2025-07-23T08:21:01+00:00",
315
+ "url": "https://github.com/juspay/hyperswitch/commit/cfa82cea4ce3090bacf798601681500a1e6ad579"
316
+ },
317
+ {
318
+ "sha": "04ac001a42f6595f0ab8e92c09245196a25d3f9f",
319
+ "message": "chore: run formatter",
320
+ "author": "hyperswitch-bot[bot]",
321
+ "date": "2025-07-23T08:21:56+00:00",
322
+ "url": "https://github.com/juspay/hyperswitch/commit/04ac001a42f6595f0ab8e92c09245196a25d3f9f"
323
+ },
324
+ {
325
+ "sha": "2ef6014458f92893a127516ac63ff164652a40e3",
326
+ "message": "fix clippy errors",
327
+ "author": "Anurag Singh",
328
+ "date": "2025-07-23T09:15:43+00:00",
329
+ "url": "https://github.com/juspay/hyperswitch/commit/2ef6014458f92893a127516ac63ff164652a40e3"
330
+ },
331
+ {
332
+ "sha": "543fff3affcf3361d729981de70467ae67d0c77b",
333
+ "message": "fix clippy errors",
334
+ "author": "Anurag Singh",
335
+ "date": "2025-07-23T10:02:20+00:00",
336
+ "url": "https://github.com/juspay/hyperswitch/commit/543fff3affcf3361d729981de70467ae67d0c77b"
337
+ },
338
+ {
339
+ "sha": "3e378daf3e791d393edc11b56ab2ea7dd014b58c",
340
+ "message": "chore: run formatter",
341
+ "author": "hyperswitch-bot[bot]",
342
+ "date": "2025-07-23T10:10:47+00:00",
343
+ "url": "https://github.com/juspay/hyperswitch/commit/3e378daf3e791d393edc11b56ab2ea7dd014b58c"
344
+ },
345
+ {
346
+ "sha": "c87d8843d29e91c660feb991abc99674523838a6",
347
+ "message": "refactor: make shipping_cost mandatory",
348
+ "author": "Anurag Singh",
349
+ "date": "2025-07-25T09:35:07+00:00",
350
+ "url": "https://github.com/juspay/hyperswitch/commit/c87d8843d29e91c660feb991abc99674523838a6"
351
+ },
352
+ {
353
+ "sha": "d68a302fd09f1780fa261b6a19dda375ef66b0a8",
354
+ "message": "Merge remote-tracking branch 'origin/main' into amazon-pay-flows",
355
+ "author": "Anurag Singh",
356
+ "date": "2025-07-30T10:05:40+00:00",
357
+ "url": "https://github.com/juspay/hyperswitch/commit/d68a302fd09f1780fa261b6a19dda375ef66b0a8"
358
+ },
359
+ {
360
+ "sha": "cdecec7dbfe1d88ee19f1b5529f9af325646d4d4",
361
+ "message": "add payment connector required fields",
362
+ "author": "Anurag Singh",
363
+ "date": "2025-07-31T12:07:43+00:00",
364
+ "url": "https://github.com/juspay/hyperswitch/commit/cdecec7dbfe1d88ee19f1b5529f9af325646d4d4"
365
+ },
366
+ {
367
+ "sha": "8e62cb5ab6b5f802528edf5f63000b2892b1ccc8",
368
+ "message": "Merge remote-tracking branch 'origin/main' into amazon-pay-flows",
369
+ "author": "Anurag Singh",
370
+ "date": "2025-08-02T08:01:09+00:00",
371
+ "url": "https://github.com/juspay/hyperswitch/commit/8e62cb5ab6b5f802528edf5f63000b2892b1ccc8"
372
+ },
373
+ {
374
+ "sha": "fc160824790684026a92241a0fa39c7692af62cd",
375
+ "message": "refactor: resolve comment",
376
+ "author": "Anurag Singh",
377
+ "date": "2025-08-06T04:35:22+00:00",
378
+ "url": "https://github.com/juspay/hyperswitch/commit/fc160824790684026a92241a0fa39c7692af62cd"
379
+ },
380
+ {
381
+ "sha": "009a45c559464835907a26fa357720bddd54b6a9",
382
+ "message": "Merge branch 'main' into amazon-pay-flows",
383
+ "author": "Anurag",
384
+ "date": "2025-08-06T08:27:05+00:00",
385
+ "url": "https://github.com/juspay/hyperswitch/commit/009a45c559464835907a26fa357720bddd54b6a9"
386
+ },
387
+ {
388
+ "sha": "2c3cfedab3e860feab9cfcbfaea5a3da25d7c53c",
389
+ "message": "fix clippy error",
390
+ "author": "Anurag Singh",
391
+ "date": "2025-08-06T09:09:02+00:00",
392
+ "url": "https://github.com/juspay/hyperswitch/commit/2c3cfedab3e860feab9cfcbfaea5a3da25d7c53c"
393
+ },
394
+ {
395
+ "sha": "4f9927b88c63cf164bea73f8ca362890443abfce",
396
+ "message": "Merge remote-tracking branch 'origin/main' into barclaycard-google-pay-flow",
397
+ "author": "Anurag Singh",
398
+ "date": "2025-08-08T20:51:52+00:00",
399
+ "url": "https://github.com/juspay/hyperswitch/commit/4f9927b88c63cf164bea73f8ca362890443abfce"
400
+ },
401
+ {
402
+ "sha": "6460731484d5cd088720a20fa49077999f359c5b",
403
+ "message": "fix merge conflict",
404
+ "author": "Anurag Singh",
405
+ "date": "2025-08-08T21:04:45+00:00",
406
+ "url": "https://github.com/juspay/hyperswitch/commit/6460731484d5cd088720a20fa49077999f359c5b"
407
+ },
408
+ {
409
+ "sha": "ada49426707cf75da02962f8ee8cbf5c87e374e9",
410
+ "message": "Merge remote-tracking branch 'origin/main' into barclaycard-google-pay-flow",
411
+ "author": "Anurag Singh",
412
+ "date": "2025-08-24T04:46:04+00:00",
413
+ "url": "https://github.com/juspay/hyperswitch/commit/ada49426707cf75da02962f8ee8cbf5c87e374e9"
414
+ },
415
+ {
416
+ "sha": "7e22279b84f31cfdd900717a148ad401dff2cb0f",
417
+ "message": "Merge remote-tracking branch 'origin/main' into barclaycard-google-pay-flow",
418
+ "author": "Anurag Singh",
419
+ "date": "2025-08-25T05:40:02+00:00",
420
+ "url": "https://github.com/juspay/hyperswitch/commit/7e22279b84f31cfdd900717a148ad401dff2cb0f"
421
+ },
422
+ {
423
+ "sha": "1d83e45bd84826d4001fc9deb2784b8aaa7698c2",
424
+ "message": "refactor: resolve comment",
425
+ "author": "Anurag Singh",
426
+ "date": "2025-08-28T12:07:56+00:00",
427
+ "url": "https://github.com/juspay/hyperswitch/commit/1d83e45bd84826d4001fc9deb2784b8aaa7698c2"
428
+ },
429
+ {
430
+ "sha": "7e38cef6db9b12150e54e29ca400eae42cb12589",
431
+ "message": "Merge branch 'main' into amazon-pay-flows",
432
+ "author": "Anurag",
433
+ "date": "2025-08-28T12:33:54+00:00",
434
+ "url": "https://github.com/juspay/hyperswitch/commit/7e38cef6db9b12150e54e29ca400eae42cb12589"
435
+ },
436
+ {
437
+ "sha": "1aadd5d84b122a9ab9833c57c4631ef0d36fa97b",
438
+ "message": "resolve clippy error",
439
+ "author": "Anurag Singh",
440
+ "date": "2025-08-28T12:45:17+00:00",
441
+ "url": "https://github.com/juspay/hyperswitch/commit/1aadd5d84b122a9ab9833c57c4631ef0d36fa97b"
442
+ },
443
+ {
444
+ "sha": "d4693e36ede0298df98175cd2a012724505af0af",
445
+ "message": "Merge branch 'amazon-pay-flows' of github.com:juspay/hyperswitch into amazon-pay-flows",
446
+ "author": "Anurag Singh",
447
+ "date": "2025-08-28T12:46:15+00:00",
448
+ "url": "https://github.com/juspay/hyperswitch/commit/d4693e36ede0298df98175cd2a012724505af0af"
449
+ },
450
+ {
451
+ "sha": "b20746f6a991e4014762eee03696c3729f4514c6",
452
+ "message": "chore: run formatter",
453
+ "author": "hyperswitch-bot[bot]",
454
+ "date": "2025-08-28T12:51:45+00:00",
455
+ "url": "https://github.com/juspay/hyperswitch/commit/b20746f6a991e4014762eee03696c3729f4514c6"
456
+ }
457
+ ]
458
+ }
prs/pr_7078.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7078,
3
+ "title": "refactor(router): refactor ctp flow to fetch mca_id and get the connector creds instead of connector_name",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [x] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nrefactor ctp flow to fetch mca_id and get the connector creds instead of connector_name\r\n\r\nMain PR - https://github.com/juspay/hyperswitch/pull/6859\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nTest cases in Main PR\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "sai-harsha-vardhan",
6
+ "created_at": "2025-01-20T13:29:18+00:00",
7
+ "merged_at": "2025-01-20T16:38:35+00:00",
8
+ "base_branch": "hotfix-2025.01.14.0",
9
+ "labels": [
10
+ "A-core",
11
+ "C-bug",
12
+ "C-refactor"
13
+ ],
14
+ "url": "https://github.com/juspay/hyperswitch/pull/7078",
15
+ "commits": [
16
+ {
17
+ "sha": "2fe964c84aaf63ae36ce321b6faacedd02c678cb",
18
+ "message": "refactor(router): refactor ctp flow to fetch mca_id and get the connector creds instead of connector_name (#6859)\n\nCo-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>\nCo-authored-by: Sai Harsha Vardhan <56996463+sai-harsha-vardhan@users.noreply.github.com>",
19
+ "author": "Sahkal Poddar",
20
+ "date": "2025-01-20T12:02:05+00:00",
21
+ "url": "https://github.com/juspay/hyperswitch/commit/2fe964c84aaf63ae36ce321b6faacedd02c678cb"
22
+ }
23
+ ]
24
+ }
prs/pr_7120.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7120,
3
+ "title": "fix(connector): handle unexpected error response from bluesnap connector",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nThe code ensures any unexpected responses from the connector are appropriately logged and handled, providing meaningful and actionable error information to the caller.\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\nThe Bluesnap Connector propagates errors received from its cloud service (Cloudflare). Cloudflare returns these errors in HTML format, and Bluesnap forwards them in the same HTML format. When an error is received in HTML format, the backend's deserialization fails because it expects the response to be in JSON format.\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nUnable to test 5xx error codes\r\n\r\nNormal testing done through postman\r\n1. Payment Connector - Create\r\n\r\nRequest - \r\n\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1737978930/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data '{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"bluesnap\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"BodyKey\",\r\n \"api_key\":\"Hyperswitch_P4yments\",\r\n \"key1\":\"API_16769616681841700433194\"\r\n },\r\n \"test_mode\": false,\r\n \"disabled\": false,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\",\r\n \"Interac\",\r\n \"AmericanExpress\",\r\n \"JCB\",\r\n \"DinersClub\",\r\n \"Discover\",\r\n \"CartesBancaires\",\r\n \"UnionPay\"\r\n ],\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"AmericanExpress\",\r\n \"Visa\",\r\n \"Mastercard\",\r\n \"Discover\",\r\n \"Interac\",\r\n \"JCB\",\r\n \"DinersClub\",\r\n \"UnionPay\",\r\n \"RuPay\"\r\n ],\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"google_pay\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"apple_pay\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"klarna\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"affirm\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"afterpay_clearpay\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\"\r\n },\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"MyWebhookSecret\"\r\n },\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\"\r\n}'\r\n```\r\n\r\nResponse - \r\n\r\n```\r\n{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"bluesnap\",\r\n \"connector_label\": \"bluesnap_US_default\",\r\n \"merchant_connector_id\": \"mca_thvNFxLqnEvxlCuNYHHd\",\r\n \"profile_id\": \"pro_y9tlfRoNqyKFoTv0jV7q\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"BodyKey\",\r\n \"api_key\": \"Hy****************ts\",\r\n \"key1\": \"AP***********************94\"\r\n },\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\",\r\n \"Interac\",\r\n \"AmericanExpress\",\r\n \"JCB\",\r\n \"DinersClub\",\r\n \"Discover\",\r\n \"CartesBancaires\",\r\n \"UnionPay\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"AmericanExpress\",\r\n \"Visa\",\r\n \"Mastercard\",\r\n \"Discover\",\r\n \"Interac\",\r\n \"JCB\",\r\n \"DinersClub\",\r\n \"UnionPay\",\r\n \"RuPay\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"google_pay\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"apple_pay\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"klarna\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"affirm\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"afterpay_clearpay\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"MyWebhookSecret\",\r\n \"additional_secret\": null\r\n },\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\"\r\n },\r\n \"test_mode\": false,\r\n \"disabled\": false,\r\n \"frm_configs\": null,\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"applepay_verified_domains\": null,\r\n \"pm_auth_config\": null,\r\n \"status\": \"active\",\r\n \"additional_merchant_data\": null,\r\n \"connector_wallets_details\": null\r\n}\r\n```\r\n2A. Payments - Create (Successful Transaction)\r\n\r\nRequest -\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_5KAXSZnLdrlEc2TqZsnrEfcnQqo6DfAQssC12bYyQ446NkHIfrF9eS9D5zHGcNQd' \\\r\n--data-raw '{\r\n \"amount\": 6540,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"customer_id\": \"bluesnapsavecard_123\",\r\n \"email\": \"guest@example.com\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://duck.com\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4263982640269299\",\r\n \"card_exp_month\": \"4\",\r\n \"card_exp_year\": \"26\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"738\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\":\"US\",\r\n \"first_name\": \"PiX\"\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n }\r\n}'\r\n```\r\n\r\nResponse - \r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_GlBb0QHBglMPzrs7KUFH\",\r\n \"merchant_id\": \"merchant_1737978930\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 6540,\r\n \"net_amount\": 6540,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 6540,\r\n \"connector\": \"bluesnap\",\r\n \"client_secret\": \"pay_GlBb0QHBglMPzrs7KUFH_secret_EjtASO8UyEF7lbwqbBp3\",\r\n \"created\": \"2025-01-27T12:14:05.253Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"bluesnapsavecard_123\",\r\n \"customer\": {\r\n \"id\": \"bluesnapsavecard_123\",\r\n \"name\": null,\r\n \"email\": \"guest@example.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"9299\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"426398\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"4\",\r\n \"card_exp_year\": \"26\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_Nf1u8P35zmlUmjQeySy1\",\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"PiX\",\r\n \"last_name\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": \"https://duck.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": null,\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"bluesnapsavecard_123\",\r\n \"created_at\": 1737980045,\r\n \"expires\": 1737983645,\r\n \"secret\": \"epk_986f5561194a4f0099af0a64b111798c\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"1072270280\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\",\r\n \"new_customer\": \"true\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"1072270280\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_y9tlfRoNqyKFoTv0jV7q\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_thvNFxLqnEvxlCuNYHHd\",\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-01-27T12:29:05.253Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-01-27T12:14:09.598Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\n\r\n2B. Payments - Create (Failed Transaction, producing error)\r\n\r\nRequest - \r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_5KAXSZnLdrlEc2TqZsnrEfcnQqo6DfAQssC12bYyQ446NkHIfrF9eS9D5zHGcNQd' \\\r\n--data-raw '{\r\n \"amount\": 6540,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"customer_id\": \"bluesnapsavecard_123\",\r\n \"email\": \"guest@example.com\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://duck.com\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4347699988887777\",\r\n \"card_exp_month\": \"1\",\r\n \"card_exp_year\": \"26\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"555\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\":\"US\",\r\n \"first_name\": \"PiX\"\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n }\r\n}'\r\n```\r\n\r\nResponse - \r\n\r\n```\r\n{\r\n \"amount\": 6540,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"customer_id\": \"bluesnapsavecard_123\",\r\n \"email\": \"guest@example.com\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://duck.com\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4347699988887777\",\r\n \"card_exp_month\": \"1\",\r\n \"card_exp_year\": \"26\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"555\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\":\"US\",\r\n \"first_name\": \"PiX\"\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n }\r\n}\r\n```\r\nCypress Test\r\n\r\n<img width=\"842\" alt=\"Screenshot 2025-01-30 at 13 02 43\" src=\"https://github.com/user-attachments/assets/e81ccafb-1f51-44db-9199-d4b97405050d\" />\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "Anurag-05-prog",
6
+ "created_at": "2025-01-27T11:29:17+00:00",
7
+ "merged_at": "2025-02-06T14:38:20+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "C-bug"
11
+ ],
12
+ "url": "https://github.com/juspay/hyperswitch/pull/7120",
13
+ "commits": [
14
+ {
15
+ "sha": "1a62dab53a86fd13ce00c426b2ec78251419a52a",
16
+ "message": "fix(bluesnap): handle unexpected error response from bluesnap connector",
17
+ "author": "Anurag Singh",
18
+ "date": "2025-01-28T08:41:30+00:00",
19
+ "url": "https://github.com/juspay/hyperswitch/commit/1a62dab53a86fd13ce00c426b2ec78251419a52a"
20
+ },
21
+ {
22
+ "sha": "c552cc5168e54863ef2fd73936de507bb29a08a2",
23
+ "message": "fix: resolve PR comment",
24
+ "author": "Anurag Singh",
25
+ "date": "2025-01-28T11:44:02+00:00",
26
+ "url": "https://github.com/juspay/hyperswitch/commit/c552cc5168e54863ef2fd73936de507bb29a08a2"
27
+ },
28
+ {
29
+ "sha": "b915b9b25f95dd50ebe1d4343ebe7e754c253e00",
30
+ "message": "Merge branch 'main' into bluesnap-connector-bug-fix",
31
+ "author": "Anurag",
32
+ "date": "2025-01-30T11:32:46+00:00",
33
+ "url": "https://github.com/juspay/hyperswitch/commit/b915b9b25f95dd50ebe1d4343ebe7e754c253e00"
34
+ },
35
+ {
36
+ "sha": "e4bba21be80e2244f534709fac4b6dfebac8c36e",
37
+ "message": "Merge branch 'main' into bluesnap-connector-bug-fix",
38
+ "author": "Gnanasundari24",
39
+ "date": "2025-02-05T13:45:53+00:00",
40
+ "url": "https://github.com/juspay/hyperswitch/commit/e4bba21be80e2244f534709fac4b6dfebac8c36e"
41
+ },
42
+ {
43
+ "sha": "e021ae4f84786c09338d6b7cbba2548e50b23d5e",
44
+ "message": "Merge branch 'main' into bluesnap-connector-bug-fix",
45
+ "author": "Anurag",
46
+ "date": "2025-02-05T15:43:30+00:00",
47
+ "url": "https://github.com/juspay/hyperswitch/commit/e021ae4f84786c09338d6b7cbba2548e50b23d5e"
48
+ },
49
+ {
50
+ "sha": "56eed51c89212b629d5f4572bceebca4795a78a4",
51
+ "message": "Merge branch 'main' into bluesnap-connector-bug-fix",
52
+ "author": "Anurag",
53
+ "date": "2025-02-06T06:57:55+00:00",
54
+ "url": "https://github.com/juspay/hyperswitch/commit/56eed51c89212b629d5f4572bceebca4795a78a4"
55
+ }
56
+ ]
57
+ }
prs/pr_7206.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7206,
3
+ "title": "chore(connector): [Fiuu] log keys in the PSync response",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\nHotfix for https://github.com/juspay/hyperswitch/pull/7189\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n- \r\n\r\n\r\n## How did you test it?\r\n-\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "kashif-m",
6
+ "created_at": "2025-02-07T04:08:17+00:00",
7
+ "merged_at": "2025-02-07T07:20:19+00:00",
8
+ "base_branch": "hotfix-2025.01.20.0",
9
+ "labels": [],
10
+ "url": "https://github.com/juspay/hyperswitch/pull/7206",
11
+ "commits": [
12
+ {
13
+ "sha": "a3c0f6686ba0f23763dc08cbbe299bf5c868e3d9",
14
+ "message": "chore(connector): [Fiuu] log keys in the PSync response (#7189)\n\n(cherry picked from commit c044ffff0c47ee5d3ef5f905c3f590fae4ac9a24)",
15
+ "author": "Kashif",
16
+ "date": "2025-02-06T09:35:29+00:00",
17
+ "url": "https://github.com/juspay/hyperswitch/commit/a3c0f6686ba0f23763dc08cbbe299bf5c868e3d9"
18
+ }
19
+ ]
20
+ }
prs/pr_7241.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7241,
3
+ "title": "feat(router): Add customer_list_saved_payment_methods endpoint to OLAP",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [x] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nAdd `customer_list_saved_payment_methods` to OLAP and allow JWT Auth\r\n\r\nThis endpoint allows retrieving saved payment methods for a customer\r\n\r\nThis PR enables the endpoint to be used from the dashboard\r\n\r\n### Additional Changes\r\n\r\n- [x] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n- Request\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/v2/customers/12345_cus_0195187353c47d438edd6044cadb0969/saved-payment-methods' \\\r\n--header 'api-key: dev_Z0aXn9A50mSviMWnWLC02YHDhCxoLdKawgHzVMRwErbyyYQ5O4XvqjNYMQoCCaT1' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'x-profile-id: pro_9glqJzp3eRd6XljDKDE9'\r\n```\r\n\r\n- Response\r\n\r\n```json\r\n{\r\n \"customer_payment_methods\": [\r\n {\r\n \"id\": \"12345_pm_019518761b3075e0a4da6035422ce961\",\r\n \"customer_id\": \"12345_cus_0195187353c47d438edd6044cadb0969\",\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_subtype\": \"credit\",\r\n \"recurring_enabled\": true,\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"issuer_country\": null,\r\n \"last4_digits\": \"4242\",\r\n \"expiry_month\": \"02\",\r\n \"expiry_year\": \"2025\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_fingerprint\": null,\r\n \"nick_name\": null,\r\n \"card_network\": null,\r\n \"card_isin\": null,\r\n \"card_issuer\": null,\r\n \"card_type\": null,\r\n \"saved_to_locker\": true\r\n }\r\n },\r\n \"bank\": null,\r\n \"created\": \"2025-02-18T09:49:08.273Z\",\r\n \"requires_cvv\": true,\r\n \"last_used_at\": \"2025-02-18T09:49:08.273Z\",\r\n \"is_default\": false,\r\n \"billing\": null\r\n }\r\n ]\r\n}\r\n```\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "AnuthaDev",
6
+ "created_at": "2025-02-11T07:39:41+00:00",
7
+ "merged_at": "2025-02-24T08:11:43+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-core",
11
+ "M-api-contract-changes",
12
+ "api-v2"
13
+ ],
14
+ "url": "https://github.com/juspay/hyperswitch/pull/7241",
15
+ "commits": [
16
+ {
17
+ "sha": "086ff4583aadc16d4d94bd4d2ea5ffc1f4e663c9",
18
+ "message": "feat(router): Add customer_list_saved_payment_methods endpoint to OLAP",
19
+ "author": "Anurag Thakur",
20
+ "date": "2025-02-11T07:06:34+00:00",
21
+ "url": "https://github.com/juspay/hyperswitch/commit/086ff4583aadc16d4d94bd4d2ea5ffc1f4e663c9"
22
+ },
23
+ {
24
+ "sha": "23ef471a2c0e615c2ca9eb4dca0ccfbe6e385892",
25
+ "message": "Address review comments",
26
+ "author": "Anurag Thakur",
27
+ "date": "2025-02-12T07:33:56+00:00",
28
+ "url": "https://github.com/juspay/hyperswitch/commit/23ef471a2c0e615c2ca9eb4dca0ccfbe6e385892"
29
+ }
30
+ ]
31
+ }
prs/pr_7332.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7332,
3
+ "title": "fix(routing): Fixed 5xx error logs in dynamic routing metrics",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nA 5xx error log in DR metrics was spamming in alerts. \r\nHave removed the log\r\nMain PR - https://github.com/juspay/hyperswitch/pull/7335\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nmake a payment with dynamic routing enabled\r\n5xx error log now converted to 4xx\r\n<img width=\"1056\" alt=\"image\" src=\"https://github.com/user-attachments/assets/df763221-d26b-47a0-927a-83a5d38d0457\" />\r\n\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "Sarthak1799",
6
+ "created_at": "2025-02-20T16:27:37+00:00",
7
+ "merged_at": "2025-02-24T05:49:30+00:00",
8
+ "base_branch": "hotfix-2025.02.10.0",
9
+ "labels": [
10
+ "C-bug"
11
+ ],
12
+ "url": "https://github.com/juspay/hyperswitch/pull/7332",
13
+ "commits": [
14
+ {
15
+ "sha": "3ca4189cf735cc83691e7f4468b80ecd9549137d",
16
+ "message": "fix: Removed 5xx log in DR metrics",
17
+ "author": "Sarthak Soni",
18
+ "date": "2025-02-20T16:14:33+00:00",
19
+ "url": "https://github.com/juspay/hyperswitch/commit/3ca4189cf735cc83691e7f4468b80ecd9549137d"
20
+ },
21
+ {
22
+ "sha": "04fd5f6a158986bd60142415ebdd564b62ede1b5",
23
+ "message": "fix: Fixed more 5xx",
24
+ "author": "Sarthak Soni",
25
+ "date": "2025-02-20T17:22:10+00:00",
26
+ "url": "https://github.com/juspay/hyperswitch/commit/04fd5f6a158986bd60142415ebdd564b62ede1b5"
27
+ },
28
+ {
29
+ "sha": "24f3f82003b857a14f604e5afc098f0e87ffa5cf",
30
+ "message": "Merge branch 'hotfix-2025.02.10.0' into dr-fix",
31
+ "author": "Sarthak Soni",
32
+ "date": "2025-02-23T06:56:54+00:00",
33
+ "url": "https://github.com/juspay/hyperswitch/commit/24f3f82003b857a14f604e5afc098f0e87ffa5cf"
34
+ }
35
+ ]
36
+ }
prs/pr_7337.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7337,
3
+ "title": "fix(samsung_pay): add payment_method_type duplication check",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nAs we do not have a unique identifier to store when we save a wallet, we are unable to prevent payment method duplication. As a result, when a customer uses a saved wallet, we end up saving it again. During the next payment, the customer will see two buttons for the same wallet in the customer PML.\r\n\r\nTo address this issue, we check if the wallet is already saved. If the particular wallet is already saved, we simply update the 'last used' status for the same wallet, rather than creating a new entry. This payment method duplication check is already implemented for Apple Pay and Google Pay, and in this PR, I have extended it to include Samsung Pay as well.\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n-> Create a merchant connector account with google pay or samsung pay enabled\r\n-> Enable the below config\r\n```\r\ncurl --location 'localhost:8080/configs/' \\\r\n--header 'api-key: api-key' \\\r\n--header 'Content-Type: application/json' \\\r\n--data '{\r\n \"key\": \"skip_saving_wallet_at_connector_merchant_1740130285\",\r\n \"value\": \"[\\\"samsung_pay\\\",\\\"google_pay\\\"]\"\r\n}'\r\n```\r\n```\r\n{\r\n \"key\": \"skip_saving_wallet_at_connector_merchant_1740130285\",\r\n \"value\": \"[\\\"samsung_pay\\\",\\\"google_pay\\\"]\"\r\n}\r\n```\r\n-> Make a samsung pay payment with `\"setup_future_usage\": \"off_session\"`\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: api-key' \\\r\n--data-raw '{\r\n \"amount\": 2300,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"amount_to_capture\": 2300,\r\n \"customer_id\": \"cu_1740120198\",\r\n \"setup_future_usage\": \"off_session\",\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"return_url\": \"https://google.com\",\r\n \"email\": \"samsungpay@gmail.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"Its my first payment request\",\r\n \"statement_descriptor_name\": \"Juspay\",\r\n \"statement_descriptor_suffix\": \"Router\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"samsung_pay\",\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"offline\",\r\n \"accepted_at\": \"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\": \"in sit\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n }\r\n },\r\n \"payment_method_data\": {\r\n \"wallet\": {\r\n \"samsung_pay\": {\r\n \"payment_credential\": {\r\n \"3_d_s\": {\r\n \"type\": \"S\",\r\n \"version\": \"100\",\r\n \"data\": \"samsung pay token\"\r\n },\r\n \"payment_card_brand\": \"VI\",\r\n \"payment_currency_type\": \"USD\",\r\n \"payment_last4_fpan\": \"1661\",\r\n \"method\": \"3DS\",\r\n \"recurring_payment\": false\r\n }\r\n }\r\n }\r\n }\r\n}\r\n'\r\n```\r\n```\r\n{\r\n \"payment_id\": \"pay_2p8lTfi6OM7SZrj6PBnR\",\r\n \"merchant_id\": \"merchant_1740130285\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 2300,\r\n \"net_amount\": 2300,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 2300,\r\n \"connector\": \"cybersource\",\r\n \"client_secret\": \"pay_2p8lTfi6OM7SZrj6PBnR_secret_gMXnHSdwMhvGnpslHATf\",\r\n \"created\": \"2025-02-21T09:33:01.655Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cu_1740120198\",\r\n \"customer\": {\r\n \"id\": \"cu_1740120198\",\r\n \"name\": \"Joseph Doe\",\r\n \"email\": \"samsungpay@gmail.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"on_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_data\": {\r\n \"wallet\": {\r\n \"samsung_pay\": {\r\n \"last4\": \"1661\",\r\n \"card_network\": \"Visa\",\r\n \"type\": null\r\n }\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"samsungpay@gmail.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"Juspay\",\r\n \"statement_descriptor_suffix\": \"Router\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"samsung_pay\",\r\n \"connector_label\": \"cybersource_US_default_default\",\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"cu_1740120198\",\r\n \"created_at\": 1740130381,\r\n \"expires\": 1740133981,\r\n \"secret\": \"epk_6ce927c963fa4105a8ab9228f97416b7\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"7401303829696483104805\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"pay_2p8lTfi6OM7SZrj6PBnR_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_Gi6ZTv5ZEsUTOmapC9Rq\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_1qwQigfi1hdSHlCKLEOw\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-02-21T09:48:01.655Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-02-21T09:33:04.066Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": null\r\n}\r\n```\r\n-> List customer payment methods for the above customer. We can see that there is only one payment method that is saved\r\n```\r\ncurl --location 'http://localhost:8080/customers/cu_1740120198/payment_methods' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: api-key'\r\n```\r\n```\r\n{\r\n \"customer_payment_methods\": [\r\n {\r\n \"payment_token\": \"token_NHsoBD91m4hXF1jHayz0\",\r\n \"payment_method_id\": \"pm_BuHQFVj1XP70L0hlwzrT\",\r\n \"customer_id\": \"cu_1740120198\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"samsung_pay\",\r\n \"payment_method_issuer\": null,\r\n \"payment_method_issuer_code\": null,\r\n \"recurring_enabled\": false,\r\n \"installment_payment_enabled\": false,\r\n \"payment_experience\": [\r\n \"redirect_to_url\"\r\n ],\r\n \"card\": null,\r\n \"metadata\": null,\r\n \"created\": \"2025-02-21T09:33:04.086Z\",\r\n \"bank\": null,\r\n \"surcharge_details\": null,\r\n \"requires_cvv\": true,\r\n \"last_used_at\": \"2025-02-21T09:33:04.086Z\",\r\n \"default_payment_method_set\": true,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n }\r\n }\r\n ],\r\n \"is_guest_customer\": null\r\n}\r\n```\r\n-> Make a google pay payment for the same customer and make customer pml. The response will contain the google pay at the top indicating it is the recently used payment method type.\r\n```\r\ncurl --location 'http://localhost:8080/customers/cu_1740120198/payment_methods' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: api-key'\r\n```\r\n```\r\n{\r\n \"customer_payment_methods\": [\r\n {\r\n \"payment_token\": \"token_CLtCX0lG2248Tg9x8TCs\",\r\n \"payment_method_id\": \"pm_YQISjUrUW9YHJT0Szb7P\",\r\n \"customer_id\": \"cu_1740120198\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"google_pay\",\r\n \"payment_method_issuer\": null,\r\n \"payment_method_issuer_code\": null,\r\n \"recurring_enabled\": false,\r\n \"installment_payment_enabled\": false,\r\n \"payment_experience\": [\r\n \"redirect_to_url\"\r\n ],\r\n \"card\": null,\r\n \"metadata\": null,\r\n \"created\": \"2025-02-21T09:38:01.648Z\",\r\n \"bank\": null,\r\n \"surcharge_details\": null,\r\n \"requires_cvv\": true,\r\n \"last_used_at\": \"2025-02-21T09:38:01.648Z\",\r\n \"default_payment_method_set\": false,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n }\r\n },\r\n {\r\n \"payment_token\": \"token_1w5WhYajhQbs8ghjTCXP\",\r\n \"payment_method_id\": \"pm_BuHQFVj1XP70L0hlwzrT\",\r\n \"customer_id\": \"cu_1740120198\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"samsung_pay\",\r\n \"payment_method_issuer\": null,\r\n \"payment_method_issuer_code\": null,\r\n \"recurring_enabled\": false,\r\n \"installment_payment_enabled\": false,\r\n \"payment_experience\": [\r\n \"redirect_to_url\"\r\n ],\r\n \"card\": null,\r\n \"metadata\": null,\r\n \"created\": \"2025-02-21T09:33:04.086Z\",\r\n \"bank\": null,\r\n \"surcharge_details\": null,\r\n \"requires_cvv\": true,\r\n \"last_used_at\": \"2025-02-21T09:33:04.086Z\",\r\n \"default_payment_method_set\": true,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n }\r\n }\r\n ],\r\n \"is_guest_customer\": null\r\n}\r\n```\r\n-> Now make one more samsung pay payment for the same customer\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: api-key' \\\r\n--data-raw '{\r\n \"amount\": 2300,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"amount_to_capture\": 2300,\r\n \"customer_id\": \"cu_1740120198\",\r\n \"setup_future_usage\": \"off_session\",\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"return_url\": \"https://google.com\",\r\n \"email\": \"samsungpay@gmail.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"Its my first payment request\",\r\n \"statement_descriptor_name\": \"Juspay\",\r\n \"statement_descriptor_suffix\": \"Router\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"samsung_pay\",\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"offline\",\r\n \"accepted_at\": \"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\": \"in sit\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n }\r\n },\r\n \"payment_method_data\": {\r\n \"wallet\": {\r\n \"samsung_pay\": {\r\n \"payment_credential\": {\r\n \"3_d_s\": {\r\n \"type\": \"S\",\r\n \"version\": \"100\",\r\n \"data\": \"samsung pay token\"\r\n },\r\n \"payment_card_brand\": \"VI\",\r\n \"payment_currency_type\": \"USD\",\r\n \"payment_last4_fpan\": \"1661\",\r\n \"method\": \"3DS\",\r\n \"recurring_payment\": false\r\n }\r\n }\r\n }\r\n }\r\n}\r\n'\r\n```\r\n```\r\n{\r\n \"payment_id\": \"pay_4ixWGjRYTrngGcTYhhYO\",\r\n \"merchant_id\": \"merchant_1740130285\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 2300,\r\n \"net_amount\": 2300,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 2300,\r\n \"connector\": \"cybersource\",\r\n \"client_secret\": \"pay_4ixWGjRYTrngGcTYhhYO_secret_PbeOhfHgCOZNYYYTmzcB\",\r\n \"created\": \"2025-02-21T09:40:10.925Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cu_1740120198\",\r\n \"customer\": {\r\n \"id\": \"cu_1740120198\",\r\n \"name\": \"Joseph Doe\",\r\n \"email\": \"samsungpay@gmail.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"on_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_data\": {\r\n \"wallet\": {\r\n \"samsung_pay\": {\r\n \"last4\": \"1661\",\r\n \"card_network\": \"Visa\",\r\n \"type\": null\r\n }\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"samsungpay@gmail.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"Juspay\",\r\n \"statement_descriptor_suffix\": \"Router\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"samsung_pay\",\r\n \"connector_label\": \"cybersource_US_default_default\",\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"cu_1740120198\",\r\n \"created_at\": 1740130810,\r\n \"expires\": 1740134410,\r\n \"secret\": \"epk_86d9427e2e0641ae9d888d0aee1892e9\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"7401308119186931304807\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"pay_4ixWGjRYTrngGcTYhhYO_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_Gi6ZTv5ZEsUTOmapC9Rq\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_1qwQigfi1hdSHlCKLEOw\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-02-21T09:55:10.925Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-02-21T09:40:13.489Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": null\r\n}\r\n```\r\n-> Make customer pml. The response should contain samsung pay at the top indicating it is the recently used payment method type and also there should only be one samsung pay button\r\n```\r\ncurl --location 'http://localhost:8080/customers/cu_1740120198/payment_methods' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: api-key'\r\n```\r\n```\r\n{\r\n \"customer_payment_methods\": [\r\n {\r\n \"payment_token\": \"token_6QkmZgFGtk17Spmc0Krc\",\r\n \"payment_method_id\": \"pm_BuHQFVj1XP70L0hlwzrT\",\r\n \"customer_id\": \"cu_1740120198\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"samsung_pay\",\r\n \"payment_method_issuer\": null,\r\n \"payment_method_issuer_code\": null,\r\n \"recurring_enabled\": false,\r\n \"installment_payment_enabled\": false,\r\n \"payment_experience\": [\r\n \"redirect_to_url\"\r\n ],\r\n \"card\": null,\r\n \"metadata\": null,\r\n \"created\": \"2025-02-21T09:33:04.086Z\",\r\n \"bank\": null,\r\n \"surcharge_details\": null,\r\n \"requires_cvv\": true,\r\n \"last_used_at\": \"2025-02-21T09:40:13.492Z\",\r\n \"default_payment_method_set\": true,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n }\r\n },\r\n {\r\n \"payment_token\": \"token_uUhRNFlDlK8pkDXapajC\",\r\n \"payment_method_id\": \"pm_YQISjUrUW9YHJT0Szb7P\",\r\n \"customer_id\": \"cu_1740120198\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"google_pay\",\r\n \"payment_method_issuer\": null,\r\n \"payment_method_issuer_code\": null,\r\n \"recurring_enabled\": false,\r\n \"installment_payment_enabled\": false,\r\n \"payment_experience\": [\r\n \"redirect_to_url\"\r\n ],\r\n \"card\": null,\r\n \"metadata\": null,\r\n \"created\": \"2025-02-21T09:38:01.648Z\",\r\n \"bank\": null,\r\n \"surcharge_details\": null,\r\n \"requires_cvv\": true,\r\n \"last_used_at\": \"2025-02-21T09:38:01.648Z\",\r\n \"default_payment_method_set\": false,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n }\r\n }\r\n ],\r\n \"is_guest_customer\": null\r\n}\r\n```\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "ShankarSinghC",
6
+ "created_at": "2025-02-21T09:00:17+00:00",
7
+ "merged_at": "2025-02-22T12:27:22+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-core",
11
+ "C-bug",
12
+ "A-payment-methods"
13
+ ],
14
+ "url": "https://github.com/juspay/hyperswitch/pull/7337",
15
+ "commits": [
16
+ {
17
+ "sha": "231febfb6178cae8deeae930847ad49e154aba9b",
18
+ "message": "feat(samsung_pqy): add payment_method_type duplication check",
19
+ "author": "Shankar Singh C",
20
+ "date": "2025-02-21T08:37:59+00:00",
21
+ "url": "https://github.com/juspay/hyperswitch/commit/231febfb6178cae8deeae930847ad49e154aba9b"
22
+ },
23
+ {
24
+ "sha": "c9bb1d8197c32c6e034443eaabb7f764140e9c6f",
25
+ "message": "chore: run formatter",
26
+ "author": "hyperswitch-bot[bot]",
27
+ "date": "2025-02-21T09:46:21+00:00",
28
+ "url": "https://github.com/juspay/hyperswitch/commit/c9bb1d8197c32c6e034443eaabb7f764140e9c6f"
29
+ },
30
+ {
31
+ "sha": "1531ca002ec00f3edc61c10a93a82b2224d553cb",
32
+ "message": "address pr comments",
33
+ "author": "Shankar Singh C",
34
+ "date": "2025-02-21T13:59:21+00:00",
35
+ "url": "https://github.com/juspay/hyperswitch/commit/1531ca002ec00f3edc61c10a93a82b2224d553cb"
36
+ },
37
+ {
38
+ "sha": "d935d0ab38452e69c3291b68f7a165338922e119",
39
+ "message": "Merge branch 'samsung-pay/add-duplication-check' of https://github.com/juspay/hyperswitch into samsung-pay/add-duplication-check",
40
+ "author": "Shankar Singh C",
41
+ "date": "2025-02-21T14:00:31+00:00",
42
+ "url": "https://github.com/juspay/hyperswitch/commit/d935d0ab38452e69c3291b68f7a165338922e119"
43
+ }
44
+ ]
45
+ }
prs/pr_7365.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7365,
3
+ "title": "fix(core): make parsing optional for connector_wallet_details in session token flow",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nFor generating session token for google pay, error was thrown if connector_wallet_details was not present and google pay related data won't be present in session token response thus parsing connector_wallet_details is made optional\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\nTested through Postaman:\r\n\r\n- Create an MCA (Trustpay) with connector_wallet_details as null:\r\n```\r\n{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"trustpay\",\r\n \"connector_label\": \"trustpay_US_default\",\r\n \"merchant_connector_id\": \"mca_aIkTJWJcd2m5COTrHbF2\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"SignatureKey\",\r\n \"api_key\": \"{{api_key}}\",\r\n \"key1\": \"{{key1}}\",\r\n \"api_secret\": \"{{api_secret}}\"\r\n },\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"apple_pay\",\r\n \"payment_experience\": \"invoke_sdk_client\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"google_pay\",\r\n \"payment_experience\": \"invoke_sdk_client\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"bank_redirect\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"ideal\",\r\n \"payment_experience\": null,\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"giropay\",\r\n \"payment_experience\": null,\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"sofort\",\r\n \"payment_experience\": null,\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"eps\",\r\n \"payment_experience\": null,\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"blik\",\r\n \"payment_experience\": null,\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"CartesBancaires\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"AmericanExpress\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Interac\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Discover\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"DinersClub\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"JCB\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"UnionPay\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"DinersClub\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Discover\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"AmericanExpress\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"CartesBancaires\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"UnionPay\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"JCB\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n },\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Interac\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n }\r\n ]\r\n }\r\n ],\r\n \"connector_webhook_details\": null,\r\n \"metadata\": {\r\n \"apple_pay\": {},\r\n \"google_pay\": {\r\n \"merchant_info\": {\r\n \"merchant_name\": \"Trustpay\"\r\n },\r\n \"allowed_payment_methods\": [\r\n {\r\n \"type\": \"CARD\",\r\n \"parameters\": {\r\n \"allowed_auth_methods\": [\r\n \"PAN_ONLY\",\r\n \"CRYPTOGRAM_3DS\"\r\n ],\r\n \"allowed_card_networks\": [\r\n \"AMEX\",\r\n \"DISCOVER\",\r\n \"INTERAC\",\r\n \"JCB\",\r\n \"MASTERCARD\",\r\n \"VISA\"\r\n ]\r\n },\r\n \"tokenization_specification\": {\r\n \"type\": \"PAYMENT_GATEWAY\",\r\n \"parameters\": {\r\n \"gateway\": \"trustpay\",\r\n \"gateway_merchant_id\": \"{{gateway_merchant_id}}\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"frm_configs\": null,\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n // \"applepay_verified_domains\": null,\r\n \"pm_auth_config\": null,\r\n \"status\": \"active\",\r\n \"additional_merchant_data\": null,\r\n \"connector_wallets_details\": null\r\n}\r\n```\r\n\r\n- Create a Payment Intent:\r\n```\r\n{\r\n \"amount\": 6540,\r\n \"currency\": \"USD\",\r\n \"confirm\": false,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"amount_to_capture\": 6540,\r\n \"customer_id\": \"{{customer_id}}\",\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://duck.com\",\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"test\",\r\n \"country\": \"HR\",\r\n \"line1\": \"here is some \\n there is some \\n none is some? \\n \",\r\n \"line2\": \"there\",\r\n \"line3\": \"anywhere\",\r\n \"zip\": \"560095\",\r\n \"state\": \"Vara\u017edin County\",\r\n \"first_name\": \"Sakil\",\r\n \"last_name\": \"Mostak\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"PiX\"\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n }\r\n}\r\n```\r\n\r\n- Do a get call for session token:\r\n```\r\ncurl --location '{{baseurl}}/payments/session_tokens' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: {{api_key}}' \\\r\n--data '{\r\n \"client_secret\": \"pay_ICAWJ63o2ytbQ0vb3BuW_secret_hE0aFegU5xzyZNWdFXSB\",\r\n \"payment_id\": \"pay_ICAWJ63o2ytbQ0vb3BuW\",\r\n \"wallets\": [\"apple_pay\", \"google_pay\"]\r\n}'\r\n```\r\n- The response should contain the google pay token data like below:\r\n```\r\n{\r\n \"payment_id\": \"pay_ICAWJ63o2ytbQ0vb3BuW\",\r\n \"client_secret\": \"pay_ICAWJ63o2ytbQ0vb3BuW_secret_hE0aFegU5xzyZNWdFXSB\",\r\n \"session_token\": [\r\n {\r\n \"wallet_name\": \"google_pay\",\r\n \"merchant_info\": {\r\n \"merchant_name\": \"Trustpay\"\r\n },\r\n \"shipping_address_required\": false,\r\n \"email_required\": false,\r\n \"shipping_address_parameters\": {\r\n \"phone_number_required\": false\r\n },\r\n \"allowed_payment_methods\": [\r\n {\r\n \"type\": \"CARD\",\r\n \"parameters\": {\r\n \"allowed_auth_methods\": [\r\n \"PAN_ONLY\",\r\n \"CRYPTOGRAM_3DS\"\r\n ],\r\n \"allowed_card_networks\": [\r\n \"AMEX\",\r\n \"DISCOVER\",\r\n \"INTERAC\",\r\n \"JCB\",\r\n \"MASTERCARD\",\r\n \"VISA\"\r\n ],\r\n \"billing_address_required\": false\r\n },\r\n \"tokenization_specification\": {\r\n \"type\": \"DIRECT\",\r\n \"parameters\": {\r\n \"gateway\": \"trustpay\",\r\n \"gateway_merchant_id\": \"gateway_merchant_id\"\r\n }\r\n }\r\n }\r\n ],\r\n \"transaction_info\": {\r\n \"country_code\": \"HR\",\r\n \"currency_code\": \"USD\",\r\n \"total_price_status\": \"Final\",\r\n \"total_price\": \"65.40\"\r\n },\r\n \"delayed_session_token\": false,\r\n \"connector\": \"cybersource\",\r\n \"sdk_next_action\": {\r\n \"next_action\": \"confirm\"\r\n },\r\n \"secrets\": null\r\n }\r\n ]\r\n}\r\n```\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "Sakilmostak",
6
+ "created_at": "2025-02-24T14:16:20+00:00",
7
+ "merged_at": "2025-02-25T08:27:55+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-core",
11
+ "C-bug"
12
+ ],
13
+ "url": "https://github.com/juspay/hyperswitch/pull/7365",
14
+ "commits": [
15
+ {
16
+ "sha": "38dd8fe146b0bdcd5e90bd7fe6425dbfbd614515",
17
+ "message": "fix: make parsing optional for connector_wallet_details in session response",
18
+ "author": "Sk Sakil Mostak",
19
+ "date": "2025-02-24T13:40:07+00:00",
20
+ "url": "https://github.com/juspay/hyperswitch/commit/38dd8fe146b0bdcd5e90bd7fe6425dbfbd614515"
21
+ },
22
+ {
23
+ "sha": "2b3a843b2492b99e3d5c00d6e79a6e7fac4258d3",
24
+ "message": "refactor: resolve comments",
25
+ "author": "Sk Sakil Mostak",
26
+ "date": "2025-02-24T16:18:47+00:00",
27
+ "url": "https://github.com/juspay/hyperswitch/commit/2b3a843b2492b99e3d5c00d6e79a6e7fac4258d3"
28
+ }
29
+ ]
30
+ }
prs/pr_7368.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7368,
3
+ "title": "chore(docker): prefix Hyperswitch Docker image URIs with `docker.juspay.io`",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\nThis PR updates Hyperswitch Docker images to be prefixed by `docker.juspay.io`. I've just done a global search-replace to be honest.\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\nN/A\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\nTried the Docker Compose setup locally, didn't \"test\" out any of the other changes though.\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "SanchithHegde",
6
+ "created_at": "2025-02-25T05:49:51+00:00",
7
+ "merged_at": "2025-03-03T15:37:11+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-infra"
11
+ ],
12
+ "url": "https://github.com/juspay/hyperswitch/pull/7368",
13
+ "commits": [
14
+ {
15
+ "sha": "696c735a35b243cb9feb1144813acf6f5e23ea1c",
16
+ "message": "chore(docker): prefix Docker image URIs with `docker.juspay.io`",
17
+ "author": "Sanchith Hegde",
18
+ "date": "2025-02-24T20:12:12+00:00",
19
+ "url": "https://github.com/juspay/hyperswitch/commit/696c735a35b243cb9feb1144813acf6f5e23ea1c"
20
+ }
21
+ ]
22
+ }
prs/pr_7513.json ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7513,
3
+ "title": "feat(connector): [Coingate] implement refunds ",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n- Implement Refunds for Coingate\r\n- Implement Refunds Sync for Coingate\r\n- Handle 4xx error response \r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n- We can not test refunds, as real cryptocurrency_address is required for testing, and we don't have that.\r\n- We can test 4xx error handling \r\n1. Create Merchant\r\n2. Create API key \r\n3. Create MCA of coingate\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1742369861/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data '{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"coingate\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"HeaderKey\",\r\n \"api_key\": \"___\"\r\n },\r\n \"test_mode\": false,\r\n \"disabled\": false,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"crypto\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"crypto_currency\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 0,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": false\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\":{\r\n \"currency_id\": 1,\r\n \"platform_id\": 6,\r\n \"ledger_account_id\": \"___\"\r\n }\r\n}'\r\n```\r\n4. Create a payment with` amount:0`\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: ___' \\\r\n--data-raw '{\r\n \"amount\": 0,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"email\": \"guest@example.com\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"crypto\",\r\n \"payment_method_type\": \"crypto_currency\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"payment_method_data\": {\r\n \"crypto\": {\r\n }\r\n }\r\n}'\r\n```\r\nResponse\r\n```\r\n{\"payment_id\":\"pay_VgDgzqk5GiLATsXobqjg\",\"merchant_id\":\"merchant_1742369861\",\"status\":\"failed\",\"amount\":0,\"net_amount\":0,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":null,\"connector\":\"coingate\",\"client_secret\":\"pay_VgDgzqk5GiLATsXobqjg_secret_g5ollLaT7bkHxn8P440v\",\"created\":\"2025-03-19T08:49:22.616Z\",\"currency\":\"USD\",\"customer_id\":null,\"customer\":{\"id\":null,\"name\":null,\"email\":\"guest@example.com\",\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":null,\"off_session\":null,\"capture_on\":null,\"capture_method\":null,\"payment_method\":\"crypto\",\"payment_method_data\":{\"crypto\":{\"pay_currency\":null,\"network\":null},\"billing\":null},\"payment_token\":null,\"shipping\":null,\"billing\":null,\"order_details\":null,\"email\":null,\"name\":null,\"phone\":null,\"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\":\"Order is not valid\",\"error_message\":\"Price amount must be greater or equal to 0.109 USD\",\"unified_code\":\"UE_9000\",\"unified_message\":\"Something went wrong\",\"payment_experience\":\"redirect_to_url\",\"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\":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_EfM2zu4p0kebcfpaV7Rn\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_KFCYFZgnRHO6eaS0dLAk\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-19T09:04:22.616Z\",\"fingerprint\":null,\"browser_info\":null,\"payment_method_id\":null,\"payment_method_status\":null,\"updated\":\"2025-03-19T08:49:23.292Z\",\"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}\r\n```\r\nIt will give a proper failed status.\r\nBefore this PR - we were getting 5xx in this case\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "swangi-kumari",
6
+ "created_at": "2025-03-13T08:02:57+00:00",
7
+ "merged_at": "2025-03-23T19:06:29+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-connector-integration",
11
+ "C-feature"
12
+ ],
13
+ "url": "https://github.com/juspay/hyperswitch/pull/7513",
14
+ "commits": [
15
+ {
16
+ "sha": "bc692902eb5e15714fcf8e8bc1c7ef4f2aeb60a8",
17
+ "message": "feat: implement refunds",
18
+ "author": "Swangi Kumari",
19
+ "date": "2025-03-13T08:01:28+00:00",
20
+ "url": "https://github.com/juspay/hyperswitch/commit/bc692902eb5e15714fcf8e8bc1c7ef4f2aeb60a8"
21
+ },
22
+ {
23
+ "sha": "30a98e1515461773de57cb80e5e859c164d36e8d",
24
+ "message": "chore: run formatter",
25
+ "author": "hyperswitch-bot[bot]",
26
+ "date": "2025-03-13T08:04:58+00:00",
27
+ "url": "https://github.com/juspay/hyperswitch/commit/30a98e1515461773de57cb80e5e859c164d36e8d"
28
+ },
29
+ {
30
+ "sha": "5d7307631acac4355a9071a45b0b2b2a57f23d19",
31
+ "message": "feat: rsync",
32
+ "author": "Swangi Kumari",
33
+ "date": "2025-03-13T09:51:29+00:00",
34
+ "url": "https://github.com/juspay/hyperswitch/commit/5d7307631acac4355a9071a45b0b2b2a57f23d19"
35
+ },
36
+ {
37
+ "sha": "f5fe2eaa36ff5fd0e66243859f18abc44c33f87c",
38
+ "message": "Merge branch 'main' into coingate-refunds",
39
+ "author": "Swangi Kumari",
40
+ "date": "2025-03-19T07:00:29+00:00",
41
+ "url": "https://github.com/juspay/hyperswitch/commit/f5fe2eaa36ff5fd0e66243859f18abc44c33f87c"
42
+ },
43
+ {
44
+ "sha": "99831b58f280071b3ac34fae7b1ba8c7533398c2",
45
+ "message": "refactor: remove println",
46
+ "author": "Swangi Kumari",
47
+ "date": "2025-03-19T08:04:52+00:00",
48
+ "url": "https://github.com/juspay/hyperswitch/commit/99831b58f280071b3ac34fae7b1ba8c7533398c2"
49
+ },
50
+ {
51
+ "sha": "0a1b5385c14bf79dc6a40ddf308b9df2dd2858fd",
52
+ "message": "refactor: resolve comments",
53
+ "author": "Swangi Kumari",
54
+ "date": "2025-03-19T14:10:07+00:00",
55
+ "url": "https://github.com/juspay/hyperswitch/commit/0a1b5385c14bf79dc6a40ddf308b9df2dd2858fd"
56
+ },
57
+ {
58
+ "sha": "0d0b78e90c870839a34622497dbf5fd941b83b4a",
59
+ "message": "refactor: resolve comments",
60
+ "author": "Swangi Kumari",
61
+ "date": "2025-03-20T07:44:26+00:00",
62
+ "url": "https://github.com/juspay/hyperswitch/commit/0d0b78e90c870839a34622497dbf5fd941b83b4a"
63
+ },
64
+ {
65
+ "sha": "2a94a350c73c6d34089ddb788df4dc6261790fdf",
66
+ "message": "Merge branch 'main' into coingate-refunds",
67
+ "author": "Gnanasundari24",
68
+ "date": "2025-03-21T11:57:17+00:00",
69
+ "url": "https://github.com/juspay/hyperswitch/commit/2a94a350c73c6d34089ddb788df4dc6261790fdf"
70
+ },
71
+ {
72
+ "sha": "4348d51f23d514006a28f5cda72178b964a5fcdd",
73
+ "message": "refactor: conflicts",
74
+ "author": "Swangi Kumari",
75
+ "date": "2025-03-22T17:23:01+00:00",
76
+ "url": "https://github.com/juspay/hyperswitch/commit/4348d51f23d514006a28f5cda72178b964a5fcdd"
77
+ }
78
+ ]
79
+ }
prs/pr_7562.json ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7562,
3
+ "title": "feat(core): Add visa click to pay support",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n- [x] New feature\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nAdd visa click to pay support\r\n\r\n### Additional Changes\r\n\r\n- [x] This PR modifies the API contract\r\n\r\nAdds `encypted_payload` field to `ctp_service_details` and makes `provider` as a required type enum from optional string in service_details struct\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\nAdd config to make the merchant eligible for authentication service\r\n```shell\r\ncurl --location 'http://localhost:8080/configs/' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data '{\r\n \"key\": \"merchants_eligible_for_authentication_service\",\r\n \"value\": \"[\\\"sahkal\\\", \\\"cewqcewc\\\", \\\"dqwdwljildwduoqwhduwqcqwjd\\\"]\"\r\n}'\r\n```\r\nCreate merchant connector account for Ctp_visa\r\n\r\n```shell\r\n{\r\n \"connector_type\": \"authentication_processor\",\r\n \"connector_name\": \"ctp_visa\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"NoKey\"\r\n }\r\n}\r\n'\r\n```\r\n\r\nAdyen\r\n\r\n```shell\r\ncurl --location 'http://localhost:8080/account/dqwdwljildwduoqwhduwqcqwjd/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data '\r\n{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"adyen\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"SignatureKey\",\r\n \"api_key\": \"API-KEY\",\r\n \"key1\": \"KEY-1\",\r\n \"api_secret\": \"API-SECRET\"\r\n },\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\",\r\n \"live_endpoint_prefix\": \"vsfbjh\"\r\n },\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"MERCHANT SECRET\"\r\n },\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\"\r\n}\r\n'\r\n```\r\n\r\nupdate business profile with ctp_visa mca_id\r\n\r\n```shell\r\ncurl --location 'http://localhost:8080/account/dqwdwljildwduoqwhduwqcqwjd/business_profile/pro_KCTRv8sFQfC0r65CZxrn' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data '{\r\n \"is_click_to_pay_enabled\": true,\r\n \"authentication_product_ids\": {\"click_to_pay\": \"mca_XAXUpel8ABbpoGNF8lGz\"}\r\n}'\r\n```\r\n\r\ndo payments create\r\n\r\n```shell\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_fQsdc9JbERQ7CWvmguo84XDROuXOD1oK9sdfCJXOko3SossoI4zdxpJkOIPmojwn' \\\r\n--data '{\r\n \"amount\": 1130,\r\n \"currency\": \"USD\",\r\n \"confirm\": false,\r\n \"return_url\": \"https://hyperswitch.io\"\r\n } \r\n'\r\n```\r\n\r\ndo payments confirm\r\n\r\n```shell\r\ncurl --location 'http://localhost:8080/payments/pay_Ft9Ke5Lun924OCJa7yll/confirm' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: pk_dev_1f712ac5fd7f4d8c91da6a627862a4f0' \\\r\n--data '\r\n{\r\n \r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"debit\",\r\n \"client_secret\": \"pay_Ft9Ke5Lun924OCJa7yll_secret_po1FVW5adQWFolWJUhMb\",\r\n \"ctp_service_details\" : {\r\n \"encypted_payload\": \"eyJraWQiOiJMS1hNMExOOFE2UjdMV1YxOVUwVzEzc01pYjRvNTlRRXBKelpMeVloaXZ5cmNMRWprIiwiYWxnIjoiUlMyNTYiLCJqdGkiOiJNV0V6WWpWalltRXROR0pqWlMwME56ZzFMV0ppWVdFdE56WTJZamxtWlRWa1pXRXciLCJpYXQiOjE3MzYxNDczMTF9.eyJzcmNpVHJhbnNhY3Rpb25JZCI6IjcxZjFhYjQ3LWUzZDMtYzVhNC1lOTAyLTE3OWMyYzc1ZTgwMiIsImFzc3VyYW5jZURhdGEiOnsidmVyaWZpY2F0aW9uRGF0YSI6W3sibWV0aG9kUmVzdWx0cyI6eyJ0cmFuc1N0YXR1cyI6IlkiLCJkc1RyYW5zSWQiOiI4ZGUxMzQyMy1kZTM1LTQ3ZDYtODZhZC1hZmI5OWViZTE5YmMiLCJhY3NUcmFuc0lkIjoiZGMyMGMxYmUtYWM5OC00ZDc5LTg3NjItMDA2YTEwYjllNjYwIn19XSwiZWNpIjoiMDUifSwiZW5jcnlwdGVkUGF5bG9hZCI6ImV5SnJhV1FpT2lJeE1UZ3dNVE13T1RJNE1qUXlNak13T1RJNE5ueEZUVUZKVEVGRVJGSkZVMU05WVd0aGMyZ3VhMkZ0WW14bFFHcDFjM0JoZVM1cGJpd2dUMVU5U2xWVFVFRlpMQ0JQUFVwVlUxQkJXU3dnVEQxQ1FVNUhRVXhQVWtVc0lGTlVQVXRCVWs1QlZFRkxRU3dnUXoxSlRpSXNJblI1Y0NJNklrcFBVMFVpTENKbGJtTWlPaUpCTWpVMlIwTk5JaXdpWVd4bklqb2lVbE5CTFU5QlJWQXRNalUySW4wLlc4U2p6ZUNVd3MyYjRyWHlVbXRheEhsTGMwWlZhLTRJQjNCQURIVTBBNGI1STVjVGs0ckhHcFBpXzExb3d4Uk5aN0doVi1rRjRiMmtGcUlJRmM2TWRaR0ZmODlfTERoOFE2TXB6amlNbDJfbHFxUXI4bkJReUNzaGNXaE1Vd0cwekJNMGU4Smp6YmFhc0p0cEJkTlJ4TDhrU2ljZzVpRzcteHQxWVltMnNGQ0FhaVFscXU2MGtjRzdJOV9iQUJ6MFVsN3NhZVFIRDVlb0pybFM5eFlJOW1KYml0MmxoeWdUYjFpNDJ5bFY3NzBZR2libE9QMWI1WnRReUdDdVVWcTdlY21HOHRUdjhtd3ZfVGZ3Q291NFdzUVI3bElVWnZFTkpENUQzSnpZZE5odlIta2lGcWtWS3YwaGVDNlhzSTNtVFY5OEtCUXl6d3ZHLVducGpOaGFQUS44QzlLWDBadDRQZ0F3SDdNLnZLbHNjTFRtMXhGN09sOTJhUjU1OGpRcG4wN01aaWd2RE00b2dySUlFUmZIMDFrcFB1cHBRM2NQR1EycWpNYVlsZjJaYVJLVktBS0ZXVkQ1SjRJOFBKRzBqZkZwT0hhQTV0QlFjd0pqLW53WlhLZlRaNTY3Z0dUQTl6QTdXNTRiTDVPWTVmUzExY3lpdmJfU0N0RElZdGNYMy1ZWHc3RjlfUHM1RHVYUWV6eFFoMjNhRTZBQjhjVDJMYWlDbzAxMDBTVkNVUTlCZU04cG9GcVpTVDRta1ZJNHJOdE1remRsMDJuVzl0d3J2QUQyVklESWlSX1Zvdk5WUG0xOU5VQ1Z2b0x6U01ZUkR2YWVLZEMxX2cxVC12anJZZzZkamtGTXVkUGZjUUZuQnlMcng1eDMtM05nMzVtWEN4NGFBYThqQ2U2VEFkWHUxTzhoTm1BbzMzbUxTdk1BYXdWeG5iQ2ZuamhpQWY1MGd3cVdyY2hPQ1oyMmp6NVRwbERCZGFzLWdzeEJaY1dYZWZaS0ViS2lsdVhBd3U1NHV2eHhBdnFIZFlnS3QyWFhyejRfQVRoZHgxWmdPVkpXLXRWNG1SVThYUHhNNnJ5Z2VoUkZ1Um9sZy1OeVo2TXlqVlpBYi0tT2J6ZlBOdHhySUhtSzlRTjdxUWdaQ0IwQXFIbHR4MzRhXzA4YmljVkpYOWhaWGYtTDNiVWp3dHVOc1FBWmpGV1VTLVoteGJRamU0cmpVdmo2Z1VWcmdBcnpiZ0FSb0NGZlo2SG5UWGdIS25RaWE4ZDJ5VGZoSTlhVnYxak5hNlp6eG8zZ1BobllhQ1NoNWJrajZ5VGVwREJFZXdPTEE4MFdsakNVMzFuMVgxNm5YZG5QakxhV3o5S3o2UjdvU0ZZekRPYnlxZXI1MDVfenY0cWt4SVplck10c0J1bWc3N2k5ejFtTVM3QU12MS1UMHhWeGp0MVVyNXpjcHdmNDJkN25nanY2UC1Mb2VOTFZXUlNrZUVFTEF0Q2Z0QUNuRkdvZEVlYU9HTHBhWGdlSWNPQTNPN0hfLUEwcGV5SVZheWZ2SV82M050VDhZTnVKSWhFeFJXblkxX19kUFlUUV85TnhiMU9yaG0tTDliR1R0d0F2S1h1aEVvYjNjeVJ1NDVERzVJVUJQdk5OVkRRZkJPNGJuRklFUmV4ODVBXzdwa0M2aUwxeHRVUUloeVJSSlpLdnFUWllHVUlMWnRBZFNkaU1ZUWJDTkdEQ1hzRUljZ2lwLUJscXYxX3ctQk1DNzFTQVl3S2RYVTFfVFpGQlkxOGpROXNFS0ZWd3F3WGNVa1V4M3BGeWY4d2txUEFVelhTdzV0V0tEcnhDWXZZTXpYWFpQZmtOYkhEd3kyWnhwcVdqb0g4bjJJVldWZE5laHB0V3g3cjJweVFjNXYzbl9KWU5DU0xfbk1LUlBtZmNmLWZqMGhaOTF4bm5VZXdVaWxiaVRiMkF4aXJGSjlwcDhYdlNKcE9mTmphWlRLdmJvQjRfVHpEblRzdDZwcnFIVnJNX2lOZVVxZlp1Tm1GWlFHZUk2VDZSc3ZObmhyaWlMWHhZUm5SVHFGTFhjeUJEU08zOE1vaE84akdiYWpzdXdPLXNNNGxlV0Euc2hNMENPWVU3cDRaZ29BU0ludlN2USIsIm1hc2tlZENhcmQiOnsic3JjRGlnaXRhbENhcmRJZCI6ImE0MDYxOWFlYjVkNjdlMDhkOTMyMTNmYzIyZmU1YTAyIiwiZGF0ZU9mQ2FyZENyZWF0ZWQiOiIxOTcwLTAxLTAxVDAwOjAwOjAwLjQ0NloiLCJkYXRlT2ZDYXJkTGFzdFVzZWQiOiIxOTcwLTAxLTAxVDAwOjAwOjAwLjE5M1oiLCJkaWdpdGFsQ2FyZERhdGEiOnsic3RhdHVzIjoiQUNUSVZFIiwicHJlc2VudGF0aW9uTmFtZSI6IkFiaGlzaGVrIENob3JvdGl5YSIsImRlc2NyaXB0b3JOYW1lIjoiT0JOIiwiYXJ0VXJpIjoiaHR0cHM6Ly9zYW5kYm94LmFzc2V0cy52aW1zLnZpc2EuY29tL3ZpbXMvY2FyZGFydC81YWYzNzM0Y2NhNGU0MzllOTdmMDBlNDQ3NGQ4MjQ0N19pbWFnZUFAMngucG5nIiwiYXJ0SGVpZ2h0IjoiMjEwIiwiYXJ0V2lkdGgiOiIzMzQifSwibWFza2VkQmlsbGluZ0FkZHJlc3MiOnsiYWRkcmVzc0lkIjoiOGZkZGZhYWUtZTBkYS03ZDA0LWEyNmYtMTAzMjc2NjQxODAyIiwibGluZTEiOiI2NzMqKioqKiIsImNpdHkiOiIqKioqKiIsInN0YXRlIjoiQ0EiLCJ6aXAiOiIqKioqKiIsImNvdW50cnlDb2RlIjoiVVMifSwicGFuQmluIjoiNDM5NTg0IiwicGFuRXhwaXJhdGlvbk1vbnRoIjoiMTIiLCJwYW5FeHBpcmF0aW9uWWVhciI6IjIwMjUiLCJwYW5MYXN0Rm91ciI6IjAxMTAiLCJwYXltZW50QWNjb3VudFJlZmVyZW5jZSI6IlYwMDEwMDEzMDI0MzI0NTgyNjYwNDkyOTg5OTg2IiwicGF5bWVudENhcmRUeXBlIjoiREVCSVQiLCJ0b2tlbkJpblJhbmdlIjoiNDkwNjI0Njg2IiwidG9rZW5MYXN0Rm91ciI6IjM2NjYifSwibWFza2VkQ29uc3VtZXIiOnsiY291bnRyeUNvZGUiOiJVUyIsIm1hc2tlZENvbnN1bWVySWRlbnRpdHkiOnsiaWRlbnRpdHlUeXBlIjoiRU1BSUxfQUREUkVTUyIsIm1hc2tlZElkZW50aXR5VmFsdWUiOiJhYmgqKkBqdXNwYXkuaW4ifSwibWFza2VkRW1haWxBZGRyZXNzIjoiYWJoKipAanVzcGF5LmluIiwibWFza2VkRmlyc3ROYW1lIjoiQSoqKioqIiwibWFza2VkTGFzdE5hbWUiOiJDKioqKioiLCJtYXNrZWRGdWxsTmFtZSI6IkEqKioqKiBDKioqKioiLCJtYXNrZWRNb2JpbGVOdW1iZXIiOnsiY291bnRyeUNvZGUiOiI5MSIsInBob25lTnVtYmVyIjoiKioqKioqKioyMzY4In0sInNyY0NvbnN1bWVySWQiOiJBVnpuSW5Bb2pLUlgyVitQaVVXS09QeE5iQ3YxNkRDMWQyMlI3UGw0azMwPSIsInN0YXR1cyI6IkFDVElWRSJ9fQ.TDZGI-XbBO3DNkKUu5JIxPcjyqawSeOZWxzcI4K60dKnP-4tf4R1NDVYBkNXqgEuu22edE0Uv55CqqRh5TzqY9iSMrQFJz7ErQ7TVDEa8g3o9UfWvHy4L7Ips36taZR5XaMecaHS9dRH71lGI71Z2-m53AJ_Tcu8QXJaU5roFaKx130pM7NEjnG8wod1xjeL9STm96KfEyRf2Xk0a1SY4oVXIYol2WmTt9ZJhUbpmctZ5u-fxkpH1_-4Plx5g4tA5nZpL5VNFsyYAdUqb8XCAHGyO9buzYtLPI99too0BN_aLICfw8wJ0Jn_b0AMxk28SN9LZdS72aI7oWvVIU73cw\",\r\n \"provider\": \"visa\"\r\n },\r\n \"browser_info\": {\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"color_depth\": 24,\r\n \"java_enabled\":true,\r\n \"java_script_enabled\": true,\r\n \"language\": \"en-GB\",\r\n \"screen_height\": 1440,\r\n \"screen_width\": 2560,\r\n \"time_zone\": -330,\r\n \"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\"\r\n }\r\n}'\r\n```\r\n\r\nExpected Response\r\n\r\n```shell\r\n{\r\n \"payment_id\": \"pay_Ft9Ke5Lun924OCJa7yll\",\r\n \"merchant_id\": \"dqwdwljildwduoqwhduwqcqwjd\",\r\n \"status\": \"failed\",\r\n \"amount\": 1130,\r\n \"net_amount\": 1130,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": \"adyen\",\r\n \"client_secret\": \"pay_Ft9Ke5Lun924OCJa7yll_secret_po1FVW5adQWFolWJUhMb\",\r\n \"created\": \"2024-12-18T13:00:47.663Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": null,\r\n \"customer\": null,\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": null,\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": null,\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": null,\r\n \"order_details\": null,\r\n \"email\": null,\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": \"https://hyperswitch.io/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": \"2\",\r\n \"error_message\": \"Refused\",\r\n \"unified_code\": \"UE_9000\",\r\n \"unified_message\": \"Something went wrong\",\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"debit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": true,\r\n \"connector_transaction_id\": \"KN8X64SH6PRRVS65\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_KCTRv8sFQfC0r65CZxrn\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_L6N77PiH3BI2BTPwkZPL\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2024-12-18T13:15:47.663Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"en-GB\",\r\n \"time_zone\": -330,\r\n \"ip_address\": \"::1\",\r\n \"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\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 2560,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 1440,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2024-12-18T13:04:08.461Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\nReason for it being failed is ayden doesn't support click to pay in sandbox, but does support in production\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "sahkal",
6
+ "created_at": "2025-03-18T20:38:23+00:00",
7
+ "merged_at": "2025-03-28T08:31:11+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-core",
11
+ "M-api-contract-changes"
12
+ ],
13
+ "url": "https://github.com/juspay/hyperswitch/pull/7562",
14
+ "commits": [
15
+ {
16
+ "sha": "7d897caa5547a715bdea890cc76153810d5ab47b",
17
+ "message": "added template for adding ctp_visa",
18
+ "author": "Sahkal Poddar",
19
+ "date": "2025-03-18T11:19:19+00:00",
20
+ "url": "https://github.com/juspay/hyperswitch/commit/7d897caa5547a715bdea890cc76153810d5ab47b"
21
+ },
22
+ {
23
+ "sha": "bfed5f06b7e2ed639958d6f621cf62be148db7bb",
24
+ "message": "added click to pay visa integration via uas",
25
+ "author": "Sahkal Poddar",
26
+ "date": "2025-03-18T20:23:53+00:00",
27
+ "url": "https://github.com/juspay/hyperswitch/commit/bfed5f06b7e2ed639958d6f621cf62be148db7bb"
28
+ },
29
+ {
30
+ "sha": "35696647966609775bdc3f26ae98858f42c2a1cd",
31
+ "message": "added wasm changes for ctp visa",
32
+ "author": "Sahkal Poddar",
33
+ "date": "2025-03-18T20:29:00+00:00",
34
+ "url": "https://github.com/juspay/hyperswitch/commit/35696647966609775bdc3f26ae98858f42c2a1cd"
35
+ },
36
+ {
37
+ "sha": "97238cc84ca2b44534547b08bbba34d56b9f647b",
38
+ "message": "added openapi specs",
39
+ "author": "Sahkal Poddar",
40
+ "date": "2025-03-18T20:35:23+00:00",
41
+ "url": "https://github.com/juspay/hyperswitch/commit/97238cc84ca2b44534547b08bbba34d56b9f647b"
42
+ },
43
+ {
44
+ "sha": "2f455a61c51522aa66d2e541c4d3bb3fc79cc7bd",
45
+ "message": "chore: run formatter",
46
+ "author": "hyperswitch-bot[bot]",
47
+ "date": "2025-03-18T20:39:13+00:00",
48
+ "url": "https://github.com/juspay/hyperswitch/commit/2f455a61c51522aa66d2e541c4d3bb3fc79cc7bd"
49
+ },
50
+ {
51
+ "sha": "83d80f6646c1e564fc59c5ca3460833873eab876",
52
+ "message": "added payment id for uas analytics",
53
+ "author": "Sahkal Poddar",
54
+ "date": "2025-03-19T07:21:48+00:00",
55
+ "url": "https://github.com/juspay/hyperswitch/commit/83d80f6646c1e564fc59c5ca3460833873eab876"
56
+ },
57
+ {
58
+ "sha": "20160a2b9ff818760f3ffe41d8b5b59df2ec33e9",
59
+ "message": "Merge branch '8841-feature-add-visa-click-to-pay-support' of https://github.com/juspay/hyperswitch into 8841-feature-add-visa-click-to-pay-support",
60
+ "author": "Sahkal Poddar",
61
+ "date": "2025-03-19T07:21:59+00:00",
62
+ "url": "https://github.com/juspay/hyperswitch/commit/20160a2b9ff818760f3ffe41d8b5b59df2ec33e9"
63
+ },
64
+ {
65
+ "sha": "29ee587752d0989f77ad275080766ac3f7c1f34f",
66
+ "message": "fixed open-api specs",
67
+ "author": "Sahkal Poddar",
68
+ "date": "2025-03-19T07:58:06+00:00",
69
+ "url": "https://github.com/juspay/hyperswitch/commit/29ee587752d0989f77ad275080766ac3f7c1f34f"
70
+ },
71
+ {
72
+ "sha": "9c13c5b338a74f85d0cacc043169d3daf302260e",
73
+ "message": "addressed pr comments:",
74
+ "author": "Sahkal Poddar",
75
+ "date": "2025-03-24T06:32:48+00:00",
76
+ "url": "https://github.com/juspay/hyperswitch/commit/9c13c5b338a74f85d0cacc043169d3daf302260e"
77
+ },
78
+ {
79
+ "sha": "2dd723c84400d5cb289c72196bc2550eeb0a4a20",
80
+ "message": "resolved merge conflicts",
81
+ "author": "Sahkal Poddar",
82
+ "date": "2025-03-24T06:41:21+00:00",
83
+ "url": "https://github.com/juspay/hyperswitch/commit/2dd723c84400d5cb289c72196bc2550eeb0a4a20"
84
+ },
85
+ {
86
+ "sha": "f5fcc193b1d58d96424a0c9fdb4b5e03acf0133d",
87
+ "message": "fixed open-api specs",
88
+ "author": "Sahkal Poddar",
89
+ "date": "2025-03-24T07:07:30+00:00",
90
+ "url": "https://github.com/juspay/hyperswitch/commit/f5fcc193b1d58d96424a0c9fdb4b5e03acf0133d"
91
+ },
92
+ {
93
+ "sha": "bece5d295d158a5156738a96e8f6ef4aae43faac",
94
+ "message": "fixed open-api specs v2",
95
+ "author": "Sahkal Poddar",
96
+ "date": "2025-03-24T07:15:48+00:00",
97
+ "url": "https://github.com/juspay/hyperswitch/commit/bece5d295d158a5156738a96e8f6ef4aae43faac"
98
+ },
99
+ {
100
+ "sha": "f2968ec920778b5c735365ed282ead0e832fba74",
101
+ "message": "resolved merge conflicts",
102
+ "author": "Sahkal Poddar",
103
+ "date": "2025-03-26T14:45:14+00:00",
104
+ "url": "https://github.com/juspay/hyperswitch/commit/f2968ec920778b5c735365ed282ead0e832fba74"
105
+ },
106
+ {
107
+ "sha": "f2de121fa206807018dda4625fb92e659d9bbc48",
108
+ "message": "changed encrypted payload to secret string",
109
+ "author": "Sahkal Poddar",
110
+ "date": "2025-03-26T15:09:06+00:00",
111
+ "url": "https://github.com/juspay/hyperswitch/commit/f2de121fa206807018dda4625fb92e659d9bbc48"
112
+ },
113
+ {
114
+ "sha": "2c584f01e0328f929e446979d50a5434070abea5",
115
+ "message": "fixed open-api specs",
116
+ "author": "Sahkal Poddar",
117
+ "date": "2025-03-26T17:50:52+00:00",
118
+ "url": "https://github.com/juspay/hyperswitch/commit/2c584f01e0328f929e446979d50a5434070abea5"
119
+ },
120
+ {
121
+ "sha": "cf6920d6deff0b6362b47572838ad98408beadab",
122
+ "message": "added encrypyted field as optional",
123
+ "author": "Sahkal Poddar",
124
+ "date": "2025-03-27T09:05:09+00:00",
125
+ "url": "https://github.com/juspay/hyperswitch/commit/cf6920d6deff0b6362b47572838ad98408beadab"
126
+ },
127
+ {
128
+ "sha": "e0726d48dd4e64720ad3cedcedfd6359bd474868",
129
+ "message": "resolved merge conflicts",
130
+ "author": "Sahkal Poddar",
131
+ "date": "2025-03-27T17:57:42+00:00",
132
+ "url": "https://github.com/juspay/hyperswitch/commit/e0726d48dd4e64720ad3cedcedfd6359bd474868"
133
+ }
134
+ ]
135
+ }
prs/pr_7623.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7623,
3
+ "title": "fix(connector): [CYBERSOURCE] change ucaf_collection_indicator for mastercard payments via netcetera",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [X] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\nExternal 3ds payments for cybersource via netcetera external authentication is not working currently. To fix it, correct ucaf_collection_indicator has to be passed which is \"2\" according to cybersource doc. This PR introduces this correction.\r\n\r\n<img width=\"604\" alt=\"Screenshot 2025-03-25 at 3 53 43\u202fPM\" src=\"https://github.com/user-attachments/assets/53f38f3f-733a-45bc-8c68-ce9c7a536bd4\" />\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n### Configure business profile\r\n**Curl**\r\n\r\n`curl --location 'http://localhost:8080/account/merchant_1742896618/business_profile/pro_ddmS9vKQBtVtjx1wOyxr' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data '{ \r\n \"authentication_connector_details\": {\r\n \"authentication_connectors\": [\r\n \"netcetera\"\r\n ],\r\n \"three_ds_requestor_url\": \"https://my.flowbirdapp.com/\"\r\n }\r\n}'`\r\n\r\n### Create payment request via Cybersoucrce with 3ds external auth enabled\r\n**Curl**\r\n\r\n`curl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_fqPovCsMoQb3EKJiZacxsXxoTN1bXCMrez3vwgYASVHPS9bKmtBONGbJ8LrcNVMo' \\\r\n--data-raw '{\r\n \"amount\": 10000,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"payment_link\": false,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"amount_to_capture\": 10000,\r\n \"customer_id\": \"StripeCustomer\",\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\r\n \"request_external_three_ds_authentication\": true,\r\n \"authentication_type\": \"three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"5512459816707531\",\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"2025\",\r\n \"card_cvc\": \"000\",\r\n \"card_network\": \"Mastercard\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"CA\",\r\n \"line3\": \"CA\",\r\n \"city\": \"Musterhausen\",\r\n \"state\": \"California\",\r\n \"zip\": \"12345\",\r\n \"country\": \"US\",\r\n \"first_name\": \"Debarati\",\r\n \"last_name\": \"Ghatak\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,\\/;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"ip_address\": \"103.77.139.95\",\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {\r\n \"dg\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n }\r\n}'`\r\n\r\n<img width=\"1189\" alt=\"Screenshot 2025-03-25 at 3 59 46\u202fPM\" src=\"https://github.com/user-attachments/assets/97ebf01c-5ceb-4839-a5bf-8329d05e7f5b\" />\r\n\r\n### Call 3ds authentication endpoint\r\n**Curl**\r\n\r\n`curl --location 'http://localhost:8080/payments/pay_MfhkesST2jWyAXJkN0ap/3ds/authentication' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: pk_dev_89bfdedf18374b27b59ab42dc6508c57' \\\r\n--data '{\r\n \"client_secret\": \"pay_MfhkesST2jWyAXJkN0ap_secret_CCOCh7UEtByCqtmBYmq9\",\r\n \"device_channel\": \"BRW\",\r\n \"threeds_method_comp_ind\": \"Y\"\r\n}'`\r\n\r\n<img width=\"1189\" alt=\"Screenshot 2025-03-25 at 3 59 31\u202fPM\" src=\"https://github.com/user-attachments/assets/e1822eca-cd1d-47ce-8942-b06acd60c003\" />\r\n\r\n\r\n### Call authorize for Cybersource \r\n**Curl**\r\n\r\n`curl --location --request POST 'http://localhost:8080/payments/pay_MfhkesST2jWyAXJkN0ap/merchant_1742896618/authorize/cybersource'`\r\n<img width=\"1189\" alt=\"Screenshot 2025-03-25 at 3 59 15\u202fPM\" src=\"https://github.com/user-attachments/assets/19ed38f2-4283-4cd3-990b-2ca90c8f080e\" />\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [X] I formatted the code `cargo +nightly fmt --all`\r\n- [X] I addressed lints thrown by `cargo clippy`\r\n- [X] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "dgeee13",
6
+ "created_at": "2025-03-25T10:30:30+00:00",
7
+ "merged_at": "2025-03-26T12:33:55+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-connector-integration"
11
+ ],
12
+ "url": "https://github.com/juspay/hyperswitch/pull/7623",
13
+ "commits": [
14
+ {
15
+ "sha": "6f947cacbf8b5a1d104a7b677a3c191681d11416",
16
+ "message": "feat(connector): change ucaf_collection_indicator for mastercard payments via netcetera",
17
+ "author": "Debarati Ghatak",
18
+ "date": "2025-03-25T10:15:53+00:00",
19
+ "url": "https://github.com/juspay/hyperswitch/commit/6f947cacbf8b5a1d104a7b677a3c191681d11416"
20
+ }
21
+ ]
22
+ }
prs/pr_7649.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7649,
3
+ "title": "refactor(connector): [TrustPay] Fix status and wasm changes ",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n- Fix dynamic fields for SepaBankTransfer\r\n- Handle error case Status mapping\r\n- Fix wasm Changes for SepaBankTransfer\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n1. Create Merchant \r\n2. Create API Key\r\n3. Create MCA for Trustpay\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1742994781/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data '{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"trustpay\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"SignatureKey\",\r\n \"api_key\": \"_//=\",\r\n \"key1\": \"_\",\r\n \"api_secret\": \"_\"\r\n },\r\n \"test_mode\": false,\r\n \"disabled\": false,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"bank_transfer\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"sepa_bank_transfer\",\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true \r\n },\r\n {\r\n \"payment_method_type\": \"instant_bank_transfer\",\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true \r\n ],\r\n \"metadata\":{\r\n \"currency_id\": 1,\r\n \"platform_id\": 6,\r\n \"ledger_account_id\": \"_\"\r\n }\r\n}'\r\n```\r\n4. Payment Create\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_90I0ZTyI3Fa4Lt90nzaOp9vk5YsvbNSQ8JQm4vHBDURhjNZaaitQDrrXkBYMlrzq' \\\r\n--data '\r\n{\r\n\"amount\": 1000,\r\n\"currency\": \"EUR\",\r\n\"confirm\": false,\r\n\"payment_link\": false,\r\n\"return_url\": \"https://duck.com\",\r\n\"capture_method\": \"automatic\",\r\n\"customer_id\": \"cus_536w4t5lmEKMxky8xwN0\",\r\n\"description\": \"Its my first payment request\",\r\n\"capture_on\": \"2022-09-10T10:11:12Z\",\r\n\"authentication_type\": \"no_three_ds\",\r\n\"name\": \"John Doe\",\r\n\"phone\": \"98989898989\"\r\n}'\r\n```\r\n5. PML response\r\n```\r\n{\r\n \"redirect_url\": \"https://google.com/success\",\r\n \"currency\": \"EUR\",\r\n \"payment_methods\": [\r\n {\r\n \"payment_method\": \"bank_transfer\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"sepa_bank_transfer\",\r\n \"payment_experience\": null,\r\n \"card_networks\": null,\r\n \"bank_names\": null,\r\n \"bank_debits\": null,\r\n \"bank_transfers\": {\r\n \"eligible_connectors\": [\r\n \"trustpay\"\r\n ]\r\n },\r\n \"required_fields\": {\r\n \"billing.address.country\": {\r\n \"required_field\": \"payment_method_data.billing.address.country\",\r\n \"display_name\": \"country\",\r\n \"field_type\": {\r\n \"user_address_country\": {\r\n \"options\": [\r\n \"ALL\"\r\n ]\r\n }\r\n },\r\n \"value\": null\r\n },\r\n \"billing.address.zip\": {\r\n \"required_field\": \"payment_method_data.billing.address.zip\",\r\n \"display_name\": \"zip\",\r\n \"field_type\": \"user_address_pincode\",\r\n \"value\": null\r\n },\r\n \"billing.address.first_name\": {\r\n \"required_field\": \"payment_method_data.billing.address.first_name\",\r\n \"display_name\": \"billing_first_name\",\r\n \"field_type\": \"user_billing_name\",\r\n \"value\": null\r\n },\r\n \"billing.address.last_name\": {\r\n \"required_field\": \"payment_method_data.billing.address.last_name\",\r\n \"display_name\": \"billing_last_name\",\r\n \"field_type\": \"user_billing_name\",\r\n \"value\": null\r\n },\r\n \"email\": {\r\n \"required_field\": \"email\",\r\n \"display_name\": \"email\",\r\n \"field_type\": \"user_email_address\",\r\n \"value\": \"p143@example.com\"\r\n },\r\n \"billing.address.line1\": {\r\n \"required_field\": \"payment_method_data.billing.address.line1\",\r\n \"display_name\": \"line1\",\r\n \"field_type\": \"user_address_line1\",\r\n \"value\": null\r\n },\r\n \"billing.address.city\": {\r\n \"required_field\": \"payment_method_data.billing.address.city\",\r\n \"display_name\": \"city\",\r\n \"field_type\": \"user_address_city\",\r\n \"value\": null\r\n }\r\n },\r\n \"surcharge_details\": null,\r\n \"pm_auth_connector\": null\r\n },\r\n {\r\n \"payment_method_type\": \"instant_bank_transfer\",\r\n \"payment_experience\": null,\r\n \"card_networks\": null,\r\n \"bank_names\": null,\r\n \"bank_debits\": null,\r\n \"bank_transfers\": {\r\n \"eligible_connectors\": [\r\n \"trustpay\"\r\n ]\r\n },\r\n \"required_fields\": {\r\n \"email\": {\r\n \"required_field\": \"email\",\r\n \"display_name\": \"email\",\r\n \"field_type\": \"user_email_address\",\r\n \"value\": \"p143@example.com\"\r\n },\r\n \"billing.address.line1\": {\r\n \"required_field\": \"payment_method_data.billing.address.line1\",\r\n \"display_name\": \"line1\",\r\n \"field_type\": \"user_address_line1\",\r\n \"value\": null\r\n },\r\n \"billing.address.last_name\": {\r\n \"required_field\": \"payment_method_data.billing.address.last_name\",\r\n \"display_name\": \"billing_last_name\",\r\n \"field_type\": \"user_billing_name\",\r\n \"value\": null\r\n },\r\n \"billing.address.first_name\": {\r\n \"required_field\": \"payment_method_data.billing.address.first_name\",\r\n \"display_name\": \"billing_first_name\",\r\n \"field_type\": \"user_billing_name\",\r\n \"value\": null\r\n },\r\n \"billing.address.city\": {\r\n \"required_field\": \"payment_method_data.billing.address.city\",\r\n \"display_name\": \"city\",\r\n \"field_type\": \"user_address_city\",\r\n \"value\": null\r\n },\r\n \"billing.address.country\": {\r\n \"required_field\": \"payment_method_data.billing.address.country\",\r\n \"display_name\": \"country\",\r\n \"field_type\": {\r\n \"user_address_country\": {\r\n \"options\": [\r\n \"ALL\"\r\n ]\r\n }\r\n },\r\n \"value\": null\r\n },\r\n \"billing.address.zip\": {\r\n \"required_field\": \"payment_method_data.billing.address.zip\",\r\n \"display_name\": \"zip\",\r\n \"field_type\": \"user_address_pincode\",\r\n \"value\": null\r\n }\r\n },\r\n \"surcharge_details\": null,\r\n \"pm_auth_connector\": null\r\n }\r\n ]\r\n }\r\n ],\r\n \"mandate_payment\": null,\r\n \"merchant_name\": \"NewAge Retailer\",\r\n \"show_surcharge_breakup_screen\": false,\r\n \"payment_type\": \"normal\",\r\n \"request_external_three_ds_authentication\": false,\r\n \"collect_shipping_details_from_wallets\": false,\r\n \"collect_billing_details_from_wallets\": false,\r\n \"is_tax_calculation_enabled\": false\r\n}\r\n```\r\n________________________________________________________________________\r\n\r\nTest for Psync after confirm call without redirection\r\n1. Payment Create\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_90I0ZTyI3Fa4Lt90nzaOp9vk5YsvbNSQ8JQm4vHBDURhjNZaaitQDrrXkBYMlrzq' \\\r\n--data-raw '\r\n{\r\n\"amount\": 1000,\r\n\"currency\": \"EUR\",\r\n\"confirm\": false,\r\n\"payment_link\": false,\r\n\"return_url\": \"https://duck.com\",\r\n\"capture_method\": \"automatic\",\r\n\"customer_id\": \"cus_536w4t5lmEKMxky8xwN0\",\r\n\"description\": \"Its my first payment request\",\r\n\"capture_on\": \"2022-09-10T10:11:12Z\",\r\n\"authentication_type\": \"no_three_ds\",\r\n \"email\": \"p143@example.com\",\r\n\"name\": \"John Doe\",\r\n\"phone\": \"98989898989\",\r\n\"connector_metadata\": {\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n},\r\n\"setup_future_usage\": \"on_session\",\r\n\"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,*\\/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"128.0.0.1\"\r\n},\r\n\"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"Ceuta\",\r\n \"zip\": \"94122\",\r\n \"country\": \"SK\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"p143@example.com\"\r\n}\r\n}'\r\n```\r\n2. payment Confirm - instant_bank_transfer\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_C6F36iQW3v1Mk4jE5JSI/confirm' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: ______' \\\r\n--data '\r\n {\r\n \"payment_method\": \"bank_transfer\",\r\n \"payment_method_type\": \"instant_bank_transfer\",\r\n \"payment_method_data\": {\r\n \"bank_transfer\": {\r\n \"instant_bank_transfer\": {}\r\n }\r\n }\r\n }'\r\n```\r\n3. Psync without completing redirection\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_5lw3r93YnRlLx7JJ849H?force_sync=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: _'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_5lw3r93YnRlLx7JJ849H\",\r\n \"merchant_id\": \"merchant_1742994781\",\r\n \"status\": \"requires_customer_action\",\r\n \"amount\": 1000,\r\n \"net_amount\": 1000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 1000,\r\n \"amount_received\": null,\r\n \"connector\": \"trustpay\",\r\n \"client_secret\": \"pay_5lw3r93YnRlLx7JJ849H_secret_qOk0qcaWOgQolwi8UTZT\",\r\n \"created\": \"2025-03-26T14:53:38.108Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"cus_536w4t5lmEKMxky8xwN0\",\r\n \"customer\": {\r\n \"id\": \"cus_536w4t5lmEKMxky8xwN0\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"p143@example.com\",\r\n \"phone\": \"98989898989\",\r\n \"phone_country_code\": null\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"on_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"bank_transfer\",\r\n \"payment_method_data\": {\r\n \"bank_transfer\": {\r\n \"instant_bank_transfer\": {}\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"SK\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"Ceuta\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"p143@example.com\"\r\n },\r\n \"order_details\": null,\r\n \"email\": \"p143@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"98989898989\",\r\n \"return_url\": \"https://duck.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": {\r\n \"type\": \"redirect_to_url\",\r\n \"redirect_to_url\": \"http://localhost:8080/payments/redirect/pay_5lw3r93YnRlLx7JJ849H/merchant_1742994781/pay_5lw3r93YnRlLx7JJ849H_1\"\r\n },\r\n \"cancellation_reason\": null,\r\n \"error_code\": \"1132005\",\r\n \"error_message\": \"TransactionNotFound\",\r\n \"unified_code\": \"UE_9000\",\r\n \"unified_message\": \"Something went wrong\",\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"instant_bank_transfer\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"3463456165\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": {\r\n \"apple_pay\": null,\r\n \"airwallex\": null,\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n },\r\n \"braintree\": null\r\n },\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_bfO3IrshhzN8spixIFYU\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_mJ7rFHk2BZ8rjzLAbERd\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-03-26T15:08:38.108Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"os_type\": null,\r\n \"language\": null,\r\n \"time_zone\": null,\r\n \"ip_address\": \"::1\",\r\n \"os_version\": null,\r\n \"user_agent\": null,\r\n \"color_depth\": null,\r\n \"device_model\": null,\r\n \"java_enabled\": null,\r\n \"screen_width\": null,\r\n \"accept_header\": null,\r\n \"screen_height\": null,\r\n \"accept_language\": \"en\",\r\n \"java_script_enabled\": null\r\n },\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-03-26T14:53:44.157Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": null,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null\r\n}\r\n```\r\n________________________________________________________________\r\n1. Create Payment \r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: _' \\\r\n--data-raw '\r\n{\r\n\"amount\": 1000,\r\n\"currency\": \"EUR\",\r\n\"confirm\": false,\r\n\"payment_link\": false,\r\n\"return_url\": \"https://duck.com\",\r\n\"capture_method\": \"automatic\",\r\n\"customer_id\": \"cus_536w4t5lmEKMxky8xwN0\",\r\n\"description\": \"Its my first payment request\",\r\n\"capture_on\": \"2022-09-10T10:11:12Z\",\r\n\"authentication_type\": \"no_three_ds\",\r\n \"email\": \"p143@example.com\",\r\n\"name\": \"John Doe\",\r\n\"phone\": \"98989898989\",\r\n\"connector_metadata\": {\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n},\r\n\"setup_future_usage\": \"on_session\",\r\n\"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,*\\/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"128.0.0.1\"\r\n},\r\n\"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"Ceuta\",\r\n \"zip\": \"94122\",\r\n \"country\": \"SK\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"p143@example.com\"\r\n}\r\n}'\r\n```\r\n2. Confirm Payment - sepa_bank_transfer\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_xo9DAp8Fy9UzjkWIgLKu/confirm' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: _' \\\r\n--data ' {\r\n \"payment_method\": \"bank_transfer\",\r\n \"payment_method_type\": \"sepa_bank_transfer\",\r\n \"payment_method_data\": {\r\n \"bank_transfer\": {\r\n \"sepa_bank_transfer\": {}\r\n }\r\n }\r\n }\r\n'\r\n```\r\n 3. Psync without completing redirection\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_xo9DAp8Fy9UzjkWIgLKu?force_sync=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_90I0ZTyI3Fa4Lt90nzaOp9vk5YsvbNSQ8JQm4vHBDURhjNZaaitQDrrXkBYMlrzq'\r\n```\r\nResponse\r\n```\r\n{\"payment_id\":\"pay_xo9DAp8Fy9UzjkWIgLKu\",\"merchant_id\":\"merchant_1742994781\",\"status\":\"processing\",\"amount\":1000,\"net_amount\":1000,\"shipping_cost\":null,\"amount_capturable\":1000,\"amount_received\":null,\"connector\":\"trustpay\",\"client_secret\":\"pay_xo9DAp8Fy9UzjkWIgLKu_secret_WSUDpkM2fO9vR3lJwiQt\",\"created\":\"2025-03-26T14:55:39.245Z\",\"currency\":\"EUR\",\"customer_id\":\"cus_536w4t5lmEKMxky8xwN0\",\"customer\":{\"id\":\"cus_536w4t5lmEKMxky8xwN0\",\"name\":\"John Doe\",\"email\":\"p143@example.com\",\"phone\":\"98989898989\",\"phone_country_code\":null},\"description\":\"Its my first payment request\",\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"bank_transfer\",\"payment_method_data\":{\"bank_transfer\":{\"sepa\":{}},\"billing\":null},\"payment_token\":null,\"shipping\":null,\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"SK\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"p143@example.com\"},\"order_details\":null,\"email\":\"p143@example.com\",\"name\":\"John Doe\",\"phone\":\"98989898989\",\"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\":\"sepa_bank_transfer\",\"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\":\"3061758642\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":{\"apple_pay\":null,\"airwallex\":null,\"noon\":{\"order_category\":\"pay\"},\"braintree\":null},\"feature_metadata\":null,\"reference_id\":null,\"payment_link\":null,\"profile_id\":\"pro_bfO3IrshhzN8spixIFYU\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_mJ7rFHk2BZ8rjzLAbERd\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-26T15:10:39.245Z\",\"fingerprint\":null,\"browser_info\":{\"os_type\":null,\"language\":null,\"time_zone\":null,\"ip_address\":\"::1\",\"os_version\":null,\"user_agent\":null,\"color_depth\":null,\"device_model\":null,\"java_enabled\":null,\"screen_width\":null,\"accept_header\":null,\"screen_height\":null,\"accept_language\":\"en\",\"java_script_enabled\":null},\"payment_method_id\":null,\"payment_method_status\":null,\"updated\":\"2025-03-26T14:56:25.455Z\",\"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}\r\n```\r\nHere we sometime get processing status by connector, and when we will get error response we have mapped to previous status \r\n\r\n____________________________________________________\r\nSuccess scenario\r\n1. SepaBankTransfer Create + confirm \r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: _' \\\r\n--data-raw '\r\n{\r\n \"amount\": 6540,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"amount_to_capture\": 6540,\r\n \"customer_id\": \"StripeCustomer\",\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\", \r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"bank_transfer\",\r\n \"payment_method_type\" :\"sepa_bank_transfer\",\r\n \"payment_method_data\": {\r\n \"bank_transfer\": {\r\n \"sepa_bank_transfer\": { }\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"ES\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"ES\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,*\\/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"125.0.0.1\"\r\n }\r\n}'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_j6Jw3eeOwrFnkMTzcxMt\",\r\n \"merchant_id\": \"merchant_1742994781\",\r\n \"status\": \"requires_customer_action\",\r\n \"amount\": 6540,\r\n \"net_amount\": 6540,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 6540,\r\n \"amount_received\": null,\r\n \"connector\": \"trustpay\",\r\n \"client_secret\": \"pay_j6Jw3eeOwrFnkMTzcxMt_secret_HZoeXhgZjBJiN3mEv3LD\",\r\n \"created\": \"2025-03-26T14:59:20.559Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"bank_transfer\",\r\n \"payment_method_data\": {\r\n \"bank_transfer\": {\r\n \"sepa\": {}\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"ES\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"ES\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": {\r\n \"type\": \"redirect_to_url\",\r\n \"redirect_to_url\": \"http://localhost:8080/payments/redirect/pay_j6Jw3eeOwrFnkMTzcxMt/merchant_1742994781/pay_j6Jw3eeOwrFnkMTzcxMt_1\"\r\n },\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"sepa_bank_transfer\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"StripeCustomer\",\r\n \"created_at\": 1743001160,\r\n \"expires\": 1743004760,\r\n \"secret\": \"epk_90e0284f3902416fb47ba537b7ebf9c0\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"1246086473\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\",\r\n \"new_customer\": \"true\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_bfO3IrshhzN8spixIFYU\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_mJ7rFHk2BZ8rjzLAbERd\",\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-03-26T15:14:20.559Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"125.0.0.1\",\r\n \"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\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 1536,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 723,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-03-26T14:59:20.812Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": null,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null\r\n}\r\n```\r\nComplete Redirection\r\n\r\n 2. Do psync\r\n Psync response\r\n```\r\n{\"payment_id\":\"pay_j6Jw3eeOwrFnkMTzcxMt\",\"merchant_id\":\"merchant_1742994781\",\"status\":\"processing\",\"amount\":6540,\"net_amount\":6540,\"shipping_cost\":null,\"amount_capturable\":6540,\"amount_received\":null,\"connector\":\"trustpay\",\"client_secret\":\"pay_j6Jw3eeOwrFnkMTzcxMt_secret_HZoeXhgZjBJiN3mEv3LD\",\"created\":\"2025-03-26T14:59:20.559Z\",\"currency\":\"EUR\",\"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\":\"bank_transfer\",\"payment_method_data\":{\"bank_transfer\":{\"sepa\":{}},\"billing\":null},\"payment_token\":null,\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"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},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"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\":\"guest@example.com\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"sepa_bank_transfer\",\"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\":\"1246086473\",\"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_bfO3IrshhzN8spixIFYU\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_mJ7rFHk2BZ8rjzLAbERd\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-26T15:14:20.559Z\",\"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-03-26T15:00:25.635Z\",\"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}\r\n```\r\n\r\n\r\ninstant bank transfer create+ confirm\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_90I0ZTyI3Fa4Lt90nzaOp9vk5YsvbNSQ8JQm4vHBDURhjNZaaitQDrrXkBYMlrzq' \\\r\n--data-raw '\r\n{\r\n \"amount\": 6540,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"amount_to_capture\": 6540,\r\n \"customer_id\": \"StripeCustomer\",\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\", \r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"bank_transfer\",\r\n \"payment_method_type\" :\"instant_bank_transfer\",\r\n \"payment_method_data\": {\r\n \"bank_transfer\": {\r\n \"instant_bank_transfer\": { }\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"SK\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"SK\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,*\\/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"125.0.0.1\"\r\n }\r\n}'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_Xi9hfKAeDXG1Y2ZDFj16\",\r\n \"merchant_id\": \"merchant_1742994781\",\r\n \"status\": \"requires_customer_action\",\r\n \"amount\": 6540,\r\n \"net_amount\": 6540,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 6540,\r\n \"amount_received\": null,\r\n \"connector\": \"trustpay\",\r\n \"client_secret\": \"pay_Xi9hfKAeDXG1Y2ZDFj16_secret_Ddc5ZtCoDSJcPIwaJGO5\",\r\n \"created\": \"2025-03-26T15:01:33.841Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"bank_transfer\",\r\n \"payment_method_data\": {\r\n \"bank_transfer\": {\r\n \"instant_bank_transfer\": {}\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"SK\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"SK\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": {\r\n \"type\": \"redirect_to_url\",\r\n \"redirect_to_url\": \"http://localhost:8080/payments/redirect/pay_Xi9hfKAeDXG1Y2ZDFj16/merchant_1742994781/pay_Xi9hfKAeDXG1Y2ZDFj16_1\"\r\n },\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"instant_bank_transfer\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"StripeCustomer\",\r\n \"created_at\": 1743001293,\r\n \"expires\": 1743004893,\r\n \"secret\": \"epk_8507cbe0beda44aaa14adb7fa15d7747\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"1871783810\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\",\r\n \"new_customer\": \"true\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_bfO3IrshhzN8spixIFYU\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_mJ7rFHk2BZ8rjzLAbERd\",\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-03-26T15:16:33.841Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"125.0.0.1\",\r\n \"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\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 1536,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 723,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-03-26T15:01:34.166Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": null,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null\r\n}\r\n```\r\nComplete redirection\r\n2. Do psync \r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_Xi9hfKAeDXG1Y2ZDFj16\",\r\n \"merchant_id\": \"merchant_1742994781\",\r\n \"status\": \"processing\",\r\n \"amount\": 6540,\r\n \"net_amount\": 6540,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 6540,\r\n \"amount_received\": null,\r\n \"connector\": \"trustpay\",\r\n \"client_secret\": \"pay_Xi9hfKAeDXG1Y2ZDFj16_secret_Ddc5ZtCoDSJcPIwaJGO5\",\r\n \"created\": \"2025-03-26T15:01:33.841Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"bank_transfer\",\r\n \"payment_method_data\": {\r\n \"bank_transfer\": {\r\n \"instant_bank_transfer\": {}\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"SK\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"SK\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": \"1132014\",\r\n \"error_message\": \"Too many requests for a given ID. Please try again in 00:00:00.3560000\",\r\n \"unified_code\": \"UE_9000\",\r\n \"unified_message\": \"Something went wrong\",\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"instant_bank_transfer\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"1871783810\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\",\r\n \"new_customer\": \"true\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_bfO3IrshhzN8spixIFYU\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_mJ7rFHk2BZ8rjzLAbERd\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-03-26T15:16:33.841Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"125.0.0.1\",\r\n \"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\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 1536,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 723,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-03-26T15:02:13.934Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": null,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null\r\n}\r\n```\r\n\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "swangi-kumari",
6
+ "created_at": "2025-03-26T14:41:01+00:00",
7
+ "merged_at": "2025-03-26T18:06:21+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-connector-integration",
11
+ "C-bug"
12
+ ],
13
+ "url": "https://github.com/juspay/hyperswitch/pull/7649",
14
+ "commits": [
15
+ {
16
+ "sha": "36e2b0f5fdf55c022c77dfbe8fd81f35743ab240",
17
+ "message": "refactor: issues",
18
+ "author": "Swangi Kumari",
19
+ "date": "2025-03-26T14:39:49+00:00",
20
+ "url": "https://github.com/juspay/hyperswitch/commit/36e2b0f5fdf55c022c77dfbe8fd81f35743ab240"
21
+ }
22
+ ]
23
+ }
prs/pr_7675.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7675,
3
+ "title": "fix(connector): [CYBERSOURCE] change ucaf_collection_indicator for mastercard payments via netcetera",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [X] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\nHotfix for https://github.com/juspay/hyperswitch/pull/7623\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "dgeee13",
6
+ "created_at": "2025-04-01T10:45:12+00:00",
7
+ "merged_at": "2025-04-01T13:21:26+00:00",
8
+ "base_branch": "hotfix-2025.03.26.0",
9
+ "labels": [],
10
+ "url": "https://github.com/juspay/hyperswitch/pull/7675",
11
+ "commits": [
12
+ {
13
+ "sha": "4bcc8ade3fdfc01d7b8ad2c9112d0aab846acab7",
14
+ "message": "feat(connector): change ucaf_collection_indicator for mastercard payments via netcetera",
15
+ "author": "Debarati Ghatak",
16
+ "date": "2025-03-25T10:15:53+00:00",
17
+ "url": "https://github.com/juspay/hyperswitch/commit/4bcc8ade3fdfc01d7b8ad2c9112d0aab846acab7"
18
+ }
19
+ ]
20
+ }
prs/pr_7698.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7698,
3
+ "title": "ci(cypress): fix iatapay upi payments",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [x] CI/CD\r\n\r\n## Description\r\n\r\nFixed the IataPay Cypress test cases as UPI_Collect payments were failing due to an invalid billing.address.country.\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\nCypress test cases were failing \r\n\r\n## How did you test it?\r\nCypress \r\n\r\nBefore\r\n![image](https://github.com/user-attachments/assets/aa666e0e-1b36-4ec5-bab9-5266daa46310)\r\n\r\nAfter\r\n![image](https://github.com/user-attachments/assets/d5dbf622-4fed-4c91-8148-61eb6182647b)\r\n\r\nAdyen \r\n<img width=\"723\" alt=\"image\" src=\"https://github.com/user-attachments/assets/c411d896-a9b6-42a1-828f-3d0e54820606\" />\r\n\r\nBluesnap\r\n<img width=\"799\" alt=\"image\" src=\"https://github.com/user-attachments/assets/9f7adb21-0dfd-4bab-af1a-92e22733b526\" />\r\n\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "likhinbopanna",
6
+ "created_at": "2025-04-02T09:38:25+00:00",
7
+ "merged_at": "2025-04-03T06:47:38+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-CI-CD"
11
+ ],
12
+ "url": "https://github.com/juspay/hyperswitch/pull/7698",
13
+ "commits": [
14
+ {
15
+ "sha": "4d44fe4f2e5bf2d3b00e106d37846d8a5ab58cb7",
16
+ "message": "ci(cypress): fix iatapay upi payments",
17
+ "author": "likhinbopanna",
18
+ "date": "2025-04-02T09:33:10+00:00",
19
+ "url": "https://github.com/juspay/hyperswitch/commit/4d44fe4f2e5bf2d3b00e106d37846d8a5ab58cb7"
20
+ },
21
+ {
22
+ "sha": "71037f15bea3457c0d66f01d735dc38c2456a2a0",
23
+ "message": "refactor: fix other connector",
24
+ "author": "likhinbopanna",
25
+ "date": "2025-04-02T11:41:54+00:00",
26
+ "url": "https://github.com/juspay/hyperswitch/commit/71037f15bea3457c0d66f01d735dc38c2456a2a0"
27
+ }
28
+ ]
29
+ }
prs/pr_7705.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7705,
3
+ "title": "refactor(core): made provider field in ctp_service_details backward compatible",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Refactoring\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\nmade provider field in ctp_service_details backward compatible\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nAdd config to make the merchant eligible for authentication service\r\n```shell\r\ncurl --location 'http://localhost:8080/configs/' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data '{\r\n \"key\": \"merchants_eligible_for_authentication_service\",\r\n \"value\": \"[\\\"sahkal\\\", \\\"cewqcewc\\\", \\\"dqwdwljildwduoqwhduwqcqwjd\\\"]\"\r\n}'\r\n```\r\nCreate merchant connector account for Ctp_visa\r\n\r\n```shell\r\n{\r\n \"connector_type\": \"authentication_processor\",\r\n \"connector_name\": \"ctp_visa\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"NoKey\"\r\n }\r\n}\r\n'\r\n```\r\n\r\nAdyen\r\n\r\n```shell\r\ncurl --location 'http://localhost:8080/account/dqwdwljildwduoqwhduwqcqwjd/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data '\r\n{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"adyen\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"SignatureKey\",\r\n \"api_key\": \"API-KEY\",\r\n \"key1\": \"KEY-1\",\r\n \"api_secret\": \"API-SECRET\"\r\n },\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\",\r\n \"live_endpoint_prefix\": \"vsfbjh\"\r\n },\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"MERCHANT SECRET\"\r\n },\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\"\r\n}\r\n'\r\n```\r\n\r\nupdate business profile with ctp_visa mca_id\r\n\r\n```shell\r\ncurl --location 'http://localhost:8080/account/dqwdwljildwduoqwhduwqcqwjd/business_profile/pro_KCTRv8sFQfC0r65CZxrn' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data '{\r\n \"is_click_to_pay_enabled\": true,\r\n \"authentication_product_ids\": {\"click_to_pay\": \"mca_XAXUpel8ABbpoGNF8lGz\"}\r\n}'\r\n```\r\n\r\ndo payments create\r\n\r\n```shell\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_fQsdc9JbERQ7CWvmguo84XDROuXOD1oK9sdfCJXOko3SossoI4zdxpJkOIPmojwn' \\\r\n--data '{\r\n \"amount\": 1130,\r\n \"currency\": \"USD\",\r\n \"confirm\": false,\r\n \"return_url\": \"https://hyperswitch.io\"\r\n } \r\n'\r\n```\r\n\r\ndo payments confirm\r\n\r\n```shell\r\ncurl --location 'http://localhost:8080/payments/pay_Ft9Ke5Lun924OCJa7yll/confirm' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: pk_dev_1f712ac5fd7f4d8c91da6a627862a4f0' \\\r\n--data '\r\n{\r\n \r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"debit\",\r\n \"client_secret\": \"pay_Ft9Ke5Lun924OCJa7yll_secret_po1FVW5adQWFolWJUhMb\",\r\n \"ctp_service_details\" : {\r\n \"encypted_payload\": \"eyJraWQiOiJMS1hNMExOOFE2UjdMV1YxOVUwVzEzc01pYjRvNTlRRXBKelpMeVloaXZ5cmNMRWprIiwiYWxnIjoiUlMyNTYiLCJqdGkiOiJNV0V6WWpWalltRXROR0pqWlMwME56ZzFMV0ppWVdFdE56WTJZamxtWlRWa1pXRXciLCJpYXQiOjE3MzYxNDczMTF9.eyJzcmNpVHJhbnNhY3Rpb25JZCI6IjcxZjFhYjQ3LWUzZDMtYzVhNC1lOTAyLTE3OWMyYzc1ZTgwMiIsImFzc3VyYW5jZURhdGEiOnsidmVyaWZpY2F0aW9uRGF0YSI6W3sibWV0aG9kUmVzdWx0cyI6eyJ0cmFuc1N0YXR1cyI6IlkiLCJkc1RyYW5zSWQiOiI4ZGUxMzQyMy1kZTM1LTQ3ZDYtODZhZC1hZmI5OWViZTE5YmMiLCJhY3NUcmFuc0lkIjoiZGMyMGMxYmUtYWM5OC00ZDc5LTg3NjItMDA2YTEwYjllNjYwIn19XSwiZWNpIjoiMDUifSwiZW5jcnlwdGVkUGF5bG9hZCI6ImV5SnJhV1FpT2lJeE1UZ3dNVE13T1RJNE1qUXlNak13T1RJNE5ueEZUVUZKVEVGRVJGSkZVMU05WVd0aGMyZ3VhMkZ0WW14bFFHcDFjM0JoZVM1cGJpd2dUMVU5U2xWVFVFRlpMQ0JQUFVwVlUxQkJXU3dnVEQxQ1FVNUhRVXhQVWtVc0lGTlVQVXRCVWs1QlZFRkxRU3dnUXoxSlRpSXNJblI1Y0NJNklrcFBVMFVpTENKbGJtTWlPaUpCTWpVMlIwTk5JaXdpWVd4bklqb2lVbE5CTFU5QlJWQXRNalUySW4wLlc4U2p6ZUNVd3MyYjRyWHlVbXRheEhsTGMwWlZhLTRJQjNCQURIVTBBNGI1STVjVGs0ckhHcFBpXzExb3d4Uk5aN0doVi1rRjRiMmtGcUlJRmM2TWRaR0ZmODlfTERoOFE2TXB6amlNbDJfbHFxUXI4bkJReUNzaGNXaE1Vd0cwekJNMGU4Smp6YmFhc0p0cEJkTlJ4TDhrU2ljZzVpRzcteHQxWVltMnNGQ0FhaVFscXU2MGtjRzdJOV9iQUJ6MFVsN3NhZVFIRDVlb0pybFM5eFlJOW1KYml0MmxoeWdUYjFpNDJ5bFY3NzBZR2libE9QMWI1WnRReUdDdVVWcTdlY21HOHRUdjhtd3ZfVGZ3Q291NFdzUVI3bElVWnZFTkpENUQzSnpZZE5odlIta2lGcWtWS3YwaGVDNlhzSTNtVFY5OEtCUXl6d3ZHLVducGpOaGFQUS44QzlLWDBadDRQZ0F3SDdNLnZLbHNjTFRtMXhGN09sOTJhUjU1OGpRcG4wN01aaWd2RE00b2dySUlFUmZIMDFrcFB1cHBRM2NQR1EycWpNYVlsZjJaYVJLVktBS0ZXVkQ1SjRJOFBKRzBqZkZwT0hhQTV0QlFjd0pqLW53WlhLZlRaNTY3Z0dUQTl6QTdXNTRiTDVPWTVmUzExY3lpdmJfU0N0RElZdGNYMy1ZWHc3RjlfUHM1RHVYUWV6eFFoMjNhRTZBQjhjVDJMYWlDbzAxMDBTVkNVUTlCZU04cG9GcVpTVDRta1ZJNHJOdE1remRsMDJuVzl0d3J2QUQyVklESWlSX1Zvdk5WUG0xOU5VQ1Z2b0x6U01ZUkR2YWVLZEMxX2cxVC12anJZZzZkamtGTXVkUGZjUUZuQnlMcng1eDMtM05nMzVtWEN4NGFBYThqQ2U2VEFkWHUxTzhoTm1BbzMzbUxTdk1BYXdWeG5iQ2ZuamhpQWY1MGd3cVdyY2hPQ1oyMmp6NVRwbERCZGFzLWdzeEJaY1dYZWZaS0ViS2lsdVhBd3U1NHV2eHhBdnFIZFlnS3QyWFhyejRfQVRoZHgxWmdPVkpXLXRWNG1SVThYUHhNNnJ5Z2VoUkZ1Um9sZy1OeVo2TXlqVlpBYi0tT2J6ZlBOdHhySUhtSzlRTjdxUWdaQ0IwQXFIbHR4MzRhXzA4YmljVkpYOWhaWGYtTDNiVWp3dHVOc1FBWmpGV1VTLVoteGJRamU0cmpVdmo2Z1VWcmdBcnpiZ0FSb0NGZlo2SG5UWGdIS25RaWE4ZDJ5VGZoSTlhVnYxak5hNlp6eG8zZ1BobllhQ1NoNWJrajZ5VGVwREJFZXdPTEE4MFdsakNVMzFuMVgxNm5YZG5QakxhV3o5S3o2UjdvU0ZZekRPYnlxZXI1MDVfenY0cWt4SVplck10c0J1bWc3N2k5ejFtTVM3QU12MS1UMHhWeGp0MVVyNXpjcHdmNDJkN25nanY2UC1Mb2VOTFZXUlNrZUVFTEF0Q2Z0QUNuRkdvZEVlYU9HTHBhWGdlSWNPQTNPN0hfLUEwcGV5SVZheWZ2SV82M050VDhZTnVKSWhFeFJXblkxX19kUFlUUV85TnhiMU9yaG0tTDliR1R0d0F2S1h1aEVvYjNjeVJ1NDVERzVJVUJQdk5OVkRRZkJPNGJuRklFUmV4ODVBXzdwa0M2aUwxeHRVUUloeVJSSlpLdnFUWllHVUlMWnRBZFNkaU1ZUWJDTkdEQ1hzRUljZ2lwLUJscXYxX3ctQk1DNzFTQVl3S2RYVTFfVFpGQlkxOGpROXNFS0ZWd3F3WGNVa1V4M3BGeWY4d2txUEFVelhTdzV0V0tEcnhDWXZZTXpYWFpQZmtOYkhEd3kyWnhwcVdqb0g4bjJJVldWZE5laHB0V3g3cjJweVFjNXYzbl9KWU5DU0xfbk1LUlBtZmNmLWZqMGhaOTF4bm5VZXdVaWxiaVRiMkF4aXJGSjlwcDhYdlNKcE9mTmphWlRLdmJvQjRfVHpEblRzdDZwcnFIVnJNX2lOZVVxZlp1Tm1GWlFHZUk2VDZSc3ZObmhyaWlMWHhZUm5SVHFGTFhjeUJEU08zOE1vaE84akdiYWpzdXdPLXNNNGxlV0Euc2hNMENPWVU3cDRaZ29BU0ludlN2USIsIm1hc2tlZENhcmQiOnsic3JjRGlnaXRhbENhcmRJZCI6ImE0MDYxOWFlYjVkNjdlMDhkOTMyMTNmYzIyZmU1YTAyIiwiZGF0ZU9mQ2FyZENyZWF0ZWQiOiIxOTcwLTAxLTAxVDAwOjAwOjAwLjQ0NloiLCJkYXRlT2ZDYXJkTGFzdFVzZWQiOiIxOTcwLTAxLTAxVDAwOjAwOjAwLjE5M1oiLCJkaWdpdGFsQ2FyZERhdGEiOnsic3RhdHVzIjoiQUNUSVZFIiwicHJlc2VudGF0aW9uTmFtZSI6IkFiaGlzaGVrIENob3JvdGl5YSIsImRlc2NyaXB0b3JOYW1lIjoiT0JOIiwiYXJ0VXJpIjoiaHR0cHM6Ly9zYW5kYm94LmFzc2V0cy52aW1zLnZpc2EuY29tL3ZpbXMvY2FyZGFydC81YWYzNzM0Y2NhNGU0MzllOTdmMDBlNDQ3NGQ4MjQ0N19pbWFnZUFAMngucG5nIiwiYXJ0SGVpZ2h0IjoiMjEwIiwiYXJ0V2lkdGgiOiIzMzQifSwibWFza2VkQmlsbGluZ0FkZHJlc3MiOnsiYWRkcmVzc0lkIjoiOGZkZGZhYWUtZTBkYS03ZDA0LWEyNmYtMTAzMjc2NjQxODAyIiwibGluZTEiOiI2NzMqKioqKiIsImNpdHkiOiIqKioqKiIsInN0YXRlIjoiQ0EiLCJ6aXAiOiIqKioqKiIsImNvdW50cnlDb2RlIjoiVVMifSwicGFuQmluIjoiNDM5NTg0IiwicGFuRXhwaXJhdGlvbk1vbnRoIjoiMTIiLCJwYW5FeHBpcmF0aW9uWWVhciI6IjIwMjUiLCJwYW5MYXN0Rm91ciI6IjAxMTAiLCJwYXltZW50QWNjb3VudFJlZmVyZW5jZSI6IlYwMDEwMDEzMDI0MzI0NTgyNjYwNDkyOTg5OTg2IiwicGF5bWVudENhcmRUeXBlIjoiREVCSVQiLCJ0b2tlbkJpblJhbmdlIjoiNDkwNjI0Njg2IiwidG9rZW5MYXN0Rm91ciI6IjM2NjYifSwibWFza2VkQ29uc3VtZXIiOnsiY291bnRyeUNvZGUiOiJVUyIsIm1hc2tlZENvbnN1bWVySWRlbnRpdHkiOnsiaWRlbnRpdHlUeXBlIjoiRU1BSUxfQUREUkVTUyIsIm1hc2tlZElkZW50aXR5VmFsdWUiOiJhYmgqKkBqdXNwYXkuaW4ifSwibWFza2VkRW1haWxBZGRyZXNzIjoiYWJoKipAanVzcGF5LmluIiwibWFza2VkRmlyc3ROYW1lIjoiQSoqKioqIiwibWFza2VkTGFzdE5hbWUiOiJDKioqKioiLCJtYXNrZWRGdWxsTmFtZSI6IkEqKioqKiBDKioqKioiLCJtYXNrZWRNb2JpbGVOdW1iZXIiOnsiY291bnRyeUNvZGUiOiI5MSIsInBob25lTnVtYmVyIjoiKioqKioqKioyMzY4In0sInNyY0NvbnN1bWVySWQiOiJBVnpuSW5Bb2pLUlgyVitQaVVXS09QeE5iQ3YxNkRDMWQyMlI3UGw0azMwPSIsInN0YXR1cyI6IkFDVElWRSJ9fQ.TDZGI-XbBO3DNkKUu5JIxPcjyqawSeOZWxzcI4K60dKnP-4tf4R1NDVYBkNXqgEuu22edE0Uv55CqqRh5TzqY9iSMrQFJz7ErQ7TVDEa8g3o9UfWvHy4L7Ips36taZR5XaMecaHS9dRH71lGI71Z2-m53AJ_Tcu8QXJaU5roFaKx130pM7NEjnG8wod1xjeL9STm96KfEyRf2Xk0a1SY4oVXIYol2WmTt9ZJhUbpmctZ5u-fxkpH1_-4Plx5g4tA5nZpL5VNFsyYAdUqb8XCAHGyO9buzYtLPI99too0BN_aLICfw8wJ0Jn_b0AMxk28SN9LZdS72aI7oWvVIU73cw\",\r\n \"provider\": \"visa\"\r\n },\r\n \"browser_info\": {\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"color_depth\": 24,\r\n \"java_enabled\":true,\r\n \"java_script_enabled\": true,\r\n \"language\": \"en-GB\",\r\n \"screen_height\": 1440,\r\n \"screen_width\": 2560,\r\n \"time_zone\": -330,\r\n \"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\"\r\n }\r\n}'\r\n```\r\n\r\nExpected Response\r\n\r\n```shell\r\n{\r\n \"payment_id\": \"pay_Ft9Ke5Lun924OCJa7yll\",\r\n \"merchant_id\": \"dqwdwljildwduoqwhduwqcqwjd\",\r\n \"status\": \"failed\",\r\n \"amount\": 1130,\r\n \"net_amount\": 1130,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": \"adyen\",\r\n \"client_secret\": \"pay_Ft9Ke5Lun924OCJa7yll_secret_po1FVW5adQWFolWJUhMb\",\r\n \"created\": \"2024-12-18T13:00:47.663Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": null,\r\n \"customer\": null,\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": null,\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": null,\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": null,\r\n \"order_details\": null,\r\n \"email\": null,\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": \"https://hyperswitch.io/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": \"2\",\r\n \"error_message\": \"Refused\",\r\n \"unified_code\": \"UE_9000\",\r\n \"unified_message\": \"Something went wrong\",\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"debit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": true,\r\n \"connector_transaction_id\": \"KN8X64SH6PRRVS65\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_KCTRv8sFQfC0r65CZxrn\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_L6N77PiH3BI2BTPwkZPL\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2024-12-18T13:15:47.663Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"en-GB\",\r\n \"time_zone\": -330,\r\n \"ip_address\": \"::1\",\r\n \"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\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 2560,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 1440,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2024-12-18T13:04:08.461Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null\r\n}\r\n```\r\nReason for it being failed is ayden doesn't support click to pay in sandbox, but does support in production\r\n\r\ncheck that no confirmation call is initiated\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "sahkal",
6
+ "created_at": "2025-04-02T18:31:22+00:00",
7
+ "merged_at": "2025-04-03T08:13:38+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-core",
11
+ "C-refactor",
12
+ "M-api-contract-changes"
13
+ ],
14
+ "url": "https://github.com/juspay/hyperswitch/pull/7705",
15
+ "commits": [
16
+ {
17
+ "sha": "6d9feab3ab339bbfb9eef4cc47b113a8ab59bc88",
18
+ "message": "made provider field in ctp_service_details backward compatible",
19
+ "author": "Sahkal Poddar",
20
+ "date": "2025-04-02T18:29:26+00:00",
21
+ "url": "https://github.com/juspay/hyperswitch/commit/6d9feab3ab339bbfb9eef4cc47b113a8ab59bc88"
22
+ },
23
+ {
24
+ "sha": "13c7dabdb86baab1f21c5ee79703e9aa457a398a",
25
+ "message": "fixed open-api specs",
26
+ "author": "Sahkal Poddar",
27
+ "date": "2025-04-02T18:33:58+00:00",
28
+ "url": "https://github.com/juspay/hyperswitch/commit/13c7dabdb86baab1f21c5ee79703e9aa457a398a"
29
+ }
30
+ ]
31
+ }
prs/pr_7765.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7765,
3
+ "title": "ci(postman): update assertion error message for nmi collection",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [x] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [x] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nPostman Tests for `nmi` were failing on SBX (but not on Integ) because `Flow Testcases/Variation Cases/Scenario9-Create a mandate payment` responded an error message as `debit mandate payment is not supported by nmi` on SBX and `credit mandate payment is not supported by nmi` on Integ when we are using Card `4111111111111111`. So, I thought of two solutions. First, check whether the error message contains \"mandate payment is not supported by nmi\" or second, change the card number for which the error message in both the environments are same. I chose the second way finally.\r\n\r\nAnd, there is a slight change, which I missed in #7159.\r\n\r\n<!-- However, I made a change in #7159, which goes like the following\r\n![image](https://github.com/user-attachments/assets/62b3ed2a-bbe2-426f-8a30-eb4f980b51ba)\r\n\r\nBecause it was failing expecting the error message to be \" mandate payment is not supported by nmi\" but it should include the same instead of equal to. -->\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\nThe `Flow Testcases/Variation Cases/Scenario9-Create a mandate payment` passing on Integ and failing on SBX.\r\n#7764 \r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n### Before\r\n\r\n| Integ | Sandbox |\r\n| -------- | ------- |\r\n| <img width=\"850\" alt=\"image\" src=\"https://github.com/user-attachments/assets/c66e4b3b-5cf3-49ee-998a-fe7ab388c0f9\" /> | <img width=\"850\" alt=\"image\" src=\"https://github.com/user-attachments/assets/4a26f840-405b-41e8-86f2-3be32aa88056\" /> |\r\n\r\n### After\r\n\r\n| Integ | Sandbox |\r\n| -------- | ------- |\r\n| <img width=\"850\" alt=\"image\" src=\"https://github.com/user-attachments/assets/eb2b3d92-0431-4887-86a9-53f5db6be2eb\" /> | <img width=\"850\" alt=\"image\" src=\"https://github.com/user-attachments/assets/e0334b87-9bf7-43ab-b20e-fdd87e5531c7\" /> |\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "arindam-sahoo",
6
+ "created_at": "2025-04-08T11:09:57+00:00",
7
+ "merged_at": "2025-04-17T07:51:28+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-CI-CD"
11
+ ],
12
+ "url": "https://github.com/juspay/hyperswitch/pull/7765",
13
+ "commits": [
14
+ {
15
+ "sha": "db27521398819cbd025170a05f7d8c8192946fc0",
16
+ "message": "fix(postman): Update error message assertion for mandate payment creation testcase for nmi",
17
+ "author": "Arindam Sahoo",
18
+ "date": "2025-04-08T11:09:15+00:00",
19
+ "url": "https://github.com/juspay/hyperswitch/commit/db27521398819cbd025170a05f7d8c8192946fc0"
20
+ },
21
+ {
22
+ "sha": "650ad7f88754191e3740d39641b093824733b419",
23
+ "message": "Merge branch 'main' into nmi-mandate-anomaly",
24
+ "author": "Arindam Sahoo",
25
+ "date": "2025-04-08T12:05:52+00:00",
26
+ "url": "https://github.com/juspay/hyperswitch/commit/650ad7f88754191e3740d39641b093824733b419"
27
+ },
28
+ {
29
+ "sha": "fa52a646b4ded98bf66ffc3e8d5ace46b6858319",
30
+ "message": "fix(postman): Update error message assertion and card number in mandate payment test case",
31
+ "author": "Arindam Sahoo",
32
+ "date": "2025-04-08T14:01:23+00:00",
33
+ "url": "https://github.com/juspay/hyperswitch/commit/fa52a646b4ded98bf66ffc3e8d5ace46b6858319"
34
+ },
35
+ {
36
+ "sha": "2a6c80c2e4e33ac6dae409a1af31adc6e83e4b8b",
37
+ "message": "Merge branch 'main' into nmi-mandate-anomaly",
38
+ "author": "Arindam Sahoo",
39
+ "date": "2025-04-08T14:14:16+00:00",
40
+ "url": "https://github.com/juspay/hyperswitch/commit/2a6c80c2e4e33ac6dae409a1af31adc6e83e4b8b"
41
+ },
42
+ {
43
+ "sha": "ad3224bc493486d98d36fbc856ca11007be87a40",
44
+ "message": "Merge branch 'main' into nmi-mandate-anomaly",
45
+ "author": "Arindam Sahoo",
46
+ "date": "2025-04-09T07:52:40+00:00",
47
+ "url": "https://github.com/juspay/hyperswitch/commit/ad3224bc493486d98d36fbc856ca11007be87a40"
48
+ },
49
+ {
50
+ "sha": "c64efb22506376c51e1a2b07f8a6b89a1b084b3c",
51
+ "message": "Merge branch 'main' into nmi-mandate-anomaly",
52
+ "author": "Arindam Sahoo",
53
+ "date": "2025-04-10T07:44:43+00:00",
54
+ "url": "https://github.com/juspay/hyperswitch/commit/c64efb22506376c51e1a2b07f8a6b89a1b084b3c"
55
+ },
56
+ {
57
+ "sha": "f1dd91a46f9f9fb06ea1580ccf556adf7011618f",
58
+ "message": "Merge branch 'main' into nmi-mandate-anomaly",
59
+ "author": "Arindam Sahoo",
60
+ "date": "2025-04-10T14:54:00+00:00",
61
+ "url": "https://github.com/juspay/hyperswitch/commit/f1dd91a46f9f9fb06ea1580ccf556adf7011618f"
62
+ },
63
+ {
64
+ "sha": "bcd1fb9e1ff55acc1d8fe430a57e6d07a9c629e8",
65
+ "message": "Merge branch 'main' into nmi-mandate-anomaly",
66
+ "author": "Arindam Sahoo",
67
+ "date": "2025-04-11T07:43:13+00:00",
68
+ "url": "https://github.com/juspay/hyperswitch/commit/bcd1fb9e1ff55acc1d8fe430a57e6d07a9c629e8"
69
+ },
70
+ {
71
+ "sha": "a3bd0e63b3f1d0a64050dbd8668a6addf4742188",
72
+ "message": "Merge branch 'main' into nmi-mandate-anomaly",
73
+ "author": "Arindam Sahoo",
74
+ "date": "2025-04-12T13:59:41+00:00",
75
+ "url": "https://github.com/juspay/hyperswitch/commit/a3bd0e63b3f1d0a64050dbd8668a6addf4742188"
76
+ },
77
+ {
78
+ "sha": "e354756438a44a1ad883225ca4242e48cb3561dc",
79
+ "message": "Merge branch 'main' into nmi-mandate-anomaly",
80
+ "author": "Arindam Sahoo",
81
+ "date": "2025-04-17T06:51:23+00:00",
82
+ "url": "https://github.com/juspay/hyperswitch/commit/e354756438a44a1ad883225ca4242e48cb3561dc"
83
+ }
84
+ ]
85
+ }
prs/pr_7840.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7840,
3
+ "title": "fix(connector): [Cybersource] send type selection indicator for co-batch cards",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nHotfix for https://github.com/juspay/hyperswitch/pull/7828\r\n\r\nAuthentication with Netcetera was successful, but authorization with Cybersource failed with the below error:\r\nDeclined - The request is missing one or more fields, detailed_error_information: paymentInformation.card.typeSelectionIndicator : MISSING_FIELD\r\n\r\nNeed to send card.typeSelectionIndicator as 1, for all co-badged cards txns with Cybersource (authorization).\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nThis can be tested with below payments call:\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_4KJPCRL8DJ8dAo0l8hF7TnL7j8TKkbreziz4Zebyv23PtZJOptiK5vpAZjh7eESn' \\\r\n--data-raw '{\r\n \"amount\": 499,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"customer_id\": \"test_rec7\",\r\n \"email\": \"guest@example.com\",\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"online\"\r\n },\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4010061700000021\",\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"737\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"test\",\r\n \"country\": \"NL\",\r\n \"line1\": \"here is some \\n there is some \\n none is some? \\n \",\r\n \"line2\": \"there\",\r\n \"line3\": \"anywhere\",\r\n \"zip\": \"560095\",\r\n \"state\": \"CA\",\r\n \"first_name\": \"Sakil\",\r\n \"last_name\": \"Mostak\"\r\n },\r\n \"phone\": {\r\n \"number\": \"1234567890\",\r\n \"country_code\": \"+1\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"browser_info\": {\r\n \"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\",\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"127.0.0.1\"\r\n }\r\n \r\n}'\r\n```\r\nCargo clippy:\r\n<img width=\"1728\" alt=\"Screenshot 2025-04-17 at 1 57 25\u202fPM\" src=\"https://github.com/user-attachments/assets/1c30fce3-13f0-48f4-80ef-890f3cda6f71\" />\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "mrudulvajpayee4935",
6
+ "created_at": "2025-04-17T08:33:15+00:00",
7
+ "merged_at": "2025-04-17T11:32:15+00:00",
8
+ "base_branch": "hotfix-2025.04.09.0",
9
+ "labels": [
10
+ "A-connector-compatibility",
11
+ "C-bug"
12
+ ],
13
+ "url": "https://github.com/juspay/hyperswitch/pull/7840",
14
+ "commits": [
15
+ {
16
+ "sha": "e28e6ad1c9ee2b2f78d163ad0e0e5443f9cf02af",
17
+ "message": "send type selection indicator for co-batch cards",
18
+ "author": "Mrudul Vajpayee",
19
+ "date": "2025-04-17T10:20:53+00:00",
20
+ "url": "https://github.com/juspay/hyperswitch/commit/e28e6ad1c9ee2b2f78d163ad0e0e5443f9cf02af"
21
+ }
22
+ ]
23
+ }
prs/pr_7977.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 7977,
3
+ "title": "refactor(connector): [Noon] auth header",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [x] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\nNoon has updated there Authentication api\r\n- The mode selector has been deprecated because there is no more segregation of authentication for TEST/LIVE environment via the authorization header,\r\nthe endpoint used will take care of routing the request to the relevant environment.\r\n\r\nCurrent\r\nMode selector is mandatory in the authorization header to authenticate credentials:\r\n\u2022 Key_test Base64(BusinessIdentifier.ApplicationIdentifier:ApplicationKey)\r\n\u2022 Key_live Base64(BusinessIdentifier.ApplicationIdentifier:ApplicationKey)\r\n\r\nNew\r\nMode selector no more required, for both environments the new format is:\r\n\u2022 Key Base64(BusinessIdentifier.ApplicationIdentifier:ApplicationKey\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n1. Create a Noon Payment \r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_Q44fvQRgqucXVPYBqH7SuDJu2Mxr1QvhcDD3DC294pEMjSXTi3vvy8CI2msLiKjO' \\\r\n--data-raw '{\r\n \"amount\": 390,\r\n \"currency\": \"AED\",\r\n \"confirm\": true,\r\n \r\n \r\n \"capture_method\": \"automatic\",\r\n \r\n \"customer_id\": \"sammantest2722\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \"email\": \"something@gmail.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"Its my first payment\",\r\n \"statement_descriptor_name\": \"Juspay\",\r\n \"statement_descriptor_suffix\": \"Router\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4000000000002701\",\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"2035\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"100\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"AE\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"____\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"browser_info\": {\r\n \"user_agent\": \"Mozilla\\/5.0 (iPhone NT 10.0; Win64; x64) AppleWebKit\\/537.36 (KHTML, like Gecko) Chrome\\/70.0.3538.110 Safari\\/537.36\",\r\n \"accept_header\": \"text\\/html,application\\/xhtml+xml,application\\/xml;q=0.9,image\\/webp,image\\/apng,*\\/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"128.0.0.1\"\r\n },\r\n \"connector_metadata\": {\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n },\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 390,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ]\r\n}'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_6FveKOlMd627skf71HZz\",\r\n \"merchant_id\": \"postman_merchant_GHAction_2f8ca629-c8b2-4a0b-bcbd-7bf563aad333\",\r\n \"status\": \"requires_customer_action\",\r\n \"amount\": 390,\r\n \"net_amount\": 390,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 390,\r\n \"amount_received\": null,\r\n \"connector\": \"noon\",\r\n \"client_secret\": \"pay_6FveKOlMd627skf71HZz_secret_Rga6hxuBO9r5VX5EvQAE\",\r\n \"created\": \"2025-05-07T11:51:44.853Z\",\r\n \"currency\": \"AED\",\r\n \"customer_id\": \"sammantest2722\",\r\n \"customer\": {\r\n \"id\": \"sammantest2722\",\r\n \"name\": \"Joseph Doe\",\r\n \"email\": \"something@gmail.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": \"Its my first payment\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"2701\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"400000\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"2035\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"AE\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"____\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": [\r\n {\r\n \"brand\": null,\r\n \"amount\": 390,\r\n \"category\": null,\r\n \"quantity\": 1,\r\n \"tax_rate\": null,\r\n \"product_id\": null,\r\n \"product_name\": \"Apple iphone 15\",\r\n \"product_type\": null,\r\n \"sub_category\": null,\r\n \"product_img_link\": null,\r\n \"product_tax_code\": null,\r\n \"total_tax_amount\": null,\r\n \"requires_shipping\": null\r\n }\r\n ],\r\n \"email\": \"something@gmail.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"three_ds\",\r\n \"statement_descriptor_name\": \"Juspay\",\r\n \"statement_descriptor_suffix\": \"Router\",\r\n \"next_action\": {\r\n \"type\": \"redirect_to_url\",\r\n \"redirect_to_url\": \"http://localhost:8080/payments/redirect/pay_6FveKOlMd627skf71HZz/postman_merchant_GHAction_2f8ca629-c8b2-4a0b-bcbd-7bf563aad333/pay_6FveKOlMd627skf71HZz_1\"\r\n },\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"sammantest2722\",\r\n \"created_at\": 1746618704,\r\n \"expires\": 1746622304,\r\n \"secret\": \"epk_3c5e17e1540748e0bd25c7b3ff6e078d\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"212023029912\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": {\r\n \"apple_pay\": null,\r\n \"airwallex\": null,\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n },\r\n \"braintree\": null,\r\n \"adyen\": null\r\n },\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"pay_6FveKOlMd627skf71HZz_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_YntNRehGguMsFvDKQtyr\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_Le64ohGhH3eJbLsBjfbA\",\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-05-07T12:06:44.853Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"128.0.0.1\",\r\n \"user_agent\": \"Mozilla/5.0 (iPhone NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 1536,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 723,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-05-07T11:51:46.598Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null\r\n}\r\n```\r\nComplete Payment using redirection\r\n\r\n2. Psync \r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_6FveKOlMd627skf71HZz?force_sync=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: _'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_6FveKOlMd627skf71HZz\",\r\n \"merchant_id\": \"postman_merchant_GHAction_2f8ca629-c8b2-4a0b-bcbd-7bf563aad333\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 390,\r\n \"net_amount\": 390,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 390,\r\n \"connector\": \"noon\",\r\n \"client_secret\": \"pay_6FveKOlMd627skf71HZz_secret_Rga6hxuBO9r5VX5EvQAE\",\r\n \"created\": \"2025-05-07T11:51:44.853Z\",\r\n \"currency\": \"AED\",\r\n \"customer_id\": \"sammantest2722\",\r\n \"customer\": {\r\n \"id\": \"sammantest2722\",\r\n \"name\": \"Joseph Doe\",\r\n \"email\": \"something@gmail.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": \"Its my first payment\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"2701\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"400000\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"2035\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"AE\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"_\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": [\r\n {\r\n \"brand\": null,\r\n \"amount\": 390,\r\n \"category\": null,\r\n \"quantity\": 1,\r\n \"tax_rate\": null,\r\n \"product_id\": null,\r\n \"product_name\": \"Apple iphone 15\",\r\n \"product_type\": null,\r\n \"sub_category\": null,\r\n \"product_img_link\": null,\r\n \"product_tax_code\": null,\r\n \"total_tax_amount\": null,\r\n \"requires_shipping\": null\r\n }\r\n ],\r\n \"email\": \"something@gmail.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"three_ds\",\r\n \"statement_descriptor_name\": \"Juspay\",\r\n \"statement_descriptor_suffix\": \"Router\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": null,\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"212023029912\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": {\r\n \"apple_pay\": null,\r\n \"airwallex\": null,\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n },\r\n \"braintree\": null,\r\n \"adyen\": null\r\n },\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"pay_6FveKOlMd627skf71HZz_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_YntNRehGguMsFvDKQtyr\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_Le64ohGhH3eJbLsBjfbA\",\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-05-07T12:06:44.853Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"128.0.0.1\",\r\n \"user_agent\": \"Mozilla/5.0 (iPhone NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"screen_width\": 1536,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 723,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-05-07T11:51:58.623Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null\r\n}\r\n```\r\n\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "swangi-kumari",
6
+ "created_at": "2025-05-07T12:09:54+00:00",
7
+ "merged_at": "2025-05-12T15:28:52+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-connector-integration",
11
+ "C-refactor"
12
+ ],
13
+ "url": "https://github.com/juspay/hyperswitch/pull/7977",
14
+ "commits": [
15
+ {
16
+ "sha": "30b35f15a156ab02d3914b6969e33640614ef0a1",
17
+ "message": "refactor: noon auth header",
18
+ "author": "Swangi Kumari",
19
+ "date": "2025-05-07T12:00:17+00:00",
20
+ "url": "https://github.com/juspay/hyperswitch/commit/30b35f15a156ab02d3914b6969e33640614ef0a1"
21
+ },
22
+ {
23
+ "sha": "054c29845bc99e91d1874d5eeeac7b54dfeab840",
24
+ "message": "refactor: remove unused parameter",
25
+ "author": "Swangi Kumari",
26
+ "date": "2025-05-07T16:52:36+00:00",
27
+ "url": "https://github.com/juspay/hyperswitch/commit/054c29845bc99e91d1874d5eeeac7b54dfeab840"
28
+ }
29
+ ]
30
+ }
prs/pr_8031.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 8031,
3
+ "title": "fix(connector): [CYBERSOURCE] fix CartesBancaires card_type for Cybersource",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [X] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\nPayment via CartesBancaires were failing via Cybersource, since the card_type passed was wrong. It was previously \"006\" ,but should be \"036\" - this PR introduces this fix.\r\n\r\nsource\r\nhttps://developer.cybersource.com/library/documentation/dev_guides/Retail_SO_API/html/Topics/app_card_types.htm\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n### Enable CartesBancaires card_network for credit, debit pmt for Cybersource \r\n### Request\r\n**/payments curl via Cybersource**\r\n\r\n`curl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_5xoZZGCiGtFDREHNPd9l2i9CRJowAtZlrDRmuy0LTNBLBjtQlH661r0VTMNBXPgm' \\\r\n--data-raw '{\r\n \"amount\": 700,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"payment_link\": false,\r\n \"capture_on\": \"2029-09-10T10:11:12Z\",\r\n \"amount_to_capture\": 700,\r\n \"name\": \"John Doe\",\r\n \"email\": \"dg@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4035 5014 2814 6300\",\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"737\",\r\n \"card_network\": \"CartesBancaires\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"CA\",\r\n \"city\": \"Thise\",\r\n \"state\": \"Alsace\",\r\n \"zip\": \"94122\",\r\n \"country\": \"FR\",\r\n \"first_name\": \"Henry\",\r\n \"last_name\": \"Henry\"\r\n }\r\n }\r\n },\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"browser_info\": {\r\n \"color_depth\": 24,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"language\": \"en-GB\",\r\n \"screen_height\": 720,\r\n \"screen_width\": 1280,\r\n \"time_zone\": -330,\r\n \"ip_address\": \"208.127.127.193\",\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"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\"\r\n },\r\n \"metadata\": {\r\n \"disable_avs\": true,\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Tea\",\r\n \"quantity\": 1,\r\n \"amount\": 110,\r\n \"product_img_link\": \"https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg\"\r\n },\r\n {\r\n \"product_name\": \"Tea\",\r\n \"quantity\": 1,\r\n \"amount\": 110,\r\n \"product_img_link\": \"https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg\"\r\n },\r\n {\r\n \"product_name\": \"Tea\",\r\n \"quantity\": 1,\r\n \"amount\": 110,\r\n \"product_img_link\": \"https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg\"\r\n }\r\n ]\r\n}'`\r\n\r\n\r\n\r\n\r\n\r\n**After PR changes**\r\n\r\n<img width=\"1066\" alt=\"Screenshot 2025-05-20 at 2 26 17\u202fPM\" src=\"https://github.com/user-attachments/assets/c0d7fbb6-cca7-479c-b0aa-3c1bccb55df8\" />\r\n\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [X] I formatted the code `cargo +nightly fmt --all`\r\n- [X] I addressed lints thrown by `cargo clippy`\r\n- [X] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "dgeee13",
6
+ "created_at": "2025-05-14T15:37:15+00:00",
7
+ "merged_at": "2025-05-15T12:54:57+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-connector-integration"
11
+ ],
12
+ "url": "https://github.com/juspay/hyperswitch/pull/8031",
13
+ "commits": [
14
+ {
15
+ "sha": "c73240b800d38e39b30b9097fa460c808fea420f",
16
+ "message": "Fix CartesBancaires card_type for Cybersource",
17
+ "author": "Debarati Ghatak",
18
+ "date": "2025-05-14T15:08:32+00:00",
19
+ "url": "https://github.com/juspay/hyperswitch/commit/c73240b800d38e39b30b9097fa460c808fea420f"
20
+ },
21
+ {
22
+ "sha": "0b61ac010cac9024001e26d609a89bd89f7ea340",
23
+ "message": "Merge branch 'main' into cybersourceCardNWFix",
24
+ "author": "Debarati Ghatak",
25
+ "date": "2025-05-14T15:42:16+00:00",
26
+ "url": "https://github.com/juspay/hyperswitch/commit/0b61ac010cac9024001e26d609a89bd89f7ea340"
27
+ }
28
+ ]
29
+ }
prs/pr_8041.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 8041,
3
+ "title": "Refactor(refunds_v2): Refactor api event metric for refunds v2 apis",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [x] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nThis PR adds support for API Event Metric logging, the events will be logged to clickhouse when a request/response is triggered.\r\n\r\nIn refunds v2, it will be for requests and responses for 4 apis\r\n1. Refunds Create\r\n2. Refunds Metadata Update\r\n3. Refunds Retrieve\r\n4. Refunds List\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\nIt will help us in keeping track of the requests/response and for analytical purposes and help in debugging.\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n- This will be tested when kafka and clickhouse is enabled for v2.\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "AmeyWale",
6
+ "created_at": "2025-05-15T10:23:25+00:00",
7
+ "merged_at": "2025-05-27T07:22:39+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "api-v2"
11
+ ],
12
+ "url": "https://github.com/juspay/hyperswitch/pull/8041",
13
+ "commits": [
14
+ {
15
+ "sha": "67a7ae4fecf1f0cd8ec25b533e2e8c9e2cb111be",
16
+ "message": "refactor(refunds_v2): Make payment_id optional in api event logging in refunds v2",
17
+ "author": "Amey Wale",
18
+ "date": "2025-05-15T06:01:37+00:00",
19
+ "url": "https://github.com/juspay/hyperswitch/commit/67a7ae4fecf1f0cd8ec25b533e2e8c9e2cb111be"
20
+ },
21
+ {
22
+ "sha": "a711c47d30f5cac9c02127ef1758a2c7f95bf896",
23
+ "message": "Merge branch 'main' into refactor-api-event-metric-for-refunds-v2",
24
+ "author": "Amey Wale",
25
+ "date": "2025-05-15T06:02:10+00:00",
26
+ "url": "https://github.com/juspay/hyperswitch/commit/a711c47d30f5cac9c02127ef1758a2c7f95bf896"
27
+ },
28
+ {
29
+ "sha": "5469067a99f7034320920aabb958488cc3e8a292",
30
+ "message": "refactor(refunds_v2): Implement generic api event metric flow for refunds create, update",
31
+ "author": "Amey Wale",
32
+ "date": "2025-05-15T10:14:39+00:00",
33
+ "url": "https://github.com/juspay/hyperswitch/commit/5469067a99f7034320920aabb958488cc3e8a292"
34
+ },
35
+ {
36
+ "sha": "c6e6ad606dc27ee426f8625b7cd7109d2e7e23a8",
37
+ "message": "Merge branch 'main' into refactor-api-event-metric-for-refunds-v2",
38
+ "author": "Amey Wale",
39
+ "date": "2025-05-23T04:16:56+00:00",
40
+ "url": "https://github.com/juspay/hyperswitch/commit/c6e6ad606dc27ee426f8625b7cd7109d2e7e23a8"
41
+ }
42
+ ]
43
+ }
prs/pr_8251.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 8251,
3
+ "title": "docs: improve readme",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [x] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nI updated the readme for better navigation\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nupdated the readme for improved developer experience\r\n\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n\r\n\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "nfarah86",
6
+ "created_at": "2025-06-04T21:52:44+00:00",
7
+ "merged_at": "2025-06-11T09:50:00+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "Developer Experience"
11
+ ],
12
+ "url": "https://github.com/juspay/hyperswitch/pull/8251",
13
+ "commits": [
14
+ {
15
+ "sha": "4236f061950f0670d6b095042758c1290b0d854f",
16
+ "message": "updated readme and added gifs",
17
+ "author": "nfarah86",
18
+ "date": "2025-05-21T23:37:35+00:00",
19
+ "url": "https://github.com/juspay/hyperswitch/commit/4236f061950f0670d6b095042758c1290b0d854f"
20
+ },
21
+ {
22
+ "sha": "127ea3ba25406c53debd2fa709835d7ac17becd8",
23
+ "message": "updated with gif and image",
24
+ "author": "nfarah86",
25
+ "date": "2025-06-04T21:40:16+00:00",
26
+ "url": "https://github.com/juspay/hyperswitch/commit/127ea3ba25406c53debd2fa709835d7ac17becd8"
27
+ },
28
+ {
29
+ "sha": "2ac37f53fb94d24e20fc829ed703a2caec6a8c8a",
30
+ "message": "Merge branch 'main' into improve-readme",
31
+ "author": "GORAKHNATH YADAV",
32
+ "date": "2025-06-05T04:48:22+00:00",
33
+ "url": "https://github.com/juspay/hyperswitch/commit/2ac37f53fb94d24e20fc829ed703a2caec6a8c8a"
34
+ },
35
+ {
36
+ "sha": "eb6ba1a3fe68c0470707922673050e9c48e10c78",
37
+ "message": "Merge branch 'main' into improve-readme",
38
+ "author": "nadine farah",
39
+ "date": "2025-06-05T14:11:14+00:00",
40
+ "url": "https://github.com/juspay/hyperswitch/commit/eb6ba1a3fe68c0470707922673050e9c48e10c78"
41
+ }
42
+ ]
43
+ }
prs/pr_8255.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 8255,
3
+ "title": "feat(router): Return payment_experience in PML for payment (v2)",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nAdded `payment_experience` in Payment Method List for Payments Response\r\n\r\n### Additional Changes\r\n\r\n- [x] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\nCloses #8254 \r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\nRequest:\r\n\r\n```\r\ncurl --location 'http://localhost:8080/v2/payments/12345_pay_019740919d6a72c2b6984f9b99be203f/payment-methods' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'x-profile-id: pro_GKx8bxieFB51Nk5FMCi6' \\\r\n--header 'Authorization: publishable-key=pk_dev_e2eec08c40444d8e862c444d3df67cd2,client-secret=cs_019740919d817810ad313fce9534793e' \\\r\n--header 'api-key: pk_dev_e2eec08c40444d8e862c444d3df67cd2'\r\n```\r\n\r\nResponse:\r\n```json\r\n{\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method_type\": \"card_redirect\",\r\n \"payment_method_subtype\": \"card_redirect\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_subtype\": \"card\",\r\n \"payment_experience\": null,\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"wallet\",\r\n \"payment_method_subtype\": \"google_pay\",\r\n \"payment_experience\": null,\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"wallet\",\r\n \"payment_method_subtype\": \"apple_pay\",\r\n \"payment_experience\": null,\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"wallet\",\r\n \"payment_method_subtype\": \"we_chat_pay\",\r\n \"payment_experience\": null,\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"wallet\",\r\n \"payment_method_subtype\": \"ali_pay\",\r\n \"payment_experience\": null,\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"wallet\",\r\n \"payment_method_subtype\": \"paypal\",\r\n \"payment_experience\": null,\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"wallet\",\r\n \"payment_method_subtype\": \"mb_way\",\r\n \"payment_experience\": null,\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"pay_later\",\r\n \"payment_method_subtype\": \"klarna\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"pay_later\",\r\n \"payment_method_subtype\": \"affirm\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"pay_later\",\r\n \"payment_method_subtype\": \"afterpay_clearpay\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"pay_later\",\r\n \"payment_method_subtype\": \"walley\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"bank_redirect\",\r\n \"payment_method_subtype\": \"giropay\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"bank_redirect\",\r\n \"payment_method_subtype\": \"ideal\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"bank_redirect\",\r\n \"payment_method_subtype\": \"eps\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"bank_redirect\",\r\n \"payment_method_subtype\": \"bancontact_card\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"bank_redirect\",\r\n \"payment_method_subtype\": \"przelewy24\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"bank_redirect\",\r\n \"payment_method_subtype\": \"sofort\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"bank_redirect\",\r\n \"payment_method_subtype\": \"blik\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"bank_redirect\",\r\n \"payment_method_subtype\": \"trustly\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"bank_redirect\",\r\n \"payment_method_subtype\": \"online_banking_finland\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"bank_redirect\",\r\n \"payment_method_subtype\": \"online_banking_poland\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"bank_transfer\",\r\n \"payment_method_subtype\": \"ach\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"bank_transfer\",\r\n \"payment_method_subtype\": \"sepa\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"bank_transfer\",\r\n \"payment_method_subtype\": \"bacs\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"bank_debit\",\r\n \"payment_method_subtype\": \"ach\",\r\n \"payment_experience\": null,\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"bank_debit\",\r\n \"payment_method_subtype\": \"sepa\",\r\n \"payment_experience\": null,\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"bank_debit\",\r\n \"payment_method_subtype\": \"bacs\",\r\n \"payment_experience\": null,\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"bank_debit\",\r\n \"payment_method_subtype\": \"becs\",\r\n \"payment_experience\": null,\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"pay_later\",\r\n \"payment_method_subtype\": \"klarna\",\r\n \"payment_experience\": \"invoke_sdk_client\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n },\r\n {\r\n \"payment_method_type\": \"pay_later\",\r\n \"payment_method_subtype\": \"klarna\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"required_fields\": null,\r\n \"surcharge_details\": null\r\n }\r\n ],\r\n \"customer_payment_methods\": null\r\n}\r\n```\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "AnuthaDev",
6
+ "created_at": "2025-06-05T05:56:25+00:00",
7
+ "merged_at": "2025-06-05T16:40:31+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "M-api-contract-changes",
11
+ "api-v2"
12
+ ],
13
+ "url": "https://github.com/juspay/hyperswitch/pull/8255",
14
+ "commits": [
15
+ {
16
+ "sha": "4d8bb99852665ab62c34128122538e4229bded0a",
17
+ "message": "feat(router): Return payment_experience in PML for payment (v2)",
18
+ "author": "Anurag Thakur",
19
+ "date": "2025-06-05T05:54:47+00:00",
20
+ "url": "https://github.com/juspay/hyperswitch/commit/4d8bb99852665ab62c34128122538e4229bded0a"
21
+ }
22
+ ]
23
+ }
prs/pr_8458.json ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 8458,
3
+ "title": "feat(masking): implement `prost::Message` trait for `Secret` and `StrongSecret` types",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [x] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\nIn order to use `Secret<String>` and `StrongSecret<String>` as field types of proto requests in other gRPC services (like Unified Connector Service), the `prost::Message` trait has been implemented for the types `Secret<String>` and `StrongSecret<String>`\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\nUnified Connector Service (UCS) is an open source, stateless merchant payments abstraction service (built using gRPC) that enables developers to integrate with a wide variety of payment processors using a unified contract. It offers the following capabilities.\r\n\r\nUnified contract across multiple payment processors\r\nEstablishing and accepting connections to numerous remote endpoints of payment processors like Stripe/Adyen/Razorpay\r\nSupports all payment payment life-cycle management operations like including authorization, capture, refunds, status and chargebacks across processors\r\nClient-SDKs in multiple programming languages (Java, Python, Go, Rust, PHP) for rapid integration.\r\n\r\nThe goal of this PR is to make hyperswitch masking crate usable by other gRPC services (like Unified Connector Service), to efficiently mask sensitive data. \r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\nI have tried building the proto files in Unified Connector Service with Secret<String> and StrongSecret<String> types, and it was a success. Attaching screenshots below:\r\n\r\n**Secret<String>**\r\n\r\n![image](https://github.com/user-attachments/assets/f2c5812a-20d3-4381-8e0a-a76202bfc36e)\r\n\r\n\r\n**StrongSecret<String>**\r\n\r\n![image](https://github.com/user-attachments/assets/be013ebc-b364-411a-8f77-4aac9496d3bb)\r\n\r\n**Testing gRPC cURL**\r\n\r\n![image](https://github.com/user-attachments/assets/cc73082f-27ad-42a9-81fd-55082232565d)\r\n\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "Debarshi-Gupta",
6
+ "created_at": "2025-06-25T06:56:13+00:00",
7
+ "merged_at": "2025-07-02T07:16:20+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-framework",
11
+ "C-feature"
12
+ ],
13
+ "url": "https://github.com/juspay/hyperswitch/pull/8458",
14
+ "commits": [
15
+ {
16
+ "sha": "00209a0e6f60ceb11a1fc260b96cae4ddede49a3",
17
+ "message": "added prost::Message trait impl for Secret<String>",
18
+ "author": "debarshi.gupta",
19
+ "date": "2025-06-25T06:54:55+00:00",
20
+ "url": "https://github.com/juspay/hyperswitch/commit/00209a0e6f60ceb11a1fc260b96cae4ddede49a3"
21
+ },
22
+ {
23
+ "sha": "4460f644bc9eb5d4aa3085c64a9d6dc163a966b4",
24
+ "message": "chore: run formatter",
25
+ "author": "hyperswitch-bot[bot]",
26
+ "date": "2025-06-25T07:00:51+00:00",
27
+ "url": "https://github.com/juspay/hyperswitch/commit/4460f644bc9eb5d4aa3085c64a9d6dc163a966b4"
28
+ },
29
+ {
30
+ "sha": "3d47e7d5de810f96fb20201c013a354f9604c75e",
31
+ "message": "chore: refactor code",
32
+ "author": "debarshi.gupta",
33
+ "date": "2025-06-25T13:10:11+00:00",
34
+ "url": "https://github.com/juspay/hyperswitch/commit/3d47e7d5de810f96fb20201c013a354f9604c75e"
35
+ },
36
+ {
37
+ "sha": "9f1ad62957d4cca005fbff79066b03131e4616af",
38
+ "message": "chore: fix github checks",
39
+ "author": "debarshi.gupta",
40
+ "date": "2025-06-25T13:24:19+00:00",
41
+ "url": "https://github.com/juspay/hyperswitch/commit/9f1ad62957d4cca005fbff79066b03131e4616af"
42
+ },
43
+ {
44
+ "sha": "3689c13ac6bf7a9333d06b34f1e3a51aa914c9e7",
45
+ "message": "added prost::Message trait impl for StrongSecret",
46
+ "author": "debarshi.gupta",
47
+ "date": "2025-06-25T13:35:39+00:00",
48
+ "url": "https://github.com/juspay/hyperswitch/commit/3689c13ac6bf7a9333d06b34f1e3a51aa914c9e7"
49
+ },
50
+ {
51
+ "sha": "10a2045df07f0050074fc69a391c62d0c744cdcc",
52
+ "message": "Merge branch 'main' into secret_string_prost_impl",
53
+ "author": "Debarshi Gupta",
54
+ "date": "2025-06-25T13:36:17+00:00",
55
+ "url": "https://github.com/juspay/hyperswitch/commit/10a2045df07f0050074fc69a391c62d0c744cdcc"
56
+ },
57
+ {
58
+ "sha": "ecddb7d8020f51db71773fc2f5569b058a8352df",
59
+ "message": "chore: run formatter",
60
+ "author": "hyperswitch-bot[bot]",
61
+ "date": "2025-06-25T13:37:16+00:00",
62
+ "url": "https://github.com/juspay/hyperswitch/commit/ecddb7d8020f51db71773fc2f5569b058a8352df"
63
+ },
64
+ {
65
+ "sha": "b588651469d271d17a0db40060ffb0d236706e64",
66
+ "message": "chore: refactor code",
67
+ "author": "debarshi.gupta",
68
+ "date": "2025-06-25T17:41:59+00:00",
69
+ "url": "https://github.com/juspay/hyperswitch/commit/b588651469d271d17a0db40060ffb0d236706e64"
70
+ },
71
+ {
72
+ "sha": "e24e8a3a31dcb99c66cbc580f58c58f3bcb26315",
73
+ "message": "chore: run formatter",
74
+ "author": "hyperswitch-bot[bot]",
75
+ "date": "2025-06-25T17:42:47+00:00",
76
+ "url": "https://github.com/juspay/hyperswitch/commit/e24e8a3a31dcb99c66cbc580f58c58f3bcb26315"
77
+ },
78
+ {
79
+ "sha": "3ccb9c4c57b518a77b1a6b4875b9d789bfed5584",
80
+ "message": "chore: resolve PR comments",
81
+ "author": "debarshi.gupta",
82
+ "date": "2025-06-26T12:57:42+00:00",
83
+ "url": "https://github.com/juspay/hyperswitch/commit/3ccb9c4c57b518a77b1a6b4875b9d789bfed5584"
84
+ },
85
+ {
86
+ "sha": "aa78e3176760f4089b12e68b6b70d18900aaf8a7",
87
+ "message": "chore: resolve PR comments",
88
+ "author": "debarshi.gupta",
89
+ "date": "2025-06-30T10:42:48+00:00",
90
+ "url": "https://github.com/juspay/hyperswitch/commit/aa78e3176760f4089b12e68b6b70d18900aaf8a7"
91
+ },
92
+ {
93
+ "sha": "928827e51b3a0e7d8057298b3d917f1e9dbeb160",
94
+ "message": "chore: resolve PR comments",
95
+ "author": "debarshi.gupta",
96
+ "date": "2025-06-30T10:52:51+00:00",
97
+ "url": "https://github.com/juspay/hyperswitch/commit/928827e51b3a0e7d8057298b3d917f1e9dbeb160"
98
+ },
99
+ {
100
+ "sha": "7d6dc833acf8916a45f255d05d7be1285f0ce58a",
101
+ "message": "chore: Resolve PR comments",
102
+ "author": "debarshi.gupta",
103
+ "date": "2025-06-30T10:56:09+00:00",
104
+ "url": "https://github.com/juspay/hyperswitch/commit/7d6dc833acf8916a45f255d05d7be1285f0ce58a"
105
+ },
106
+ {
107
+ "sha": "5ac8c98a1a7a449103e7a3363a506812b726e63b",
108
+ "message": "chore: resolve PR comments",
109
+ "author": "debarshi.gupta",
110
+ "date": "2025-06-30T12:44:36+00:00",
111
+ "url": "https://github.com/juspay/hyperswitch/commit/5ac8c98a1a7a449103e7a3363a506812b726e63b"
112
+ },
113
+ {
114
+ "sha": "8bd10c81370d24c38d048a1b8fe165bb4dcc7f83",
115
+ "message": "chore: add tag==1 check back",
116
+ "author": "debarshi.gupta",
117
+ "date": "2025-07-01T11:37:01+00:00",
118
+ "url": "https://github.com/juspay/hyperswitch/commit/8bd10c81370d24c38d048a1b8fe165bb4dcc7f83"
119
+ },
120
+ {
121
+ "sha": "e4072c1219e36dfcd3ca3f702e06f9018525b897",
122
+ "message": "Merge branch 'main' into secret_string_prost_impl",
123
+ "author": "Debarshi Gupta",
124
+ "date": "2025-07-01T11:37:29+00:00",
125
+ "url": "https://github.com/juspay/hyperswitch/commit/e4072c1219e36dfcd3ca3f702e06f9018525b897"
126
+ },
127
+ {
128
+ "sha": "05914f2576b17605e6ab991a8a3b57d7ff0eca34",
129
+ "message": "chore: Resolve PR comments",
130
+ "author": "debarshi.gupta",
131
+ "date": "2025-07-01T12:01:41+00:00",
132
+ "url": "https://github.com/juspay/hyperswitch/commit/05914f2576b17605e6ab991a8a3b57d7ff0eca34"
133
+ },
134
+ {
135
+ "sha": "d2e2d70219714e10900b1f00d82780b7b48568fe",
136
+ "message": "Merge branch 'main' into secret_string_prost_impl",
137
+ "author": "Debarshi Gupta",
138
+ "date": "2025-07-01T12:05:26+00:00",
139
+ "url": "https://github.com/juspay/hyperswitch/commit/d2e2d70219714e10900b1f00d82780b7b48568fe"
140
+ },
141
+ {
142
+ "sha": "270b831b9cfe554e43e2f22d804bb2a764ea70c2",
143
+ "message": "Merge branch 'main' into secret_string_prost_impl",
144
+ "author": "Debarshi Gupta",
145
+ "date": "2025-07-01T13:12:12+00:00",
146
+ "url": "https://github.com/juspay/hyperswitch/commit/270b831b9cfe554e43e2f22d804bb2a764ea70c2"
147
+ }
148
+ ]
149
+ }
prs/pr_8546.json ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 8546,
3
+ "title": "feat(connectors): [worldpayvantiv] add connector mandate support ",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nAdd connector mandate support for vantiv cards\r\n\r\nNote: This feature has to be enabled at Vantiv\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n<details>\r\n<summary>Create a Customer Initiated Mandate</summary>\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_yd2YxRScbTZYwkJGCv6YdgFo3Hj2th1v8scxfbq8WdMo3EsTgxgTd4FbRLixw71c' \\\r\n--data '{\r\n \"amount\": 15000,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"customer_id\": \"hyperswitch_sdk_demo_id\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"5435101234510196\", \r\n \"card_exp_month\": \"11\",\r\n \"card_exp_year\": \"50\",\r\n \r\n \"card_cvc\": \"987\"\r\n }\r\n },\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"online\",\r\n \"accepted_at\": \"2025-03-27T13:56:49.848Z\",\r\n \"online\": {\r\n \"ip_address\": null,\r\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15\"\r\n }\r\n },\r\n \"setup_future_usage\": \"off_session\"\r\n}'\r\n```\r\nResponse\r\n\r\n```\r\n{\"payment_id\":\"pay_pKDE8WgeFLUV9hWxUlkf\",\"merchant_id\":\"postman_merchant_GHAction_aad3d97c-40fb-4f4c-bc2a-dd683b156d5a\",\"status\":\"processing\",\"amount\":15000,\"net_amount\":15000,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":null,\"connector\":\"worldpayvantiv\",\"client_secret\":\"pay_pKDE8WgeFLUV9hWxUlkf_secret_D2ivaJYROS8fkiKG2IzP\",\"created\":\"2025-07-04T10:26:49.764Z\",\"currency\":\"USD\",\"customer_id\":\"hyperswitch_sdk_demo_id\",\"customer\":{\"id\":\"hyperswitch_sdk_demo_id\",\"name\":null,\"email\":null,\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"off_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"0196\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"543510\",\"card_extended_bin\":null,\"card_exp_month\":\"11\",\"card_exp_year\":\"50\",\"card_holder_name\":null,\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":null,\"shipping\":null,\"billing\":null,\"order_details\":null,\"email\":null,\"name\":null,\"phone\":null,\"return_url\":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\":\"hyperswitch_sdk_demo_id\",\"created_at\":1751624809,\"expires\":1751628409,\"secret\":\"epk_2ab6628c91f84c7cac386b9ee784b5c8\"},\"manual_retry_allowed\":false,\"connector_transaction_id\":\"84085100193940137\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":\"pay_pKDE8WgeFLUV9hWxUlkf\",\"payment_link\":null,\"profile_id\":\"pro_sFS1d84BWdVLMu7kZqTD\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_bpcDnKfJlT6NY9v7PGYZ\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-07-04T10:41:49.764Z\",\"fingerprint\":null,\"browser_info\":null,\"payment_method_id\":\"pm_H9GSPzY88jHtNhHnGOa1\",\"payment_method_status\":\"inactive\",\"updated\":\"2025-07-04T10:27:00.942Z\",\"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\":\"2032317115030196\",\"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}\r\n```\r\n\r\n</details>\r\n<details>\r\n<summary>Psync</summary>\r\n\r\n```\r\n{\"payment_id\":\"pay_pKDE8WgeFLUV9hWxUlkf\",\"merchant_id\":\"postman_merchant_GHAction_aad3d97c-40fb-4f4c-bc2a-dd683b156d5a\",\"status\":\"succeeded\",\"amount\":15000,\"net_amount\":15000,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":15000,\"connector\":\"worldpayvantiv\",\"client_secret\":\"pay_pKDE8WgeFLUV9hWxUlkf_secret_D2ivaJYROS8fkiKG2IzP\",\"created\":\"2025-07-04T10:26:49.764Z\",\"currency\":\"USD\",\"customer_id\":\"hyperswitch_sdk_demo_id\",\"customer\":{\"id\":\"hyperswitch_sdk_demo_id\",\"name\":null,\"email\":null,\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"off_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"0196\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"543510\",\"card_extended_bin\":null,\"card_exp_month\":\"11\",\"card_exp_year\":\"50\",\"card_holder_name\":null,\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":null,\"shipping\":null,\"billing\":null,\"order_details\":null,\"email\":null,\"name\":null,\"phone\":null,\"return_url\":null,\"authentication_type\":\"no_three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":null,\"manual_retry_allowed\":false,\"connector_transaction_id\":\"84085100193940137\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":\"pay_pKDE8WgeFLUV9hWxUlkf\",\"payment_link\":null,\"profile_id\":\"pro_sFS1d84BWdVLMu7kZqTD\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_bpcDnKfJlT6NY9v7PGYZ\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-07-04T10:41:49.764Z\",\"fingerprint\":null,\"browser_info\":null,\"payment_method_id\":\"pm_H9GSPzY88jHtNhHnGOa1\",\"payment_method_status\":\"inactive\",\"updated\":\"2025-07-04T10:28:40.597Z\",\"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\":\"2032317115030196\",\"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}\r\n```\r\n</details>\r\n<details>\r\n<summary>Create a Merchant Initiated Transaction</summary>\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_yd2YxRScbTZYwkJGCv6YdgFo3Hj2th1v8scxfbq8WdMo3EsTgxgTd4FbRLixw71c' \\\r\n--data '{\r\n \"amount\": 2500,\r\n \"currency\": \"USD\",\r\n \"off_session\": true,\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"recurring_details\": {\r\n \"type\": \"payment_method_id\",\r\n \"data\": \"pm_H9GSPzY88jHtNhHnGOa1\"\r\n },\r\n \r\n \"customer_id\": \"hyperswitch_sdk_demo_id\",\r\n \"connector\": [\r\n \"worldpayvantiv\"\r\n ]\r\n}'\r\n```\r\nResponse\r\n\r\n```\r\n{\"payment_id\":\"pay_iFoYl0jlYH9S8ICvmxwA\",\"merchant_id\":\"postman_merchant_GHAction_aad3d97c-40fb-4f4c-bc2a-dd683b156d5a\",\"status\":\"processing\",\"amount\":2500,\"net_amount\":2500,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":null,\"connector\":\"worldpayvantiv\",\"client_secret\":\"pay_iFoYl0jlYH9S8ICvmxwA_secret_ipDVUhYazuFcfNrCH4dP\",\"created\":\"2025-07-04T10:30:38.534Z\",\"currency\":\"USD\",\"customer_id\":\"hyperswitch_sdk_demo_id\",\"customer\":{\"id\":\"hyperswitch_sdk_demo_id\",\"name\":null,\"email\":null,\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":null,\"off_session\":true,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"0196\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"543510\",\"card_extended_bin\":null,\"card_exp_month\":\"11\",\"card_exp_year\":\"50\",\"card_holder_name\":null,\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":null,\"shipping\":null,\"billing\":null,\"order_details\":null,\"email\":null,\"name\":null,\"phone\":null,\"return_url\":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\":\"hyperswitch_sdk_demo_id\",\"created_at\":1751625038,\"expires\":1751628638,\"secret\":\"epk_206cfdc52eb34851b00ad367718368c0\"},\"manual_retry_allowed\":false,\"connector_transaction_id\":\"83997139237370330\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":\"pay_iFoYl0jlYH9S8ICvmxwA\",\"payment_link\":null,\"profile_id\":\"pro_sFS1d84BWdVLMu7kZqTD\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_bpcDnKfJlT6NY9v7PGYZ\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-07-04T10:45:38.534Z\",\"fingerprint\":null,\"browser_info\":null,\"payment_method_id\":\"pm_H9GSPzY88jHtNhHnGOa1\",\"payment_method_status\":\"active\",\"updated\":\"2025-07-04T10:30:40.709Z\",\"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\":\"2032317115030196\",\"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}\r\n```\r\n</details>\r\n<details>\r\n<summary>Psync</summary>\r\n\r\n```\r\n{\"payment_id\":\"pay_iFoYl0jlYH9S8ICvmxwA\",\"merchant_id\":\"postman_merchant_GHAction_aad3d97c-40fb-4f4c-bc2a-dd683b156d5a\",\"status\":\"succeeded\",\"amount\":2500,\"net_amount\":2500,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":2500,\"connector\":\"worldpayvantiv\",\"client_secret\":\"pay_iFoYl0jlYH9S8ICvmxwA_secret_ipDVUhYazuFcfNrCH4dP\",\"created\":\"2025-07-04T10:30:38.534Z\",\"currency\":\"USD\",\"customer_id\":\"hyperswitch_sdk_demo_id\",\"customer\":{\"id\":\"hyperswitch_sdk_demo_id\",\"name\":null,\"email\":null,\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":null,\"off_session\":true,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"0196\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"543510\",\"card_extended_bin\":null,\"card_exp_month\":\"11\",\"card_exp_year\":\"50\",\"card_holder_name\":null,\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":null,\"shipping\":null,\"billing\":null,\"order_details\":null,\"email\":null,\"name\":null,\"phone\":null,\"return_url\":null,\"authentication_type\":\"no_three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":null,\"manual_retry_allowed\":false,\"connector_transaction_id\":\"83997139237370330\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":\"pay_iFoYl0jlYH9S8ICvmxwA\",\"payment_link\":null,\"profile_id\":\"pro_sFS1d84BWdVLMu7kZqTD\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_bpcDnKfJlT6NY9v7PGYZ\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-07-04T10:45:38.534Z\",\"fingerprint\":null,\"browser_info\":null,\"payment_method_id\":\"pm_H9GSPzY88jHtNhHnGOa1\",\"payment_method_status\":\"active\",\"updated\":\"2025-07-04T10:32:02.030Z\",\"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}\r\n```\r\n</details>\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n\n\n<!-- This is an auto-generated comment: release notes by coderabbit.ai -->\n\n## Summary by CodeRabbit\n\n* **New Features**\n * Enhanced Worldpay Vantiv connector to support tokenized mandates and improved mandate handling.\n * Added support for tokenization data and improved processing of mandate-related payments and responses.\n\n* **Bug Fixes**\n * Improved error handling for missing card mandate information during payment authorization.\n\n* **Refactor**\n * Streamlined mandate information extraction for Paybox and Worldpay Vantiv connectors.\n * Updated internal data structures for cleaner and more flexible mandate and token data management.\n\n<!-- end of auto-generated comment: release notes by coderabbit.ai -->",
5
+ "author": "AkshayaFoiger",
6
+ "created_at": "2025-07-04T10:32:31+00:00",
7
+ "merged_at": "2025-07-07T12:08:22+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-connector-integration",
11
+ "C-feature"
12
+ ],
13
+ "url": "https://github.com/juspay/hyperswitch/pull/8546",
14
+ "commits": [
15
+ {
16
+ "sha": "202b3d6789fc347da08d0b4e0f5f9148992d4bb1",
17
+ "message": "add auth reversal flow",
18
+ "author": "AkshayaFoiger",
19
+ "date": "2025-07-03T04:06:00+00:00",
20
+ "url": "https://github.com/juspay/hyperswitch/commit/202b3d6789fc347da08d0b4e0f5f9148992d4bb1"
21
+ },
22
+ {
23
+ "sha": "186688ba5676e92638bc83edbf4631023c94cea5",
24
+ "message": "fix status",
25
+ "author": "AkshayaFoiger",
26
+ "date": "2025-07-03T07:31:45+00:00",
27
+ "url": "https://github.com/juspay/hyperswitch/commit/186688ba5676e92638bc83edbf4631023c94cea5"
28
+ },
29
+ {
30
+ "sha": "c9d380bad8d876effaf36d7995f2e9f17f677334",
31
+ "message": "fix spell check",
32
+ "author": "AkshayaFoiger",
33
+ "date": "2025-07-03T09:33:23+00:00",
34
+ "url": "https://github.com/juspay/hyperswitch/commit/c9d380bad8d876effaf36d7995f2e9f17f677334"
35
+ },
36
+ {
37
+ "sha": "816564b1e011fc47d977aa82cd4211f26bc7f36e",
38
+ "message": "add log for certification",
39
+ "author": "AkshayaFoiger",
40
+ "date": "2025-07-04T06:17:27+00:00",
41
+ "url": "https://github.com/juspay/hyperswitch/commit/816564b1e011fc47d977aa82cd4211f26bc7f36e"
42
+ },
43
+ {
44
+ "sha": "e02c21b84b13955c59803b3e688930227b597e75",
45
+ "message": "add tokenization support",
46
+ "author": "AkshayaFoiger",
47
+ "date": "2025-07-04T10:18:43+00:00",
48
+ "url": "https://github.com/juspay/hyperswitch/commit/e02c21b84b13955c59803b3e688930227b597e75"
49
+ },
50
+ {
51
+ "sha": "a7acde51f2665c957af53513010c192ae48db919",
52
+ "message": "make token_response_code string",
53
+ "author": "AkshayaFoiger",
54
+ "date": "2025-07-04T10:22:38+00:00",
55
+ "url": "https://github.com/juspay/hyperswitch/commit/a7acde51f2665c957af53513010c192ae48db919"
56
+ },
57
+ {
58
+ "sha": "4bd7747a6ea40126f0460dd5cfa700ea9ef4bb68",
59
+ "message": "chore: run formatter",
60
+ "author": "hyperswitch-bot[bot]",
61
+ "date": "2025-07-04T10:33:15+00:00",
62
+ "url": "https://github.com/juspay/hyperswitch/commit/4bd7747a6ea40126f0460dd5cfa700ea9ef4bb68"
63
+ },
64
+ {
65
+ "sha": "d541439ac16f2db5713f207af6adf678624cb3f9",
66
+ "message": "fix clippy error",
67
+ "author": "AkshayaFoiger",
68
+ "date": "2025-07-04T11:30:25+00:00",
69
+ "url": "https://github.com/juspay/hyperswitch/commit/d541439ac16f2db5713f207af6adf678624cb3f9"
70
+ },
71
+ {
72
+ "sha": "3c6837b951acad78fb9a4f986108c3a03776e338",
73
+ "message": "Merge branch 'main' into vativ-tokenization",
74
+ "author": "AkshayaFoiger",
75
+ "date": "2025-07-06T07:29:15+00:00",
76
+ "url": "https://github.com/juspay/hyperswitch/commit/3c6837b951acad78fb9a4f986108c3a03776e338"
77
+ },
78
+ {
79
+ "sha": "f6760dd55c193e400ae7c2eb6b479c4f440b9dd8",
80
+ "message": "fix merge conflicts",
81
+ "author": "AkshayaFoiger",
82
+ "date": "2025-07-06T07:29:31+00:00",
83
+ "url": "https://github.com/juspay/hyperswitch/commit/f6760dd55c193e400ae7c2eb6b479c4f440b9dd8"
84
+ },
85
+ {
86
+ "sha": "c4d8d85cc6ace77e74fe134f6e71b3af645ac59e",
87
+ "message": "chore: run formatter",
88
+ "author": "hyperswitch-bot[bot]",
89
+ "date": "2025-07-06T07:30:16+00:00",
90
+ "url": "https://github.com/juspay/hyperswitch/commit/c4d8d85cc6ace77e74fe134f6e71b3af645ac59e"
91
+ }
92
+ ]
93
+ }
prs/pr_8607.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 8607,
3
+ "title": "chore: address Rust 1.88.0 clippy lints",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [x] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nThis pull request includes a minor improvement to error message formatting in the `build_unified_connector_service_payment_method` function.\r\n\r\n* [`crates/router/src/core/unified_connector_service.rs`](diffhunk://#diff-b8e808846f58e455687a9e192c1c8d192598081aac942628640c42c1d397dfaeL104-R104): Updated the error message to use inline formatting for `payment_method_type`, improving readability and consistency.\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "ShankarSinghC",
6
+ "created_at": "2025-07-10T13:43:08+00:00",
7
+ "merged_at": "2025-07-10T15:38:02+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "C-refactor"
11
+ ],
12
+ "url": "https://github.com/juspay/hyperswitch/pull/8607",
13
+ "commits": [
14
+ {
15
+ "sha": "8814296f5ba63ac1ef3969aafcc8b5f376e1533f",
16
+ "message": "chore: address Rust 1.88.0 clippy lints",
17
+ "author": "Shankar Singh C",
18
+ "date": "2025-07-10T13:40:20+00:00",
19
+ "url": "https://github.com/juspay/hyperswitch/commit/8814296f5ba63ac1ef3969aafcc8b5f376e1533f"
20
+ },
21
+ {
22
+ "sha": "81ad584a6db8516f1058fe06248c082badee74a0",
23
+ "message": "address Rust 1.88.0 clippy lints in v2",
24
+ "author": "Shankar Singh C",
25
+ "date": "2025-07-10T14:07:32+00:00",
26
+ "url": "https://github.com/juspay/hyperswitch/commit/81ad584a6db8516f1058fe06248c082badee74a0"
27
+ },
28
+ {
29
+ "sha": "c19af4f9a9e3f117736175b9b91e6f56b8d78565",
30
+ "message": "chore: run formatter",
31
+ "author": "hyperswitch-bot[bot]",
32
+ "date": "2025-07-10T14:08:38+00:00",
33
+ "url": "https://github.com/juspay/hyperswitch/commit/c19af4f9a9e3f117736175b9b91e6f56b8d78565"
34
+ }
35
+ ]
36
+ }
prs/pr_8731.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 8731,
3
+ "title": "feat(core): Consuming locale in PaymentsAuthorizeData from SessionState",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n`Accept-Language` we pass in headers and we will consume locale from SessionState in PaymentsAuthorizeData. \r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\nPayments Link Create ( Confirm False ) : \r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_ECvrFYxLG0HyJfKyvLX6AI8TlBKre5HV8JyEPflpWStcL0MNYiRxO6I6ygoTV9zM' \\\r\n--header 'Accept-Language: zh-hk' \\\r\n--header 'Cookie: PHPSESSID=0b47db9d7de94c37b6b272087a9f2fa7' \\\r\n--data '{\r\n \"authentication_type\": \"no_three_ds\",\r\n \"customer_id\": \"cus_r9KFfEGCaZOo0v9K4f4g\",\r\n \r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"online\",\r\n \"accepted_at\": \"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\": \"127.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"CA\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"CA\",\r\n \"zip\": \"94122\",\r\n \"country\": \"HK\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"amount\": 1,\r\n \"currency\": \"HKD\",\r\n \"confirm\": false,\r\n \"payment_link\": true,\r\n \"session_expiry\": 2629800,\r\n \"return_url\": \"https://www.example.com\"\r\n}'\r\n```\r\n\r\nResponse : \r\n\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_6aSu1146nOWGFU1nHba0\",\r\n \"merchant_id\": \"merchant_1753270998\",\r\n \"status\": \"requires_payment_method\",\r\n \"amount\": 1,\r\n \"net_amount\": 1,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": null,\r\n \"client_secret\": \"pay_6aSu1146nOWGFU1nHba0_secret_5n6XyQfzhH1awaPXpoaV\",\r\n \"created\": \"2025-07-23T12:07:46.620Z\",\r\n \"currency\": \"HKD\",\r\n \"customer_id\": \"cus_r9KFfEGCaZOo0v9K4f4g\",\r\n \"customer\": {\r\n \"id\": \"cus_r9KFfEGCaZOo0v9K4f4g\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": null,\r\n \"payment_method\": null,\r\n \"payment_method_data\": null,\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"HK\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"CA\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"CA\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://www.example.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": null,\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"cus_r9KFfEGCaZOo0v9K4f4g\",\r\n \"created_at\": 1753272466,\r\n \"expires\": 1753276066,\r\n \"secret\": \"epk_1bfcae3a1ae147aa81717faadc24d405\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": null,\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": null,\r\n \"payment_link\": {\r\n \"link\": \"http://localhost:8080/payment_link/merchant_1753270998/pay_6aSu1146nOWGFU1nHba0?locale=zh-hk\",\r\n \"secure_link\": null,\r\n \"payment_link_id\": \"plink_6hSyiN1JxpIBfs6LxzF7\"\r\n },\r\n \"profile_id\": \"pro_z03ICBN6bBbLQCA5g0JW\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": null,\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-08-22T22:37:46.617Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-07-23T12:07:46.632Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": null,\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null\r\n}\r\n```\r\n\r\n<img width=\"1728\" height=\"1117\" alt=\"Screenshot 2025-07-23 at 6 14 30\u202fPM\" src=\"https://github.com/user-attachments/assets/b5efebf6-0a42-4960-9d0a-9be04653c410\" />\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "bsayak03",
6
+ "created_at": "2025-07-23T11:20:49+00:00",
7
+ "merged_at": "2025-07-24T15:48:58+00:00",
8
+ "base_branch": "main",
9
+ "labels": [],
10
+ "url": "https://github.com/juspay/hyperswitch/pull/8731",
11
+ "commits": [
12
+ {
13
+ "sha": "b00da800f8285d723bbf68a9ff0c88aceba94f26",
14
+ "message": "feat(core): Consuming locale in AuthorizeData from SessionState",
15
+ "author": "Sayak Bhattacharya",
16
+ "date": "2025-07-23T11:13:04+00:00",
17
+ "url": "https://github.com/juspay/hyperswitch/commit/b00da800f8285d723bbf68a9ff0c88aceba94f26"
18
+ },
19
+ {
20
+ "sha": "6b46139a086164179b9482c67f21cf1b6359b0b0",
21
+ "message": "fix: resolved clippy_v2 errors",
22
+ "author": "Sayak Bhattacharya",
23
+ "date": "2025-07-23T12:52:34+00:00",
24
+ "url": "https://github.com/juspay/hyperswitch/commit/6b46139a086164179b9482c67f21cf1b6359b0b0"
25
+ },
26
+ {
27
+ "sha": "4fa980199d172477f5a18db39300e74d09e7e712",
28
+ "message": "fix: resolved PR comments",
29
+ "author": "Sayak Bhattacharya",
30
+ "date": "2025-07-23T13:21:12+00:00",
31
+ "url": "https://github.com/juspay/hyperswitch/commit/4fa980199d172477f5a18db39300e74d09e7e712"
32
+ }
33
+ ]
34
+ }
prs/pr_8905.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 8905,
3
+ "title": "refactor(config): change UCS connector list from array to comma-separated string",
4
+ "description": "# Refactor: Change UCS connector configuration from array to comma-separated string\n\n## Summary\n\nThis PR refactors the unified connector service (UCS) configuration to use a comma-separated string format instead of an array for specifying connectors that should use UCS only. This change improves configuration management and parsing efficiency while maintaining type safety through a custom deserializer.\n\n## Changes\n\n- **Configuration Format Change**: Modified `ucs_only_connectors` from `Vec<String>` to `HashSet<Connector>` with comma-separated string input\n- **Custom Deserializer Implementation**: Added a new `utils.rs` module in `external_services` with `deserialize_hashset` function for parsing comma-separated values into typed HashSets\n- **Type Safety Enhancement**: Updated connector validation to use `Connector` enum instead of raw strings, preventing invalid connector names\n- **Configuration Updates**: Updated all config files (`development.toml`, `config.example.toml`, `deployments/env_specific.toml`) to use the new comma-separated format\n- **Dependencies**: Added `common_enums` dependency to `external_services` crate for proper connector enum handling\n\n## Related Issues\n\nCloses #8906 - Improve UCS connector configuration format for better type safety and usability\n\n## Type of Change\n\n- [x] Refactoring\n- [ ] Bug fix\n- [ ] New feature\n- [ ] Breaking change\n- [ ] Documentation update\n\n## Testing\n\n- **Configuration Parsing**: Tested comma-separated string parsing with various inputs including whitespace handling\n- **Type Validation**: Verified that invalid connector names are properly rejected during deserialization\n- **Backward Compatibility**: Ensured existing connector validation logic works with the new enum-based approach\n- **Unit Tests**: Added comprehensive test suite for the new deserializer functionality covering:\n - Valid comma-separated inputs\n - Whitespace handling\n - Error handling for invalid values\n - Empty string and single value scenarios\n - Duplicate value handling\n\n## Implementation Details\n\n### Key Files Modified\n- `crates/external_services/src/grpc_client/unified_connector_service.rs:119` - Configuration struct update\n- `crates/external_services/src/utils.rs` - New deserializer implementation\n- `crates/router/src/core/unified_connector_service.rs:57` - Connector validation logic update\n- Configuration files in `config/` directory\n\n### New Functionality\nThe custom deserializer provides:\n- Type-safe parsing of comma-separated strings into HashSets\n- Comprehensive error handling with detailed error messages\n- Generic implementation supporting any type that implements `FromStr + Eq + Hash`\n- Proper handling of edge cases (empty strings, whitespace, duplicates)\n\n## Checklist\n\n- [x] Code follows project style guidelines\n- [x] Self-review completed\n- [x] Configuration changes tested locally\n- [x] Unit tests added for new deserializer functionality\n- [x] Type safety improvements verified\n- [x] All config files updated consistently",
5
+ "author": "maverox",
6
+ "created_at": "2025-08-11T10:41:24+00:00",
7
+ "merged_at": "2025-08-13T15:11:30+00:00",
8
+ "base_branch": "main",
9
+ "labels": [],
10
+ "url": "https://github.com/juspay/hyperswitch/pull/8905",
11
+ "commits": [
12
+ {
13
+ "sha": "e18a1291e95e54b37d3554b1570b2486c2c625fd",
14
+ "message": "feat(config): change connector list from array to comma separated string",
15
+ "author": "uzair khan",
16
+ "date": "2025-08-08T11:05:59+00:00",
17
+ "url": "https://github.com/juspay/hyperswitch/commit/e18a1291e95e54b37d3554b1570b2486c2c625fd"
18
+ },
19
+ {
20
+ "sha": "573a0908b70dadd66fa5db33486f2c2cbdbcee91",
21
+ "message": "feat(external_services): implement deserializer for hashsets of type <T>",
22
+ "author": "uzair khan",
23
+ "date": "2025-08-08T11:06:34+00:00",
24
+ "url": "https://github.com/juspay/hyperswitch/commit/573a0908b70dadd66fa5db33486f2c2cbdbcee91"
25
+ },
26
+ {
27
+ "sha": "bc4ac37c9bc0adcedb3ff1d34c42f1f2fbab1d0c",
28
+ "message": "Merge branch 'main' into ucs_only_connectors_config_comma_separated_string",
29
+ "author": "uzair khan",
30
+ "date": "2025-08-11T10:47:11+00:00",
31
+ "url": "https://github.com/juspay/hyperswitch/commit/bc4ac37c9bc0adcedb3ff1d34c42f1f2fbab1d0c"
32
+ },
33
+ {
34
+ "sha": "79835eeb138672a739b1e95700c13bad483e06bd",
35
+ "message": "chore: run formatter",
36
+ "author": "uzair khan",
37
+ "date": "2025-08-11T10:47:48+00:00",
38
+ "url": "https://github.com/juspay/hyperswitch/commit/79835eeb138672a739b1e95700c13bad483e06bd"
39
+ },
40
+ {
41
+ "sha": "b34a219ccc5c923acf61d0b757437eca0ce2f07f",
42
+ "message": "fix: post merge fixes",
43
+ "author": "uzair khan",
44
+ "date": "2025-08-11T11:00:51+00:00",
45
+ "url": "https://github.com/juspay/hyperswitch/commit/b34a219ccc5c923acf61d0b757437eca0ce2f07f"
46
+ },
47
+ {
48
+ "sha": "d7c8cda4a116b3eb99ef5ac361018fc61b291e08",
49
+ "message": "chore: address clippy_v2 errors",
50
+ "author": "uzair khan",
51
+ "date": "2025-08-11T11:29:33+00:00",
52
+ "url": "https://github.com/juspay/hyperswitch/commit/d7c8cda4a116b3eb99ef5ac361018fc61b291e08"
53
+ },
54
+ {
55
+ "sha": "91782a037458f8c1aba9c75e011a4826ba0806fa",
56
+ "message": "Merge branch 'main' into ucs_only_connectors_config_comma_separated_string",
57
+ "author": "uzair khan",
58
+ "date": "2025-08-12T07:04:49+00:00",
59
+ "url": "https://github.com/juspay/hyperswitch/commit/91782a037458f8c1aba9c75e011a4826ba0806fa"
60
+ },
61
+ {
62
+ "sha": "a50ea67a71dabab49290824dd886e4f417647150",
63
+ "message": "fix: clippy errors",
64
+ "author": "uzair khan",
65
+ "date": "2025-08-12T07:33:09+00:00",
66
+ "url": "https://github.com/juspay/hyperswitch/commit/a50ea67a71dabab49290824dd886e4f417647150"
67
+ },
68
+ {
69
+ "sha": "c7a71f4d773277f9e714abcf454464537372620b",
70
+ "message": "feat(config): add ucs_only_connectors in deployments config",
71
+ "author": "uzair khan",
72
+ "date": "2025-08-12T09:29:12+00:00",
73
+ "url": "https://github.com/juspay/hyperswitch/commit/c7a71f4d773277f9e714abcf454464537372620b"
74
+ },
75
+ {
76
+ "sha": "392764a9e7884a93291590f4303c3024b309c090",
77
+ "message": "Merge branch 'main' into ucs_only_connectors_config_comma_separated_string",
78
+ "author": "uzair khan",
79
+ "date": "2025-08-13T13:21:41+00:00",
80
+ "url": "https://github.com/juspay/hyperswitch/commit/392764a9e7884a93291590f4303c3024b309c090"
81
+ },
82
+ {
83
+ "sha": "33317b4ed983b5fe5895aa884e57b79264f6ca4b",
84
+ "message": "fix: post merge fixes",
85
+ "author": "uzair khan",
86
+ "date": "2025-08-13T13:31:37+00:00",
87
+ "url": "https://github.com/juspay/hyperswitch/commit/33317b4ed983b5fe5895aa884e57b79264f6ca4b"
88
+ }
89
+ ]
90
+ }
prs/pr_9058.json ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 9058,
3
+ "title": "feat(ucs): add event logging for UCS operations",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nAdded comprehensive event logging for UCS operations to improve debugging and monitoring. The changes wrap UCS calls with structured logging that captures request/response data, timing, and errors across all payment flows.\r\n### Additional Changes\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n<!--\r\nProvide links to the files with corresponding changes.\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nEnable UCS\r\n```\r\ncurl --location 'http://localhost:8080/configs/' \\\r\n--header 'api-key: test_admin' \\\r\n--header 'Content-Type: application/json' \\\r\n--data '\r\n{\r\n \"key\": \"ucs_enabled\",\r\n \"value\": \"true\"\r\n}'\r\n```\r\nEnable UCS authorize\r\n```curl --location 'http://localhost:8080/configs/' \\\r\n--header 'api-key: test_admin' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Authorization: api-key=dev_ya18hWOxWbhNjQWEacOVLAFiqOuhSsU3k53o5iyEK6IcxQohWPAMpCWGURyRSRYc' \\\r\n--data '{\r\n \"key\": \"ucs_rollout_config_merchant_1756126931_razorpay_upi_Authorize\",\r\n \"value\": \"1.0\"\r\n }'\r\n```\r\nPayments - Create\r\n```curl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_Qaanra9EEOfvCZtfveDCXQbYgnzJF7vgwIqBiERdn510eGS9M49jmIZweYS5zC7y' \\\r\n--data-raw '{\r\n \"amount\": 100,\r\n \"currency\": \"INR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"customer_id\": \"IatapayCustomer\",\r\n \"email\": \"[guest@example.com](mailto:guest@example.com)\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://google.com/\",\r\n \"payment_method\": \"upi\",\r\n \"payment_method_type\": \"upi_collect\",\r\n \"payment_method_data\": {\r\n \"upi\": {\r\n \"upi_collect\": {\r\n \"vpa_id\": \"success@razorpay\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"IN\",\r\n \"first_name\": \"Swangi\",\r\n \"last_name\": \"Kumari\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"[swangi.kumari@juspay.in](mailto:swangi.kumari@juspay.in)\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"IN\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"all_keys_required\": true\r\n}'\r\n```\r\nLogs (Success)\r\n<img width=\"1253\" height=\"411\" alt=\"Screenshot 2025-08-28 at 2 46 00\u202fPM\" src=\"https://github.com/user-attachments/assets/4fff5e2e-233a-4e42-a3f9-e13c66594808\" />\r\nLogs(Failure)\r\n<img width=\"1207\" height=\"503\" alt=\"Screenshot 2025-08-25 at 6 37 32\u202fPM\" src=\"https://github.com/user-attachments/assets/6b6f8596-a879-41d4-98ea-2e945376cbe2\" />\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible",
5
+ "author": "kanikac199",
6
+ "created_at": "2025-08-25T13:37:59+00:00",
7
+ "merged_at": "2025-09-02T08:13:26+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-core"
11
+ ],
12
+ "url": "https://github.com/juspay/hyperswitch/pull/9058",
13
+ "commits": [
14
+ {
15
+ "sha": "1d89031f0565d0ce35f7e8d4b458215add902d5b",
16
+ "message": "add event logging for ucs operations",
17
+ "author": "Kanika Chaudhary",
18
+ "date": "2025-08-25T13:27:56+00:00",
19
+ "url": "https://github.com/juspay/hyperswitch/commit/1d89031f0565d0ce35f7e8d4b458215add902d5b"
20
+ },
21
+ {
22
+ "sha": "3133b6d7e8f76a95cc4d21733ac7100cf2b04ca5",
23
+ "message": "Resolve comments",
24
+ "author": "Kanika Chaudhary",
25
+ "date": "2025-08-28T07:13:17+00:00",
26
+ "url": "https://github.com/juspay/hyperswitch/commit/3133b6d7e8f76a95cc4d21733ac7100cf2b04ca5"
27
+ },
28
+ {
29
+ "sha": "8f711626f13a73b93703b466e5b60714749a0580",
30
+ "message": "masked the response body",
31
+ "author": "Kanika Chaudhary",
32
+ "date": "2025-08-28T09:17:50+00:00",
33
+ "url": "https://github.com/juspay/hyperswitch/commit/8f711626f13a73b93703b466e5b60714749a0580"
34
+ },
35
+ {
36
+ "sha": "d07ead6420fffdbbc007c4aca609e81bebfb4002",
37
+ "message": "chore: run formatter",
38
+ "author": "hyperswitch-bot[bot]",
39
+ "date": "2025-08-28T09:28:09+00:00",
40
+ "url": "https://github.com/juspay/hyperswitch/commit/d07ead6420fffdbbc007c4aca609e81bebfb4002"
41
+ },
42
+ {
43
+ "sha": "7bb2cd8ebe53bad12544804a36e3e109fee7cc5c",
44
+ "message": "addressed comments",
45
+ "author": "Kanika Chaudhary",
46
+ "date": "2025-08-28T14:35:22+00:00",
47
+ "url": "https://github.com/juspay/hyperswitch/commit/7bb2cd8ebe53bad12544804a36e3e109fee7cc5c"
48
+ },
49
+ {
50
+ "sha": "90621a8d5056b88a73b8cbc92b0f0496857fcc4a",
51
+ "message": "chore: run formatter",
52
+ "author": "hyperswitch-bot[bot]",
53
+ "date": "2025-08-28T14:40:15+00:00",
54
+ "url": "https://github.com/juspay/hyperswitch/commit/90621a8d5056b88a73b8cbc92b0f0496857fcc4a"
55
+ },
56
+ {
57
+ "sha": "26e2569ec6c9a67f516ee345b174004d5c917417",
58
+ "message": "resolved comments",
59
+ "author": "Kanika Chaudhary",
60
+ "date": "2025-08-28T16:29:04+00:00",
61
+ "url": "https://github.com/juspay/hyperswitch/commit/26e2569ec6c9a67f516ee345b174004d5c917417"
62
+ },
63
+ {
64
+ "sha": "00709640080d7adef7b2d3e7a2834a7fb4fb2e22",
65
+ "message": "chore: run formatter",
66
+ "author": "hyperswitch-bot[bot]",
67
+ "date": "2025-08-28T16:31:03+00:00",
68
+ "url": "https://github.com/juspay/hyperswitch/commit/00709640080d7adef7b2d3e7a2834a7fb4fb2e22"
69
+ },
70
+ {
71
+ "sha": "4ae49b0f45e532a09f21df2e843f935918239a16",
72
+ "message": "Resolved comments",
73
+ "author": "Kanika Chaudhary",
74
+ "date": "2025-08-29T06:36:10+00:00",
75
+ "url": "https://github.com/juspay/hyperswitch/commit/4ae49b0f45e532a09f21df2e843f935918239a16"
76
+ },
77
+ {
78
+ "sha": "1aaf9f3b39e51cfdd6eda3f4479f646783b0a91d",
79
+ "message": "Resolved conflicts",
80
+ "author": "Kanika Chaudhary",
81
+ "date": "2025-09-01T12:08:43+00:00",
82
+ "url": "https://github.com/juspay/hyperswitch/commit/1aaf9f3b39e51cfdd6eda3f4479f646783b0a91d"
83
+ },
84
+ {
85
+ "sha": "f4f05e305f48bb868f85cba2a6c3c744166bdc48",
86
+ "message": "chore: run formatter",
87
+ "author": "hyperswitch-bot[bot]",
88
+ "date": "2025-09-01T12:19:30+00:00",
89
+ "url": "https://github.com/juspay/hyperswitch/commit/f4f05e305f48bb868f85cba2a6c3c744166bdc48"
90
+ },
91
+ {
92
+ "sha": "4fd0c36803f2866356b78c3a4c0cbf4490cf464f",
93
+ "message": "Resolved merge conflicts",
94
+ "author": "Kanika Chaudhary",
95
+ "date": "2025-09-01T13:20:13+00:00",
96
+ "url": "https://github.com/juspay/hyperswitch/commit/4fd0c36803f2866356b78c3a4c0cbf4490cf464f"
97
+ },
98
+ {
99
+ "sha": "cf524a771481a1bdb778dd80bce0ea8f1aded677",
100
+ "message": "chore: run formatter",
101
+ "author": "hyperswitch-bot[bot]",
102
+ "date": "2025-09-01T13:44:38+00:00",
103
+ "url": "https://github.com/juspay/hyperswitch/commit/cf524a771481a1bdb778dd80bce0ea8f1aded677"
104
+ }
105
+ ]
106
+ }
prs/pr_9123.json ADDED
@@ -0,0 +1,561 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 9123,
3
+ "title": "feat(subscriptions): add route for creating subscription intent",
4
+ "description": "## Summary\r\n\r\nAdd **Subscriptions API (v1/OLAP)** entrypoint to create a _subscription intent_ and optionally create/attach a customer, returning a `client_secret` and basic subscription payload.\r\n\r\n- New route: `POST /subscription/create` (behind `olap` + `v1`)\r\n- Creates a `subscription` row (using existing table) and generates a `client_secret`\r\n- Optionally **gets or creates** a `Customer` from inline `customer` payload or `customer_id`\r\n- Persists optional `mca_id` on the subscription row (used later for connector selection)\r\n- Returns a typed `CreateSubscriptionResponse` with `subscription`, `client_secret`, `merchant_id`, `mca_id`, and optional `customer`, `invoice` (placeholder)\r\n\r\n\r\n## Endpoints\r\n\r\n### Create Subscription Intent\r\n\r\n`POST /subscription/create`\r\n\r\n**Auth**\r\n- API key (HeaderAuth) + JWT (`Permission::ProfileRoutingWrite`)\r\n\r\n**Request Body**\r\n```json\r\n{\r\n \"customer_id\": \"{{customer_id}}\"\r\n}\r\n```\r\n\r\n**Behavior**\r\n- Generates `sub_<random>` for subscription row id\r\n- If `customer_id` provided \u2192 fetch; else if `customer` has any PII fields \u2192 **create customer** (encrypting PII); else \u2192 `400 CustomerNotFound`\r\n- Persists subscription with:\r\n - `id`\r\n - `subscription_id` = `null` (placeholder, to be set later)\r\n - `mca_id` (if provided)\r\n - `client_secret` = generated via `SubscriptionNew::generate_client_secret()`\r\n - `merchant_id`, `customer_id`\r\n - `billing_processor`, `payment_method_id`, `metadata` = `null` (placeholders)\r\n- Returns `200` with response below\r\n\r\n**Success Response**\r\n```json\r\n{\r\n \"id\": \"subscription_f8Ng47rKaB296XHolKKG\",\r\n \"merchant_reference_id\": null,\r\n \"status\": \"Created\",\r\n \"plan_id\": null,\r\n \"profile_id\": \"pro_UjmcM35TVpYh9Zb3LaZV\",\r\n \"client_secret\": \"subscription_f8Ng47rKaB296XHolKKG_secret_0fz5A3aa4NTcdiQF5W7i\",\r\n \"merchant_id\": \"merchant_1758146582\",\r\n \"coupon_code\": null,\r\n \"customer_id\": \"cus_jtJ8WHTHnsguskpiorEt\"\r\n}\r\n```\r\n\r\n---\r\n\r\n## Implementation Notes\r\n\r\n- **Core**\r\n - `crates/router/src/core/subscription.rs` \u2013 service handler\r\n - `crates/router/src/core/subscription/utils.rs` \u2013 helpers, request/response types\r\n- **Routing**\r\n - `crates/router/src/routes/subscription.rs` \u2013 web handler (`/subscription/create`)\r\n - `crates/router/src/routes/app.rs` \u2013 `Subscription::server()` scope under `/subscription`\r\n - `crates/router/src/lib.rs` \u2013 wire route\r\n- **Domain / DTO**\r\n - `hyperswitch_domain_models::router_request_types::CustomerDetails` now `Serialize`/`Deserialize`\r\n - `hyperswitch_domain_models::customer::Customer` derives `Serialize` (v1)\r\n- **Storage**\r\n - Uses existing `subscription` table and `SubscriptionNew::generate_client_secret()`\r\n - No new migrations introduced in this PR\r\n- **Customer flow**\r\n - If not found, creates via encrypted batch operation; respects merchant key store and storage scheme\r\n\r\n---\r\n\r\n## Testing\r\n```\r\ncurl --location 'http://localhost:8080/subscription/create' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'X-Profile-Id: pro_UjmcM35TVpYh9Zb3LaZV' \\\r\n--header 'api-key: dev_pPBMnOEL5SJnMfxxp2bh4du87ESZoMJNtUmn3oIS8kpCNfUJAZ2a8F832n1je5zQ' \\\r\n--data '{\r\n \"customer_id\": \"cus_jtJ8WHTHnsguskpiorEt\"\r\n}'\r\n```\r\n\r\nResponse:\r\n```\r\n{\r\n \"id\": \"subscription_f8Ng47rKaB296XHolKKG\",\r\n \"merchant_reference_id\": null,\r\n \"status\": \"Created\",\r\n \"plan_id\": null,\r\n \"profile_id\": \"pro_UjmcM35TVpYh9Zb3LaZV\",\r\n \"client_secret\": \"subscription_f8Ng47rKaB296XHolKKG_secret_0fz5A3aa4NTcdiQF5W7i\",\r\n \"merchant_id\": \"merchant_1758146582\",\r\n \"coupon_code\": null,\r\n \"customer_id\": \"cus_jtJ8WHTHnsguskpiorEt\"\r\n}\r\n```\r\n---",
5
+ "author": "prajjwalkumar17",
6
+ "created_at": "2025-08-31T23:26:42+00:00",
7
+ "merged_at": "2025-09-18T12:36:03+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "M-database-changes"
11
+ ],
12
+ "url": "https://github.com/juspay/hyperswitch/pull/9123",
13
+ "commits": [
14
+ {
15
+ "sha": "c5d251704513fcab3ddb7a6589c0001d1cb3103c",
16
+ "message": "feat: subscriptions",
17
+ "author": "Prajjwal kumar",
18
+ "date": "2025-08-25T13:44:09+00:00",
19
+ "url": "https://github.com/juspay/hyperswitch/commit/c5d251704513fcab3ddb7a6589c0001d1cb3103c"
20
+ },
21
+ {
22
+ "sha": "973b0ae35b8b8a112f293535713964cb2868cb32",
23
+ "message": "db: add storage interface",
24
+ "author": "Prajjwal kumar",
25
+ "date": "2025-08-26T12:01:19+00:00",
26
+ "url": "https://github.com/juspay/hyperswitch/commit/973b0ae35b8b8a112f293535713964cb2868cb32"
27
+ },
28
+ {
29
+ "sha": "4ea32abeb072706edcf82fcf06a7901a89cb02a4",
30
+ "message": "db: update query",
31
+ "author": "Prajjwal kumar",
32
+ "date": "2025-08-26T15:06:53+00:00",
33
+ "url": "https://github.com/juspay/hyperswitch/commit/4ea32abeb072706edcf82fcf06a7901a89cb02a4"
34
+ },
35
+ {
36
+ "sha": "609e2a1e305888ff0cf96c471ad081b76c0fb864",
37
+ "message": "refactor: add impls for update and create structs",
38
+ "author": "Prajjwal kumar",
39
+ "date": "2025-08-26T15:39:35+00:00",
40
+ "url": "https://github.com/juspay/hyperswitch/commit/609e2a1e305888ff0cf96c471ad081b76c0fb864"
41
+ },
42
+ {
43
+ "sha": "fc5b60df1588f82d3a2bc23906a08826c2257e0a",
44
+ "message": "feat(subscriptions): add route for creating subscription intent",
45
+ "author": "Prajjwal kumar",
46
+ "date": "2025-08-31T23:25:48+00:00",
47
+ "url": "https://github.com/juspay/hyperswitch/commit/fc5b60df1588f82d3a2bc23906a08826c2257e0a"
48
+ },
49
+ {
50
+ "sha": "fa7348a9ebc471c94841cfdd575f8fe063391e99",
51
+ "message": "refactor: add mca_id and client_secret cols",
52
+ "author": "Prajjwal kumar",
53
+ "date": "2025-08-31T23:34:44+00:00",
54
+ "url": "https://github.com/juspay/hyperswitch/commit/fa7348a9ebc471c94841cfdd575f8fe063391e99"
55
+ },
56
+ {
57
+ "sha": "ab6cbdbd71d7296947859ed8239eff1c311bac96",
58
+ "message": "Merge branch 'subcriptions' into subscription_cruds",
59
+ "author": "Prajjwal Kumar",
60
+ "date": "2025-08-31T23:36:44+00:00",
61
+ "url": "https://github.com/juspay/hyperswitch/commit/ab6cbdbd71d7296947859ed8239eff1c311bac96"
62
+ },
63
+ {
64
+ "sha": "e25cf9d1a1e0c031c5716e182c97df61c233d1de",
65
+ "message": "refactor: accept mca_id in params",
66
+ "author": "Prajjwal kumar",
67
+ "date": "2025-08-31T23:40:32+00:00",
68
+ "url": "https://github.com/juspay/hyperswitch/commit/e25cf9d1a1e0c031c5716e182c97df61c233d1de"
69
+ },
70
+ {
71
+ "sha": "05dfc392efc6e9432ff043c94b2c5b58b9c61a44",
72
+ "message": "Merge branch 'main' into subcriptions",
73
+ "author": "Prajjwal Kumar",
74
+ "date": "2025-09-01T13:19:54+00:00",
75
+ "url": "https://github.com/juspay/hyperswitch/commit/05dfc392efc6e9432ff043c94b2c5b58b9c61a44"
76
+ },
77
+ {
78
+ "sha": "01427d5bc39229792a8798b30408d5d8c76b638b",
79
+ "message": "refactor: customer create",
80
+ "author": "Prajjwal kumar",
81
+ "date": "2025-09-01T15:12:27+00:00",
82
+ "url": "https://github.com/juspay/hyperswitch/commit/01427d5bc39229792a8798b30408d5d8c76b638b"
83
+ },
84
+ {
85
+ "sha": "d0cca0974712a1370b26c2c14c4ec730fecc4354",
86
+ "message": "chore: run formatter",
87
+ "author": "hyperswitch-bot[bot]",
88
+ "date": "2025-09-01T15:13:17+00:00",
89
+ "url": "https://github.com/juspay/hyperswitch/commit/d0cca0974712a1370b26c2c14c4ec730fecc4354"
90
+ },
91
+ {
92
+ "sha": "8e9eb8ec65ac84ef3c5e062137d7a1e79510b863",
93
+ "message": "refactor: address clippy lints",
94
+ "author": "Prajjwal kumar",
95
+ "date": "2025-09-01T15:20:57+00:00",
96
+ "url": "https://github.com/juspay/hyperswitch/commit/8e9eb8ec65ac84ef3c5e062137d7a1e79510b863"
97
+ },
98
+ {
99
+ "sha": "07c01ae235e31daad077ca4c14b22df7c07325b5",
100
+ "message": "Merge branch 'subcriptions' of github.com:juspay/hyperswitch into subcriptions",
101
+ "author": "Prajjwal kumar",
102
+ "date": "2025-09-01T15:21:14+00:00",
103
+ "url": "https://github.com/juspay/hyperswitch/commit/07c01ae235e31daad077ca4c14b22df7c07325b5"
104
+ },
105
+ {
106
+ "sha": "8e7b8f913930efc55b535c519ef87d70ac1f742d",
107
+ "message": "fix: migration v2",
108
+ "author": "Prajjwal kumar",
109
+ "date": "2025-09-01T18:33:24+00:00",
110
+ "url": "https://github.com/juspay/hyperswitch/commit/8e7b8f913930efc55b535c519ef87d70ac1f742d"
111
+ },
112
+ {
113
+ "sha": "806a0530f1ccbbe1d5c3f3d32415cc1bd36bfec3",
114
+ "message": "Merge branch 'subcriptions' into subscription_cruds",
115
+ "author": "Prajjwal Kumar",
116
+ "date": "2025-09-01T19:15:21+00:00",
117
+ "url": "https://github.com/juspay/hyperswitch/commit/806a0530f1ccbbe1d5c3f3d32415cc1bd36bfec3"
118
+ },
119
+ {
120
+ "sha": "3eb3763ce7b1214262cfec1600ff7e4f90b069d1",
121
+ "message": "refactor: customer calls",
122
+ "author": "Prajjwal kumar",
123
+ "date": "2025-09-01T19:17:30+00:00",
124
+ "url": "https://github.com/juspay/hyperswitch/commit/3eb3763ce7b1214262cfec1600ff7e4f90b069d1"
125
+ },
126
+ {
127
+ "sha": "63bec08e737efdefb5a25bdbdf6b813b55b4412c",
128
+ "message": "Merge branch 'subscription_cruds' of github.com:juspay/hyperswitch into subscription_cruds",
129
+ "author": "Prajjwal kumar",
130
+ "date": "2025-09-01T19:17:37+00:00",
131
+ "url": "https://github.com/juspay/hyperswitch/commit/63bec08e737efdefb5a25bdbdf6b813b55b4412c"
132
+ },
133
+ {
134
+ "sha": "42f5f07ff8c8f4cae983f5cc6bed4cd791c0c99e",
135
+ "message": "fix: clippy",
136
+ "author": "Prajjwal kumar",
137
+ "date": "2025-09-01T19:57:46+00:00",
138
+ "url": "https://github.com/juspay/hyperswitch/commit/42f5f07ff8c8f4cae983f5cc6bed4cd791c0c99e"
139
+ },
140
+ {
141
+ "sha": "975a7e8af5d6b694ca7be980a552eef595e2620f",
142
+ "message": "chore: run formatter",
143
+ "author": "hyperswitch-bot[bot]",
144
+ "date": "2025-09-01T19:58:55+00:00",
145
+ "url": "https://github.com/juspay/hyperswitch/commit/975a7e8af5d6b694ca7be980a552eef595e2620f"
146
+ },
147
+ {
148
+ "sha": "64181ca67cb8c94fbaaa7932f9d711554f952d05",
149
+ "message": "fix: address comments",
150
+ "author": "Prajjwal kumar",
151
+ "date": "2025-09-02T09:30:32+00:00",
152
+ "url": "https://github.com/juspay/hyperswitch/commit/64181ca67cb8c94fbaaa7932f9d711554f952d05"
153
+ },
154
+ {
155
+ "sha": "105997fbfe266b3573cc180ff6323aa7fd5fa19b",
156
+ "message": "Merge branch 'main' into subcriptions",
157
+ "author": "Prajjwal Kumar",
158
+ "date": "2025-09-02T09:31:52+00:00",
159
+ "url": "https://github.com/juspay/hyperswitch/commit/105997fbfe266b3573cc180ff6323aa7fd5fa19b"
160
+ },
161
+ {
162
+ "sha": "ab6504906dc2b17c95f7421766d778ae8223c76b",
163
+ "message": "Merge branch 'subcriptions' of github.com:juspay/hyperswitch into subscription_cruds",
164
+ "author": "Prajjwal kumar",
165
+ "date": "2025-09-02T09:35:44+00:00",
166
+ "url": "https://github.com/juspay/hyperswitch/commit/ab6504906dc2b17c95f7421766d778ae8223c76b"
167
+ },
168
+ {
169
+ "sha": "c9c044fee7aa9b993aa3a3e53c7271332405f2c5",
170
+ "message": "fix: address comments",
171
+ "author": "Prajjwal kumar",
172
+ "date": "2025-09-02T12:45:02+00:00",
173
+ "url": "https://github.com/juspay/hyperswitch/commit/c9c044fee7aa9b993aa3a3e53c7271332405f2c5"
174
+ },
175
+ {
176
+ "sha": "938028e3660e40838faf84d3ab152b29cb395bc0",
177
+ "message": "fix: address comments",
178
+ "author": "Prajjwal kumar",
179
+ "date": "2025-09-02T12:49:37+00:00",
180
+ "url": "https://github.com/juspay/hyperswitch/commit/938028e3660e40838faf84d3ab152b29cb395bc0"
181
+ },
182
+ {
183
+ "sha": "40d132d741e178fa3429cb16bb31b040ff05f490",
184
+ "message": "Merge branch 'subcriptions' into subscription_cruds",
185
+ "author": "Prajjwal Kumar",
186
+ "date": "2025-09-02T12:50:40+00:00",
187
+ "url": "https://github.com/juspay/hyperswitch/commit/40d132d741e178fa3429cb16bb31b040ff05f490"
188
+ },
189
+ {
190
+ "sha": "f1c3c83e7b7637b23660fb183df87b9fd4baf6d9",
191
+ "message": "fix: commets",
192
+ "author": "Prajjwal kumar",
193
+ "date": "2025-09-02T15:29:33+00:00",
194
+ "url": "https://github.com/juspay/hyperswitch/commit/f1c3c83e7b7637b23660fb183df87b9fd4baf6d9"
195
+ },
196
+ {
197
+ "sha": "6762b08622bb2447a15b4a56e357cadcd1863cac",
198
+ "message": "Merge branch 'subscription_cruds' of github.com:juspay/hyperswitch into subscription_cruds",
199
+ "author": "Prajjwal kumar",
200
+ "date": "2025-09-02T15:29:51+00:00",
201
+ "url": "https://github.com/juspay/hyperswitch/commit/6762b08622bb2447a15b4a56e357cadcd1863cac"
202
+ },
203
+ {
204
+ "sha": "30d4f2cf10632770a39fc78853323e97a58ff8dc",
205
+ "message": "chore: run formatter",
206
+ "author": "hyperswitch-bot[bot]",
207
+ "date": "2025-09-02T15:30:56+00:00",
208
+ "url": "https://github.com/juspay/hyperswitch/commit/30d4f2cf10632770a39fc78853323e97a58ff8dc"
209
+ },
210
+ {
211
+ "sha": "bfbd7192b657b67144475b207c78660666661356",
212
+ "message": "fix: address comments",
213
+ "author": "Prajjwal kumar",
214
+ "date": "2025-09-03T02:57:31+00:00",
215
+ "url": "https://github.com/juspay/hyperswitch/commit/bfbd7192b657b67144475b207c78660666661356"
216
+ },
217
+ {
218
+ "sha": "ac5ba74ab80392d2ca7fa85a3c5f9ba9a4212317",
219
+ "message": "Merge branch 'subscription_cruds' of github.com:juspay/hyperswitch into subscription_cruds",
220
+ "author": "Prajjwal kumar",
221
+ "date": "2025-09-03T02:57:43+00:00",
222
+ "url": "https://github.com/juspay/hyperswitch/commit/ac5ba74ab80392d2ca7fa85a3c5f9ba9a4212317"
223
+ },
224
+ {
225
+ "sha": "f2f915e82d276b07594a286002571ec27836affe",
226
+ "message": "fix: remove cid from queries",
227
+ "author": "Prajjwal kumar",
228
+ "date": "2025-09-03T03:10:13+00:00",
229
+ "url": "https://github.com/juspay/hyperswitch/commit/f2f915e82d276b07594a286002571ec27836affe"
230
+ },
231
+ {
232
+ "sha": "f4e192607a29f5c42e1fc8d2d1fa69864790498d",
233
+ "message": "chore: run formatter",
234
+ "author": "hyperswitch-bot[bot]",
235
+ "date": "2025-09-03T03:11:07+00:00",
236
+ "url": "https://github.com/juspay/hyperswitch/commit/f4e192607a29f5c42e1fc8d2d1fa69864790498d"
237
+ },
238
+ {
239
+ "sha": "508cb46048eef2848bc556e7fb29aff14f01eacd",
240
+ "message": "Merge branch 'subcriptions' into subscription_cruds",
241
+ "author": "Prajjwal Kumar",
242
+ "date": "2025-09-03T03:15:53+00:00",
243
+ "url": "https://github.com/juspay/hyperswitch/commit/508cb46048eef2848bc556e7fb29aff14f01eacd"
244
+ },
245
+ {
246
+ "sha": "9b6399a8239fabf7d45f9675b6d397c6d1a8a6a7",
247
+ "message": "fix: permissions",
248
+ "author": "Prajjwal kumar",
249
+ "date": "2025-09-03T03:41:37+00:00",
250
+ "url": "https://github.com/juspay/hyperswitch/commit/9b6399a8239fabf7d45f9675b6d397c6d1a8a6a7"
251
+ },
252
+ {
253
+ "sha": "f59626899a4813b811e278a87a3c268d1b6eef4c",
254
+ "message": "Merge branch 'subscription_cruds' of github.com:juspay/hyperswitch into subscription_cruds",
255
+ "author": "Prajjwal kumar",
256
+ "date": "2025-09-03T03:41:51+00:00",
257
+ "url": "https://github.com/juspay/hyperswitch/commit/f59626899a4813b811e278a87a3c268d1b6eef4c"
258
+ },
259
+ {
260
+ "sha": "e2dcba71e3b9163e9f4dc639d9a23d8d8c11da70",
261
+ "message": "fix: address comments",
262
+ "author": "Prajjwal kumar",
263
+ "date": "2025-09-03T08:56:41+00:00",
264
+ "url": "https://github.com/juspay/hyperswitch/commit/e2dcba71e3b9163e9f4dc639d9a23d8d8c11da70"
265
+ },
266
+ {
267
+ "sha": "9a5b80f24779afda3b65d3cc3d19d6f930c64658",
268
+ "message": "chore: run formatter",
269
+ "author": "hyperswitch-bot[bot]",
270
+ "date": "2025-09-03T09:10:41+00:00",
271
+ "url": "https://github.com/juspay/hyperswitch/commit/9a5b80f24779afda3b65d3cc3d19d6f930c64658"
272
+ },
273
+ {
274
+ "sha": "e89dd0b4cf3260d209c54cecb3fe1b8c672efc0d",
275
+ "message": "refactor: add status in subscription table",
276
+ "author": "Prajjwal kumar",
277
+ "date": "2025-09-03T09:54:35+00:00",
278
+ "url": "https://github.com/juspay/hyperswitch/commit/e89dd0b4cf3260d209c54cecb3fe1b8c672efc0d"
279
+ },
280
+ {
281
+ "sha": "5d52c6f00c9dc23ebd5a38d90261a716c33b0895",
282
+ "message": "Merge branch 'subcriptions' of github.com:juspay/hyperswitch into subcriptions",
283
+ "author": "Prajjwal kumar",
284
+ "date": "2025-09-03T09:54:50+00:00",
285
+ "url": "https://github.com/juspay/hyperswitch/commit/5d52c6f00c9dc23ebd5a38d90261a716c33b0895"
286
+ },
287
+ {
288
+ "sha": "3c33849bfbf7799cd99d061ba4ea5615969357d0",
289
+ "message": "refactor: optional accept sub_id from merchant",
290
+ "author": "Prajjwal kumar",
291
+ "date": "2025-09-03T10:00:26+00:00",
292
+ "url": "https://github.com/juspay/hyperswitch/commit/3c33849bfbf7799cd99d061ba4ea5615969357d0"
293
+ },
294
+ {
295
+ "sha": "6fde666814e7cd380a38ff99c3cd6c126b4d65be",
296
+ "message": "Merge branch 'subcriptions' of github.com:juspay/hyperswitch into subscription_cruds",
297
+ "author": "Prajjwal kumar",
298
+ "date": "2025-09-03T10:01:03+00:00",
299
+ "url": "https://github.com/juspay/hyperswitch/commit/6fde666814e7cd380a38ff99c3cd6c126b4d65be"
300
+ },
301
+ {
302
+ "sha": "5d245753e01c1d55e1b379bca4e3f45aa5a0a389",
303
+ "message": "refactor: accept subscription status",
304
+ "author": "Prajjwal kumar",
305
+ "date": "2025-09-03T10:07:30+00:00",
306
+ "url": "https://github.com/juspay/hyperswitch/commit/5d245753e01c1d55e1b379bca4e3f45aa5a0a389"
307
+ },
308
+ {
309
+ "sha": "c76beb48f8ca5f1bacfde3f2276e3d5808eabc50",
310
+ "message": "refactor: add col coonnector_billing_id",
311
+ "author": "Prajjwal kumar",
312
+ "date": "2025-09-03T10:18:34+00:00",
313
+ "url": "https://github.com/juspay/hyperswitch/commit/c76beb48f8ca5f1bacfde3f2276e3d5808eabc50"
314
+ },
315
+ {
316
+ "sha": "432f89a8e14b1bc7c350ed042ba89267a58fd60e",
317
+ "message": "chore: run formatter",
318
+ "author": "hyperswitch-bot[bot]",
319
+ "date": "2025-09-03T10:36:08+00:00",
320
+ "url": "https://github.com/juspay/hyperswitch/commit/432f89a8e14b1bc7c350ed042ba89267a58fd60e"
321
+ },
322
+ {
323
+ "sha": "c266435232aea042af91e993ce5252d9ba688ec9",
324
+ "message": "Merge branch 'main' into subcriptions",
325
+ "author": "Prajjwal Kumar",
326
+ "date": "2025-09-03T11:02:20+00:00",
327
+ "url": "https://github.com/juspay/hyperswitch/commit/c266435232aea042af91e993ce5252d9ba688ec9"
328
+ },
329
+ {
330
+ "sha": "76a9612bf635a6344a70be67fc82e51f00dee33f",
331
+ "message": "fix: migration",
332
+ "author": "Prajjwal kumar",
333
+ "date": "2025-09-03T11:02:52+00:00",
334
+ "url": "https://github.com/juspay/hyperswitch/commit/76a9612bf635a6344a70be67fc82e51f00dee33f"
335
+ },
336
+ {
337
+ "sha": "ec1df48359d4ba0ba0f446c3340ef5e0595335ce",
338
+ "message": "Merge branch 'subcriptions' of github.com:juspay/hyperswitch into subcriptions",
339
+ "author": "Prajjwal kumar",
340
+ "date": "2025-09-03T11:06:52+00:00",
341
+ "url": "https://github.com/juspay/hyperswitch/commit/ec1df48359d4ba0ba0f446c3340ef5e0595335ce"
342
+ },
343
+ {
344
+ "sha": "8fccd662a333cb06d24bb85ca5dad64cefab1f13",
345
+ "message": "Merge branch 'subcriptions' into subscription_cruds",
346
+ "author": "Prajjwal Kumar",
347
+ "date": "2025-09-03T11:16:34+00:00",
348
+ "url": "https://github.com/juspay/hyperswitch/commit/8fccd662a333cb06d24bb85ca5dad64cefab1f13"
349
+ },
350
+ {
351
+ "sha": "c2b6ce481017a94f88a4fdac128c9854c7490271",
352
+ "message": "fix: address comments",
353
+ "author": "Prajjwal kumar",
354
+ "date": "2025-09-03T11:24:51+00:00",
355
+ "url": "https://github.com/juspay/hyperswitch/commit/c2b6ce481017a94f88a4fdac128c9854c7490271"
356
+ },
357
+ {
358
+ "sha": "2140e28f8bfb16357df3b34d4dd8b28507389e9f",
359
+ "message": "Merge branch 'main' of github.com:juspay/hyperswitch into subscription_cruds",
360
+ "author": "Prajjwal kumar",
361
+ "date": "2025-09-04T09:36:39+00:00",
362
+ "url": "https://github.com/juspay/hyperswitch/commit/2140e28f8bfb16357df3b34d4dd8b28507389e9f"
363
+ },
364
+ {
365
+ "sha": "26491ac77e881e82a5368250bcd1b601577dc469",
366
+ "message": "Merge branch 'main' of github.com:juspay/hyperswitch into subscription_cruds",
367
+ "author": "Prajjwal kumar",
368
+ "date": "2025-09-08T08:51:58+00:00",
369
+ "url": "https://github.com/juspay/hyperswitch/commit/26491ac77e881e82a5368250bcd1b601577dc469"
370
+ },
371
+ {
372
+ "sha": "8f45399ba8389ee6fa09d5b6fd92d6194f26e562",
373
+ "message": "fix: resolve conflicts",
374
+ "author": "Prajjwal kumar",
375
+ "date": "2025-09-08T10:32:39+00:00",
376
+ "url": "https://github.com/juspay/hyperswitch/commit/8f45399ba8389ee6fa09d5b6fd92d6194f26e562"
377
+ },
378
+ {
379
+ "sha": "e99c0bfe0aefae02a7638ead0e568a25ac70a00e",
380
+ "message": "fix: address comments",
381
+ "author": "Prajjwal kumar",
382
+ "date": "2025-09-08T10:37:34+00:00",
383
+ "url": "https://github.com/juspay/hyperswitch/commit/e99c0bfe0aefae02a7638ead0e568a25ac70a00e"
384
+ },
385
+ {
386
+ "sha": "6124896c527dcbdff8f46c52738093d210654211",
387
+ "message": "chore: run formatter",
388
+ "author": "hyperswitch-bot[bot]",
389
+ "date": "2025-09-08T10:57:03+00:00",
390
+ "url": "https://github.com/juspay/hyperswitch/commit/6124896c527dcbdff8f46c52738093d210654211"
391
+ },
392
+ {
393
+ "sha": "40720d435a77797ad5c9e1d1f833508f14ae97c7",
394
+ "message": "fix: v2 clippy",
395
+ "author": "Prajjwal kumar",
396
+ "date": "2025-09-09T07:38:43+00:00",
397
+ "url": "https://github.com/juspay/hyperswitch/commit/40720d435a77797ad5c9e1d1f833508f14ae97c7"
398
+ },
399
+ {
400
+ "sha": "07b2b9b148e09984406f0251d9af449bb240c4d0",
401
+ "message": "fix: address comments",
402
+ "author": "Prajjwal kumar",
403
+ "date": "2025-09-10T07:01:02+00:00",
404
+ "url": "https://github.com/juspay/hyperswitch/commit/07b2b9b148e09984406f0251d9af449bb240c4d0"
405
+ },
406
+ {
407
+ "sha": "4ada7a11fa3e64d49bb46f060c11f1a27e7299c5",
408
+ "message": "fix: address comments",
409
+ "author": "Prajjwal kumar",
410
+ "date": "2025-09-10T07:09:26+00:00",
411
+ "url": "https://github.com/juspay/hyperswitch/commit/4ada7a11fa3e64d49bb46f060c11f1a27e7299c5"
412
+ },
413
+ {
414
+ "sha": "ae3786bace1af169026abc8c8581cef95ceac2d1",
415
+ "message": "fix: address comments",
416
+ "author": "Prajjwal kumar",
417
+ "date": "2025-09-10T14:49:12+00:00",
418
+ "url": "https://github.com/juspay/hyperswitch/commit/ae3786bace1af169026abc8c8581cef95ceac2d1"
419
+ },
420
+ {
421
+ "sha": "d5a00c507096cb41437bcaa2443bece8d06c939e",
422
+ "message": "address: clippy lints",
423
+ "author": "Prajjwal kumar",
424
+ "date": "2025-09-10T14:51:03+00:00",
425
+ "url": "https://github.com/juspay/hyperswitch/commit/d5a00c507096cb41437bcaa2443bece8d06c939e"
426
+ },
427
+ {
428
+ "sha": "665bc614ec24e4460598018dad83d2b58eee179f",
429
+ "message": "fix: address comments",
430
+ "author": "Prajjwal kumar",
431
+ "date": "2025-09-15T15:28:55+00:00",
432
+ "url": "https://github.com/juspay/hyperswitch/commit/665bc614ec24e4460598018dad83d2b58eee179f"
433
+ },
434
+ {
435
+ "sha": "3ced8eb61997e14cbd53d1d72d854c8a0c2df068",
436
+ "message": "address comments",
437
+ "author": "Prajjwal kumar",
438
+ "date": "2025-09-15T16:25:23+00:00",
439
+ "url": "https://github.com/juspay/hyperswitch/commit/3ced8eb61997e14cbd53d1d72d854c8a0c2df068"
440
+ },
441
+ {
442
+ "sha": "1a5501358ede37ccb712a1a5e1005d96ed21cd61",
443
+ "message": "fix: clippy",
444
+ "author": "Prajjwal kumar",
445
+ "date": "2025-09-16T06:39:55+00:00",
446
+ "url": "https://github.com/juspay/hyperswitch/commit/1a5501358ede37ccb712a1a5e1005d96ed21cd61"
447
+ },
448
+ {
449
+ "sha": "cfec17286a19fa0c29cbe971282acb24981f72db",
450
+ "message": "chore: run formatter",
451
+ "author": "hyperswitch-bot[bot]",
452
+ "date": "2025-09-16T06:42:03+00:00",
453
+ "url": "https://github.com/juspay/hyperswitch/commit/cfec17286a19fa0c29cbe971282acb24981f72db"
454
+ },
455
+ {
456
+ "sha": "8e5c1e19535781e7a410fb9acd6b6e6b43609f67",
457
+ "message": "fix: address comments",
458
+ "author": "Prajjwal kumar",
459
+ "date": "2025-09-16T10:32:32+00:00",
460
+ "url": "https://github.com/juspay/hyperswitch/commit/8e5c1e19535781e7a410fb9acd6b6e6b43609f67"
461
+ },
462
+ {
463
+ "sha": "5fd39c395ddc2d14087b57792fb72b334ee01fbe",
464
+ "message": "Merge branch 'subscription_cruds' of github.com:juspay/hyperswitch into subscription_cruds",
465
+ "author": "Prajjwal kumar",
466
+ "date": "2025-09-16T10:33:25+00:00",
467
+ "url": "https://github.com/juspay/hyperswitch/commit/5fd39c395ddc2d14087b57792fb72b334ee01fbe"
468
+ },
469
+ {
470
+ "sha": "efc8a620aeb44b1cc58838058301e45bb9990d20",
471
+ "message": "fix: address comments",
472
+ "author": "Prajjwal kumar",
473
+ "date": "2025-09-16T10:33:41+00:00",
474
+ "url": "https://github.com/juspay/hyperswitch/commit/efc8a620aeb44b1cc58838058301e45bb9990d20"
475
+ },
476
+ {
477
+ "sha": "38cbcfadc41cae846401b2efa5e8f6a13c641581",
478
+ "message": "fix: address comments",
479
+ "author": "Prajjwal kumar",
480
+ "date": "2025-09-17T11:19:49+00:00",
481
+ "url": "https://github.com/juspay/hyperswitch/commit/38cbcfadc41cae846401b2efa5e8f6a13c641581"
482
+ },
483
+ {
484
+ "sha": "1f4cdf61eb48ebfdb3cf4fff4a69f8c431b63487",
485
+ "message": "fix: address comments",
486
+ "author": "Prajjwal kumar",
487
+ "date": "2025-09-17T11:45:40+00:00",
488
+ "url": "https://github.com/juspay/hyperswitch/commit/1f4cdf61eb48ebfdb3cf4fff4a69f8c431b63487"
489
+ },
490
+ {
491
+ "sha": "4392ca8c7ce6c919ef6a254414b3e1f0df3be57e",
492
+ "message": "fix: address comments",
493
+ "author": "Prajjwal kumar",
494
+ "date": "2025-09-17T18:17:37+00:00",
495
+ "url": "https://github.com/juspay/hyperswitch/commit/4392ca8c7ce6c919ef6a254414b3e1f0df3be57e"
496
+ },
497
+ {
498
+ "sha": "15dad45f6b924251f04f58717be945e99dea031c",
499
+ "message": "fix: address comments",
500
+ "author": "Prajjwal kumar",
501
+ "date": "2025-09-17T18:17:59+00:00",
502
+ "url": "https://github.com/juspay/hyperswitch/commit/15dad45f6b924251f04f58717be945e99dea031c"
503
+ },
504
+ {
505
+ "sha": "6c30da8bd7bfb16a55738becaf45054718b18586",
506
+ "message": "address comments",
507
+ "author": "Prajjwal kumar",
508
+ "date": "2025-09-17T22:03:56+00:00",
509
+ "url": "https://github.com/juspay/hyperswitch/commit/6c30da8bd7bfb16a55738becaf45054718b18586"
510
+ },
511
+ {
512
+ "sha": "0eba2827cd9867c84861a0ee028aa3f3ba1b30aa",
513
+ "message": "fix: lints",
514
+ "author": "Prajjwal kumar",
515
+ "date": "2025-09-17T22:11:37+00:00",
516
+ "url": "https://github.com/juspay/hyperswitch/commit/0eba2827cd9867c84861a0ee028aa3f3ba1b30aa"
517
+ },
518
+ {
519
+ "sha": "e82a18d99ce60abecc8a02b4364c494e410f49a4",
520
+ "message": "fix: lints",
521
+ "author": "Prajjwal kumar",
522
+ "date": "2025-09-17T22:16:12+00:00",
523
+ "url": "https://github.com/juspay/hyperswitch/commit/e82a18d99ce60abecc8a02b4364c494e410f49a4"
524
+ },
525
+ {
526
+ "sha": "b05ccbc261be9f6d7fc32327ae307bb1558ff46b",
527
+ "message": "refactor: remove unwanted code",
528
+ "author": "Prajjwal kumar",
529
+ "date": "2025-09-17T22:22:04+00:00",
530
+ "url": "https://github.com/juspay/hyperswitch/commit/b05ccbc261be9f6d7fc32327ae307bb1558ff46b"
531
+ },
532
+ {
533
+ "sha": "e511fb4e55318c7e7813b94d9f9c726e3a0a5ba4",
534
+ "message": "fix: migration",
535
+ "author": "Prajjwal kumar",
536
+ "date": "2025-09-17T22:27:46+00:00",
537
+ "url": "https://github.com/juspay/hyperswitch/commit/e511fb4e55318c7e7813b94d9f9c726e3a0a5ba4"
538
+ },
539
+ {
540
+ "sha": "d2a41a4afa2e2fc4ff1fd6e5b4733a32db8a6895",
541
+ "message": "fix: migrations",
542
+ "author": "Prajjwal kumar",
543
+ "date": "2025-09-18T09:45:54+00:00",
544
+ "url": "https://github.com/juspay/hyperswitch/commit/d2a41a4afa2e2fc4ff1fd6e5b4733a32db8a6895"
545
+ },
546
+ {
547
+ "sha": "2de2768788eab46c3e65597facbd7d3cb2bfa80f",
548
+ "message": "Merge branch 'main' of github.com:juspay/hyperswitch into subscription_cruds",
549
+ "author": "Prajjwal kumar",
550
+ "date": "2025-09-18T09:49:35+00:00",
551
+ "url": "https://github.com/juspay/hyperswitch/commit/2de2768788eab46c3e65597facbd7d3cb2bfa80f"
552
+ },
553
+ {
554
+ "sha": "222a7fc00fd016ac63dad7db9aa9b62275c5b388",
555
+ "message": "fix: migration",
556
+ "author": "Prajjwal kumar",
557
+ "date": "2025-09-18T09:59:19+00:00",
558
+ "url": "https://github.com/juspay/hyperswitch/commit/222a7fc00fd016ac63dad7db9aa9b62275c5b388"
559
+ }
560
+ ]
561
+ }
prs/pr_9239.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 9239,
3
+ "title": "feat(router): Flow changes for split payments (v2)",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [x] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n- Added `payments_execute_wrapper` function to decide whether to call split payments flow or normal flow.\r\n- Added `get_trackers_for_split_payments` method to `GetTracker` trait.\r\n - For split payments flow we need to provide the `split_amount` during attempt creation.\r\n- Added `split_payments` module to router core.\r\n- Added `get_payment_method_and_amount_split` function to decide the amount split between payment methods.\r\n - Its function is summarized as follows:\r\n - Take the payment method data and split_payment_method_data from the confirm-intent request\r\n - Partition gift-card and non-gift-card payment methods, and validate at-most one non-gift-card payment method is present\r\n - Fetch the balances for the gift cards from redis\r\n - Assign the amount to the gift_cards equal to their balance while there is still `remaining_amount`\r\n - If after assigning the amount to all gift cards, there is still remaining_amount, assign that to the non-gift-card PM\r\n- Added `split_payments_execute_core` function to execute payments in case of split flow.\r\n - It loops over the PaymentMethodData and `split_amount` and repeatedly calls authorize.\r\n- Implemented `GenerateResponse` trait on `SplitPaymentsResponseData` \r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\nCloses #9238 \r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nRequest:\r\n\r\n```\r\ncurl --location 'http://localhost:8080/v2/payments/12345_pay_019a1586413c7010a0dc66544c7e1fe9/confirm-intent' \\\r\n--header 'x-profile-id: pro_b6zVMpyzM3ENSHIfb6HC' \\\r\n--header 'x-client-secret: cs_019a1586419a7312bfdd7cee24c25e9c' \\\r\n--header 'Authorization: publishable-key=pk_dev_28eed24243be4d88ab613c12d31c6ebd,client-secret=cs_019a1586419a7312bfdd7cee24c25e9c' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: pk_dev_28eed24243be4d88ab613c12d31c6ebd' \\\r\n--data '{\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_cvc\": \"737\",\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\r\n \"card_number\": \"4000620000000007\",\r\n \"card_holder_name\": \"joseph Doe\"\r\n }\r\n },\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_subtype\": \"card\",\r\n \"split_payment_method_data\": [\r\n {\r\n \"payment_method_data\": {\r\n \"gift_card\": {\r\n \"givex\": {\r\n \"number\": \"6036280000000000000\",\r\n \"cvc\": \"123\"\r\n }\r\n }\r\n },\r\n \"payment_method_type\": \"gift_card\",\r\n \"payment_method_subtype\": \"givex\"\r\n }\r\n ],\r\n \"browser_info\": {\r\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36\",\r\n \"accept_header\": \"text\\\\/html,application\\\\/xhtml+xml,application\\\\/xml;q=0.9,image\\\\/webp,image\\\\/apng,*\\\\/*;q=0.8\",\r\n \"language\": \"en-GB\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 1440,\r\n \"screen_width\": 2560,\r\n \"time_zone\": -330,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"0.0.0.0\"\r\n }\r\n}'\r\n```\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"id\": \"12345_pay_019a1586413c7010a0dc66544c7e1fe9\",\r\n \"status\": \"succeeded\",\r\n \"amount\": {\r\n \"order_amount\": 12000,\r\n \"currency\": \"EUR\",\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"external_tax_calculation\": \"skip\",\r\n \"surcharge_calculation\": \"skip\",\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"net_amount\": 12000,\r\n \"amount_to_capture\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_captured\": 12000\r\n },\r\n \"customer_id\": \"12345_cus_019a0fff89c17c11ba1073c38c408a7b\",\r\n \"connector\": \"adyen\",\r\n \"created\": \"2025-10-24T09:21:51.483Z\",\r\n \"modified_at\": \"2025-10-24T09:22:20.303Z\",\r\n \"payment_method_data\": {\r\n \"billing\": null\r\n },\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_subtype\": \"card\",\r\n \"connector_transaction_id\": \"RFXNPWF455B3ZMV5\",\r\n \"connector_reference_id\": \"12345_att_019a1586a9b17cb3b11dafed6f611fbe\",\r\n \"merchant_connector_id\": \"mca_F8UhCAjnP1ggfr9lJFK5\",\r\n \"browser_info\": null,\r\n \"error\": null,\r\n \"shipping\": null,\r\n \"billing\": null,\r\n \"attempts\": null,\r\n \"connector_token_details\": null,\r\n \"payment_method_id\": null,\r\n \"next_action\": null,\r\n \"return_url\": \"https://google.com/success\",\r\n \"authentication_type\": \"three_ds\",\r\n \"authentication_type_applied\": \"three_ds\",\r\n \"is_iframe_redirection_enabled\": null,\r\n \"merchant_reference_id\": null,\r\n \"raw_connector_response\": null,\r\n \"feature_metadata\": null,\r\n \"metadata\": null\r\n}\r\n```\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "AnuthaDev",
6
+ "created_at": "2025-09-02T09:26:48+00:00",
7
+ "merged_at": "2025-11-17T09:46:00+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "api-v2"
11
+ ],
12
+ "url": "https://github.com/juspay/hyperswitch/pull/9239",
13
+ "commits": [
14
+ {
15
+ "sha": "f26cfbd24461eff75e53ae1249795522cfaa9ab3",
16
+ "message": "feat(router): Combine payment method check-balance and apply endpoints (v2)",
17
+ "author": "Anurag Thakur",
18
+ "date": "2025-11-11T09:23:10+00:00",
19
+ "url": "https://github.com/juspay/hyperswitch/commit/f26cfbd24461eff75e53ae1249795522cfaa9ab3"
20
+ },
21
+ {
22
+ "sha": "6bd0327e4fd609edb00455820d13dbe67eaa58f5",
23
+ "message": "Fix clippy",
24
+ "author": "Anurag Thakur",
25
+ "date": "2025-11-11T11:41:01+00:00",
26
+ "url": "https://github.com/juspay/hyperswitch/commit/6bd0327e4fd609edb00455820d13dbe67eaa58f5"
27
+ },
28
+ {
29
+ "sha": "17f32dca7c73c48e66ab180a1fa1fe85bc0ae3b9",
30
+ "message": "Fix clippy",
31
+ "author": "Anurag Thakur",
32
+ "date": "2025-11-06T07:53:37+00:00",
33
+ "url": "https://github.com/juspay/hyperswitch/commit/17f32dca7c73c48e66ab180a1fa1fe85bc0ae3b9"
34
+ },
35
+ {
36
+ "sha": "6c0bbb4399f7bb6cb335981b605dc2e27d83fd2d",
37
+ "message": "Address review comments",
38
+ "author": "Anurag Thakur",
39
+ "date": "2025-11-06T10:05:16+00:00",
40
+ "url": "https://github.com/juspay/hyperswitch/commit/6c0bbb4399f7bb6cb335981b605dc2e27d83fd2d"
41
+ },
42
+ {
43
+ "sha": "f8972ca3c400bad4766f8da57ae2a3184da1ab85",
44
+ "message": "feat(router): Add core changes for split payments (v2)",
45
+ "author": "Anurag Thakur",
46
+ "date": "2025-10-24T09:25:05+00:00",
47
+ "url": "https://github.com/juspay/hyperswitch/commit/f8972ca3c400bad4766f8da57ae2a3184da1ab85"
48
+ },
49
+ {
50
+ "sha": "85473f6758e822174cc768f30f04db67460e66a5",
51
+ "message": "Address review comments",
52
+ "author": "Anurag Thakur",
53
+ "date": "2025-11-07T08:00:49+00:00",
54
+ "url": "https://github.com/juspay/hyperswitch/commit/85473f6758e822174cc768f30f04db67460e66a5"
55
+ },
56
+ {
57
+ "sha": "2b44de6bef2ffb4ba1d75f8974a2bb7177f378fa",
58
+ "message": "Fix clippy",
59
+ "author": "Anurag Thakur",
60
+ "date": "2025-11-07T08:15:03+00:00",
61
+ "url": "https://github.com/juspay/hyperswitch/commit/2b44de6bef2ffb4ba1d75f8974a2bb7177f378fa"
62
+ },
63
+ {
64
+ "sha": "5255555f39d2e1c0827eb9c5bfbc8f06d9c82026",
65
+ "message": "Address review comments",
66
+ "author": "Anurag Thakur",
67
+ "date": "2025-11-11T08:07:35+00:00",
68
+ "url": "https://github.com/juspay/hyperswitch/commit/5255555f39d2e1c0827eb9c5bfbc8f06d9c82026"
69
+ },
70
+ {
71
+ "sha": "fb70dda0ad660147ccc895571152eb61cb3dd08d",
72
+ "message": "Address review comments",
73
+ "author": "Anurag Thakur",
74
+ "date": "2025-11-17T07:09:00+00:00",
75
+ "url": "https://github.com/juspay/hyperswitch/commit/fb70dda0ad660147ccc895571152eb61cb3dd08d"
76
+ }
77
+ ]
78
+ }
prs/pr_9273.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 9273,
3
+ "title": "feat(core): Add Network Details in Payments Response",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\nThis PR adds a new NetworkDetails struct containing network_advice_code to capture network-level response information from payment processors.\r\nKey Changes:\r\n\r\n1)Added network_details JSONB column to payment_attempt table\r\n2)Extended PaymentsResponse API to include optional network_details field\r\n3)Updated payment attempt models and error handling to populate network advice codes\r\n4)Added database migration and comprehensive model updates across the codebase\r\n\r\n### Additional Changes\r\n\r\n- [x] This PR modifies the API contract\r\n- [x] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nRequest\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_XklbTvcVeccpWoNiRvzfyhYyKrGS80Pn2vsdIBhpFnotH19HLDRCRZdqeEoIjoYM' \\\r\n--data-raw '{\r\n \"amount\": 4324,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \"setup_future_usage\": \"on_session\",\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \"customer_id\": \"nidthxxinn\",\r\n \"return_url\": \"https://www.google.com\",\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"description\": \"hellow world\",\r\n \"billing\": {\r\n \"address\": {\r\n \"zip\": \"560095\",\r\n \"country\": \"US\",\r\n \"first_name\": \"Sakil\",\r\n \"last_name\": \"Mostak\",\r\n \"line1\": \"Fasdf\",\r\n \"line2\": \"Fasdf\",\r\n \"city\": \"Fasdf\"\r\n }\r\n },\r\n \"browser_info\": {\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\",\r\n \"ip_address\": \"192.168.1.1\",\r\n \"java_enabled\": false,\r\n \"java_script_enabled\": true,\r\n \"language\": \"en-US\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 1080,\r\n \"screen_width\": 1920,\r\n \"time_zone\": 330,\r\n \"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\"\r\n },\r\n \"email\": \"hello@gmail.com\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4000000000009995\",\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"2026\",\r\n \"card_holder_name\": \"John Smith\",\r\n \"card_cvc\": \"100\"\r\n }\r\n }\r\n\t}\r\n'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_HliAZcNZ4FY0Oj8MEgUA\",\r\n \"merchant_id\": \"postman_merchant_GHAction_496676b2-8518-4cfe-b166-ac01248809e3\",\r\n \"status\": \"failed\",\r\n \"amount\": 4324,\r\n \"net_amount\": 4324,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": \"nuvei\",\r\n \"client_secret\": \"pay_HliAZcNZ4FY0Oj8MEgUA_secret_aUxY7BbfNXf9nMBBATf6\",\r\n \"created\": \"2025-09-04T10:53:50.873Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"nidthxxinn\",\r\n \"customer\": {\r\n \"id\": \"nidthxxinn\",\r\n \"name\": null,\r\n \"email\": \"hello@gmail.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": \"hellow world\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"on_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"9995\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"400000\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"2026\",\r\n \"card_holder_name\": \"John Smith\",\r\n \"payment_checks\": {\r\n \"avs_description\": null,\r\n \"avs_result_code\": null,\r\n \"cvv_2_reply_code\": null,\r\n \"cvv_2_description\": null,\r\n \"merchant_advice_code\": null,\r\n \"merchant_advice_code_description\": null\r\n },\r\n \"authentication_data\": {}\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_bMKiQPWFx6XGrRVMONJn\",\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"Fasdf\",\r\n \"country\": \"US\",\r\n \"line1\": \"Fasdf\",\r\n \"line2\": \"Fasdf\",\r\n \"line3\": null,\r\n \"zip\": \"560095\",\r\n \"state\": null,\r\n \"first_name\": \"Sakil\",\r\n \"last_name\": \"Mostak\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"hello@gmail.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": \"1019\",\r\n \"error_message\": \"Invalid FailureUrl\",\r\n \"unified_code\": \"UE_9000\",\r\n \"unified_message\": \"Something went wrong\",\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"nidthxxinn\",\r\n \"created_at\": 1756983230,\r\n \"expires\": 1756986830,\r\n \"secret\": \"epk_e03741a25a544f759d4914ec6f09cb53\"\r\n },\r\n \"manual_retry_allowed\": true,\r\n \"connector_transaction_id\": null,\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_x2eMfnp2IDjZd3ZFGmeF\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_uLFQ0zyXKbAMjNmpf00b\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-09-04T11:08:50.873Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"en-US\",\r\n \"time_zone\": 330,\r\n \"ip_address\": \"192.168.1.1\",\r\n \"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\",\r\n \"color_depth\": 24,\r\n \"java_enabled\": false,\r\n \"screen_width\": 1920,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\",\r\n \"screen_height\": 1080,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-09-04T10:53:51.741Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"network_details\": {\r\n \"network_advice_code\": null\r\n }\r\n}\r\n```\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "awasthi21",
6
+ "created_at": "2025-09-04T07:12:29+00:00",
7
+ "merged_at": "2025-09-09T14:10:52+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "M-database-changes",
11
+ "M-api-contract-changes"
12
+ ],
13
+ "url": "https://github.com/juspay/hyperswitch/pull/9273",
14
+ "commits": [
15
+ {
16
+ "sha": "7f088c1c8f1441388b81d124cd477ad11438c003",
17
+ "message": "Initial commit",
18
+ "author": "Malay Awasthi",
19
+ "date": "2025-09-09T10:27:33+00:00",
20
+ "url": "https://github.com/juspay/hyperswitch/commit/7f088c1c8f1441388b81d124cd477ad11438c003"
21
+ },
22
+ {
23
+ "sha": "1d62c10111dd24ffcf821084a8c5da3da8f7a1c2",
24
+ "message": "docs(openapi): re-generate OpenAPI specification",
25
+ "author": "hyperswitch-bot[bot]",
26
+ "date": "2025-09-09T10:42:08+00:00",
27
+ "url": "https://github.com/juspay/hyperswitch/commit/1d62c10111dd24ffcf821084a8c5da3da8f7a1c2"
28
+ },
29
+ {
30
+ "sha": "f1d33e2c401ef4e3bcd90cced41702b016224e33",
31
+ "message": "Initial commit",
32
+ "author": "Malay Awasthi",
33
+ "date": "2025-09-09T11:14:04+00:00",
34
+ "url": "https://github.com/juspay/hyperswitch/commit/f1d33e2c401ef4e3bcd90cced41702b016224e33"
35
+ }
36
+ ]
37
+ }
prs/pr_9384.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 9384,
3
+ "title": "fix(connector): [adyenplatform] update error mapping",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [x] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\nThis PR fixes two critical issues in Adyen Platform connector and payout core flow error handling:\r\n\r\n1. **Enhanced error message construction**: Modified `build_error_response` in `crates/hyperswitch_connectors/src/connectors/adyenplatform.rs` to include the `detail` field when `invalid_fields` is not present. This provides users with comprehensive error information, especially for business logic errors where Adyen provides detailed explanations.\r\n\r\n2. **Fixed improper PayoutFailed usage**: Removed multiple instances of `PayoutFailed` from core payouts flow that were being thrown after connector calls. This was bypassing proper connector error handling and preventing detailed error messages from reaching the API response.\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n-->\r\n\r\nThis PR allows mapping the right error codes and messages from Adyenplatform to HyperSwitch's payout API response in case of failures.\r\n\r\n**Solution**:\r\nThis change ensures that all available error information from Adyen is properly communicated to users, improving the debugging experience and reducing support overhead.\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n<details>\r\n <summary>1. Create a payout in an account without any funds</summary>\r\n\r\ncURL (AUD has 0 balance)\r\n\r\n curl --location --request POST 'http://localhost:8080/payouts/create' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'api-key: dev_7fXFUFajfCYtS5aKrQXJMyIiBLr2gw3Y862wqkp6qXHpl88H0hQaEr89xAnvsxvp' \\\r\n --data-raw '{\"amount\":1,\"currency\":\"AUD\",\"profile_id\":\"pro_E9Z7dCKDd54NaVYCFFhF\",\"customer\":{\"id\":\"cus_X7urM1AQqvpECo6G5XkW\",\"name\":\"New Name\"},\"connector\":[\"adyenplatform\"],\"description\":\"Its my first payout request\",\"payout_type\":\"card\",\"payout_method_data\":{\"card\":{\"card_number\":\"4111111111111111\",\"expiry_month\":\"01\",\"expiry_year\":\"2030\",\"card_holder_name\":\"John Doe\"}},\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"CA\",\"country\":\"IT\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"email\":\"random@example.com\"},\"recurring\":true,\"metadata\":{\"ref\":\"123\"},\"confirm\":true,\"auto_fulfill\":true}'\r\n\r\nResponse\r\n\r\n {\"payout_id\":\"payout_cX5OwgVAuqaHJkF9zxeu\",\"merchant_id\":\"merchant_1757926554\",\"merchant_order_reference_id\":null,\"amount\":1,\"currency\":\"AUD\",\"connector\":\"adyenplatform\",\"payout_type\":\"card\",\"payout_method_data\":{\"card\":{\"card_issuer\":\"JP Morgan\",\"card_network\":\"Visa\",\"card_type\":\"CREDIT\",\"card_issuing_country\":\"INDIA\",\"bank_code\":\"JP_JPM\",\"last4\":\"1111\",\"card_isin\":\"411111\",\"card_extended_bin\":null,\"card_exp_month\":\"01\",\"card_exp_year\":\"2030\",\"card_holder_name\":\"John Doe\"}},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"IT\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":null,\"zip\":null,\"state\":\"CA\",\"first_name\":\"John\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":null,\"email\":\"random@example.com\"},\"auto_fulfill\":true,\"customer_id\":\"cus_X7urM1AQqvpECo6G5XkW\",\"customer\":{\"id\":\"cus_X7urM1AQqvpECo6G5XkW\",\"name\":\"Albert Klaassen\",\"email\":null,\"phone\":\"6168205362\",\"phone_country_code\":\"+1\"},\"client_secret\":\"payout_payout_cX5OwgVAuqaHJkF9zxeu_secret_eIw5TJyjUYBydBp3Aa5c\",\"return_url\":null,\"business_country\":null,\"business_label\":null,\"description\":\"Its my first payout request\",\"entity_type\":\"Individual\",\"recurring\":true,\"metadata\":{\"ref\":\"123\"},\"merchant_connector_id\":\"mca_m86KCMmTaeQ2mTtSgfRA\",\"status\":\"failed\",\"error_message\":\"notEnoughBalance\",\"error_code\":\"Refused\",\"profile_id\":\"pro_E9Z7dCKDd54NaVYCFFhF\",\"created\":\"2025-09-15T11:55:40.044Z\",\"connector_transaction_id\":null,\"priority\":null,\"payout_link\":null,\"email\":null,\"name\":\"Albert Klaassen\",\"phone\":\"6168205362\",\"phone_country_code\":\"+1\",\"unified_code\":\"UE_9000\",\"unified_message\":\"Something went wrong\",\"payout_method_id\":null}\r\n\r\nExpectation\r\n\r\n- Payout must fail\r\n- error_message and error_code must be populated\r\n\r\n</details>\r\n\r\n<details>\r\n <summary>2. Create a payout using invalid transfer details</summary>\r\n\r\ncURL (Invalid postcode)\r\n\r\n curl --location --request POST 'http://localhost:8080/payouts/create' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'api-key: dev_7fXFUFajfCYtS5aKrQXJMyIiBLr2gw3Y862wqkp6qXHpl88H0hQaEr89xAnvsxvp' \\\r\n --data-raw '{\"amount\":1,\"currency\":\"EUR\",\"profile_id\":\"pro_E9Z7dCKDd54NaVYCFFhF\",\"customer\":{\"id\":\"cus_X7urM1AQqvpECo6G5XkW\",\"name\":\"New Name\"},\"connector\":[\"adyenplatform\"],\"description\":\"Its my first payout request\",\"payout_type\":\"card\",\"payout_method_data\":{\"card\":{\"card_number\":\"4111111111111111\",\"expiry_month\":\"01\",\"expiry_year\":\"2030\",\"card_holder_name\":\"John Doe\"}},\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"CA\",\"zip\":\"123\",\"country\":\"IT\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"email\":\"random@example.com\"},\"recurring\":true,\"metadata\":{\"ref\":\"123\"},\"confirm\":true,\"auto_fulfill\":true}'\r\n\r\nResponse\r\n\r\n {\"payout_id\":\"payout_lAUUuhWCoj1qVo9jwHeQ\",\"merchant_id\":\"merchant_1757926554\",\"merchant_order_reference_id\":null,\"amount\":1,\"currency\":\"EUR\",\"connector\":\"adyenplatform\",\"payout_type\":\"card\",\"payout_method_data\":{\"card\":{\"card_issuer\":\"JP Morgan\",\"card_network\":\"Visa\",\"card_type\":\"CREDIT\",\"card_issuing_country\":\"INDIA\",\"bank_code\":\"JP_JPM\",\"last4\":\"1111\",\"card_isin\":\"411111\",\"card_extended_bin\":null,\"card_exp_month\":\"01\",\"card_exp_year\":\"2030\",\"card_holder_name\":\"John Doe\"}},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"IT\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":null,\"zip\":\"123\",\"state\":\"CA\",\"first_name\":\"John\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":null,\"email\":\"random@example.com\"},\"auto_fulfill\":true,\"customer_id\":\"cus_X7urM1AQqvpECo6G5XkW\",\"customer\":{\"id\":\"cus_X7urM1AQqvpECo6G5XkW\",\"name\":\"Albert Klaassen\",\"email\":null,\"phone\":\"6168205362\",\"phone_country_code\":\"+1\"},\"client_secret\":\"payout_payout_lAUUuhWCoj1qVo9jwHeQ_secret_Bl8J3MXCywJd0j2EzzGk\",\"return_url\":null,\"business_country\":null,\"business_label\":null,\"description\":\"Its my first payout request\",\"entity_type\":\"Individual\",\"recurring\":true,\"metadata\":{\"ref\":\"123\"},\"merchant_connector_id\":\"mca_m86KCMmTaeQ2mTtSgfRA\",\"status\":\"failed\",\"error_message\":\"Invalid transfer information provided\\nInvalid fields: [{\\\"name\\\":\\\"counterparty.cardHolder.address.postalCode\\\",\\\"value\\\":\\\"123\\\",\\\"message\\\":\\\"Not valid for IT. Allowed formats: NNNNN.\\\"}]\",\"error_code\":\"30_081\",\"profile_id\":\"pro_E9Z7dCKDd54NaVYCFFhF\",\"created\":\"2025-09-15T11:57:20.960Z\",\"connector_transaction_id\":null,\"priority\":null,\"payout_link\":null,\"email\":null,\"name\":\"Albert Klaassen\",\"phone\":\"6168205362\",\"phone_country_code\":\"+1\",\"unified_code\":\"UE_9000\",\"unified_message\":\"Something went wrong\",\"payout_method_id\":null}\r\n\r\ncURL (Invalid expiry)\r\n\r\n curl --location --request POST 'http://localhost:8080/payouts/create' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'api-key: dev_7fXFUFajfCYtS5aKrQXJMyIiBLr2gw3Y862wqkp6qXHpl88H0hQaEr89xAnvsxvp' \\\r\n --data-raw '{\"amount\":1,\"currency\":\"EUR\",\"profile_id\":\"pro_E9Z7dCKDd54NaVYCFFhF\",\"customer\":{\"id\":\"cus_X7urM1AQqvpECo6G5XkW\",\"name\":\"New Name\"},\"connector\":[\"adyenplatform\"],\"description\":\"Its my first payout request\",\"payout_type\":\"card\",\"payout_method_data\":{\"card\":{\"card_number\":\"4111111111111111\",\"expiry_month\":\"01\",\"expiry_year\":\"2024\",\"card_holder_name\":\"John Doe\"}},\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"CA\",\"country\":\"IT\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"email\":\"random@example.com\"},\"recurring\":true,\"metadata\":{\"ref\":\"123\"},\"confirm\":true,\"auto_fulfill\":true}'\r\n\r\nResponse\r\n\r\n {\"payout_id\":\"payout_ME3BMSySpDKtX5tsZI7S\",\"merchant_id\":\"merchant_1757926554\",\"merchant_order_reference_id\":null,\"amount\":1,\"currency\":\"EUR\",\"connector\":\"adyenplatform\",\"payout_type\":\"card\",\"payout_method_data\":{\"card\":{\"card_issuer\":\"JP Morgan\",\"card_network\":\"Visa\",\"card_type\":\"CREDIT\",\"card_issuing_country\":\"INDIA\",\"bank_code\":\"JP_JPM\",\"last4\":\"1111\",\"card_isin\":\"411111\",\"card_extended_bin\":null,\"card_exp_month\":\"01\",\"card_exp_year\":\"2024\",\"card_holder_name\":\"John Doe\"}},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"IT\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":null,\"zip\":null,\"state\":\"CA\",\"first_name\":\"John\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":null,\"email\":\"random@example.com\"},\"auto_fulfill\":true,\"customer_id\":\"cus_X7urM1AQqvpECo6G5XkW\",\"customer\":{\"id\":\"cus_X7urM1AQqvpECo6G5XkW\",\"name\":\"Albert Klaassen\",\"email\":null,\"phone\":\"6168205362\",\"phone_country_code\":\"+1\"},\"client_secret\":\"payout_payout_ME3BMSySpDKtX5tsZI7S_secret_T2I0yoRxYatQobkNfApR\",\"return_url\":null,\"business_country\":null,\"business_label\":null,\"description\":\"Its my first payout request\",\"entity_type\":\"Individual\",\"recurring\":true,\"metadata\":{\"ref\":\"123\"},\"merchant_connector_id\":\"mca_m86KCMmTaeQ2mTtSgfRA\",\"status\":\"failed\",\"error_message\":\"Invalid transfer information provided\\nInvalid fields: [{\\\"name\\\":\\\"counterparty.cardIdentification.expiryYear\\\",\\\"value\\\":\\\"2024\\\",\\\"message\\\":\\\"Expiry date must be in the future\\\"},{\\\"name\\\":\\\"counterparty.cardIdentification.expiryMonth\\\",\\\"value\\\":\\\"01\\\",\\\"message\\\":\\\"Expiry date must be in the future\\\"}]\",\"error_code\":\"30_081\",\"profile_id\":\"pro_E9Z7dCKDd54NaVYCFFhF\",\"created\":\"2025-09-15T11:58:19.648Z\",\"connector_transaction_id\":null,\"priority\":null,\"payout_link\":null,\"email\":null,\"name\":\"Albert Klaassen\",\"phone\":\"6168205362\",\"phone_country_code\":\"+1\",\"unified_code\":\"UE_9000\",\"unified_message\":\"Something went wrong\",\"payout_method_id\":null}\r\n\r\ncURL (Invalid state)\r\n\r\n curl --location --request POST 'http://localhost:8080/payouts/create' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'api-key: dev_7fXFUFajfCYtS5aKrQXJMyIiBLr2gw3Y862wqkp6qXHpl88H0hQaEr89xAnvsxvp' \\\r\n --data-raw '{\"amount\":1,\"currency\":\"EUR\",\"profile_id\":\"pro_E9Z7dCKDd54NaVYCFFhF\",\"customer\":{\"id\":\"cus_X7urM1AQqvpECo6G5XkW\",\"name\":\"New Name\"},\"connector\":[\"adyenplatform\"],\"description\":\"Its my first payout request\",\"payout_type\":\"card\",\"payout_method_data\":{\"card\":{\"card_number\":\"4111111111111111\",\"expiry_month\":\"03\",\"expiry_year\":\"2030\",\"card_holder_name\":\"John Doe\"}},\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"CA\",\"country\":\"AU\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"email\":\"random@example.com\"},\"recurring\":true,\"metadata\":{\"ref\":\"123\"},\"confirm\":true,\"auto_fulfill\":true}'\r\n\r\nResponse\r\n\r\n {\"payout_id\":\"payout_7s7zCL1wMqTmSk304LJg\",\"merchant_id\":\"merchant_1757926554\",\"merchant_order_reference_id\":null,\"amount\":1,\"currency\":\"EUR\",\"connector\":\"adyenplatform\",\"payout_type\":\"card\",\"payout_method_data\":{\"card\":{\"card_issuer\":\"JP Morgan\",\"card_network\":\"Visa\",\"card_type\":\"CREDIT\",\"card_issuing_country\":\"INDIA\",\"bank_code\":\"JP_JPM\",\"last4\":\"1111\",\"card_isin\":\"411111\",\"card_extended_bin\":null,\"card_exp_month\":\"03\",\"card_exp_year\":\"2030\",\"card_holder_name\":\"John Doe\"}},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"AU\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":null,\"zip\":null,\"state\":\"CA\",\"first_name\":\"John\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":null,\"email\":\"random@example.com\"},\"auto_fulfill\":true,\"customer_id\":\"cus_X7urM1AQqvpECo6G5XkW\",\"customer\":{\"id\":\"cus_X7urM1AQqvpECo6G5XkW\",\"name\":\"Albert Klaassen\",\"email\":null,\"phone\":\"6168205362\",\"phone_country_code\":\"+1\"},\"client_secret\":\"payout_payout_7s7zCL1wMqTmSk304LJg_secret_AlVXYS4afLwAvtoiuA12\",\"return_url\":null,\"business_country\":null,\"business_label\":null,\"description\":\"Its my first payout request\",\"entity_type\":\"Individual\",\"recurring\":true,\"metadata\":{\"ref\":\"123\"},\"merchant_connector_id\":\"mca_m86KCMmTaeQ2mTtSgfRA\",\"status\":\"failed\",\"error_message\":\"Invalid transfer information provided\\nInvalid fields: [{\\\"name\\\":\\\"counterparty.cardHolder.address.stateOrProvince\\\",\\\"value\\\":\\\"CA\\\",\\\"message\\\":\\\"Not valid for AU. Allowed values: [VIC, ACT, NSW, NT, TAS, QL... For full list visit documentation.\\\"}]\",\"error_code\":\"30_081\",\"profile_id\":\"pro_E9Z7dCKDd54NaVYCFFhF\",\"created\":\"2025-09-15T11:59:00.645Z\",\"connector_transaction_id\":null,\"priority\":null,\"payout_link\":null,\"email\":null,\"name\":\"Albert Klaassen\",\"phone\":\"6168205362\",\"phone_country_code\":\"+1\",\"unified_code\":\"UE_9000\",\"unified_message\":\"Something went wrong\",\"payout_method_id\":null}\r\n\r\n</details>\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible",
5
+ "author": "kashif-m",
6
+ "created_at": "2025-09-15T11:51:58+00:00",
7
+ "merged_at": "2025-09-18T14:31:52+00:00",
8
+ "base_branch": "main",
9
+ "labels": [],
10
+ "url": "https://github.com/juspay/hyperswitch/pull/9384",
11
+ "commits": [
12
+ {
13
+ "sha": "6e10bf57f50f76c40f3e3f722de4fcac173c3d4c",
14
+ "message": "fix(connector): [adyenplatform] update error mapping\nfix(payouts): remove mapping to PayoutFailed API response in case of failed payouts",
15
+ "author": "Kashif",
16
+ "date": "2025-09-15T11:45:49+00:00",
17
+ "url": "https://github.com/juspay/hyperswitch/commit/6e10bf57f50f76c40f3e3f722de4fcac173c3d4c"
18
+ },
19
+ {
20
+ "sha": "f977fcfde0467d891a9f61b5c8b22d99e3db936e",
21
+ "message": "Merge branch 'main' into 9383-bug-update-adyenplatforms-error-mapping-for-payout-failures",
22
+ "author": "Kashif",
23
+ "date": "2025-09-17T20:26:22+00:00",
24
+ "url": "https://github.com/juspay/hyperswitch/commit/f977fcfde0467d891a9f61b5c8b22d99e3db936e"
25
+ }
26
+ ]
27
+ }
prs/pr_9431.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 9431,
3
+ "title": "feat(nuvei): applepay decrypt at hyperswitch flow",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n\r\nAdd support for hyperswitch side decrypt flow for applepay in Nuvei\r\n\r\n- Hyperswitch can decrypt applepay token without involvement of connector if it has Apple pay processing certificate and private key.\r\n\r\n# how did i test\r\n\r\nPayment Request\r\n\r\n```json\r\n{\r\n \"amount\": 6500,\r\n \"currency\": \"USD\",\r\n \"email\": \"email4@gmail.com\",\r\n \"customer_id\": \"hello5\",\r\n \"capture_method\": \"automatic\",\r\n \"confirm\": true,\r\n \"return_url\": \"https://hyperswitch-demo-store.netlify.app/?isTestingMode=true&hyperswitchClientUrl=https://beta.hyperswitch.io/v1&hyperswitchCustomPodUri=&hyperswitchCustomBackendUrl=&publishableKey=pk_snd_e6c328fa58824247865647d532583e66&secretKey=snd_H0f0rZqfaXlv6kz81O6tQptd2e250u5vlFsA1L50ogMglapamZmDzJ7qRlj4mNlM&profileId=pro_PxNHqEwbZM6rbIfgClSg&environment=Sandbox\",\r\n \"billing\": {\r\n \"address\": {\r\n \"zip\": \"560095\",\r\n \"country\": \"US\",\r\n \"first_name\": \"Sakil\",\r\n \"last_name\": \"Mostak\",\r\n \"line1\": \"Fasdf\",\r\n \"line2\": \"Fasdf\",\r\n \"city\": \"Fasdf\"\r\n }\r\n },\r\n \"payment_method_data\": {\r\n \"wallet\": {\r\n \"apple_pay\": {\r\n \"payment_data\": \"eyJkYXRhIjoiSWRNbUFu***************d****************2NDQ5NDlmMWUxNGZiYmM4NTdiNjk5N2NkYWJlMzczZGEyOTI3ZmU5NzcifSwidmVyc2lvbiI6IkVDX3YxIn0=\",\r\n \"payment_method\": {\r\n \"display_name\": \"Visa 0492\",\r\n \"network\": \"Visa\",\r\n \"type\": \"debit\"\r\n },\r\n \"transaction_identifier\": \"85ea39d59610a6860eb723644949f1e14fbbc857b6997cdabe373da2927fe977\"\r\n }\r\n }\r\n },\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"apple_pay\",\r\n \"connector\": [\r\n \"nuvei\"\r\n ],\r\n \"browser_info\": {\r\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15\",\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"language\": \"en-US\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 1117,\r\n \"screen_width\": 1728,\r\n \"ip_address\": \"192.168.1.1\",\r\n \"time_zone\": -330,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"device_model\": \"Macintosh\",\r\n \"os_type\": \"macOS\",\r\n \"os_version\": \"10.15.7\"\r\n },\r\n \"payment_type\": \"normal\"\r\n}\r\n```\r\n\r\n## Response\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_7wu0YSHTd8LFDE8KD2UN\",\r\n \"merchant_id\": \"merchant_1758115709\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 6500,\r\n \"net_amount\": 6500,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 6500,\r\n \"connector\": \"nuvei\",\r\n \"client_secret\": \"pay_7wu0YSHTd8LFDE8KD2UN_secret_kIWxoLIlS4kexcOCmHz1\",\r\n \"created\": \"2025-09-18T07:35:21.765Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"hello5\",\r\n \"customer\": {\r\n \"id\": \"hello5\",\r\n \"name\": null,\r\n \"email\": \"email4@gmail.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"description\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_data\": {\r\n \"wallet\": {\r\n \"apple_pay\": {\r\n \"last4\": \"0492\",\r\n \"card_network\": \"Visa\",\r\n \"type\": \"debit\"\r\n }\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"Fasdf\",\r\n \"country\": \"US\",\r\n \"line1\": \"Fasdf\",\r\n \"line2\": \"Fasdf\",\r\n \"line3\": null,\r\n \"zip\": \"560095\",\r\n \"state\": null,\r\n \"first_name\": \"Sakil\",\r\n \"last_name\": \"Mostak\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"email4@gmail.com\",\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": \"https://hyperswitch-demo-store.netlify.app/?isTestingMode=true&hyperswitchClientUrl=https://beta.hyperswitch.io/v1&hyperswitchCustomPodUri=&hyperswitchCustomBackendUrl=&publishableKey=pk_snd_e6c328fa58824247865647d532583e66&secretKey=snd_H0f0rZqfaXlv6kz81O6tQptd2e250u5vlFsA1L50ogMglapamZmDzJ7qRlj4mNlM&profileId=pro_PxNHqEwbZM6rbIfgClSg&environment=Sandbox\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"apple_pay\",\r\n \"connector_label\": null,\r\n \"business_country\": null,\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"hello5\",\r\n \"created_at\": 1758180921,\r\n \"expires\": 1758184521,\r\n \"secret\": \"epk_228ed6b0222a461b9497d73df63c5e11\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"7110000000017082220\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": \"8937234111\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_G0scDt6GAZBxs3brIkts\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_4ioDaxsfaPf9R3aZCrE6\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": null,\r\n \"external_3ds_authentication_attempted\": false,\r\n \"expires_on\": \"2025-09-18T07:50:21.765Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"os_type\": \"macOS\",\r\n \"language\": \"en-US\",\r\n \"time_zone\": -330,\r\n \"ip_address\": \"192.168.1.1\",\r\n \"os_version\": \"10.15.7\",\r\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15\",\r\n \"color_depth\": 24,\r\n \"device_model\": \"Macintosh\",\r\n \"java_enabled\": true,\r\n \"screen_width\": 1728,\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"screen_height\": 1117,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": \"\",\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-09-18T07:35:25.366Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": null,\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null\r\n}\r\n```\r\n\r\n<img width=\"1478\" height=\"714\" alt=\"Screenshot 2025-09-18 at 1 24 08\u202fPM\" src=\"https://github.com/user-attachments/assets/2711bf06-f543-40bd-bd08-159920b60be3\" />\r\n\r\n## Similarly for manual capture\r\n\r\n<img width=\"1531\" height=\"861\" alt=\"Screenshot 2025-09-18 at 1 25 41\u202fPM\" src=\"https://github.com/user-attachments/assets/4984713a-8837-4d8a-9783-37cefedb17d7\" />\r\n\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "Nithin1506200",
6
+ "created_at": "2025-09-18T07:15:54+00:00",
7
+ "merged_at": "2025-09-19T12:22:52+00:00",
8
+ "base_branch": "main",
9
+ "labels": [],
10
+ "url": "https://github.com/juspay/hyperswitch/pull/9431",
11
+ "commits": [
12
+ {
13
+ "sha": "387599a961b5e24b650e8b7e020d28d40e5f20f9",
14
+ "message": "feat(nuvei): applepay decrypt at hyperswitch flow",
15
+ "author": "nihtin",
16
+ "date": "2025-09-18T06:29:31+00:00",
17
+ "url": "https://github.com/juspay/hyperswitch/commit/387599a961b5e24b650e8b7e020d28d40e5f20f9"
18
+ },
19
+ {
20
+ "sha": "54f5c7feda4cde680e0ce728205a2e4aee12643c",
21
+ "message": "Update",
22
+ "author": "nihtin",
23
+ "date": "2025-09-18T07:15:37+00:00",
24
+ "url": "https://github.com/juspay/hyperswitch/commit/54f5c7feda4cde680e0ce728205a2e4aee12643c"
25
+ },
26
+ {
27
+ "sha": "034dd4e3a8063898f1fbe0bbcbf46ab92b806886",
28
+ "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into nuvei-applepay-decryptAtHypwh",
29
+ "author": "nihtin",
30
+ "date": "2025-09-18T09:15:09+00:00",
31
+ "url": "https://github.com/juspay/hyperswitch/commit/034dd4e3a8063898f1fbe0bbcbf46ab92b806886"
32
+ },
33
+ {
34
+ "sha": "196ab0b734c6d34fa17d88bd0edccf86049d898d",
35
+ "message": "update",
36
+ "author": "nihtin",
37
+ "date": "2025-09-18T10:55:18+00:00",
38
+ "url": "https://github.com/juspay/hyperswitch/commit/196ab0b734c6d34fa17d88bd0edccf86049d898d"
39
+ },
40
+ {
41
+ "sha": "778b2d57fc8ef08cf6881ed8f048f5a23e8ee981",
42
+ "message": "Merge branch 'main' into nuvei-applepay-decryptAtHypwh",
43
+ "author": "Nithin N",
44
+ "date": "2025-09-18T14:35:55+00:00",
45
+ "url": "https://github.com/juspay/hyperswitch/commit/778b2d57fc8ef08cf6881ed8f048f5a23e8ee981"
46
+ }
47
+ ]
48
+ }
prs/pr_9530.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 9530,
3
+ "title": "fix(webhooks): move webhook acknowledge config to cover early deserialization errors",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\nHotfix for https://github.com/juspay/hyperswitch/pull/9508\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "kashif-m",
6
+ "created_at": "2025-09-23T23:35:22+00:00",
7
+ "merged_at": "2025-09-24T05:41:00+00:00",
8
+ "base_branch": "hotfix-2025.09.17.0",
9
+ "labels": [],
10
+ "url": "https://github.com/juspay/hyperswitch/pull/9530",
11
+ "commits": [
12
+ {
13
+ "sha": "009408d4403d6492f4af5fb4a4bcbc85980d9e75",
14
+ "message": "fix(webhooks): move webhook acknowledge config to cover early deserialization errors (#9508)\n\n(cherry picked from commit 2a00e72269096df308c80a583736ab640383d0e3)",
15
+ "author": "Kashif",
16
+ "date": "2025-09-23T19:05:50+00:00",
17
+ "url": "https://github.com/juspay/hyperswitch/commit/009408d4403d6492f4af5fb4a4bcbc85980d9e75"
18
+ }
19
+ ]
20
+ }
prs/pr_9647.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 9647,
3
+ "title": "refactor(connector): fix wasm for Loonio",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\nfix wasm for Loonio\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "swangi-kumari",
6
+ "created_at": "2025-10-01T11:55:10+00:00",
7
+ "merged_at": "2025-10-01T13:42:36+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-connector-integration",
11
+ "C-feature"
12
+ ],
13
+ "url": "https://github.com/juspay/hyperswitch/pull/9647",
14
+ "commits": [
15
+ {
16
+ "sha": "f7965cb08e6eebed578b8e0e9d286c81839898a5",
17
+ "message": "refactor: wasm",
18
+ "author": "Swangi Kumari",
19
+ "date": "2025-10-01T11:54:34+00:00",
20
+ "url": "https://github.com/juspay/hyperswitch/commit/f7965cb08e6eebed578b8e0e9d286c81839898a5"
21
+ }
22
+ ]
23
+ }
prs/pr_9956.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 9956,
3
+ "title": "fix(connectors): [nuvei] chargeback webhooks",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nThe field type mentioned in the documentation and the actual field type appear to be different for Nuvei chargeback body. In this PR we are changing the field type according to the actual behavior observed in the production. And also enhance the type inference from the payload\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\nCan't be tested\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "AkshayaFoiger",
6
+ "created_at": "2025-10-22T13:51:19+00:00",
7
+ "merged_at": "2025-10-23T13:15:41+00:00",
8
+ "base_branch": "main",
9
+ "labels": [
10
+ "A-connector-integration",
11
+ "C-bug"
12
+ ],
13
+ "url": "https://github.com/juspay/hyperswitch/pull/9956",
14
+ "commits": [
15
+ {
16
+ "sha": "c77320bff3199012836cce5ee59ba9835aebfe60",
17
+ "message": "fix nuvei charge backs",
18
+ "author": "AkshayaFoiger",
19
+ "date": "2025-10-22T13:42:40+00:00",
20
+ "url": "https://github.com/juspay/hyperswitch/commit/c77320bff3199012836cce5ee59ba9835aebfe60"
21
+ },
22
+ {
23
+ "sha": "81c6adb789950d94cbfecd0585d086da410d2422",
24
+ "message": "chore: run formatter",
25
+ "author": "hyperswitch-bot[bot]",
26
+ "date": "2025-10-22T13:52:44+00:00",
27
+ "url": "https://github.com/juspay/hyperswitch/commit/81c6adb789950d94cbfecd0585d086da410d2422"
28
+ },
29
+ {
30
+ "sha": "5039b78aefb5c14d96c50bdc591e38647764edf2",
31
+ "message": "fix checks",
32
+ "author": "AkshayaFoiger",
33
+ "date": "2025-10-23T06:32:21+00:00",
34
+ "url": "https://github.com/juspay/hyperswitch/commit/5039b78aefb5c14d96c50bdc591e38647764edf2"
35
+ },
36
+ {
37
+ "sha": "a327f358b2dc21b11e9b11745f97fb82bec2cef1",
38
+ "message": "update the webhook type",
39
+ "author": "AkshayaFoiger",
40
+ "date": "2025-10-23T06:57:56+00:00",
41
+ "url": "https://github.com/juspay/hyperswitch/commit/a327f358b2dc21b11e9b11745f97fb82bec2cef1"
42
+ }
43
+ ]
44
+ }
prs/pr_9982.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "number": 9982,
3
+ "title": "fix(subscriptions): save both payment connector and billing connector customer id",
4
+ "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [X] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\nDuring the Create and Confirm Subscription flow, the Payment processor Customer id is not getting stored in the customer table. This PR fixes the issue\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n<details>\r\n<summary>1. Merchant Account - Create</summary>\r\n\r\nRequest\r\n```\r\ncurl --location 'http://localhost:8080/accounts' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'x-feature: router-custom' \\\r\n--header 'api-key: test_admin' \\\r\n--data '{\r\n \"merchant_id\": \"merchant_1761305816\",\r\n \"locker_id\": \"m0010\",\r\n \"merchant_name\": \"NewAge Retailer\",\r\n \"merchant_details\": {\r\n \"primary_contact_person\": \"John Test\",\r\n \"primary_email\": \"JohnTest@test.com\",\r\n \"primary_phone\": \"sunt laborum\",\r\n \"secondary_contact_person\": \"John Test2\",\r\n \"secondary_email\": \"JohnTest2@test.com\",\r\n \"secondary_phone\": \"cillum do dolor id\",\r\n \"website\": \"www.example.com\",\r\n \"about_business\": \"Online Retail with a wide selection of organic products for North America\",\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\"\r\n }\r\n },\r\n \"return_url\": \"https://google.com/success\",\r\n \"webhook_details\": {\r\n \"webhook_version\": \"1.0.1\",\r\n \"webhook_username\": \"ekart_retail\",\r\n \"webhook_password\": \"password_ekart@123\",\r\n \"payment_created_enabled\": true,\r\n \"payment_succeeded_enabled\": true,\r\n \"payment_failed_enabled\": true\r\n },\r\n \"sub_merchants_enabled\": false,\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\"\r\n },\r\n \"primary_business_details\": [\r\n {\r\n \"country\": \"US\",\r\n \"business\": \"default\"\r\n }\r\n ]\r\n}'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"merchant_id\": \"merchant_1761305816\",\r\n \"merchant_name\": \"NewAge Retailer\",\r\n \"return_url\": \"https://google.com/success\",\r\n \"enable_payment_response_hash\": true,\r\n \"payment_response_hash_key\": \"JcIdgGFLP7bd0uut7rh6Dz6fCcMg6LaE6GoEojnaSPWl0ptNawiozhGoNGsGFvWf\",\r\n \"redirect_to_merchant_with_http_post\": false,\r\n \"merchant_details\": {\r\n \"primary_contact_person\": \"John Test\",\r\n \"primary_phone\": \"sunt laborum\",\r\n \"primary_email\": \"JohnTest@test.com\",\r\n \"secondary_contact_person\": \"John Test2\",\r\n \"secondary_phone\": \"cillum do dolor id\",\r\n \"secondary_email\": \"JohnTest2@test.com\",\r\n \"website\": \"www.example.com\",\r\n \"about_business\": \"Online Retail with a wide selection of organic products for North America\",\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"origin_zip\": null\r\n },\r\n \"merchant_tax_registration_id\": null\r\n },\r\n \"webhook_details\": {\r\n \"webhook_version\": \"1.0.1\",\r\n \"webhook_username\": \"ekart_retail\",\r\n \"webhook_password\": \"password_ekart@123\",\r\n \"webhook_url\": null,\r\n \"payment_created_enabled\": true,\r\n \"payment_succeeded_enabled\": true,\r\n \"payment_failed_enabled\": true,\r\n \"payment_statuses_enabled\": null,\r\n \"refund_statuses_enabled\": null,\r\n \"payout_statuses_enabled\": null\r\n },\r\n \"payout_routing_algorithm\": null,\r\n \"sub_merchants_enabled\": false,\r\n \"parent_merchant_id\": null,\r\n \"publishable_key\": \"pk_dev_5f0563b795624b5285c24658808bcff3\",\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\",\r\n \"compatible_connector\": null\r\n },\r\n \"locker_id\": \"m0010\",\r\n \"primary_business_details\": [\r\n {\r\n \"country\": \"US\",\r\n \"business\": \"default\"\r\n }\r\n ],\r\n \"frm_routing_algorithm\": null,\r\n \"organization_id\": \"org_A4Nw5IYKwE5s07rKOxJD\",\r\n \"is_recon_enabled\": false,\r\n \"default_profile\": \"pro_c8LLIFoQaP54zod9aEJI\",\r\n \"recon_status\": \"not_requested\",\r\n \"pm_collect_link_config\": null,\r\n \"product_type\": \"orchestration\",\r\n \"merchant_account_type\": \"standard\"\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>2. API Key - Create</summary>\r\n\r\nRequest\r\n```\r\ncurl --location 'http://localhost:8080/api_keys/merchant_1761305816' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data '{\r\n \"name\": \"API Key 1\",\r\n \"description\": null,\r\n \"expiration\": \"2038-01-19T03:14:08.000Z\"\r\n}'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"key_id\": \"dev_3cIcQR7Z25AsbUa66nAJ\",\r\n \"merchant_id\": \"merchant_1761305816\",\r\n \"name\": \"API Key 1\",\r\n \"description\": null,\r\n \"api_key\": \"dev_k2DlyvdJ9KFvWmftTqZ7HOWkkhBLOXmwr7aQWVcFUaOvkQw5YiRh7LC1lJAkUUWe\",\r\n \"created\": \"2025-10-24T11:36:57.315Z\",\r\n \"expiration\": \"2038-01-19T03:14:08.000Z\"\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>3. Payment Connector - Stripe</summary>\r\n\r\nRequest\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1761305816/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'x-feature: router-custom-dbd' \\\r\n--header 'x-tenant-id: public' \\\r\n--header 'api-key: dev_k2DlyvdJ9KFvWmftTqZ7HOWkkhBLOXmwr7aQWVcFUaOvkQw5YiRh7LC1lJAkUUWe' \\\r\n--data '{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"stripe\",\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"connector_label\": \"first_stripe\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"HeaderKey\",\r\n \"api_key\": \"\"\r\n },\r\n \"test_mode\": false,\r\n \"disabled\": false,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"klarna\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"affirm\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"afterpay_clearpay\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\"\r\n }\r\n}'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"stripe\",\r\n \"connector_label\": \"first_stripe\",\r\n \"merchant_connector_id\": \"mca_z2BxFLB7Xf85nLS40OYs\",\r\n \"profile_id\": \"pro_c8LLIFoQaP54zod9aEJI\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"HeaderKey\",\r\n \"api_key\": \"sk*******************************************************************************************************hm\"\r\n },\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"klarna\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"affirm\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"afterpay_clearpay\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"card_networks\": null,\r\n \"accepted_currencies\": null,\r\n \"accepted_countries\": null,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"connector_webhook_details\": null,\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\"\r\n },\r\n \"test_mode\": false,\r\n \"disabled\": false,\r\n \"frm_configs\": null,\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"applepay_verified_domains\": null,\r\n \"pm_auth_config\": null,\r\n \"status\": \"active\",\r\n \"additional_merchant_data\": null,\r\n \"connector_wallets_details\": null\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>4. Billing Connector - Create</summary>\r\n\r\nRequest\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1761305816/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'X-profile-id: pro_c8LLIFoQaP54zod9aEJI' \\\r\n--header 'api-key: dev_k2DlyvdJ9KFvWmftTqZ7HOWkkhBLOXmwr7aQWVcFUaOvkQw5YiRh7LC1lJAkUUWe' \\\r\n--data '{\r\n \"connector_type\": \"billing_processor\",\r\n \"connector_name\": \"chargebee\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"HeaderKey\",\r\n \"api_key\": \"\",\r\n \"site\": \"\"\r\n },\r\n \"profile_id\": \"pro_c8LLIFoQaP54zod9aEJI\",\r\n \r\n \r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"hyperswitch\", \r\n \"additional_secret\": \"hyperswitch\" \r\n },\r\n \"metadata\": {\r\n \"site\": \"juspay-hyperswitch-subs-test\"\r\n }\r\n}'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"connector_type\": \"billing_processor\",\r\n \"connector_name\": \"chargebee\",\r\n \"connector_label\": \"chargebee_US_default\",\r\n \"merchant_connector_id\": \"mca_10lJRvGKndyjNAaKRV0W\",\r\n \"profile_id\": \"pro_c8LLIFoQaP54zod9aEJI\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"HeaderKey\",\r\n \"api_key\": \"te**********************************ws\"\r\n },\r\n \"payment_methods_enabled\": null,\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"hyperswitch\",\r\n \"additional_secret\": \"hyperswitch\"\r\n },\r\n \"metadata\": {\r\n \"site\": \"juspay-hyperswitch-subs-test\"\r\n },\r\n \"test_mode\": null,\r\n \"disabled\": false,\r\n \"frm_configs\": null,\r\n \"business_country\": null,\r\n \"business_label\": null,\r\n \"business_sub_label\": null,\r\n \"applepay_verified_domains\": null,\r\n \"pm_auth_config\": null,\r\n \"status\": \"active\",\r\n \"additional_merchant_data\": null,\r\n \"connector_wallets_details\": null\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>5. Billing processor Config</summary>\r\n\r\nRequest\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1761305816/business_profile/pro_c8LLIFoQaP54zod9aEJI' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: dev_k2DlyvdJ9KFvWmftTqZ7HOWkkhBLOXmwr7aQWVcFUaOvkQw5YiRh7LC1lJAkUUWe' \\\r\n--header 'Accept: */*' \\\r\n--data '{\r\n \"billing_processor_id\": \"mca_10lJRvGKndyjNAaKRV0W\"\r\n}'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"merchant_id\": \"merchant_1761305816\",\r\n \"profile_id\": \"pro_c8LLIFoQaP54zod9aEJI\",\r\n \"profile_name\": \"US_default\",\r\n \"return_url\": \"https://google.com/success\",\r\n \"enable_payment_response_hash\": true,\r\n \"payment_response_hash_key\": \"JcIdgGFLP7bd0uut7rh6Dz6fCcMg6LaE6GoEojnaSPWl0ptNawiozhGoNGsGFvWf\",\r\n \"redirect_to_merchant_with_http_post\": false,\r\n \"webhook_details\": {\r\n \"webhook_version\": \"1.0.1\",\r\n \"webhook_username\": \"ekart_retail\",\r\n \"webhook_password\": \"password_ekart@123\",\r\n \"webhook_url\": null,\r\n \"payment_created_enabled\": true,\r\n \"payment_succeeded_enabled\": true,\r\n \"payment_failed_enabled\": true,\r\n \"payment_statuses_enabled\": null,\r\n \"refund_statuses_enabled\": null,\r\n \"payout_statuses_enabled\": null\r\n },\r\n \"metadata\": null,\r\n \"routing_algorithm\": null,\r\n \"intent_fulfillment_time\": 900,\r\n \"frm_routing_algorithm\": null,\r\n \"payout_routing_algorithm\": null,\r\n \"applepay_verified_domains\": null,\r\n \"session_expiry\": 900,\r\n \"payment_link_config\": null,\r\n \"authentication_connector_details\": null,\r\n \"use_billing_as_payment_method_billing\": true,\r\n \"extended_card_info_config\": null,\r\n \"collect_shipping_details_from_wallet_connector\": false,\r\n \"collect_billing_details_from_wallet_connector\": false,\r\n \"always_collect_shipping_details_from_wallet_connector\": false,\r\n \"always_collect_billing_details_from_wallet_connector\": false,\r\n \"is_connector_agnostic_mit_enabled\": false,\r\n \"payout_link_config\": null,\r\n \"outgoing_webhook_custom_http_headers\": null,\r\n \"tax_connector_id\": null,\r\n \"is_tax_connector_enabled\": false,\r\n \"is_network_tokenization_enabled\": false,\r\n \"is_auto_retries_enabled\": false,\r\n \"max_auto_retries_enabled\": null,\r\n \"always_request_extended_authorization\": null,\r\n \"is_click_to_pay_enabled\": false,\r\n \"authentication_product_ids\": null,\r\n \"card_testing_guard_config\": {\r\n \"card_ip_blocking_status\": \"disabled\",\r\n \"card_ip_blocking_threshold\": 3,\r\n \"guest_user_card_blocking_status\": \"disabled\",\r\n \"guest_user_card_blocking_threshold\": 10,\r\n \"customer_id_blocking_status\": \"disabled\",\r\n \"customer_id_blocking_threshold\": 5,\r\n \"card_testing_guard_expiry\": 3600\r\n },\r\n \"is_clear_pan_retries_enabled\": false,\r\n \"force_3ds_challenge\": false,\r\n \"is_debit_routing_enabled\": false,\r\n \"merchant_business_country\": null,\r\n \"is_pre_network_tokenization_enabled\": false,\r\n \"acquirer_configs\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"merchant_category_code\": null,\r\n \"merchant_country_code\": null,\r\n \"dispute_polling_interval\": null,\r\n \"is_manual_retry_enabled\": null,\r\n \"always_enable_overcapture\": null,\r\n \"is_external_vault_enabled\": \"skip\",\r\n \"external_vault_connector_details\": null,\r\n \"billing_processor_id\": \"mca_10lJRvGKndyjNAaKRV0W\",\r\n \"is_l2_l3_enabled\": false\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>6. Create customer</summary>\r\n\r\nRequest\r\n```\r\ncurl --location 'http://localhost:8080/customers' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'X-tenant-id: public' \\\r\n--header 'api-key: dev_k2DlyvdJ9KFvWmftTqZ7HOWkkhBLOXmwr7aQWVcFUaOvkQw5YiRh7LC1lJAkUUWe' \\\r\n--data '{\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"First customer\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"IN\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"123456789\",\r\n \"country_code\": \"+1\"\r\n }\r\n }\r\n}'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"customer_id\": \"cus_CHpAApspcz6zSSReXyg3\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"First customer\",\r\n \"address\": null,\r\n \"created_at\": \"2025-10-24T11:37:03.766Z\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \"default_payment_method_id\": null,\r\n \"tax_registration_id\": null\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>7. Subscription create</summary>\r\n\r\nRequest\r\n```\r\ncurl --location 'http://localhost:8080/subscriptions/create' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'X-Profile-Id: pro_c8LLIFoQaP54zod9aEJI' \\\r\n--header 'api-key: dev_k2DlyvdJ9KFvWmftTqZ7HOWkkhBLOXmwr7aQWVcFUaOvkQw5YiRh7LC1lJAkUUWe' \\\r\n--header 'Accept: */*' \\\r\n--data '{\r\n \"customer_id\": \"cus_CHpAApspcz6zSSReXyg3\",\r\n \"item_price_id\": \"standard-plan-USD-Monthly\",\r\n \"amount\": 1200,\r\n \"currency\": \"USD\",\r\n \"payment_details\": {\r\n \"authentication_type\": \"no_three_ds\",\r\n \"setup_future_usage\": \"off_session\",\r\n \"capture_method\": \"automatic\",\r\n \"return_url\": \"https://google.com\"\r\n }\r\n}'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"id\": \"sub_ZYssAPs4bgFFQ7EenMQ2\",\r\n \"merchant_reference_id\": null,\r\n \"status\": \"created\",\r\n \"plan_id\": null,\r\n \"item_price_id\": \"standard-plan-USD-Monthly\",\r\n \"profile_id\": \"pro_c8LLIFoQaP54zod9aEJI\",\r\n \"client_secret\": \"sub_ZYssAPs4bgFFQ7EenMQ2_secret_qYvd7MG4KdQC20zOnq62\",\r\n \"merchant_id\": \"merchant_1761305816\",\r\n \"coupon_code\": null,\r\n \"customer_id\": \"cus_CHpAApspcz6zSSReXyg3\",\r\n \"payment\": {\r\n \"payment_id\": \"pay_2vw9gQQpT7RAURKJtmyV\",\r\n \"status\": \"requires_payment_method\",\r\n \"amount\": 1200,\r\n \"currency\": \"USD\",\r\n \"profile_id\": \"pro_c8LLIFoQaP54zod9aEJI\",\r\n \"connector\": null,\r\n \"payment_method_id\": null,\r\n \"return_url\": \"https://google.com/\",\r\n \"next_action\": null,\r\n \"payment_experience\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"payment_method_type\": null,\r\n \"client_secret\": \"pay_2vw9gQQpT7RAURKJtmyV_secret_w38Hf03YA01KRvdStKLu\",\r\n \"billing\": null,\r\n \"shipping\": null,\r\n \"payment_type\": null\r\n },\r\n \"invoice\": {\r\n \"id\": \"invoice_HnBJtVTRBqhJuu5RyiWB\",\r\n \"subscription_id\": \"sub_ZYssAPs4bgFFQ7EenMQ2\",\r\n \"merchant_id\": \"merchant_1761305816\",\r\n \"profile_id\": \"pro_c8LLIFoQaP54zod9aEJI\",\r\n \"merchant_connector_id\": \"mca_10lJRvGKndyjNAaKRV0W\",\r\n \"payment_intent_id\": \"pay_2vw9gQQpT7RAURKJtmyV\",\r\n \"payment_method_id\": null,\r\n \"customer_id\": \"cus_CHpAApspcz6zSSReXyg3\",\r\n \"amount\": 1200,\r\n \"currency\": \"USD\",\r\n \"status\": \"invoice_created\"\r\n }\r\n}\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>8. Subscription confirm</summary>\r\n\r\nRequest\r\n```\r\ncurl --location 'http://localhost:8080/subscriptions/sub_ZYssAPs4bgFFQ7EenMQ2/confirm' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'X-Profile-Id: pro_c8LLIFoQaP54zod9aEJI' \\\r\n--header 'api-key: dev_k2DlyvdJ9KFvWmftTqZ7HOWkkhBLOXmwr7aQWVcFUaOvkQw5YiRh7LC1lJAkUUWe' \\\r\n--data '{\r\n \"payment_details\": {\r\n \"shipping\": {\r\n \"address\": {\r\n \"state\": \"zsaasdas\",\r\n \"city\": \"Banglore\",\r\n \"country\": \"US\",\r\n \"line1\": \"sdsdfsdf\",\r\n \"line2\": \"hsgdbhd\",\r\n \"line3\": \"alsksoe\",\r\n \"zip\": \"571201\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"123456789\",\r\n \"country_code\": \"+1\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"123456789\",\r\n \"country_code\": \"+1\"\r\n }\r\n },\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4111111111111111\",\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": \"CLBRW dffdg\",\r\n \"card_cvc\": \"737\"\r\n }\r\n },\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"online\",\r\n \"accepted_at\": \"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\": \"127.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n }\r\n }\r\n}'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"id\": \"sub_ZYssAPs4bgFFQ7EenMQ2\",\r\n \"merchant_reference_id\": null,\r\n \"status\": \"active\",\r\n \"plan_id\": null,\r\n \"item_price_id\": \"standard-plan-USD-Monthly\",\r\n \"coupon\": null,\r\n \"profile_id\": \"pro_c8LLIFoQaP54zod9aEJI\",\r\n \"payment\": {\r\n \"payment_id\": \"pay_2vw9gQQpT7RAURKJtmyV\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1200,\r\n \"currency\": \"USD\",\r\n \"profile_id\": \"pro_c8LLIFoQaP54zod9aEJI\",\r\n \"connector\": \"stripe\",\r\n \"payment_method_id\": \"pm_lIeXZRajxISttVsHLzFw\",\r\n \"return_url\": \"https://google.com/\",\r\n \"next_action\": null,\r\n \"payment_experience\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"client_secret\": \"pay_2vw9gQQpT7RAURKJtmyV_secret_w38Hf03YA01KRvdStKLu\",\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"123456789\",\r\n \"country_code\": \"+1\"\r\n },\r\n \"email\": null\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"Banglore\",\r\n \"country\": \"US\",\r\n \"line1\": \"sdsdfsdf\",\r\n \"line2\": \"hsgdbhd\",\r\n \"line3\": \"alsksoe\",\r\n \"zip\": \"571201\",\r\n \"state\": \"zsaasdas\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"123456789\",\r\n \"country_code\": \"+1\"\r\n },\r\n \"email\": null\r\n },\r\n \"payment_type\": null\r\n },\r\n \"customer_id\": \"cus_CHpAApspcz6zSSReXyg3\",\r\n \"invoice\": {\r\n \"id\": \"invoice_HnBJtVTRBqhJuu5RyiWB\",\r\n \"subscription_id\": \"sub_ZYssAPs4bgFFQ7EenMQ2\",\r\n \"merchant_id\": \"merchant_1761305816\",\r\n \"profile_id\": \"pro_c8LLIFoQaP54zod9aEJI\",\r\n \"merchant_connector_id\": \"mca_10lJRvGKndyjNAaKRV0W\",\r\n \"payment_intent_id\": \"pay_2vw9gQQpT7RAURKJtmyV\",\r\n \"payment_method_id\": \"pm_lIeXZRajxISttVsHLzFw\",\r\n \"customer_id\": \"cus_CHpAApspcz6zSSReXyg3\",\r\n \"amount\": 1200,\r\n \"currency\": \"USD\",\r\n \"status\": \"payment_pending\"\r\n },\r\n \"billing_processor_subscription_id\": \"sub_ZYssAPs4bgFFQ7EenMQ2\"\r\n}\r\n```\r\n</details>\r\n<img width=\"791\" height=\"207\" alt=\"Screenshot 2025-10-24 at 5 21 02\u202fPM\" src=\"https://github.com/user-attachments/assets/c8594b59-0629-426e-bdc1-b782d7e8c450\" />\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
5
+ "author": "jagan-jaya",
6
+ "created_at": "2025-10-24T11:50:24+00:00",
7
+ "merged_at": "2025-10-27T07:02:32+00:00",
8
+ "base_branch": "main",
9
+ "labels": [],
10
+ "url": "https://github.com/juspay/hyperswitch/pull/9982",
11
+ "commits": [
12
+ {
13
+ "sha": "06dc8cddbe7bd87c3309edfcd0dd59e3ee57d580",
14
+ "message": "fix(subscriptions): save both payment connector and billing connector customer id",
15
+ "author": "Jagan Elavarasan",
16
+ "date": "2025-10-24T11:48:27+00:00",
17
+ "url": "https://github.com/juspay/hyperswitch/commit/06dc8cddbe7bd87c3309edfcd0dd59e3ee57d580"
18
+ }
19
+ ]
20
+ }