diff --git a/prs/pr_10026.json b/prs/pr_10026.json new file mode 100644 index 0000000000000000000000000000000000000000..6ebff0da0e0700d374c00728792e2eb896424691 --- /dev/null +++ b/prs/pr_10026.json @@ -0,0 +1,71 @@ +{ + "number": 10026, + "title": "fix(connectors): [authorizedotnet] handle psync server maintenance error and pass complete billing address ", + "description": "## Type of Change\r\n\r\n\r\n- [x] Bugfix\r\n- [ ] New feature\r\n- [x] Enhancement\r\n- [x] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n\r\nWhenever, Authorize.net returns Psync failures due to server maintenance with a 2xx response, we are currently marking the payment as a failure. With this Pr, we will be marking, \"server maintenance\" error previous status of the transaction than failing it. \r\nIn this PR we have added the logic to concatenate the address lines and pass it to the authorizedotnet\r\n\r\n\r\n## How did you test it?\r\n\r\n
\r\nCreate a payment with line1, line2 and line 3 all combined below 60 characters \r\n\r\n```sh\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_xTQqWAGqZz3RhT7MWEhWbvN2UM9lXQPRjCp6krp5wv9ucwWqRhwZIQuJJNUsbKNl' \\\r\n--data-raw '{\r\n \"amount\": 1230,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"manual\",\r\n \"email\": \"hello@123.com\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"371449635398431\",\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\r\n \r\n \"card_cvc\": \"7373\"\r\n \r\n }\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\": \"13.232.74.226\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"zip\": \"46282\",\r\n \"country\": \"US\",\r\n \"state\": \"TX\",\r\n \"first_name\": \"Ellen\",\r\n \"last_name\": \"Johnson\",\r\n \"line1\": \"14\",\r\n \"line2\": \"Main\",\r\n \"line3\": \"Street\",\r\n \"city\": \"Pecan Springs\"\r\n }\r\n }\r\n}'\r\n```\r\n\r\nResponse\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_c1stG7hibHkft893tauW\",\r\n \"merchant_id\": \"postman_merchant_GHAction_d5564272-e957-4cc7-931a-9290c88c2821\",\r\n \"status\": \"requires_capture\",\r\n \"amount\": 1230,\r\n \"net_amount\": 1230,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 1230,\r\n \"amount_received\": null,\r\n \"connector\": \"authorizedotnet\",\r\n \"client_secret\": \"pay_c1stG7hibHkft893tauW_secret_ZMdc1CtNmy3KIYAzgtSu\",\r\n \"created\": \"2025-10-30T08:57:52.479Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"George_17\",\r\n \"customer\": {\r\n \"id\": \"George_17\",\r\n \"name\": \"Akshaya\",\r\n \"email\": \"hello@123.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\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"8431\",\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\": \"371449\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\r\n \"card_holder_name\": null,\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\": \"Pecan Springs\",\r\n \"country\": \"US\",\r\n \"line1\": \"14\",\r\n \"line2\": \"Main\",\r\n \"line3\": \"Street\",\r\n \"zip\": \"46282\",\r\n \"state\": \"TX\",\r\n \"first_name\": \"Ellen\",\r\n \"last_name\": \"Johnson\",\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@123.com\",\r\n \"name\": \"Akshaya\",\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\": \"George_17\",\r\n \"created_at\": 1761814672,\r\n \"expires\": 1761818272,\r\n \"secret\": \"epk_756d7ab3f74f43448c032fe94897bba3\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"0\",\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\": \"0\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_NiBKKMJPjFmdweybKENi\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_v9ggBM85ViFvzkpRqLWa\",\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-10-30T09:12:52.479Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"13.232.74.226\",\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_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-10-30T08:57:54.914Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": 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 \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\nCheck authorizedotnet dashboard if line 1, line 2 and line3 are visible in the billing data\r\n\r\n\"Screenshot\r\n\r\n\r\n
\r\n\r\n\r\n
\r\nCreate a payment with line1, line2 and line 3 all combined more than 60 characters \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_xTQqWAGqZz3RhT7MWEhWbvN2UM9lXQPRjCp6krp5wv9ucwWqRhwZIQuJJNUsbKNl' \\\r\n--data-raw '{\r\n \"amount\": 1230,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"manual\",\r\n \"email\": \"hello@123.com\",\r\n \"customer\": {\r\n \"id\": \"George_17\",\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\": \"371449635398431\",\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\r\n \r\n \"card_cvc\": \"7373\"\r\n \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\": \"13.232.74.226\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"zip\": \"560095\",\r\n \"country\": \"CA\",\r\n \"state\": \"ab\",\r\n \"first_name\": \"Sakil\",\r\n \"last_name\": \"Mostak\",\r\n \"line1\": \"1 St\",\r\n \"line2\": \"hall\",\r\n \"line3\": \"Mounteurhgjkerbgjhvbwsvfewgjdjwwkedwegsdvfsdvkjdfkvjsndjfbks\",\r\n \"city\": \"SA\"\r\n }\r\n }\r\n}'\r\n```\r\n\r\nResponse\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_96tIpfH5QppZCMSxiheU\",\r\n \"merchant_id\": \"postman_merchant_GHAction_d5564272-e957-4cc7-931a-9290c88c2821\",\r\n \"status\": \"requires_capture\",\r\n \"amount\": 1230,\r\n \"net_amount\": 1230,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 1230,\r\n \"amount_received\": null,\r\n \"connector\": \"authorizedotnet\",\r\n \"client_secret\": \"pay_96tIpfH5QppZCMSxiheU_secret_0JuNi2bgq0VlyGi8N5Op\",\r\n \"created\": \"2025-10-30T09:04:03.163Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"George_17\",\r\n \"customer\": {\r\n \"id\": \"George_17\",\r\n \"name\": \"Akshaya\",\r\n \"email\": \"hello@123.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\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"8431\",\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\": \"371449\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\r\n \"card_holder_name\": null,\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\": \"SA\",\r\n \"country\": \"CA\",\r\n \"line1\": \"1 St\",\r\n \"line2\": \"hall\",\r\n \"line3\": \"Mounteurhgjkerbgjhvbwsvfewgjdjwwkedwegsdvfsdvkjdfkvjsndjfbks\",\r\n \"zip\": \"560095\",\r\n \"state\": \"ab\",\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@123.com\",\r\n \"name\": \"Akshaya\",\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\": \"George_17\",\r\n \"created_at\": 1761815043,\r\n \"expires\": 1761818643,\r\n \"secret\": \"epk_960956da7f1f4a66b9878d924c04d3d4\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"0\",\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\": \"0\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_NiBKKMJPjFmdweybKENi\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_v9ggBM85ViFvzkpRqLWa\",\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-10-30T09:19:03.163Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"13.232.74.226\",\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_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-10-30T09:04:03.820Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": 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 \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\nCheck authorizedotnet dashboard if line 1 and line 2 are visible in the billing data\r\n\r\n
\r\n
\r\nCreate a 3ds payment: throws a not supported error\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_1m5uRZN5oO6t626XBKloUY8zZZGnyqFpEzN3nhMJrClxUl5XJ1C7s9iKBVRz9S40' \\\r\n--data-raw '{\r\n \"amount\": 1230,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"email\": \"hello@123.com\",\r\n \"authentication_type\": \"three_ds\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"370000000000002\",\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"29\",\r\n \r\n \"card_cvc\": \"1234\"\r\n }\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\": \"13.232.74.226\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"zip\": \"46282\",\r\n \"country\": \"US\",\r\n \"state\": \"TX\",\r\n \"first_name\": \"Ellen\",\r\n \"last_name\": \"Johnson\",\r\n \"line1\": \"14\",\r\n \"line2\": \"Main\",\r\n \"line3\": \"Street\",\r\n \"city\": \"Pecan Springs\"\r\n }\r\n }\r\n}'\r\n```\r\nResponse\r\n\r\n```\r\n{\r\n \"error\": {\r\n \"type\": \"invalid_request\",\r\n \"message\": \"Payment method type not supported\",\r\n \"code\": \"IR_19\",\r\n \"reason\": \"3DS flow is not supported by Authorizedotnet\"\r\n }\r\n}\r\n```\r\n
\r\n\r\nCypress ran before the changes before the changes \r\n \"Screenshot\r\n\r\nCypress ran after the changes before the changes \r\n\r\n\"Screenshot\r\n\r\n\r\n## Checklist\r\n\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", + "author": "AkshayaFoiger", + "created_at": "2025-10-28T10:25:44+00:00", + "merged_at": "2025-10-31T08:17:51+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration" + ], + "url": "https://github.com/juspay/hyperswitch/pull/10026", + "commits": [ + { + "sha": "09910f287130155590718d99792e5a8e81f57d4d", + "message": "fix minimum authorizedotnet", + "author": "AkshayaFoiger", + "date": "2025-10-28T10:21:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/09910f287130155590718d99792e5a8e81f57d4d" + }, + { + "sha": "30a176d8bb71a4096200ab91a115fc2b1f54cc8c", + "message": "add address line fix", + "author": "AkshayaFoiger", + "date": "2025-10-30T06:28:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/30a176d8bb71a4096200ab91a115fc2b1f54cc8c" + }, + { + "sha": "d89420ef39abc7872c2ab21f262d3d7478bfdaf1", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-10-30T06:29:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d89420ef39abc7872c2ab21f262d3d7478bfdaf1" + }, + { + "sha": "88a85c467ed24123925417a78e4978f10036c726", + "message": "fix clippy", + "author": "AkshayaFoiger", + "date": "2025-10-30T06:48:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/88a85c467ed24123925417a78e4978f10036c726" + }, + { + "sha": "49a30d1fc7cdd1070c560d8390f289d53dab51b8", + "message": "Only fix the \"Server in maintenance\" error", + "author": "AkshayaFoiger", + "date": "2025-10-30T09:09:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/49a30d1fc7cdd1070c560d8390f289d53dab51b8" + }, + { + "sha": "73bba0483281d7c5491704c6881b4d57c850bdc0", + "message": "remove comment", + "author": "AkshayaFoiger", + "date": "2025-10-30T09:11:24+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/73bba0483281d7c5491704c6881b4d57c850bdc0" + }, + { + "sha": "997133bc11343dafbf1d4dfb40bb2b05b743484c", + "message": "undo psync change", + "author": "AkshayaFoiger", + "date": "2025-10-30T09:12:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/997133bc11343dafbf1d4dfb40bb2b05b743484c" + }, + { + "sha": "5bcc3de290eff3e8f363f2a4433742c6cc5f0744", + "message": "add 3ds validation fix", + "author": "AkshayaFoiger", + "date": "2025-10-30T12:07:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5bcc3de290eff3e8f363f2a4433742c6cc5f0744" + } + ] +} \ No newline at end of file diff --git a/prs/pr_10049.json b/prs/pr_10049.json new file mode 100644 index 0000000000000000000000000000000000000000..b3ac93a1174fde4ba55d6c55888c2405410a41c8 --- /dev/null +++ b/prs/pr_10049.json @@ -0,0 +1,36 @@ +{ + "number": 10049, + "title": "ci(cypress): add invalid publishable key tests", + "description": "## Type of Change\r\n\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- [x] CI/CD\r\n\r\n## Description\r\nadd invalid publishable key tests for confirm payments and session call \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\n\r\n\r\n## Motivation and Context\r\nTest cases enhancement\r\n\r\n\r\n## How did you test it?\r\n\r\n\"image\"\r\n\r\n- Stripe\r\n\r\n\"image\"\r\n\r\n\r\n## Checklist\r\n\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", + "author": "likhinbopanna", + "created_at": "2025-10-29T12:08:27+00:00", + "merged_at": "2025-10-30T08:19:09+00:00", + "base_branch": "main", + "labels": [ + "A-CI-CD" + ], + "url": "https://github.com/juspay/hyperswitch/pull/10049", + "commits": [ + { + "sha": "9dd5614a62e9893f6cf7b1ef95fa17eeffa93da8", + "message": "ci(cypress): add invalid publishable key scenarios", + "author": "likhinbopanna", + "date": "2025-10-29T11:46:48+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9dd5614a62e9893f6cf7b1ef95fa17eeffa93da8" + }, + { + "sha": "986d9399e2b47c64da368372c80590a0279e94c0", + "message": "fix: remove unused config", + "author": "likhinbopanna", + "date": "2025-10-29T12:10:25+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/986d9399e2b47c64da368372c80590a0279e94c0" + }, + { + "sha": "78df17e20fdf514507131b0255540d10e6ea7214", + "message": "chore(cypress): run formatter and address lints", + "author": "hyperswitch-bot[bot]", + "date": "2025-10-29T12:14:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/78df17e20fdf514507131b0255540d10e6ea7214" + } + ] +} \ No newline at end of file diff --git a/prs/pr_10094.json b/prs/pr_10094.json new file mode 100644 index 0000000000000000000000000000000000000000..f13bd56058a106f43e3243ca0d53652477898b30 --- /dev/null +++ b/prs/pr_10094.json @@ -0,0 +1,50 @@ +{ + "number": 10094, + "title": "fix(connectors): [Adyen] add migrated payment method check", + "description": "## Type of Change\r\n\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\r\nWe need to maintain the correct shopper reference sent to adyen in case of migrated and non migrated payment methods for MIT calls.\r\nIn case of non migrated MIT calls shopper reference should be the static value which we used for CIT call i.e {merchant_id}_{customer_id} and in case of migrated MIT calls it should be connector customer id stored in customer details.\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\n\r\n\r\n## Motivation and Context\r\n\r\nFailing MITs for a merchant.\r\n\r\n## How did you test it?\r\n\r\nCurls:\r\nMIT Call Request:\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_l8ETorgiUets3Z2QczmwR63RLW' \\\r\n--data '{\r\n \"amount\": 100,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"customer_id\": \"mrudul123\",\r\n \"profile_id\": \"pro_ihYxgnHGNuyTwl4olEUM\",\r\n \r\n \"recurring_details\": {\r\n \"type\": \"payment_method_id\",\r\n \"data\": \"pm_DIS7A5c7K2dNsRp6wS26\"\r\n },\r\n \"off_session\": true\r\n}'\r\n```\r\nResponse:\r\n```\r\n{\"payment_id\":\"pay_HGB0GI0PQnl2vfM1QuiB\",\"merchant_id\":\"merchant_1761903910\",\"status\":\"succeeded\",\"amount\":100,\"net_amount\":100,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":100,\"connector\":\"adyen\",\"client_secret\":\"pay_HGB0GI0PQnl2vfM1QuiB_secret_K6kklwAT7YZJjZCcxYwb\",\"created\":\"2025-11-03T04:21:19.782Z\",\"currency\":\"EUR\",\"customer_id\":\"mrudul123\",\"customer\":{\"id\":\"mrudul123\",\"name\":\"John Doe\",\"email\":\"customerssh@gmail.com\",\"phone\":\"9999999999\",\"phone_country_code\":\"+1\"},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":null,\"off_session\":true,\"capture_on\":null,\"capture_method\":null,\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"1111\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"411111\",\"card_extended_bin\":null,\"card_exp_month\":\"03\",\"card_exp_year\":\"30\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":null,\"shipping\":null,\"billing\":null,\"order_details\":null,\"email\":\"customerssh@gmail.com\",\"name\":\"John Doe\",\"phone\":\"9999999999\",\"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\":\"mrudul123\",\"created_at\":1762143679,\"expires\":1762147279,\"secret\":\"epk_0efb96870e1242e089cffd6335d08f45\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":\"DPPLCR3BZBWD2HV5\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":\"pay_HGB0GI0PQnl2vfM1QuiB_1\",\"payment_link\":null,\"profile_id\":\"pro_ihYxgnHGNuyTwl4olEUM\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_fT5MALNyEqSNg78D1ACS\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-11-03T04:36:19.782Z\",\"fingerprint\":null,\"browser_info\":null,\"payment_channel\":null,\"payment_method_id\":\"pm_DIS7A5c7K2dNsRp6wS26\",\"network_transaction_id\":\"801009328541041\",\"payment_method_status\":\"active\",\"updated\":\"2025-11-03T04:21:22.659Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"request_extended_authorization\":null,\"capture_before\":null,\"merchant_order_reference_id\":null,\"order_tax_amount\":null,\"connector_mandate_id\":\"GN2K34DX99V2TV65\",\"card_discovery\":\"manual\",\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null,\"enable_overcapture\":null,\"is_overcapture_enabled\":null,\"network_details\":null,\"is_stored_credential\":true,\"mit_category\":null}\r\n```\r\n\r\nFor non migrated MIT:\r\n\"image\"\r\n\r\nFor migrated MIT:\r\n\"image\"\r\n\r\n## Checklist\r\n\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", + "author": "mrudulvajpayee4935", + "created_at": "2025-11-03T05:27:04+00:00", + "merged_at": "2025-11-05T10:29:22+00:00", + "base_branch": "main", + "labels": [ + "A-connector-compatibility" + ], + "url": "https://github.com/juspay/hyperswitch/pull/10094", + "commits": [ + { + "sha": "10c2630b946f8899904c73861cfdca99b99c78fd", + "message": "add migrated payment method check", + "author": "Mrudul Vajpayee", + "date": "2025-11-03T05:08:01+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/10c2630b946f8899904c73861cfdca99b99c78fd" + }, + { + "sha": "253cf4760c706c0c490efc28cd7710f268ab0d2a", + "message": "Merge branch 'main' into payment-method-migrate-check", + "author": "Mrudul Vajpayee", + "date": "2025-11-03T07:18:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/253cf4760c706c0c490efc28cd7710f268ab0d2a" + }, + { + "sha": "8cc9638cd2339901ef380bffc4eee960124df763", + "message": "use is_migrated_card", + "author": "Mrudul Vajpayee", + "date": "2025-11-03T11:55:48+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8cc9638cd2339901ef380bffc4eee960124df763" + }, + { + "sha": "4030d8d7d44ee401cf61165b3b4936f7e3f6a65d", + "message": "solve clippy checks", + "author": "Mrudul Vajpayee", + "date": "2025-11-04T03:22:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4030d8d7d44ee401cf61165b3b4936f7e3f6a65d" + }, + { + "sha": "3c3923b5e0ff831c1986a42c00d50c66d89d5520", + "message": "remove from authorize data", + "author": "Mrudul Vajpayee", + "date": "2025-11-05T07:32:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3c3923b5e0ff831c1986a42c00d50c66d89d5520" + } + ] +} \ No newline at end of file diff --git a/prs/pr_10122.json b/prs/pr_10122.json new file mode 100644 index 0000000000000000000000000000000000000000..98fe9a4cd9c2abdab602c2794a11eb5be59a8872 --- /dev/null +++ b/prs/pr_10122.json @@ -0,0 +1,214 @@ +{ + "number": 10122, + "title": "feat(connectors): Tesouro recurring wallets & store expiry-date for decrypted Apple&Googlepay", + "description": "## Type of Change\r\n\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\r\n- Mandate wallets googlepay and applepay for tesouro\r\n- STORE expiry date and year for Applepay and google pay for mandates (only decrypted FLOW) \r\n\r\n
\r\nGOOGLE PAY\r\n\r\n## request\r\n\r\n```json\r\n{\r\n \"amount\": 689,\r\n \"customer_id\":\"dfasfdsdsafsaf\",\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"google_pay\",\r\n \"description\": \"hellow world\",\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\": \"127.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \"connector\": [\"tesouro\"],\r\n \"setup_future_usage\": \"off_session\",\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 \"ip_address\": \"129.0.0.1\",\r\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36\",\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\": 32,\r\n \"screen_height\": 1117,\r\n \"screen_width\": 1728,\r\n \"time_zone\": -330,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_method_data\": {\r\n \"wallet\": {\r\n \"google_pay\": {\r\n \"type\": \"CARD\",\r\n \"tokenization_data\": {\r\n \"application_primary_account_number\": \"4761344136xxxx\",\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"25\",\r\n \"cryptogram\": \"ejJRWxxxxxxxxx\",\r\n \"eci_indicator\": \"5\"\r\n },\r\n \"info\": {\r\n \"card_details\": \"Discover 9319\",\r\n \"card_network\": \"VISA\"\r\n },\r\n \"description\": \"something\"\r\n }\r\n }\r\n }\r\n}\r\n\r\n```\r\n\r\n## response\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_OnFwcaViLaQ2uLpa5XXS\",\r\n \"merchant_id\": \"merchant_1762245250\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 689,\r\n \"net_amount\": 689,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 689,\r\n \"connector\": \"tesouro\",\r\n \"client_secret\": \"pay_OnFwcaViLaQ2uLpa5XXS_secret_bpl3ZG3gLk6aDrRIrbLy\",\r\n \"created\": \"2025-11-04T08:34:59.151Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"dfasfdsdsafsaf\",\r\n \"customer\": {\r\n \"id\": \"dfasfdsdsafsaf\",\r\n \"name\": null,\r\n \"email\": null,\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\": \"off_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 \"google_pay\": {\r\n \"last4\": \"Discover 9319\",\r\n \"card_network\": \"VISA\",\r\n \"type\": \"CARD\",\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"25\"\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\": 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\": null,\r\n \"payment_method_type\": \"google_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\": \"dfasfdsdsafsaf\",\r\n \"created_at\": 1762245299,\r\n \"expires\": 1762248899,\r\n \"secret\": \"epk_ecd90f08839f4af1b7bf843bf4911346\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"26433924-b959-11f0-962b-56e7b8e39428\",\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_TKew5SYzewHMN8zIJQeR\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_9KwqBYbBm0ifDzdORRnB\",\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-11-04T08:49:59.151Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"en-US\",\r\n \"time_zone\": -330,\r\n \"ip_address\": \"129.0.0.1\",\r\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36\",\r\n \"color_depth\": 32,\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\": \"pm_fKK4asOsXLvIVcVHQZNh\",\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-11-04T08:34:59.502Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"d7af227c-8f91-4d1b-942a-437c4ee8fbcf\",\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 \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n## mandates request\r\n\r\n```json\r\n{\r\n \"amount\": 333,\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"{{customer_id}}\",\r\n \"confirm\": true,\r\n \"off_session\": true,\r\n \"recurring_details\": {\r\n \"type\": \"payment_method_id\",\r\n \"data\": \"{{payment_method_id}}\"//pass the payment method id here\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}\r\n```\r\n## Response\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_PhbpusUpIEO0t3lgdYxZ\",\r\n \"merchant_id\": \"merchant_1762245250\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 333,\r\n \"net_amount\": 333,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 333,\r\n \"connector\": \"tesouro\",\r\n \"client_secret\": \"pay_PhbpusUpIEO0t3lgdYxZ_secret_mpbL9WfIPSKQkbtAt2xO\",\r\n \"created\": \"2025-11-04T09:52:05.136Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"dfasfdsdsafsaf\",\r\n \"customer\": {\r\n \"id\": \"dfasfdsdsafsaf\",\r\n \"name\": null,\r\n \"email\": null,\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\": true,\r\n \"capture_on\": null,\r\n \"capture_method\": null,\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_data\": {\r\n \"wallet\": {\r\n \"google_pay\": {\r\n \"last4\": \"Discover 9319\",\r\n \"card_network\": \"VISA\",\r\n \"type\": \"CARD\",\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"25\"\r\n }\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\": 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\": \"google_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\": \"dfasfdsdsafsaf\",\r\n \"created_at\": 1762249925,\r\n \"expires\": 1762253525,\r\n \"secret\": \"epk_5eca1d0540dd48c68691dcb4bc582396\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"ec5e2779-b963-11f0-97b7-c107de75a6ca\",\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_TKew5SYzewHMN8zIJQeR\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_9KwqBYbBm0ifDzdORRnB\",\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-11-04T10:07:05.136Z\",\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\": \"pm_fKK4asOsXLvIVcVHQZNh\",\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-11-04T09:52:06.772Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"d7af227c-8f91-4d1b-942a-437c4ee8fbcf\",\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 \"is_stored_credential\": true,\r\n \"mit_category\": null\r\n}\r\n```\r\n
\r\n\r\n
\r\nAPPLE PAY\r\n\r\n## Request\r\n\r\n```json\r\n{\r\n \"amount\": 689,\r\n \"customer_id\": \"dfasfdsdsafsaf\",\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"apple_pay\",\r\n \"description\": \"hellow world\",\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\": \"127.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \"connector\": [\r\n \"tesouro\"\r\n ],\r\n \"setup_future_usage\": \"off_session\",\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 \"ip_address\": \"129.0.0.1\",\r\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36\",\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\": 32,\r\n \"screen_height\": 1117,\r\n \"screen_width\": 1728,\r\n \"time_zone\": -330,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_method_data\": {\r\n \"wallet\": {\r\n \"apple_pay\": {\r\n \"payment_data\": {\r\n \"application_primary_account_number\": \"4242424242424242\",\r\n \"application_expiration_month\": \"09\",\r\n \"application_expiration_year\": \"30\",\r\n \"application_brand\": \"VISA\",\r\n \"payment_data\": {\r\n \"online_payment_cryptogram\": \"ArSxOxxxxxx\",\r\n \"eci_indicator\": \"7\"\r\n }\r\n },\r\n \"payment_method\": {\r\n \"display_name\": \"Discover 9319\",\r\n \"network\": \"VISA\",\r\n \"type\": \"debit\"\r\n },\r\n \"transaction_identifier\": \"c635c5b3af900d7bd81fecd7028fxxxxxxx\"\r\n }\r\n }\r\n }\r\n}\r\n```\r\n\r\n## response\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_YTeJdNdADMQjkC8Vi45N\",\r\n \"merchant_id\": \"merchant_1762245250\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 689,\r\n \"net_amount\": 689,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 689,\r\n \"connector\": \"tesouro\",\r\n \"client_secret\": \"pay_YTeJdNdADMQjkC8Vi45N_secret_1nqzbRHLc0iLVpcRlgrK\",\r\n \"created\": \"2025-11-04T10:16:40.166Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"dfasfdsdsafsaf\",\r\n \"customer\": {\r\n \"id\": \"dfasfdsdsafsaf\",\r\n \"name\": null,\r\n \"email\": null,\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\": \"off_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 \"apple_pay\": {\r\n \"last4\": \"9319\",\r\n \"card_network\": \"VISA\",\r\n \"type\": \"debit\",\r\n \"card_exp_month\": \"09\",\r\n \"card_exp_year\": \"30\"\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\": 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\": 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\": \"dfasfdsdsafsaf\",\r\n \"created_at\": 1762251400,\r\n \"expires\": 1762255000,\r\n \"secret\": \"epk_7b187f7b49224ee196c5c68793e1117d\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"5b629034-b967-11f0-a0c0-1fe12db20e08\",\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_TKew5SYzewHMN8zIJQeR\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_9KwqBYbBm0ifDzdORRnB\",\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-11-04T10:31:40.166Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"en-US\",\r\n \"time_zone\": -330,\r\n \"ip_address\": \"129.0.0.1\",\r\n \"user_agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36\",\r\n \"color_depth\": 32,\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\": \"pm_vlmFxITLk7oyymbLp5VH\",\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-11-04T10:16:41.653Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"a29e220c-51c6-48c2-b750-d50c1ea34800\",\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 \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n## mandate\r\n\r\n```json\r\n{\r\n \"amount\": 333,\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"{{customer_id}}\",\r\n \"confirm\": true,\r\n \"off_session\": true,\r\n \"recurring_details\": {\r\n \"type\": \"payment_method_id\",\r\n \"data\": \"{{payment_method_id}}\"//pass the payment method id here\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}\r\n```\r\n## response\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_Id7wgSMOtIhKWGiVvzNz\",\r\n \"merchant_id\": \"merchant_1762245250\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 333,\r\n \"net_amount\": 333,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 333,\r\n \"connector\": \"tesouro\",\r\n \"client_secret\": \"pay_Id7wgSMOtIhKWGiVvzNz_secret_Ita0D3QvoFoKQKCetjR4\",\r\n \"created\": \"2025-11-04T10:16:55.185Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"dfasfdsdsafsaf\",\r\n \"customer\": {\r\n \"id\": \"dfasfdsdsafsaf\",\r\n \"name\": null,\r\n \"email\": null,\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\": true,\r\n \"capture_on\": null,\r\n \"capture_method\": null,\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_data\": {\r\n \"wallet\": {\r\n \"apple_pay\": {\r\n \"last4\": \"9319\",\r\n \"card_network\": \"VISA\",\r\n \"type\": \"debit\",\r\n \"card_exp_month\": \"09\",\r\n \"card_exp_year\": \"30\"\r\n }\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\": 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\": \"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\": \"dfasfdsdsafsaf\",\r\n \"created_at\": 1762251415,\r\n \"expires\": 1762255015,\r\n \"secret\": \"epk_9fb647615b3343809b216307956e4d5b\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"63bbb6f5-b967-11f0-ae88-bf8ee0e62152\",\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_TKew5SYzewHMN8zIJQeR\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_9KwqBYbBm0ifDzdORRnB\",\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-11-04T10:31:55.185Z\",\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\": \"pm_vlmFxITLk7oyymbLp5VH\",\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-11-04T10:16:55.521Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"extended_authorization_last_applied_at\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": \"a29e220c-51c6-48c2-b750-d50c1ea34800\",\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 \"is_stored_credential\": true,\r\n \"mit_category\": null\r\n}\r\n```\r\n\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\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\r\n## Checklist\r\n\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", + "author": "Nithin1506200", + "created_at": "2025-11-04T10:12:30+00:00", + "merged_at": "2025-11-14T12:46:54+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "A-core", + "M-api-contract-changes", + "A-mandates" + ], + "url": "https://github.com/juspay/hyperswitch/pull/10122", + "commits": [ + { + "sha": "07277a8ff11ab74a277022a571e03d578684ffd6", + "message": "update", + "author": "nihtin", + "date": "2025-10-30T07:12:07+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/07277a8ff11ab74a277022a571e03d578684ffd6" + }, + { + "sha": "01df8bdada384a07b26422f9500ef2cb1aa5f81c", + "message": "update", + "author": "nihtin", + "date": "2025-10-30T10:04:18+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/01df8bdada384a07b26422f9500ef2cb1aa5f81c" + }, + { + "sha": "f1b0d8df87c1ab6d6e613f287007abe13cd6f2ae", + "message": "update", + "author": "nihtin", + "date": "2025-10-30T11:20:17+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f1b0d8df87c1ab6d6e613f287007abe13cd6f2ae" + }, + { + "sha": "98f86ee3d283ba6f392aeba07ae72654ae488736", + "message": "update", + "author": "nihtin", + "date": "2025-10-31T09:20:29+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/98f86ee3d283ba6f392aeba07ae72654ae488736" + }, + { + "sha": "8b81ebd9b99952fde93cd8a03801fa1503b74a12", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-10-31T09:21:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8b81ebd9b99952fde93cd8a03801fa1503b74a12" + }, + { + "sha": "4b394c35d6333c6c0203a1e52c344cb487dabae0", + "message": "update", + "author": "nihtin", + "date": "2025-10-31T09:31:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4b394c35d6333c6c0203a1e52c344cb487dabae0" + }, + { + "sha": "3626ba5da5ec0bb955c8298da916759cb884f88f", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into tesouro-recurring", + "author": "nihtin", + "date": "2025-10-31T10:19:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3626ba5da5ec0bb955c8298da916759cb884f88f" + }, + { + "sha": "67b681e777855c90fb05be388873467831b16e6e", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into tesouro-recurring-wallets", + "author": "nihtin", + "date": "2025-11-04T06:15:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/67b681e777855c90fb05be388873467831b16e6e" + }, + { + "sha": "d42ca15e2593704a8086812659b6a8b3a90d5440", + "message": "update", + "author": "nihtin", + "date": "2025-11-04T09:59:54+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d42ca15e2593704a8086812659b6a8b3a90d5440" + }, + { + "sha": "4edae1050af34f7f6589802671304b2e1912fb71", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into tesouro-recurring-wallets", + "author": "nihtin", + "date": "2025-11-05T10:35:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4edae1050af34f7f6589802671304b2e1912fb71" + }, + { + "sha": "c3a9bd30eeda2ad9a02851077403b2bab1e73936", + "message": "update", + "author": "nihtin", + "date": "2025-11-06T05:13:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c3a9bd30eeda2ad9a02851077403b2bab1e73936" + }, + { + "sha": "35f2d598c66125b9901a845d2fe02e154d27b847", + "message": "update", + "author": "nihtin", + "date": "2025-11-06T05:21:29+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/35f2d598c66125b9901a845d2fe02e154d27b847" + }, + { + "sha": "e0d89e2d1ff9a64bb6c4575d9bbe7adbda17f356", + "message": "cargo check", + "author": "nihtin", + "date": "2025-11-06T07:35:01+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e0d89e2d1ff9a64bb6c4575d9bbe7adbda17f356" + }, + { + "sha": "5ee2ace81b27fab1bfccd74d7246de6b61cc4d85", + "message": "update", + "author": "nihtin", + "date": "2025-11-06T07:46:35+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5ee2ace81b27fab1bfccd74d7246de6b61cc4d85" + }, + { + "sha": "809a46da03f1f1ddd40430b10258b8ace4d76dca", + "message": "update", + "author": "nihtin", + "date": "2025-11-06T07:48:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/809a46da03f1f1ddd40430b10258b8ace4d76dca" + }, + { + "sha": "714f70dd75063f46a029723039b57c9803195978", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-11-06T07:58:35+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/714f70dd75063f46a029723039b57c9803195978" + }, + { + "sha": "6d2ca66801fe585f2c6a12e61f7c434f9742f491", + "message": "update", + "author": "nihtin", + "date": "2025-11-07T10:08:00+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6d2ca66801fe585f2c6a12e61f7c434f9742f491" + }, + { + "sha": "562511eb80c9cf0fdd6d19e7d0bef2e138643f2c", + "message": "update", + "author": "nihtin", + "date": "2025-11-07T10:09:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/562511eb80c9cf0fdd6d19e7d0bef2e138643f2c" + }, + { + "sha": "1cd80b7490132a174e51ea61b0c223898f7a4029", + "message": "update", + "author": "nihtin", + "date": "2025-11-07T10:15:07+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1cd80b7490132a174e51ea61b0c223898f7a4029" + }, + { + "sha": "26b567a72a4595d1385b88a62c9b4d98164f90d9", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-11-07T10:33:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/26b567a72a4595d1385b88a62c9b4d98164f90d9" + }, + { + "sha": "e5abd7fa86321bb12e61f0fe3de91c89ea8c66df", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into tesouro-recurring-wallets", + "author": "nihtin", + "date": "2025-11-10T09:02:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e5abd7fa86321bb12e61f0fe3de91c89ea8c66df" + }, + { + "sha": "39acfdaaa5f00545a2501107a7b3e1caabd9f642", + "message": "Update crates/api_models/src/payment_methods.rs\n\nCo-authored-by: Shankar Singh C <83439957+ShankarSinghC@users.noreply.github.com>", + "author": "Nithin N", + "date": "2025-11-10T09:49:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/39acfdaaa5f00545a2501107a7b3e1caabd9f642" + }, + { + "sha": "83f62b0504640f50913b6b98204842f7af44a3e3", + "message": "Update crates/api_models/src/payment_methods.rs\n\nCo-authored-by: Shankar Singh C <83439957+ShankarSinghC@users.noreply.github.com>", + "author": "Nithin N", + "date": "2025-11-10T09:49:24+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/83f62b0504640f50913b6b98204842f7af44a3e3" + }, + { + "sha": "819690b5258127a1ed1fe6b931cd8823d021595c", + "message": "update", + "author": "nihtin", + "date": "2025-11-10T09:54:39+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/819690b5258127a1ed1fe6b931cd8823d021595c" + }, + { + "sha": "a185fcdf998e6ff8de8a54055b55766612849b81", + "message": "update", + "author": "nihtin", + "date": "2025-11-10T09:59:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a185fcdf998e6ff8de8a54055b55766612849b81" + }, + { + "sha": "93f2dba2427b6aaf55d99759766636aa0761657c", + "message": "Merge branch 'main' into tesouro-recurring-wallets", + "author": "Nithin N", + "date": "2025-11-12T05:56:42+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/93f2dba2427b6aaf55d99759766636aa0761657c" + }, + { + "sha": "4a4afc5dc6c9f10ffad553034f95697e6e8c4c53", + "message": "push", + "author": "nihtin", + "date": "2025-11-12T06:40:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4a4afc5dc6c9f10ffad553034f95697e6e8c4c53" + }, + { + "sha": "63a4cfc0b0b6ee9fec8eac77d80dbfd11436371b", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into tesouro-recurring-wallets", + "author": "nihtin", + "date": "2025-11-13T14:04:35+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/63a4cfc0b0b6ee9fec8eac77d80dbfd11436371b" + } + ] +} \ No newline at end of file diff --git a/prs/pr_10129.json b/prs/pr_10129.json new file mode 100644 index 0000000000000000000000000000000000000000..65804585fd6b7ccb39f09e4d71f1ab1d0ab99ce5 --- /dev/null +++ b/prs/pr_10129.json @@ -0,0 +1,36 @@ +{ + "number": 10129, + "title": "fix: Update PayPal Postman collection tests", + "description": "## Type of Change\r\n\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- [x] CI/CD\r\n\r\n## Description\r\n\r\nFixed invalid card number validation test (123456 instead of 4242424242424242)\r\n- Updated card expiry dates from 10/25 to 10/30 (cards were expired)\r\n- Fixed test assertions to expect 4xx error response instead of 2xx\r\n- Updated error validation to match actual API format (error.error_type)\r\n- Added detailed comments explaining all assertion changes\r\n\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\n\r\n\r\n## Motivation and Context\r\n\r\nPostman tests were failing for Paypal in jenkins. \r\n\r\n## How did you test it?\r\n\r\n\r\nAfter the change ran the collection in postman. \r\n\"image\"\r\n\r\n\r\n## Checklist\r\n\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", + "author": "ashx98", + "created_at": "2025-11-04T12:25:05+00:00", + "merged_at": "2025-11-06T07:39:35+00:00", + "base_branch": "main", + "labels": [ + "A-CI-CD" + ], + "url": "https://github.com/juspay/hyperswitch/pull/10129", + "commits": [ + { + "sha": "20a5137b73440686d014d7501f5329002232723d", + "message": "fix: Update PayPal Postman collection tests", + "author": "ashx98", + "date": "2025-11-04T12:10:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/20a5137b73440686d014d7501f5329002232723d" + }, + { + "sha": "b870ebc660e80ae8ed7d835eefcaaa32585829c8", + "message": "fix: Update PayPal Postman collection tests", + "author": "ashx98", + "date": "2025-11-05T11:41:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b870ebc660e80ae8ed7d835eefcaaa32585829c8" + }, + { + "sha": "e702a5131592c8a6c68c2979cf375a4297892727", + "message": "chore: Delete auto-generated PayPal collection JSON file", + "author": "ashx98", + "date": "2025-11-05T11:45:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e702a5131592c8a6c68c2979cf375a4297892727" + } + ] +} \ No newline at end of file diff --git a/prs/pr_10144.json b/prs/pr_10144.json new file mode 100644 index 0000000000000000000000000000000000000000..67df69dca2a03f43daa1cdf3725ab15f68508a2a --- /dev/null +++ b/prs/pr_10144.json @@ -0,0 +1,20 @@ +{ + "number": 10144, + "title": "refactor(core): add support for IP address getting from HTTP request in payout browser info", + "description": "## Type of Change\r\n\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\nadd support for IP address getting from HTTP request in payout browser info\r\n\r\nFor Interac payouts confirm call, we currently need to send the IP address, but since it\u2019s not possible to get it from client-side JS. \r\nSo in this PR we have added support for extracting ip address from http 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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n1. create MCA for gigadat payout\r\n\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1762412893/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_rB2jHz4Pc1PjympltMlX86hhg5QMwxxyFWQDVqxXMDwm1AstElZqETebohwPhWAq' \\\r\n--data '{\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 request - ip_address is mandatory for gigadat payout, but here we are not passing browser_info in request, but it should still work, as it will fetch ip_addess from http request. \r\n```\r\ncurl --location 'http://localhost:8080/payouts/create' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_rB2jHz4Pc1PjympltMlX86hhg5QMwxxyFWQDVqxXMDwm1AstElZqETebohwPhWAq' \\\r\n--data-raw '{\r\n \"amount\": 1,\r\n \"currency\": \"CAD\",\r\n \"customer_id\": \"cus_YsmZlIiD75bf96yGFZVJ\",\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 \"payout_type\": \"bank_redirect\",\r\n \"payout_method_data\": {\r\n \"bank_redirect\": {\r\n \"interac\": {\r\n \"email\": \"example@example.com\"\r\n }\r\n }\r\n },\r\n \"connector\": [\r\n \"gigadat\"\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 \"confirm\": true,\r\n \"auto_fulfill\": true\r\n}\r\n'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payout_id\": \"payout_6mFEV8cXkDqAgoTecuJE\",\r\n \"merchant_id\": \"merchant_1762412893\",\r\n \"merchant_order_reference_id\": null,\r\n \"amount\": 1,\r\n \"currency\": \"CAD\",\r\n \"connector\": \"gigadat\",\r\n \"payout_type\": \"bank_redirect\",\r\n \"payout_method_data\": {\r\n \"bank_redirect\": {\r\n \"email\": \"ex*****@example.com\"\r\n }\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\": \"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\": true,\r\n \"customer_id\": \"cus_YsmZlIiD75bf96yGFZVJ\",\r\n \"customer\": {\r\n \"id\": \"cus_YsmZlIiD75bf96yGFZVJ\",\r\n \"name\": \"Doest John\",\r\n \"email\": \"payout_customer@example.com\",\r\n \"phone\": \"6168205366\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"client_secret\": \"payout_payout_6mFEV8cXkDqAgoTecuJE_secret_7S7Hhk3TvSyfXgcflKBA\",\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\": \"mca_use9n42RgAic1nrqp3cr\",\r\n \"status\": \"pending\",\r\n \"error_message\": null,\r\n \"error_code\": null,\r\n \"profile_id\": \"pro_8sMxHU2OCyrWtnHOA68x\",\r\n \"created\": \"2025-11-06T07:08:55.692Z\",\r\n \"connector_transaction_id\": \"payout_6mFEV8cXkDqAgoTecuJE_1\",\r\n \"priority\": null,\r\n \"payout_link\": null,\r\n \"email\": \"payout_customer@example.com\",\r\n \"name\": \"Doest John\",\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\n\r\nBefore this change if we make a payout request without passing browser_info in request \r\nWe will get the error\r\n```\r\n{\r\n \"error\": {\r\n \"type\": \"invalid_request\",\r\n \"message\": \"Missing required param: browser_info\",\r\n \"code\": \"IR_04\"\r\n }\r\n}\r\n```\r\n\r\n\r\n## Checklist\r\n\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", + "author": "swangi-kumari", + "created_at": "2025-11-05T17:10:19+00:00", + "merged_at": "2025-11-07T08:20:27+00:00", + "base_branch": "main", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/10144", + "commits": [ + { + "sha": "690573b243f688dc0af6d0203880a44e8c339dfd", + "message": "refactor: add support for ip address to fetch from http request", + "author": "Swangi Kumari", + "date": "2025-11-05T17:08:25+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/690573b243f688dc0af6d0203880a44e8c339dfd" + } + ] +} \ No newline at end of file diff --git a/prs/pr_6716.json b/prs/pr_6716.json new file mode 100644 index 0000000000000000000000000000000000000000..7a060154dddd3abb0f05b9f1fe233938e0c4b60e --- /dev/null +++ b/prs/pr_6716.json @@ -0,0 +1,30 @@ +{ + "number": 6716, + "title": "fix(opensearch): fix empty filter array query addition in globalsearch query", + "description": "## Type of Change\r\n\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\r\nThe opensearch query should be built manually in the code, based on the request body.\r\nThere is a component called `filter_array` which comprises of the free-text search query, addition of case sensitive filters and also the time_range (if provided).\r\nWhen all the three sub parts are empty (empty query string, no case-sensitive filters and missing time_range) in the request, the filter_array will not be created, and the logic for integrating the rest of the filters is affected.\r\n\r\nMaking minor fixes to the query builder to update the opensearch query even if all the above mentioned components are empty.\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\n\r\n\r\n## Motivation and Context\r\n\r\nGive out correct results by building the opensearch query through the request body.\r\n\r\n## How did you test it?\r\n\r\nShould test the case when free-text query is empty, case-sensitive filters are not provided, and time-range filter is also not applied.\r\nHit the curl:\r\n```bash\r\ncurl --location 'http://localhost:8080/analytics/v1/search' \\\r\n--header 'sec-ch-ua-platform: \"macOS\"' \\\r\n--header 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTQ5ZTNkMmItMTY5Yi00NzUzLWJmNTQtZDcxMTM2YjRiN2JkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzI2MDQ2MzI4Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTczMzI5ODcwMywib3JnX2lkIjoib3JnX1ZwU0hPanNZZkR2YWJWWUpnQ0FKIiwicHJvZmlsZV9pZCI6InByb192NXNGb0hlODBPZWlVbElvbm9jTSIsInRlbmFudF9pZCI6InB1YmxpYyJ9.y9FI-AvvzNKd4DbJiGT7LmwfzxNjZDdOZfQ40TGTh3w' \\\r\n--header 'Referer: http://localhost:9000/' \\\r\n--header 'sec-ch-ua: \"Google Chrome\";v=\"129\", \"Not=A?Brand\";v=\"8\", \"Chromium\";v=\"129\"' \\\r\n--header 'sec-ch-ua-mobile: ?0' \\\r\n--header 'api-key: dev_LZcIA7XeMpnK5satp4CDvjcnHCaeKTBcosyuBBJaknZu1odhFo96cwS0nSdfzuJF' \\\r\n--header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36' \\\r\n--header 'Content-Type: application/json' \\\r\n--data '{\r\n \"query\": \"\",\r\n \"filters\": {\r\n \"currency\": [\r\n \"USD\"\r\n ]\r\n }\r\n}'\r\n```\r\n\r\nThe response should now give out all the results based on the filter applied.\r\n\r\nSample opensearch query structure:\r\n```json\r\n{\r\n \"query\": {\r\n \"bool\": {\r\n \"must\": [\r\n {\r\n \"bool\": {\r\n \"must\": [\r\n {\r\n \"bool\": {\r\n \"should\": [\r\n {\r\n \"term\": {\r\n \"currency.keyword\": {\r\n \"value\": \"USD\",\r\n \"case_insensitive\": true\r\n }\r\n }\r\n }\r\n ],\r\n \"minimum_should_match\": 1\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"bool\": {\r\n \"must\": [\r\n {\r\n \"bool\": {\r\n \"should\": [\r\n {\r\n \"bool\": {\r\n \"must\": [\r\n {\r\n \"term\": {\r\n \"organization_id.keyword\": {\r\n \"value\": \"org_VpSHOjsYfDvabVYJgCAJ\"\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"minimum_should_match\": 1\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n \"sort\": [\r\n {\r\n \"@timestamp\": {\r\n \"order\": \"desc\"\r\n }\r\n }\r\n ]\r\n}\r\n```\r\n\r\n## Checklist\r\n\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", + "author": "tsdk02", + "created_at": "2024-12-02T09:29:40+00:00", + "merged_at": "2024-12-02T15:02:27+00:00", + "base_branch": "main", + "labels": [ + "C-bug", + "A-Analytics" + ], + "url": "https://github.com/juspay/hyperswitch/pull/6716", + "commits": [ + { + "sha": "9b2cf98898881e73dc101d69b6694e78cddf9e54", + "message": "fix(opensearch): fix empty filter array query addition in globalsearch query", + "author": "T Sandeep Kumar", + "date": "2024-12-02T09:19:52+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9b2cf98898881e73dc101d69b6694e78cddf9e54" + }, + { + "sha": "1bdb3e2b7fbb401e1c719f427fa89b49cf2155e5", + "message": "Merge branch 'main' into fix-globalsearch-query-builder", + "author": "Sandeep Kumar", + "date": "2024-12-02T11:14:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1bdb3e2b7fbb401e1c719f427fa89b49cf2155e5" + } + ] +} \ No newline at end of file diff --git a/prs/pr_6752.json b/prs/pr_6752.json new file mode 100644 index 0000000000000000000000000000000000000000..811c1f2088d262813ec391fc067a2e60e2875c5a --- /dev/null +++ b/prs/pr_6752.json @@ -0,0 +1,20 @@ +{ + "number": 6752, + "title": "refactor(connector-configs): worldpay - update username / password mapping", + "description": "## Type of Change\r\n\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\nDescribed in #6316 point # 8\r\n\r\nThis PR includes WASM changes for Worldpay MCA creation on dashboard.\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\n\r\n\r\n## Motivation and Context\r\nUpdates the incorrect mapping of username / password to HS `ConnectorAuthType` \r\n\r\n\r\n## How did you test it?\r\n\r\n\r\n\r\n## Checklist\r\n\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", + "author": "kashif-m", + "created_at": "2024-12-05T06:17:36+00:00", + "merged_at": "2024-12-05T14:02:43+00:00", + "base_branch": "main", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/6752", + "commits": [ + { + "sha": "b02793b319ab563ca369bd2c61d536e551bc0f57", + "message": "refactor(connector-configs): worldpay - update username / password mapping", + "author": "Kashif", + "date": "2024-12-04T13:08:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b02793b319ab563ca369bd2c61d536e551bc0f57" + } + ] +} \ No newline at end of file diff --git a/prs/pr_6776.json b/prs/pr_6776.json new file mode 100644 index 0000000000000000000000000000000000000000..0a4b80ff518dd25c8818d56bcd1ca8b35089ddcf --- /dev/null +++ b/prs/pr_6776.json @@ -0,0 +1,23 @@ +{ + "number": 6776, + "title": "feat(analytics): add support for multiple emails as input to forward reports", + "description": "## Type of Change\r\n\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\r\nCurrently, while generating reports on the dashboard, the current setup only supports forwarding reports to the email of the account signed in.\r\nThis PR adds support to have custom emails in the input text box on the dashboard while generating and forwarding the report, to make the reporting module slightly flexible and convenient.\r\n\r\n- Adding the field for taking multiple emails as input in the report request body.\r\n- Currently having it as an Option, for backwards compatibility.\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\n\r\n\r\n## Motivation and Context\r\n\r\nTo make the reporting module slightly flexible and convenient, to send the report to emails entered by the users.\r\n\r\n## How did you test it?\r\n\r\nHit the curl:\r\n```bash\r\ncurl --location 'http://localhost:8080/analytics/v1/org/report/payments' \\\r\n--header 'Accept: */*' \\\r\n--header 'Accept-Language: en-US,en;q=0.9' \\\r\n--header 'Connection: keep-alive' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Origin: http://localhost:9000' \\\r\n--header 'Referer: http://localhost:9000/' \\\r\n--header 'Sec-Fetch-Dest: empty' \\\r\n--header 'Sec-Fetch-Mode: cors' \\\r\n--header 'Sec-Fetch-Site: same-site' \\\r\n--header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' \\\r\n--header 'api-key: dev_LZcIA7XeMpnK5satp4CDvjcnHCaeKTBcosyuBBJaknZu1odhFo96cwS0nSdfzuJF' \\\r\n--header 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTQ5ZTNkMmItMTY5Yi00NzUzLWJmNTQtZDcxMTM2YjRiN2JkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzI2MDQ2MzI4Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTczMzg5OTY3Nywib3JnX2lkIjoib3JnX1ZwU0hPanNZZkR2YWJWWUpnQ0FKIiwicHJvZmlsZV9pZCI6InByb192NXNGb0hlODBPZWlVbElvbm9jTSIsInRlbmFudF9pZCI6InB1YmxpYyJ9.poRn4McNVvd9Yrv2py9FO3HmG1ENu_SqYYc4hfF1Jm8' \\\r\n--header 'sec-ch-ua: \"Google Chrome\";v=\"131\", \"Chromium\";v=\"131\", \"Not_A Brand\";v=\"24\"' \\\r\n--header 'sec-ch-ua-mobile: ?0' \\\r\n--header 'sec-ch-ua-platform: \"macOS\"' \\\r\n--data-raw '{\r\n \"timeRange\": {\r\n \"startTime\": \"2024-10-31T18:30:00Z\",\r\n \"endTime\": \"2024-11-30T18:29:59Z\"\r\n },\r\n \"emails\": [\r\n \"test@gmail.com\", \"test2@juspay.in\"\r\n ]\r\n}'\r\n```\r\n\r\nSample request payload:\r\n```bash\r\npayload: ReportRequest { time_range: TimeRange { start_time: 2024-10-31 18:30:00.0, end_time: Some(2024-11-30 18:29:59.0) }, emails: Some([****@gmail.com, *****@juspay.in]) }\r\n```\r\n\r\nSample lambda request:\r\n```bash\r\nlambda_req: GenerateReportRequest { request: ReportRequest { time_range: TimeRange { start_time: 2024-10-31 18:30:00.0, end_time: Some(2024-11-30 18:29:59.0) }, emails: Some([****@gmail.com, *****@juspay.in]) }, merchant_id: None, auth: OrgLevel { org_id: OrganizationId(\"org_VpSHOjsYfDvabVYJgCAJ\") }, email: *************@juspay.in }\r\n```\r\n\r\n- emails is an Option (for backwards compatibility): So its not compulsary as of now to add this field.\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/analytics/v1/org/report/payments' \\\r\n--header 'Accept: */*' \\\r\n--header 'Accept-Language: en-US,en;q=0.9' \\\r\n--header 'Connection: keep-alive' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Origin: http://localhost:9000' \\\r\n--header 'Referer: http://localhost:9000/' \\\r\n--header 'Sec-Fetch-Dest: empty' \\\r\n--header 'Sec-Fetch-Mode: cors' \\\r\n--header 'Sec-Fetch-Site: same-site' \\\r\n--header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' \\\r\n--header 'api-key: dev_LZcIA7XeMpnK5satp4CDvjcnHCaeKTBcosyuBBJaknZu1odhFo96cwS0nSdfzuJF' \\\r\n--header 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTQ5ZTNkMmItMTY5Yi00NzUzLWJmNTQtZDcxMTM2YjRiN2JkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzI2MDQ2MzI4Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTczMzg5OTY3Nywib3JnX2lkIjoib3JnX1ZwU0hPanNZZkR2YWJWWUpnQ0FKIiwicHJvZmlsZV9pZCI6InByb192NXNGb0hlODBPZWlVbElvbm9jTSIsInRlbmFudF9pZCI6InB1YmxpYyJ9.poRn4McNVvd9Yrv2py9FO3HmG1ENu_SqYYc4hfF1Jm8' \\\r\n--header 'sec-ch-ua: \"Google Chrome\";v=\"131\", \"Chromium\";v=\"131\", \"Not_A Brand\";v=\"24\"' \\\r\n--header 'sec-ch-ua-mobile: ?0' \\\r\n--header 'sec-ch-ua-platform: \"macOS\"' \\\r\n--data '{\r\n \"timeRange\": {\r\n \"startTime\": \"2024-10-31T18:30:00Z\",\r\n \"endTime\": \"2024-11-30T18:29:59Z\"\r\n }\r\n}'\r\n```\r\nSample request payload:\r\n```bash\r\npayload: ReportRequest { time_range: TimeRange { start_time: 2024-10-31 18:30:00.0, end_time: Some(2024-11-30 18:29:59.0) }, emails: None }\r\n```\r\n\r\nSample lambda request:\r\n```bash\r\nlambda_req: GenerateReportRequest { request: ReportRequest { time_range: TimeRange { start_time: 2024-10-31 18:30:00.0, end_time: Some(2024-11-30 18:29:59.0) }, emails: None }, merchant_id: None, auth: OrgLevel { org_id: OrganizationId(\"org_VpSHOjsYfDvabVYJgCAJ\") }, email: *************@juspay.in }\r\n```\r\n\r\n\r\n## Checklist\r\n\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", + "author": "tsdk02", + "created_at": "2024-12-09T07:26:15+00:00", + "merged_at": "2024-12-10T12:20:39+00:00", + "base_branch": "main", + "labels": [ + "C-feature", + "A-Analytics" + ], + "url": "https://github.com/juspay/hyperswitch/pull/6776", + "commits": [ + { + "sha": "bc7ac66a2b73e56b30dc9261d1f19c390d0be9e3", + "message": "feat(analytics): add support for multiple emails as input to generate reports", + "author": "T Sandeep Kumar", + "date": "2024-12-09T07:04:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/bc7ac66a2b73e56b30dc9261d1f19c390d0be9e3" + } + ] +} \ No newline at end of file diff --git a/prs/pr_6811.json b/prs/pr_6811.json new file mode 100644 index 0000000000000000000000000000000000000000..a9dbf9c9b9e0b02b58b1cbcaddbdfe4d9eac902d --- /dev/null +++ b/prs/pr_6811.json @@ -0,0 +1,65 @@ +{ + "number": 6811, + "title": "feat(core): Add product authentication ids in business profile", + "description": "## Type of Change\r\n\r\n- [x] New feature\r\n\r\n\r\n## Description\r\n\r\nAdd product authentication id's column in business profile\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## How did you test it?\r\n\r\n\r\n\r\n## Checklist\r\n\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", + "author": "sahkal", + "created_at": "2024-12-11T13:32:18+00:00", + "merged_at": "2024-12-12T15:01:35+00:00", + "base_branch": "main", + "labels": [ + "M-database-changes", + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/6811", + "commits": [ + { + "sha": "a8fca0eaeb12b1860314b10335766a7ba6068aa5", + "message": "added dummy commit", + "author": "Sahkal Poddar", + "date": "2024-12-11T09:34:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a8fca0eaeb12b1860314b10335766a7ba6068aa5" + }, + { + "sha": "cc5bd14cde36996b3f294a7c272511bd53833a52", + "message": "added dummy commit", + "author": "Sahkal Poddar", + "date": "2024-12-11T10:14:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/cc5bd14cde36996b3f294a7c272511bd53833a52" + }, + { + "sha": "036a180fb8617d28c6b5b629bf5d9ed61ef7ff13", + "message": "added authentication product id's to business profile", + "author": "Sahkal Poddar", + "date": "2024-12-11T12:55:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/036a180fb8617d28c6b5b629bf5d9ed61ef7ff13" + }, + { + "sha": "f9b0bafeb149e8cf8b48b3c342b281476c529995", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2024-12-11T13:35:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f9b0bafeb149e8cf8b48b3c342b281476c529995" + }, + { + "sha": "e9184b4b3a87eb0c395e4716fbbd088f719acc9e", + "message": "fixed migration inconsistency", + "author": "Sahkal Poddar", + "date": "2024-12-11T17:17:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e9184b4b3a87eb0c395e4716fbbd088f719acc9e" + }, + { + "sha": "e5150191ced132d89b4bdca2c80d6b72c78d6614", + "message": "fixed clippy v2 errors", + "author": "Sahkal Poddar", + "date": "2024-12-12T09:08:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e5150191ced132d89b4bdca2c80d6b72c78d6614" + }, + { + "sha": "c423c69a08ae92982775c55e9a0a91b59f9b0a2b", + "message": "fixed clippy v2 error", + "author": "Sahkal Poddar", + "date": "2024-12-12T09:34:57+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c423c69a08ae92982775c55e9a0a91b59f9b0a2b" + } + ] +} \ No newline at end of file diff --git a/prs/pr_6842.json b/prs/pr_6842.json new file mode 100644 index 0000000000000000000000000000000000000000..f5843876e8e655a775ccf5d51b10abe742093d47 --- /dev/null +++ b/prs/pr_6842.json @@ -0,0 +1,92 @@ +{ + "number": 6842, + "title": "ci: add workflow to check wasm-pack build", + "description": "## Type of Change\r\n\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\r\nAdded WASM build check as part of pipeline\r\n\r\n![image](https://github.com/user-attachments/assets/f89a5241-1cf2-4f05-a696-02e801198872)\r\n![image](https://github.com/user-attachments/assets/7cec2b6c-5da8-43d1-bdc6-199442263172)\r\n![image](https://github.com/user-attachments/assets/a3cc0b59-2be5-4501-9605-9241c43bf1a8)\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n## How did you test it?\r\n\r\n\r\n\r\n## Checklist\r\n\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", + "author": "JeevaRamu0104", + "created_at": "2024-12-16T07:04:39+00:00", + "merged_at": "2024-12-17T10:58:16+00:00", + "base_branch": "main", + "labels": [ + "A-CI-CD" + ], + "url": "https://github.com/juspay/hyperswitch/pull/6842", + "commits": [ + { + "sha": "1d225ace517202133d257aaa0912b07d8cd98b44", + "message": "Merge branch 'main' of github.com:juspay/hyperswitch", + "author": "Jeeva Ramachandran", + "date": "2024-12-16T06:36:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1d225ace517202133d257aaa0912b07d8cd98b44" + }, + { + "sha": "6a9e1829d141d706f81e8f55a40e3c06d365f9ce", + "message": "add wasm build pipeline", + "author": "Jeeva Ramachandran", + "date": "2024-12-16T06:43:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6a9e1829d141d706f81e8f55a40e3c06d365f9ce" + }, + { + "sha": "40ecf1fac60fb3ceb2a1b491a1bde68c11b9118c", + "message": "add wasm build pipeline", + "author": "Jeeva Ramachandran", + "date": "2024-12-16T07:06:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/40ecf1fac60fb3ceb2a1b491a1bde68c11b9118c" + }, + { + "sha": "c301f99f0bd7cd90686a7fe31e71e4ea99ef3fb8", + "message": "add wasm build pipeline", + "author": "Jeeva Ramachandran", + "date": "2024-12-16T07:09:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c301f99f0bd7cd90686a7fe31e71e4ea99ef3fb8" + }, + { + "sha": "2c7d35c65887d1d71bd1deed428a490fd025a401", + "message": "add wasm build pipeline", + "author": "Jeeva Ramachandran", + "date": "2024-12-16T07:12:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2c7d35c65887d1d71bd1deed428a490fd025a401" + }, + { + "sha": "e8a7efff8a1bf033c21a77d1e69dbddbb90e24c1", + "message": "add wasm build pipeline", + "author": "Jeeva Ramachandran", + "date": "2024-12-16T08:27:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e8a7efff8a1bf033c21a77d1e69dbddbb90e24c1" + }, + { + "sha": "1e5f4779304c90108ac8b05d998082abac0fb6ab", + "message": "add wasm build pipeline", + "author": "Jeeva Ramachandran", + "date": "2024-12-16T08:28:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1e5f4779304c90108ac8b05d998082abac0fb6ab" + }, + { + "sha": "386b325a50962dc00469a40656c7202ccafeef8d", + "message": "add wasm build pipeline", + "author": "Jeeva Ramachandran", + "date": "2024-12-16T08:29:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/386b325a50962dc00469a40656c7202ccafeef8d" + }, + { + "sha": "55beb267be9b42d925173e5a246817be4610ae3d", + "message": "add wasm build pipeline", + "author": "Jeeva Ramachandran", + "date": "2024-12-16T08:32:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/55beb267be9b42d925173e5a246817be4610ae3d" + }, + { + "sha": "f2141f0e77ecc1fe281f84fb7c5cb3b568187ed1", + "message": "Update wasm-bulild-check.yml", + "author": "Jeeva Ramachandran", + "date": "2024-12-16T09:40:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f2141f0e77ecc1fe281f84fb7c5cb3b568187ed1" + }, + { + "sha": "802b719a9180f6dc61791bf94c0cba5ff3f6b612", + "message": "Merge branch 'main' into wasm-pipeline-check", + "author": "Jeeva Ramachandran", + "date": "2024-12-16T09:40:23+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/802b719a9180f6dc61791bf94c0cba5ff3f6b612" + } + ] +} \ No newline at end of file diff --git a/prs/pr_6860.json b/prs/pr_6860.json new file mode 100644 index 0000000000000000000000000000000000000000..c3af17e8df5350cb2780dcbda21d8a0eb43c7f75 --- /dev/null +++ b/prs/pr_6860.json @@ -0,0 +1,29 @@ +{ + "number": 6860, + "title": "feat(payments): [Payment links] Add config for changing button text for payment links", + "description": "## Type of Change\r\n\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\nAdded config for changing text of confirm button for payment links\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\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\r\n
\r\n1. Update `allowed_domains` in business profile (Expand to see details)\r\n\r\n``` \r\ncurl --location --request POST 'http://localhost:8080/account/merchant_1734440294/business_profile/pro_DD9djS7uH6B6uB9A8Nl4' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data-raw '{\r\n \"payment_link_config\": {\r\n \"allowed_domains\": [\r\n \"*\"\r\n ],\r\n \"enabled_saved_payment_method\": true,\r\n \"hide_card_nickname_field\": true\r\n }\r\n}'\r\n```\r\n
\r\n
\r\n2. Create a payment link with `payment_button_text` (Expand to see details)\r\n\r\n```\r\ncurl --location --request POST 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_apDeSrDBnIV37SLkVVFFxmJogw3H1KslEXeeAPIqQCamCS6vKk71qkgZlvB1CLUZ' \\\r\n--header 'Accept-Language: zh-Hant' \\\r\n--data-raw '{\r\n \"amount\": 100,\r\n \"currency\": \"EUR\",\r\n \"payment_link\": true,\r\n \"connector\": [\r\n \"novalnet\"\r\n ],\r\n \"session_expiry\": 1000000,\r\n \"return_url\": \"http://127.0.0.1:5500/src/pl_iframe.html\",\r\n \"payment_link_config\": {\r\n \"theme\": \"#14356f\",\r\n \"logo\": \"https://logosandtypes.com/wp-content/uploads/2020/08/zurich.svg\",\r\n \"seller_name\": \"Zurich Inc.\",\r\n \"payment_button_text\": \"Pay Now DG\"\r\n }\r\n}'\r\n```\r\nResponse of /payments \r\n`{\r\n \"payment_id\": \"pay_uWGKvq0GhsPOLazRZCaj\",\r\n \"merchant_id\": \"merchant_1734440294\",\r\n \"status\": \"requires_payment_method\",\r\n \"amount\": 100,\r\n \"net_amount\": 100,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 100,\r\n \"amount_received\": null,\r\n \"connector\": null,\r\n \"client_secret\": \"pay_uWGKvq0GhsPOLazRZCaj_secret_33a1Sy4E5rs7Tv53I4Is\",\r\n \"created\": \"2024-12-18T08:00:55.515Z\",\r\n \"currency\": \"EUR\",\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\": \"http://127.0.0.1:5500/src/pl_iframe.html\",\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\": 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_1734440294/pay_uWGKvq0GhsPOLazRZCaj?locale=zh-Hant\",\r\n \"secure_link\": \"http://localhost:8080/payment_link/s/merchant_1734440294/pay_uWGKvq0GhsPOLazRZCaj?locale=zh-Hant\",\r\n \"payment_link_id\": \"plink_ETWyoDZsOyC4f68LRjdS\"\r\n },\r\n \"profile_id\": \"pro_DD9djS7uH6B6uB9A8Nl4\",\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-29T21:47:35.508Z\",\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-18T08:00:55.532Z\",\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\n
3. Set `payment_button_text` in business profile config\r\n\r\n```\r\ncurl --location --request POST 'http://localhost:8080/account/merchant_1734516409/business_profile/pro_Emk2IPwiF6HkSkjTZCIc' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--data-raw '{\r\n \"payment_link_config\": {\r\n \"allowed_domains\": [\r\n \"*\"\r\n ],\r\n \"enabled_saved_payment_method\": true,\r\n \"theme\": \"#1A1A1A\",\r\n \"logo\": \"https://hyperswitch.io/favicon.ico\",\r\n \"background_image\": {\r\n \"url\": \"https://img.freepik.com/free-photo/hand-painted-watercolor-background-with-sky-clouds-shape_24972-1095.jpg\",\r\n \"size\": \"cover\"\r\n },\r\n \"payment_button_text\": \"DG Pay now\",\r\n \"business_specific_configs\": {\r\n \"style1\": {\r\n \"enabled_saved_payment_method\": true,\r\n \"theme\": \"#FEFEFE\",\r\n \"logo\": \"https://hyperswitch.io/favicon.ico\"\r\n },\r\n \"style2\": {\r\n \"enabled_saved_payment_method\": true,\r\n \"theme\": \"#1A1A1A\",\r\n \"logo\": \"https://hyperswitch.io/favicon.ico\"\r\n }\r\n }\r\n }\r\n}'\r\n```\r\n\r\n- Create a payment link using /payments\r\n\r\ncURL\r\n```curl\r\ncurl --location --request POST 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_Wnu3HE7zA4MpImfglpdCnSqZ00fL0BVLCj1aNe9TPXldcqXvdHy9nP943V6ud3JB' \\\r\n--data-raw '{\r\n \"authentication_type\": \"three_ds\",\r\n \"customer_id\": \"cus_rFGS1qK0MTSxdj0m5aqo\",\r\n \"profile_id\": \"pro_Emk2IPwiF6HkSkjTZCIc\",\r\n \"amount\": 100,\r\n \"currency\": \"HKD\",\r\n \"payment_link\": true,\r\n \"setup_future_usage\": \"off_session\",\r\n \"description\": \"This is my description of why this payment was requested.\",\r\n \"connector\": [\r\n \"adyen\"\r\n ],\r\n \"capture_method\": \"automatic\",\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\": \"John\",\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 \"email\": \"john.doe@example.com\",\r\n \"session_expiry\": 100000,\r\n \"return_url\": \"https://example.com\",\r\n \"payment_link_config\": {\r\n \"theme\": \"#14356f\",\r\n \"logo\": \"https://static.wikia.nocookie.net/logopedia/images/4/41/Zurich-1997-Horizontal.png\",\r\n \"seller_name\": \"Hyperswitch Inc.\"\r\n }\r\n}'\r\n```\r\n\r\n
\r\n\r\n
4. Screenshots (Expand to see details)\r\nOpen the secure payment link (`secure_link` in API response) in an iframe for validating the functionality. For checking payment_link simply click on the payment_link (`payment_link` in API response)\r\n\r\n**Screenshot for payment link**\r\n\"Screenshot\r\n\r\n\r\n**Screenshot for secured payment link**\r\n\"Screenshot\r\n\r\n
\r\n\r\n\r\n## Checklist\r\n\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", + "author": "dgeee13", + "created_at": "2024-12-17T11:38:20+00:00", + "merged_at": "2024-12-19T13:28:25+00:00", + "base_branch": "main", + "labels": [ + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/6860", + "commits": [ + { + "sha": "eb900da429b484e7cbb334a4cf25fb27d47aaab0", + "message": "add config for changing button text for payment links", + "author": "Debarati", + "date": "2024-12-18T08:07:57+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/eb900da429b484e7cbb334a4cf25fb27d47aaab0" + }, + { + "sha": "142b59cc31305181f4d4b4853fb51d85349a4c60", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2024-12-18T10:45:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/142b59cc31305181f4d4b4853fb51d85349a4c60" + } + ] +} \ No newline at end of file diff --git a/prs/pr_6907.json b/prs/pr_6907.json new file mode 100644 index 0000000000000000000000000000000000000000..090ceb96167bc53cb6c05ea2d35cee0c1c3b7b98 --- /dev/null +++ b/prs/pr_6907.json @@ -0,0 +1,29 @@ +{ + "number": 6907, + "title": "fix: invalidate surcharge cache during update", + "description": "## Type of Change\r\n\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\r\nWhen surcharge rules where updated or deleted, the in memory cache was being invalidated using the wrong key. Fixed that issue in this PR.\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\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 1. upsert surcharge rules. If amount >500 and <1000 add a surcharge of 40%.\r\n```\r\ncurl --location --request PUT 'http://localhost:8080/routing/decision/surcharge' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: dev_bLGFEtyJtHdvJqXtbnwOcnxpBuNk9lcGIHewiAgCcQQKXYdyoHw8SyAz5JcfikMl' \\\r\n--data '{\r\n \"name\": \"Surcharge Conditional config\",\r\n \"algorithm\": {\r\n \"defaultSelection\": {\r\n \"surcharge_details\": null\r\n },\r\n \"rules\": [\r\n {\r\n \"name\": \"rule_1\",\r\n \"routingOutput\": {\r\n \"surcharge_details\": {\r\n \"surcharge\": {\r\n \"type\": \"rate\",\r\n \"value\": {\r\n \"percentage\": 40\r\n }\r\n },\r\n \"tax_on_surcharge\": {\r\n \"percentage\": 40\r\n }\r\n }\r\n },\r\n \"statements\": [\r\n {\r\n \"condition\": [\r\n {\r\n \"lhs\": \"amount\",\r\n \"comparison\": \"greater_than\",\r\n \"value\": {\r\n \"type\": \"number\",\r\n \"value\": 500\r\n },\r\n \"metadata\": {}\r\n },\r\n {\r\n \"lhs\": \"amount\",\r\n \"comparison\": \"less_than\",\r\n \"value\": {\r\n \"type\": \"number\",\r\n \"value\": 1000\r\n },\r\n \"metadata\": {}\r\n }\r\n ],\r\n \"nested\": null\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\": {}\r\n },\r\n \"merchant_surcharge_configs\": {\r\n \"show_surcharge_breakup_screen\": true\r\n }\r\n}'\r\n```\r\nshould get status code 200 response.\r\n\r\n2. Create payment of 540 \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_bLGFEtyJtHdvJqXtbnwOcnxpBuNk9lcGIHewiAgCcQQKXYdyoHw8SyAz5JcfikMl' \\\r\n--data-raw '{\r\n \"amount\": 540,\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\": 540,\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\": \"+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 \"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 \"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\n3. Do payment method list.\r\n```\r\ncurl --location 'http://localhost:8080/account/payment_methods?client_secret=pay_rKiEoW6t1eHHzS8WukOx_secret_QvEuTgyhWcGmNhzqHrTc' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: pk_dev_8ea5f5ea888f43e199ae05a22b7aaae8'\r\n```\r\n\r\nAppropriate surcharge must be applied to each of the payment method.\r\n```\r\n\"surcharge_details\": {\r\n \"surcharge\": {\r\n \"type\": \"rate\",\r\n \"value\": {\r\n \"percentage\": 40.0\r\n }\r\n },\r\n \"tax_on_surcharge\": {\r\n \"percentage\": 40.0\r\n },\r\n \"display_surcharge_amount\": 2.16,\r\n \"display_tax_on_surcharge_amount\": 0.87,\r\n \"display_total_surcharge_amount\": 3.03\r\n },\r\n```\r\n\r\n4. Now update the surcharge rule. If amount >500 and <1000 add a surcharge of 10%.\r\n```\r\ncurl --location --request PUT 'http://localhost:8080/routing/decision/surcharge' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: dev_bLGFEtyJtHdvJqXtbnwOcnxpBuNk9lcGIHewiAgCcQQKXYdyoHw8SyAz5JcfikMl' \\\r\n--data '{\r\n \"name\": \"Surcharge Conditional config\",\r\n \"algorithm\": {\r\n \"defaultSelection\": {\r\n \"surcharge_details\": null\r\n },\r\n \"rules\": [\r\n {\r\n \"name\": \"rule_1\",\r\n \"routingOutput\": {\r\n \"surcharge_details\": {\r\n \"surcharge\": {\r\n \"type\": \"rate\",\r\n \"value\": {\r\n \"percentage\": 10\r\n }\r\n },\r\n \"tax_on_surcharge\": {\r\n \"percentage\": 10\r\n }\r\n }\r\n },\r\n \"statements\": [\r\n {\r\n \"condition\": [\r\n {\r\n \"lhs\": \"amount\",\r\n \"comparison\": \"greater_than\",\r\n \"value\": {\r\n \"type\": \"number\",\r\n \"value\": 500\r\n },\r\n \"metadata\": {}\r\n },\r\n {\r\n \"lhs\": \"amount\",\r\n \"comparison\": \"less_than\",\r\n \"value\": {\r\n \"type\": \"number\",\r\n \"value\": 1000\r\n },\r\n \"metadata\": {}\r\n }\r\n ],\r\n \"nested\": null\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\": {}\r\n },\r\n \"merchant_surcharge_configs\": {\r\n \"show_surcharge_breakup_screen\": true\r\n }\r\n}'\r\n```\r\n5. Do payment method list again.\r\n```\r\ncurl --location 'http://localhost:8080/account/payment_methods?client_secret=pay_rKiEoW6t1eHHzS8WukOx_secret_QvEuTgyhWcGmNhzqHrTc' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: pk_dev_8ea5f5ea888f43e199ae05a22b7aaae8'\r\n```\r\nAppropriate surcharge must be applied to each of the payment method.\r\n```\r\n\"surcharge_details\": {\r\n \"surcharge\": {\r\n \"type\": \"rate\",\r\n \"value\": {\r\n \"percentage\": 10.0\r\n }\r\n },\r\n \"tax_on_surcharge\": {\r\n \"percentage\": 10.0\r\n },\r\n \"display_surcharge_amount\": 0.54,\r\n \"display_tax_on_surcharge_amount\": 0.06,\r\n \"display_total_surcharge_amount\": 0.6\r\n },\r\n```\r\n\r\n\r\n\r\n## Checklist\r\n\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", + "author": "hrithikesh026", + "created_at": "2024-12-20T09:07:57+00:00", + "merged_at": "2025-02-04T01:18:46+00:00", + "base_branch": "main", + "labels": [ + "C-bug" + ], + "url": "https://github.com/juspay/hyperswitch/pull/6907", + "commits": [ + { + "sha": "2bc2e2df73aa53e0c19fffe416bcf0f0a3c98cf1", + "message": "fix: invalidate surcharge cache during update", + "author": "hrithikesh026", + "date": "2024-12-20T07:52:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2bc2e2df73aa53e0c19fffe416bcf0f0a3c98cf1" + }, + { + "sha": "dff0bae1d234475f468180a869bc6c57271e376e", + "message": "Merge branch 'main' into invalidate-surcharge-cache", + "author": "Hrithikesh", + "date": "2025-01-28T06:14:00+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/dff0bae1d234475f468180a869bc6c57271e376e" + } + ] +} \ No newline at end of file diff --git a/prs/pr_6927.json b/prs/pr_6927.json new file mode 100644 index 0000000000000000000000000000000000000000..8bcda3702b639b6c05a4b6c235b5dafeb707123e --- /dev/null +++ b/prs/pr_6927.json @@ -0,0 +1,30 @@ +{ + "number": 6927, + "title": "fix(wasm): remove chasenet from jpmorgan wasm as ChaseNet doesn\u2019t exist in PMT", + "description": "\r\n## Type of Change\r\n\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\nremove chasenet from jpmorgan wasm as ChaseNet doesn\u2019t exist in PMT\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\nNo test required as only wasm changes are done in this PR\r\n\r\n\r\n\r\n## Checklist\r\n\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", + "author": "swangi-kumari", + "created_at": "2024-12-24T07:34:14+00:00", + "merged_at": "2024-12-24T09:11:48+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "C-bug" + ], + "url": "https://github.com/juspay/hyperswitch/pull/6927", + "commits": [ + { + "sha": "c16b4f9ab69309c4a5adfee1ce5fdd2bf8b1ff58", + "message": "refactor: remove chasenet from jpmorgan wasm as ChaseNet doesn\u2019t exist in PMT", + "author": "swangi-kumari", + "date": "2024-12-24T07:32:39+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c16b4f9ab69309c4a5adfee1ce5fdd2bf8b1ff58" + }, + { + "sha": "0c9733d8d2168528e3ae7351a31b0d2636c2e6b0", + "message": "update wasm", + "author": "Jeeva Ramachandran", + "date": "2024-12-24T07:58:00+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0c9733d8d2168528e3ae7351a31b0d2636c2e6b0" + } + ] +} \ No newline at end of file diff --git a/prs/pr_6938.json b/prs/pr_6938.json new file mode 100644 index 0000000000000000000000000000000000000000..ca4ecee0bb189f16aea0d9cca178391e61754b02 --- /dev/null +++ b/prs/pr_6938.json @@ -0,0 +1,527 @@ +{ + "number": 6938, + "title": "feat(payment_methods_v2): add payment methods list endpoint", + "description": "## Type of Change\r\n\r\n\r\n- [x] New feature\r\n\r\n## Description\r\n\r\nThis PR adds payment methods list endpoint for payment methods endpoint for payment methods. This will be used to display the list of payment methods that are enabled by the merchant.\r\n\r\n\"Screenshot\r\n\r\n\r\n\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- Create a customer\r\n```bash\r\ncurl --location 'http://localhost:8080/v2/customers' \\\r\n--header 'x-profile-id: pro_Jl8KY80C28z1mRdXcDBT' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: dev_6BoCe4RXBXF6bxdXSvDilRNJzAyC44zmEzxrQrBAswLtV2wc91CNOGUTZ2ys5Ff0' \\\r\n--data-raw '{ \r\n \"merchant_reference_id\": \"customer_1735122196\",\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 \"default_billing_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 \"default_shipping_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 \"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- Create a payment method intent\r\n```bash\r\ncurl --location 'http://localhost:8080/v2/payment-methods/create-intent' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'X-Profile-Id: pro_Jl8KY80C28z1mRdXcDBT' \\\r\n--header 'api-key: dev_6BoCe4RXBXF6bxdXSvDilRNJzAyC44zmEzxrQrBAswLtV2wc91CNOGUTZ2ys5Ff0' \\\r\n--data '{\r\n \"customer_id\": \"12345_cus_0193f9043aae775099131fb81108488f\"\r\n}'\r\n```\r\n\r\n- List the payment methods\r\n```bash\r\ncurl --location 'http://localhost:8080/v2/payment-methods/12345_pm_0193f99973757b30a97807211a19d8fc/list-enabled-payment-methods' \\\r\n--header 'api-key: dev_6BoCe4RXBXF6bxdXSvDilRNJzAyC44zmEzxrQrBAswLtV2wc91CNOGUTZ2ys5Ff0' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'x-profile-id: pro_Jl8KY80C28z1mRdXcDBT'\r\n```\r\n\r\n- Response ( given that stripe connector is created )\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 \"required_fields\": []\r\n },\r\n {\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_subtype\": \"credit\",\r\n \"required_fields\": [\r\n {\r\n \"required_field\": \"payment_method_data.card.card_number\",\r\n \"display_name\": \"card_number\",\r\n \"field_type\": \"user_card_number\",\r\n \"value\": null\r\n },\r\n {\r\n \"required_field\": \"payment_method_data.card.card_exp_year\",\r\n \"display_name\": \"card_exp_year\",\r\n \"field_type\": \"user_card_expiry_year\",\r\n \"value\": null\r\n },\r\n {\r\n \"required_field\": \"payment_method_data.card.card_cvc\",\r\n \"display_name\": \"card_cvc\",\r\n \"field_type\": \"user_card_cvc\",\r\n \"value\": null\r\n },\r\n {\r\n \"required_field\": \"payment_method_data.card.card_exp_month\",\r\n \"display_name\": \"card_exp_month\",\r\n \"field_type\": \"user_card_expiry_month\",\r\n \"value\": null\r\n }\r\n ]\r\n },\r\n {\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_subtype\": \"debit\",\r\n \"required_fields\": []\r\n }\r\n ],\r\n}\r\n```\r\n\r\n\r\n## Checklist\r\n\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", + "author": "Narayanbhat166", + "created_at": "2024-12-25T10:24:27+00:00", + "merged_at": "2025-01-13T10:05:07+00:00", + "base_branch": "main", + "labels": [ + "M-api-contract-changes", + "api-v2" + ], + "url": "https://github.com/juspay/hyperswitch/pull/6938", + "commits": [ + { + "sha": "70cb8a1b712516b5b6a0490277ab2f7feab213ea", + "message": "chore: add comments with improvements to be made in merchant payment methods list", + "author": "Sanchith Hegde", + "date": "2024-12-06T09:43:52+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/70cb8a1b712516b5b6a0490277ab2f7feab213ea" + }, + { + "sha": "947795fe0ec0cc53e44f8230539b025851869d5f", + "message": "Merge branch 'main' into initial-merchant-payment-method-list-v2", + "author": "Narayan Bhat", + "date": "2024-12-09T06:26:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/947795fe0ec0cc53e44f8230539b025851869d5f" + }, + { + "sha": "3e7833fafd3bb09d92fdfcc7676936d6aa339194", + "message": "refactor: change payment_methods_enabled column to type for v2", + "author": "Narayan Bhat", + "date": "2024-12-10T12:51:17+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3e7833fafd3bb09d92fdfcc7676936d6aa339194" + }, + { + "sha": "560d3f638260c052037b2619a819dda270c608cf", + "message": "feat(payments_v2): implement payment methods list for v2", + "author": "Narayan Bhat", + "date": "2024-12-10T19:09:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/560d3f638260c052037b2619a819dda270c608cf" + }, + { + "sha": "09acb50340f98806b396ba8e608fbf5cafb1c277", + "message": "feat(payments_v2): add customers_payment_methods in pm list", + "author": "Narayan Bhat", + "date": "2024-12-11T06:34:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/09acb50340f98806b396ba8e608fbf5cafb1c277" + }, + { + "sha": "940e2c11afe6f76e537ffbf5e187c22921c14121", + "message": "feat(payments_v2): add list_payment_methods to openapi", + "author": "Narayan Bhat", + "date": "2024-12-11T10:39:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/940e2c11afe6f76e537ffbf5e187c22921c14121" + }, + { + "sha": "19ae04f0a2f15001189da649ae3b2b8e45aef3d0", + "message": "feat(payments_v2): add list_payment_methods to openapi", + "author": "Narayan Bhat", + "date": "2024-12-11T10:41:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/19ae04f0a2f15001189da649ae3b2b8e45aef3d0" + }, + { + "sha": "f8956082f0cea16423e068c552cd679ecef5635f", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2024-12-11T11:47:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f8956082f0cea16423e068c552cd679ecef5635f" + }, + { + "sha": "1096cbe500851f7270995fc6379f767d5e9089f6", + "message": "chore: add doc comments", + "author": "Narayan Bhat", + "date": "2024-12-11T15:58:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1096cbe500851f7270995fc6379f767d5e9089f6" + }, + { + "sha": "db9652ef42f83120e2998ecfee504185e1c55f4f", + "message": "Merge branch 'main' into initial-merchant-payment-method-list-v2", + "author": "Narayan Bhat", + "date": "2024-12-11T21:14:41+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/db9652ef42f83120e2998ecfee504185e1c55f4f" + }, + { + "sha": "b6ab7d2c942a2e7f77b86fb1f20c91def2ea0462", + "message": "refactor: address PR comments", + "author": "Narayan Bhat", + "date": "2024-12-12T11:48:52+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b6ab7d2c942a2e7f77b86fb1f20c91def2ea0462" + }, + { + "sha": "6a2c2c18ef65615d859f1afe88d978b7080f5443", + "message": "Revert \"chore: add comments with improvements to be made in merchant payment methods list\"\n\nThis reverts commit 70cb8a1b712516b5b6a0490277ab2f7feab213ea.", + "author": "Narayan Bhat", + "date": "2024-12-12T11:49:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6a2c2c18ef65615d859f1afe88d978b7080f5443" + }, + { + "sha": "fac85212489396c77c231dbb785826cc8c667bf2", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2024-12-12T11:52:29+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fac85212489396c77c231dbb785826cc8c667bf2" + }, + { + "sha": "65f811371bbcb40153ffb03c18f1e4dbd717e2c0", + "message": "chore: cargo clippy", + "author": "Narayan Bhat", + "date": "2024-12-12T13:31:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/65f811371bbcb40153ffb03c18f1e4dbd717e2c0" + }, + { + "sha": "2b5216ec2ed6047b0e66215c9f6cc95b6449619f", + "message": "Merge branch 'main' into initial-merchant-payment-method-list-v2", + "author": "Narayan Bhat", + "date": "2024-12-12T13:35:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2b5216ec2ed6047b0e66215c9f6cc95b6449619f" + }, + { + "sha": "593df4db2473fd14fb8c242b8315f6b8c9d47c63", + "message": "chore: rename fields", + "author": "Narayan Bhat", + "date": "2024-12-16T06:16:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/593df4db2473fd14fb8c242b8315f6b8c9d47c63" + }, + { + "sha": "fbcf8aa1a856b5c6a514c0de5fc905e7bc7b000b", + "message": "Merge branch 'main' into initial-merchant-payment-method-list-v2", + "author": "Narayan Bhat", + "date": "2024-12-16T06:42:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fbcf8aa1a856b5c6a514c0de5fc905e7bc7b000b" + }, + { + "sha": "6938d61ef9338b6ddc773d597fbec588a09a36d8", + "message": "chore: rename fields", + "author": "Narayan Bhat", + "date": "2024-12-16T09:53:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6938d61ef9338b6ddc773d597fbec588a09a36d8" + }, + { + "sha": "5d510922ed114d2a0b8e38c5439328bc35d50f16", + "message": "chore: cargo clippy", + "author": "Narayanbhat166", + "date": "2024-12-17T10:37:00+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5d510922ed114d2a0b8e38c5439328bc35d50f16" + }, + { + "sha": "c92ced0e8e48f5f63dceae8294d1600f6403dc81", + "message": "chore: fix openapi", + "author": "Narayanbhat166", + "date": "2024-12-17T13:06:38+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c92ced0e8e48f5f63dceae8294d1600f6403dc81" + }, + { + "sha": "28bf4ba0af9749a1bd8ce45bdb03617a2a69a0cc", + "message": "Merge branch 'main' into initial-merchant-payment-method-list-v2", + "author": "Narayanbhat166", + "date": "2024-12-17T13:29:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/28bf4ba0af9749a1bd8ce45bdb03617a2a69a0cc" + }, + { + "sha": "a6f1da5084820e70b9f1240810ff07753a6cd2ce", + "message": "chore: add .vscode/settings to gitignore", + "author": "Narayanbhat166", + "date": "2024-12-18T10:22:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a6f1da5084820e70b9f1240810ff07753a6cd2ce" + }, + { + "sha": "c3dd71d9a2e8fd779ed0b1d1c43d5f960e8f87e7", + "message": "refactor: move payment methods type to common_types", + "author": "Narayanbhat166", + "date": "2024-12-18T10:24:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c3dd71d9a2e8fd779ed0b1d1c43d5f960e8f87e7" + }, + { + "sha": "32122adf1728ded393c47afabad87ce3ac18e26b", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2024-12-18T10:30:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/32122adf1728ded393c47afabad87ce3ac18e26b" + }, + { + "sha": "31360f94c5f6af71ac3cefa106abb325c32a0ca7", + "message": "Merge branch 'main' into initial-merchant-payment-method-list-v2", + "author": "Narayanbhat166", + "date": "2024-12-18T10:50:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/31360f94c5f6af71ac3cefa106abb325c32a0ca7" + }, + { + "sha": "fc2453c89613ed9902aa7d77d89566bce4c977f5", + "message": "chore: cargo clippy_v2", + "author": "Narayanbhat166", + "date": "2024-12-19T07:28:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fc2453c89613ed9902aa7d77d89566bce4c977f5" + }, + { + "sha": "60a82e2a5a70b90ba6c7f1cc00c19dd3ca6bcd7d", + "message": "chore: fix openapi", + "author": "Narayanbhat166", + "date": "2024-12-19T07:44:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/60a82e2a5a70b90ba6c7f1cc00c19dd3ca6bcd7d" + }, + { + "sha": "7618c9d5623b486f08633fcf94d5597d87f0b33e", + "message": "chore: cargo clippy_v2", + "author": "Narayanbhat166", + "date": "2024-12-19T08:16:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7618c9d5623b486f08633fcf94d5597d87f0b33e" + }, + { + "sha": "a801fed85aac4df11d77c738afec6bedc8e56849", + "message": "chore: add extra information enum and make customer_payment_methods as optional", + "author": "Narayanbhat166", + "date": "2024-12-20T09:35:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a801fed85aac4df11d77c738afec6bedc8e56849" + }, + { + "sha": "79c2a5bb027bbd5a2f1f0e3dc0a849ad4c888be3", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2024-12-20T09:38:17+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/79c2a5bb027bbd5a2f1f0e3dc0a849ad4c888be3" + }, + { + "sha": "4acd9e08387e520b170e18652dc8c62b74406422", + "message": "chore: add serde flatten", + "author": "Narayan Bhat", + "date": "2024-12-20T12:36:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4acd9e08387e520b170e18652dc8c62b74406422" + }, + { + "sha": "a4c5b93c3eaae598713e5efa9f77fd33eac9c9a7", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2024-12-20T12:39:03+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a4c5b93c3eaae598713e5efa9f77fd33eac9c9a7" + }, + { + "sha": "d58841d398466852f7f83156825d3a27f5deb69d", + "message": "chore: change route to use kebab-case", + "author": "Narayan Bhat", + "date": "2024-12-20T13:33:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d58841d398466852f7f83156825d3a27f5deb69d" + }, + { + "sha": "5025e6461e0d95ed22ca8644847a878ccd1dc006", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2024-12-20T13:36:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5025e6461e0d95ed22ca8644847a878ccd1dc006" + }, + { + "sha": "51ad828432598056e30cd7ee31d670ee7471446f", + "message": "refactor: fix openapi", + "author": "Narayan Bhat", + "date": "2024-12-20T14:00:30+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/51ad828432598056e30cd7ee31d670ee7471446f" + }, + { + "sha": "40146e5d664e12fffdd31bcbf6170018056e4672", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2024-12-20T14:03:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/40146e5d664e12fffdd31bcbf6170018056e4672" + }, + { + "sha": "ac8074d1b66f05fe78ea879a852c36b49bbd44f2", + "message": "fix: openapi_v2", + "author": "Narayan Bhat", + "date": "2024-12-20T15:18:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ac8074d1b66f05fe78ea879a852c36b49bbd44f2" + }, + { + "sha": "d1869041f7798ca51682d93091c681619b11da64", + "message": "Merge branch 'main' into initial-merchant-payment-method-list-v2", + "author": "Narayan Bhat", + "date": "2024-12-20T17:18:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d1869041f7798ca51682d93091c681619b11da64" + }, + { + "sha": "7ae9fb442247216f445cb58b07856d1deafd6006", + "message": "chore: cargo clippy_v2", + "author": "Narayan Bhat", + "date": "2024-12-20T17:20:17+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7ae9fb442247216f445cb58b07856d1deafd6006" + }, + { + "sha": "5bc9c590b1041bb0162b64c4c150a530825dbb7a", + "message": "chore: merge fixes", + "author": "Narayan Bhat", + "date": "2024-12-21T15:26:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5bc9c590b1041bb0162b64c4c150a530825dbb7a" + }, + { + "sha": "eaff74ebbbd68cbdfa693630e38cf46924a07755", + "message": "chore: remove specific imports", + "author": "Narayanbhat166", + "date": "2024-12-23T11:00:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/eaff74ebbbd68cbdfa693630e38cf46924a07755" + }, + { + "sha": "b10edf9a4710b84c391ce6372025de2308882eb8", + "message": "Merge branch 'main' into payment_methods_list_for_payment_methods", + "author": "Narayanbhat166", + "date": "2024-12-23T11:38:32+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b10edf9a4710b84c391ce6372025de2308882eb8" + }, + { + "sha": "ea72debccb79baf873ed658b64a900c9f6c11c6f", + "message": "chore: remove redundant code because of merge conflicts", + "author": "Narayanbhat166", + "date": "2024-12-23T13:16:41+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ea72debccb79baf873ed658b64a900c9f6c11c6f" + }, + { + "sha": "c4b9b726cb1295dd8e5403a980fd437f95530af4", + "message": "refactor: add locker config", + "author": "Narayan Bhat", + "date": "2024-12-24T13:25:23+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c4b9b726cb1295dd8e5403a980fd437f95530af4" + }, + { + "sha": "c90cc048eab292e12822c2f9507ddd0fe432bcd3", + "message": "Merge branch 'main' into payment_methods_list_for_payment_methods", + "author": "Narayan Bhat", + "date": "2024-12-24T13:25:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c90cc048eab292e12822c2f9507ddd0fe432bcd3" + }, + { + "sha": "4f31d6ad6c2699fe535e0df0ef118d0da82bd16e", + "message": "feat(payment_methods): add payment methods list", + "author": "Narayan Bhat", + "date": "2024-12-25T10:04:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4f31d6ad6c2699fe535e0df0ef118d0da82bd16e" + }, + { + "sha": "22ae53ec2b3102430ff0738be485da98034ebdd8", + "message": "Merge branch 'main' into payment_methods_list_for_payment_methods", + "author": "Narayan Bhat", + "date": "2024-12-25T10:05:54+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/22ae53ec2b3102430ff0738be485da98034ebdd8" + }, + { + "sha": "89f90c6a4f8019c42d981fdc32b4e9867c8b3af2", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2024-12-25T10:27:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/89f90c6a4f8019c42d981fdc32b4e9867c8b3af2" + }, + { + "sha": "289b0e5418c54fe6e9ea6c5a03facfe6569dd618", + "message": "feat: add openapi endpoints for payment methods list", + "author": "Narayan Bhat", + "date": "2024-12-25T11:41:38+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/289b0e5418c54fe6e9ea6c5a03facfe6569dd618" + }, + { + "sha": "3105443bfeaaff1bd37bb6e3f4736367820c65dd", + "message": "chore: address PR comments", + "author": "Narayan Bhat", + "date": "2025-01-02T09:58:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3105443bfeaaff1bd37bb6e3f4736367820c65dd" + }, + { + "sha": "96b4d958f7f8918736b5a5b679fd1b21c5a469da", + "message": "fix: openapi", + "author": "Narayan Bhat", + "date": "2025-01-02T11:34:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/96b4d958f7f8918736b5a5b679fd1b21c5a469da" + }, + { + "sha": "4684a97c4e932e9cd4431bbad532bed98b6b8ac5", + "message": "feat: add required fields support for payment methods", + "author": "Narayan Bhat", + "date": "2025-01-03T09:36:35+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4684a97c4e932e9cd4431bbad532bed98b6b8ac5" + }, + { + "sha": "7362fb3c0bf57d84a95f6417b0890e2121e3e521", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-03T09:37:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7362fb3c0bf57d84a95f6417b0890e2121e3e521" + }, + { + "sha": "d5b694291f594391917c3f6df2a2bee384899873", + "message": "chore: cargo clippy", + "author": "Narayan Bhat", + "date": "2025-01-03T11:57:35+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d5b694291f594391917c3f6df2a2bee384899873" + }, + { + "sha": "d538cc1815f791fd70d28118d30375ff6e75a43e", + "message": "refactor: add the required fields config only for v2", + "author": "Narayan Bhat", + "date": "2025-01-03T16:46:38+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d538cc1815f791fd70d28118d30375ff6e75a43e" + }, + { + "sha": "1f20a9577ccdbe794faa498c8b250f7f6ad05703", + "message": "fix: openapi v2", + "author": "Narayan Bhat", + "date": "2025-01-03T18:02:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1f20a9577ccdbe794faa498c8b250f7f6ad05703" + }, + { + "sha": "64808eb5c88430d8f4586be3a6d5ed9df66b398b", + "message": "fix: openapi v2", + "author": "Narayan Bhat", + "date": "2025-01-03T18:27:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/64808eb5c88430d8f4586be3a6d5ed9df66b398b" + }, + { + "sha": "1ce18db0b562f51dd18321a2537c196afc011aea", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-03T18:30:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1ce18db0b562f51dd18321a2537c196afc011aea" + }, + { + "sha": "bdfdeeb4797447fd2990a7eec57528fccec777ad", + "message": "chore: cargo clippy", + "author": "Narayan Bhat", + "date": "2025-01-03T20:38:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/bdfdeeb4797447fd2990a7eec57528fccec777ad" + }, + { + "sha": "68c93c4bb301888207df299c758a4d364a39de9f", + "message": "chore: revert config changes", + "author": "Narayan Bhat", + "date": "2025-01-04T04:05:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/68c93c4bb301888207df299c758a4d364a39de9f" + }, + { + "sha": "2c3828d7ca5a3fd803d34bdbdabbaab1645f010a", + "message": "chore: cargo clippy", + "author": "Narayan Bhat", + "date": "2025-01-06T07:36:17+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2c3828d7ca5a3fd803d34bdbdabbaab1645f010a" + }, + { + "sha": "b02524c1c0cd9394583fec2ec56de5697e75f5e3", + "message": "refactor: remove customer payment methods from payment methods", + "author": "Narayan Bhat", + "date": "2025-01-06T11:16:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b02524c1c0cd9394583fec2ec56de5697e75f5e3" + }, + { + "sha": "0bac917da0a5cee4b01a735c7a723eb1d54e6398", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-06T11:19:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0bac917da0a5cee4b01a735c7a723eb1d54e6398" + }, + { + "sha": "4b05c972904c1a82f898a8e35a14c1372e7b1321", + "message": "refactor: remove hardcoding required fields config", + "author": "Narayan Bhat", + "date": "2025-01-06T14:01:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4b05c972904c1a82f898a8e35a14c1372e7b1321" + }, + { + "sha": "34c07123844372ae47334db3137484e4fbcde98c", + "message": "Merge branch 'main' into payment_methods_list_for_payment_methods", + "author": "Narayan Bhat", + "date": "2025-01-07T07:58:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/34c07123844372ae47334db3137484e4fbcde98c" + }, + { + "sha": "3379758459e4b14c2a5b5deebc37f4b70935162d", + "message": "chore: merge fixes", + "author": "Narayan Bhat", + "date": "2025-01-07T08:19:38+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3379758459e4b14c2a5b5deebc37f4b70935162d" + }, + { + "sha": "af28c4487806f46c96ea77dfc2d9f247bdb42c5a", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-07T08:22:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/af28c4487806f46c96ea77dfc2d9f247bdb42c5a" + }, + { + "sha": "de3ee96375035116525cc0d27749949924358411", + "message": "chore: address PR comments", + "author": "Narayan Bhat", + "date": "2025-01-08T07:24:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/de3ee96375035116525cc0d27749949924358411" + }, + { + "sha": "2901eaf02a06d623fbd009293864733249ec609c", + "message": "chore: remove toml dependency", + "author": "Narayan Bhat", + "date": "2025-01-08T10:30:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2901eaf02a06d623fbd009293864733249ec609c" + }, + { + "sha": "c5755cc7376f3cdb1f58179b7ed40f1d146e0e63", + "message": "chore: move the struct to appropriate place", + "author": "Narayan Bhat", + "date": "2025-01-09T13:51:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c5755cc7376f3cdb1f58179b7ed40f1d146e0e63" + }, + { + "sha": "4bfd11ada4e1fad477864cfcb959268ec6c4c8df", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-09T13:52:29+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4bfd11ada4e1fad477864cfcb959268ec6c4c8df" + }, + { + "sha": "ad6a2214203ca9a1535cb74e4f0912290bdf32c3", + "message": "refactor: change list_payment_methods to list_enabled_payment_methods", + "author": "Narayan Bhat", + "date": "2025-01-09T14:58:30+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ad6a2214203ca9a1535cb74e4f0912290bdf32c3" + }, + { + "sha": "f3cf1f92c244916b31a2040b0b6bcd7d5740a374", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-09T15:01:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f3cf1f92c244916b31a2040b0b6bcd7d5740a374" + } + ] +} \ No newline at end of file diff --git a/prs/pr_6966.json b/prs/pr_6966.json new file mode 100644 index 0000000000000000000000000000000000000000..f2f83b68ef47006ef01e4a288f9dfd526ea58cc8 --- /dev/null +++ b/prs/pr_6966.json @@ -0,0 +1,58 @@ +{ + "number": 6966, + "title": "feat(connector): [Xendit] ADD Cards & Mandates Flow ", + "description": "## Type of Change\r\n\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\nAdded Xendit Cards & Mandates Flow \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- [x] This PR modifies application configuration/environment variables\r\n\r\n\r\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n## How did you test it?\r\n\"Screenshot\r\n\"Screenshot\r\n\"Screenshot\r\n\"Screenshot\r\n\r\n**Three-DS ** \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_tq4ULEe1sBlAVdBP2vInkkBCLMBBPimfl5cfsGZKq19Apf2XxUxxJYfYQ0iDTvkb' \\\r\n--data-raw '{\r\n \"amount\": 651200,\r\n \"currency\": \"IDR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"customer_id\": \"First_Customer\",\r\n \"name\": \"John Doe\",\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\": \"4000000000001091\",\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"27\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"124\"\r\n }\r\n },\r\n \"billing\": {\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n}'\r\nResponse\r\n{\r\n \"payment_id\": \"pay_J396NwTCTnQR6aNN06cj\",\r\n \"merchant_id\": \"merchant_1736237814\",\r\n \"status\": \"requires_customer_action\",\r\n \"amount\": 651200,\r\n \"net_amount\": 651200,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 651200,\r\n \"amount_received\": null,\r\n \"connector\": \"xendit\",\r\n \"client_secret\": \"pay_J396NwTCTnQR6aNN06cj_secret_D8MZIqPS0np9YOmdaY1k\",\r\n \"created\": \"2025-01-09T08:02:30.946Z\",\r\n \"currency\": \"IDR\",\r\n \"customer_id\": \"First_Customer\",\r\n \"customer\": {\r\n \"id\": \"First_Customer\",\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\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1091\",\r\n \"card_type\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"INTL HDQTRS-CENTER OWNED\",\r\n \"card_issuing_country\": \"UNITEDSTATES\",\r\n \"card_isin\": \"400000\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"27\",\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\": null,\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\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\": 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_J396NwTCTnQR6aNN06cj/merchant_1736237814/pay_J396NwTCTnQR6aNN06cj_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\": \"First_Customer\",\r\n \"created_at\": 1736409750,\r\n \"expires\": 1736413350,\r\n \"secret\": \"epk_2775a6f3843b44088dfd343772ec8f90\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"pr-68380c6c-fa9c-4f70-8f90-b3435d13294c\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"32864b78-b0e6-404f-91d5-3499ca43d437\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_LHUMEFyJkdZ8ZpRYaPlO\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_Z3QCs07PIgZl44iBlKr7\",\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:17:30.946Z\",\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:02:32.018Z\",\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**Redirection Response**\r\n\"Screenshot\r\n\"Screenshot\r\n\r\n**Mandates 3DS**\r\n```\r\nRequest: CIT\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_tq4ULEe1sBlAVdBP2vInkkBCLMBBPimfl5cfsGZKq19Apf2XxUxxJYfYQ0iDTvkb' \\\r\n--data-raw '{\r\n \"amount\": 651200,\r\n \"currency\": \"IDR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"customer_id\": \"First_Customer\",\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\": \"4000000000001091\",\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"27\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"124\"\r\n }\r\n },\r\n \"billing\": {\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"setup_future_usage\": \"off_session\",\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\nResponse\r\n{\r\n \"payment_id\": \"pay_mFnbSGcR9kGihTbbZlk1\",\r\n \"merchant_id\": \"merchant_1736237814\",\r\n \"status\": \"requires_customer_action\",\r\n \"amount\": 651200,\r\n \"net_amount\": 651200,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 651200,\r\n \"amount_received\": null,\r\n \"connector\": \"xendit\",\r\n \"client_secret\": \"pay_mFnbSGcR9kGihTbbZlk1_secret_WcRx43ISAJxiWd36FYwi\",\r\n \"created\": \"2025-01-09T08:05:08.408Z\",\r\n \"currency\": \"IDR\",\r\n \"customer_id\": \"First_Customer\",\r\n \"customer\": {\r\n \"id\": \"First_Customer\",\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\": \"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\": \"1091\",\r\n \"card_type\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"INTL HDQTRS-CENTER OWNED\",\r\n \"card_issuing_country\": \"UNITEDSTATES\",\r\n \"card_isin\": \"400000\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"27\",\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\": null,\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\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\": 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_mFnbSGcR9kGihTbbZlk1/merchant_1736237814/pay_mFnbSGcR9kGihTbbZlk1_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\": \"First_Customer\",\r\n \"created_at\": 1736409908,\r\n \"expires\": 1736413508,\r\n \"secret\": \"epk_6c04b0ae18fb45c6947cb8debbd8ffb3\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"pr-daa78a5d-9c69-4d92-8333-ec358739018c\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"6e6cb3b5-00cd-43ff-8162-26cd4cbd96f8\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_LHUMEFyJkdZ8ZpRYaPlO\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_Z3QCs07PIgZl44iBlKr7\",\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:20:08.408Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": \"pm_pC8guSouUhlruaVUnMeQ\",\r\n \"payment_method_status\": \"inactive\",\r\n \"updated\": \"2025-01-09T08:05:09.242Z\",\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-8c1b96d1-6dbf-40f1-bf7f-02fb85b50275\"\r\n}\r\n**Sync Response**\r\n\r\n\"Screenshot\r\n\r\n```\r\n**MIT-Payments**\r\n```\r\nRequest:\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_tq4ULEe1sBlAVdBP2vInkkBCLMBBPimfl5cfsGZKq19Apf2XxUxxJYfYQ0iDTvkb' \\\r\n--data-raw '{\r\n \"amount\": 6500000,\r\n \"currency\": \"IDR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"customer_id\": \"First_Customer\",\r\n \"email\": \"guest@example.com\",\r\n \"off_session\": true,\r\n \"recurring_details\": {\r\n \"type\": \"payment_method_id\",\r\n \"data\": \"pm_pC8guSouUhlruaVUnMeQ\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"test\",\r\n \"country\": \"US\",\r\n \"line1\": \"here\",\r\n \"line2\": \"there\",\r\n \"line3\": \"anywhere\",\r\n \"zip\": \"560095\",\r\n \"state\": \"Washington\",\r\n \"first_name\": \"One\",\r\n \"last_name\": \"Two\"\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}'\r\nResponse\r\n{\r\n \"payment_id\": \"pay_jQ9tMQek9zg1LULe6iGe\",\r\n \"merchant_id\": \"merchant_1736237814\",\r\n \"status\": \"processing\",\r\n \"amount\": 6500000,\r\n \"net_amount\": 6500000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": \"xendit\",\r\n \"client_secret\": \"pay_jQ9tMQek9zg1LULe6iGe_secret_kDteLBW9dmMfCUaPJvoz\",\r\n \"created\": \"2025-01-09T08:08:57.890Z\",\r\n \"currency\": \"IDR\",\r\n \"customer_id\": \"First_Customer\",\r\n \"customer\": {\r\n \"id\": \"First_Customer\",\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\": true,\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\": \"1091\",\r\n \"card_type\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"INTL HDQTRS-CENTER OWNED\",\r\n \"card_issuing_country\": \"UNITEDSTATES\",\r\n \"card_isin\": \"400000\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"27\",\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\": \"test\",\r\n \"country\": \"US\",\r\n \"line1\": \"here\",\r\n \"line2\": \"there\",\r\n \"line3\": \"anywhere\",\r\n \"zip\": \"560095\",\r\n \"state\": \"Washington\",\r\n \"first_name\": \"One\",\r\n \"last_name\": \"Two\"\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\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": \"First_Customer\",\r\n \"created_at\": 1736410137,\r\n \"expires\": 1736413737,\r\n \"secret\": \"epk_75908c6e3a9843e7bd685f32058cd10e\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"pr-ca0126e8-03de-424d-a3db-02a55c9d93c8\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"2c7ed899-7b29-4a4b-92e7-06a3d647c394\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_LHUMEFyJkdZ8ZpRYaPlO\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_Z3QCs07PIgZl44iBlKr7\",\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:23:57.890Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": \"pm_pC8guSouUhlruaVUnMeQ\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-01-09T08:08:58.839Z\",\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-8c1b96d1-6dbf-40f1-bf7f-02fb85b50275\"\r\n}\r\n\r\n```\r\nSync:\r\n\r\n\"Screenshot\r\n\r\n\r\n## Checklist\r\n\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", + "author": "awasthi21", + "created_at": "2025-01-02T09:04:13+00:00", + "merged_at": "2025-01-15T10:51:54+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/6966", + "commits": [ + { + "sha": "fc571f4f6e5f5dfa4cc25660c8284a7d501e4137", + "message": "cards-xendit", + "author": "Malay Awasthi", + "date": "2025-01-15T06:11:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fc571f4f6e5f5dfa4cc25660c8284a7d501e4137" + }, + { + "sha": "520aa20094af5e2b7983be864a62f81e2eee27a4", + "message": "chore(cypress): run formatter and address lints", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-15T06:12:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/520aa20094af5e2b7983be864a62f81e2eee27a4" + }, + { + "sha": "6ba22f84e84813cfc5b3e1daf02d5d9acada7f0f", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-15T06:15:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6ba22f84e84813cfc5b3e1daf02d5d9acada7f0f" + }, + { + "sha": "0ef40157c9786fc07e1eb4d9fc01656db12b914d", + "message": "fix/cypress", + "author": "Malay Awasthi", + "date": "2025-01-15T07:03:07+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0ef40157c9786fc07e1eb4d9fc01656db12b914d" + }, + { + "sha": "6a0291e0f7f392a5c342743a205681b29918b010", + "message": "fix/cypress", + "author": "Malay Awasthi", + "date": "2025-01-15T07:13:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6a0291e0f7f392a5c342743a205681b29918b010" + }, + { + "sha": "7f839c9b937d44b90c77a98258e487667161e130", + "message": "chore(cypress): run formatter and address lints", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-15T07:26:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7f839c9b937d44b90c77a98258e487667161e130" + } + ] +} \ No newline at end of file diff --git a/prs/pr_6967.json b/prs/pr_6967.json new file mode 100644 index 0000000000000000000000000000000000000000..dc2854e05d5f62155dc8c22eef1994fd4ad9f5ad --- /dev/null +++ b/prs/pr_6967.json @@ -0,0 +1,141 @@ +{ + "number": 6967, + "title": "chore: fix `toml` format to address wasm build failure", + "description": "## Type of Change\r\n\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [x] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n\r\nAn incorrect TOML format has been added to the ctp_mastercard due to which the wasm build is getting failed.\r\n\r\nAdd development as feature in wasm config\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\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\r\n## Checklist\r\n\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", + "author": "JeevaRamu0104", + "created_at": "2025-01-02T09:21:14+00:00", + "merged_at": "2025-01-28T09:17:26+00:00", + "base_branch": "main", + "labels": [ + "A-euclid-foc" + ], + "url": "https://github.com/juspay/hyperswitch/pull/6967", + "commits": [ + { + "sha": "8a1b1fb41110423d766539750cea37eb2be2df62", + "message": "Merge branch 'main' of github.com:juspay/hyperswitch", + "author": "Jeeva Ramachandran", + "date": "2024-12-18T09:26:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8a1b1fb41110423d766539750cea37eb2be2df62" + }, + { + "sha": "c11123fe506176a6df3bf27eb9d3d7fda79bc406", + "message": "Merge branch 'main' of github.com:juspay/hyperswitch", + "author": "Jeeva Ramachandran", + "date": "2024-12-23T11:21:07+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c11123fe506176a6df3bf27eb9d3d7fda79bc406" + }, + { + "sha": "90ae0aaa1d8c4a695e5d5050491244102c4da636", + "message": "Merge branch 'main' of github.com:juspay/hyperswitch", + "author": "Jeeva Ramachandran", + "date": "2024-12-24T06:09:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/90ae0aaa1d8c4a695e5d5050491244102c4da636" + }, + { + "sha": "e0426027272d1dbbec558a7abe93abae15b17c11", + "message": "Merge branch 'main' of github.com:juspay/hyperswitch", + "author": "Jeeva Ramachandran", + "date": "2024-12-24T10:00:23+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e0426027272d1dbbec558a7abe93abae15b17c11" + }, + { + "sha": "fe12285a24a1de59c0d9314141703bbdd3a41616", + "message": "Merge branch 'main' of github.com:juspay/hyperswitch", + "author": "Jeeva Ramachandran", + "date": "2025-01-02T07:38:29+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fe12285a24a1de59c0d9314141703bbdd3a41616" + }, + { + "sha": "56d83e0a63991d07ee26ec7549f96d36c8e26faa", + "message": "update wasm package", + "author": "Jeeva Ramachandran", + "date": "2025-01-02T07:43:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/56d83e0a63991d07ee26ec7549f96d36c8e26faa" + }, + { + "sha": "0c8147abe6c94eca1911be7b22cf4df3d2df06e2", + "message": "update wasm package", + "author": "Jeeva Ramachandran", + "date": "2025-01-02T10:50:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0c8147abe6c94eca1911be7b22cf4df3d2df06e2" + }, + { + "sha": "249536060d40e08e29f24c96b42c967ec5c16b78", + "message": "Merge branch 'main' into fix-wasm-jenkins-build", + "author": "Jeeva Ramachandran", + "date": "2025-01-06T06:11:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/249536060d40e08e29f24c96b42c967ec5c16b78" + }, + { + "sha": "8e88406fce01b1512511fee60c6fa0fefdaa8a15", + "message": "update wasm build script", + "author": "Jeeva Ramachandran", + "date": "2025-01-06T10:07:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8e88406fce01b1512511fee60c6fa0fefdaa8a15" + }, + { + "sha": "d858b9b06ffd75039dd205284874396f2a4b725a", + "message": "update build script", + "author": "Jeeva Ramachandran", + "date": "2025-01-06T10:51:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d858b9b06ffd75039dd205284874396f2a4b725a" + }, + { + "sha": "2b4b08fdadba00a027a6f9dd08a8e3014c852bea", + "message": "Merge branch 'main' into fix-wasm-jenkins-build", + "author": "Jeeva Ramachandran", + "date": "2025-01-06T11:42:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2b4b08fdadba00a027a6f9dd08a8e3014c852bea" + }, + { + "sha": "385f0bd1766b602f5555e04d3a779b6ab8c31ac4", + "message": "Merge branch 'main' into fix-wasm-jenkins-build", + "author": "Jeeva Ramachandran", + "date": "2025-01-07T07:10:30+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/385f0bd1766b602f5555e04d3a779b6ab8c31ac4" + }, + { + "sha": "4f02e1e077fdba5b9fbeb1cac4211d649cec1e6a", + "message": "Merge branch 'main' into fix-wasm-jenkins-build", + "author": "Jeeva Ramachandran", + "date": "2025-01-07T09:36:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4f02e1e077fdba5b9fbeb1cac4211d649cec1e6a" + }, + { + "sha": "364ff361873406883d47b1a660c6dc123906a695", + "message": "Merge branch 'main' into fix-wasm-jenkins-build", + "author": "Jeeva Ramachandran", + "date": "2025-01-09T06:16:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/364ff361873406883d47b1a660c6dc123906a695" + }, + { + "sha": "83bc5908f5dead5789ed4bb5f97f4574ea0200b6", + "message": "Merge branch 'main' into fix-wasm-jenkins-build", + "author": "Jeeva Ramachandran", + "date": "2025-01-24T10:20:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/83bc5908f5dead5789ed4bb5f97f4574ea0200b6" + }, + { + "sha": "1d9b8504d3dc07e2877bd751d2fea43d83fbb27d", + "message": "Merge branch 'fix-wasm-jenkins-build' of github.com:juspay/hyperswitch into fix-wasm-jenkins-build", + "author": "Jeeva Ramachandran", + "date": "2025-01-24T10:20:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1d9b8504d3dc07e2877bd751d2fea43d83fbb27d" + }, + { + "sha": "2722a49b2b69eb5cafc2b48076403cf4419e8f7c", + "message": "update wasm", + "author": "Jeeva Ramachandran", + "date": "2025-01-24T10:24:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2722a49b2b69eb5cafc2b48076403cf4419e8f7c" + }, + { + "sha": "e4ba1d2cedb1375e7ca1a758a98ffe6dec1926cf", + "message": "Merge branch 'main' into fix-wasm-jenkins-build", + "author": "Jeeva Ramachandran", + "date": "2025-01-27T05:57:39+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e4ba1d2cedb1375e7ca1a758a98ffe6dec1926cf" + } + ] +} \ No newline at end of file diff --git a/prs/pr_6982.json b/prs/pr_6982.json new file mode 100644 index 0000000000000000000000000000000000000000..255b8781493f288bdde5d29f726a6703bf4e22d5 --- /dev/null +++ b/prs/pr_6982.json @@ -0,0 +1,485 @@ +{ + "number": 6982, + "title": "feat(core): add support for confirmation flow for click to pay", + "description": "## Type of Change\r\n\r\n\r\n- [x] New feature\r\n\r\n\r\n## Description\r\n\r\n Add support for confirmation flow for click to pay\r\n \r\n currenlty in cick to pay we do authentication with mastercard and authorisation with adyen.\r\n \r\n But to be prod certified mastercard needs a confirmation notification from hyperswitch after authorisation stating the state of the transaction.\r\n \r\n So, in this Pr I have added confirmation flow for click to pay\r\n\r\n## How did you test it?\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_mastercard\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\": \"authentication_processor\",\r\n \"connector_name\": \"ctp_mastercard\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"HeaderKey\",\r\n \"api_key\": \"API-KEY\"\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 \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"metadata\": {\r\n \"dpa_id\": \"b6e06cc6-3018-4c4c-bbf5-9fb232615090\",\r\n \"dpa_name\": \"TestMerchant\",\r\n \"locale\": \"en_AU\",\r\n \"card_brands\": [\"mastercard\", \"visa\"],\r\n \"acquirer_bin\": \"545301\",\r\n \"acquirer_merchant_id\": \"SRC3DS\",\r\n \"merchant_category_code\": \"0001\",\r\n \"merchant_country_code\": \"US\"\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_mastercard 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 \"merchant_transaction_id\": \"0a4e0d3.34f4a04b.803eb38b0a56f082296538d4a70c064a6b320639\",\r\n \"correlation_id\": \"34f4a04b.bcd1ac39-e0f3-479e-b3ee-703ade0c66dc\",\r\n \"x_src_flow_id\" : \"34f4a04b.bcd1ac39-e0f3-479e-b3ee-703ade0c66dc.1727438793\"\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\nLook for confirmation call in logs\r\n\r\n\"Screenshot\r\n\r\n\r\n## Checklist\r\n\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", + "author": "sahkal", + "created_at": "2025-01-03T10:19:23+00:00", + "merged_at": "2025-02-20T08:04:39+00:00", + "base_branch": "main", + "labels": [ + "A-core", + "C-feature" + ], + "url": "https://github.com/juspay/hyperswitch/pull/6982", + "commits": [ + { + "sha": "5f694cfa173a22cb339d955d916f966c4b4f9cd2", + "message": "refactor(router): fixed mca logic fetch", + "author": "Sahkal Poddar", + "date": "2024-12-17T10:51:00+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5f694cfa173a22cb339d955d916f966c4b4f9cd2" + }, + { + "sha": "5d0d9d178fd01752c501e41b195e3181d18423f2", + "message": "dummy commit", + "author": "Sahkal Poddar", + "date": "2024-12-18T06:21:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5d0d9d178fd01752c501e41b195e3181d18423f2" + }, + { + "sha": "6e4bc873d876cc83b2760a388ad62f854eb869ed", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2024-12-18T06:22:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6e4bc873d876cc83b2760a388ad62f854eb869ed" + }, + { + "sha": "c7a0b06db2e063fff440604d171575041e8143ed", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into 7862-refactor-refactor-ctp-flow-to-fetch-mca_id-and-get-the-connector-creds-instead-of-connector_name", + "author": "Sahkal Poddar", + "date": "2024-12-18T11:37:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c7a0b06db2e063fff440604d171575041e8143ed" + }, + { + "sha": "3c2e034c673de2a740644aaf1c534faf8092fd69", + "message": "addressed pr comments", + "author": "Sahkal Poddar", + "date": "2024-12-18T12:41:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3c2e034c673de2a740644aaf1c534faf8092fd69" + }, + { + "sha": "60a60e1d916e45a8acdd8c55345c7a51d4d0f504", + "message": "fixed path url for uas", + "author": "Sahkal Poddar", + "date": "2024-12-18T13:12:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/60a60e1d916e45a8acdd8c55345c7a51d4d0f504" + }, + { + "sha": "a97f01eeaca1ac9baedcac357835702653eaaa96", + "message": "resolved conflicts", + "author": "Sahkal Poddar", + "date": "2024-12-20T07:45:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a97f01eeaca1ac9baedcac357835702653eaaa96" + }, + { + "sha": "55029ed692f175214175a63dde576cf689ecc76e", + "message": "addressed pr comments", + "author": "Sahkal Poddar", + "date": "2024-12-20T10:24:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/55029ed692f175214175a63dde576cf689ecc76e" + }, + { + "sha": "0e7922b5cf45f2c688ac42b2afd0cedd84b8232b", + "message": "Merge branch 'main' into 7862-refactor-refactor-ctp-flow-to-fetch-mca_id-and-get-the-connector-creds-instead-of-connector_name", + "author": "Sahkal Poddar", + "date": "2024-12-20T10:51:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0e7922b5cf45f2c688ac42b2afd0cedd84b8232b" + }, + { + "sha": "98b5af4ea8c7c5b79a37b61a88eae1463397e6ff", + "message": "moved external 3ds under else condition", + "author": "Sahkal Poddar", + "date": "2024-12-20T11:06:41+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/98b5af4ea8c7c5b79a37b61a88eae1463397e6ff" + }, + { + "sha": "edae612175c69435f4c12c9276981d05a3130387", + "message": "Merge branch '7862-refactor-refactor-ctp-flow-to-fetch-mca_id-and-get-the-connector-creds-instead-of-connector_name' of https://github.com/juspay/hyperswitch into 7862-refactor-refactor-ctp-flow-to-fetch-mca_id-and-get-the-connector-creds-instead-of-connector_name", + "author": "Sahkal Poddar", + "date": "2024-12-20T11:06:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/edae612175c69435f4c12c9276981d05a3130387" + }, + { + "sha": "be0ffa9308d642add8f7f3efba2fff879a1d5437", + "message": "addressed pr comments", + "author": "Sahkal Poddar", + "date": "2024-12-20T18:47:39+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/be0ffa9308d642add8f7f3efba2fff879a1d5437" + }, + { + "sha": "5b4178b4b6f424e37421b8d8a8085f514b39a6b3", + "message": "resolved pr comments", + "author": "Sahkal Poddar", + "date": "2024-12-23T05:47:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5b4178b4b6f424e37421b8d8a8085f514b39a6b3" + }, + { + "sha": "2e791d5289a5eaf011722af0413bc64967acca19", + "message": "addressed pr comments", + "author": "Sahkal Poddar", + "date": "2024-12-23T09:12:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2e791d5289a5eaf011722af0413bc64967acca19" + }, + { + "sha": "389ae521c73dd728d527fba01e08bd44ddc9b799", + "message": "Merge branch 'main' into 7862-refactor-refactor-ctp-flow-to-fetch-mca_id-and-get-the-connector-creds-instead-of-connector_name", + "author": "Sahkal Poddar", + "date": "2024-12-23T10:50:32+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/389ae521c73dd728d527fba01e08bd44ddc9b799" + }, + { + "sha": "733b05e11ce3b8756706e48d9390c8117b038bd4", + "message": "feat(core): added confirmation flow for mastercard click to pay", + "author": "Sahkal Poddar", + "date": "2025-01-03T10:17:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/733b05e11ce3b8756706e48d9390c8117b038bd4" + }, + { + "sha": "01995ab87e514aa79a8fbd6923615a754b0a3287", + "message": "resolved merge conflicts", + "author": "Sahkal Poddar", + "date": "2025-01-03T10:26:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/01995ab87e514aa79a8fbd6923615a754b0a3287" + }, + { + "sha": "b3f6ef4411720882797dd5b077c2dba1096f665d", + "message": "fixed spell check", + "author": "Sahkal Poddar", + "date": "2025-01-03T10:28:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b3f6ef4411720882797dd5b077c2dba1096f665d" + }, + { + "sha": "fa20e5cda9603144126038efeddf42e0853dec13", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-03T10:31:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fa20e5cda9603144126038efeddf42e0853dec13" + }, + { + "sha": "5b1cd69b172ab41eaceb8bfb4a38df4af3c59bb6", + "message": "resolved merge conflicts", + "author": "Sahkal Poddar", + "date": "2025-01-06T09:18:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5b1cd69b172ab41eaceb8bfb4a38df4af3c59bb6" + }, + { + "sha": "249e82b7c0dd72390259277a0c2cbd12b74a2663", + "message": "Merge branch 'main' into 7862-refactor-refactor-ctp-flow-to-fetch-mca_id-and-get-the-connector-creds-instead-of-connector_name", + "author": "Sahkal Poddar", + "date": "2025-01-06T09:19:23+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/249e82b7c0dd72390259277a0c2cbd12b74a2663" + }, + { + "sha": "a0ea8e7c10c000b3a6177e50baf4f130c9b4ba91", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-06T09:22:29+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a0ea8e7c10c000b3a6177e50baf4f130c9b4ba91" + }, + { + "sha": "27230f0ac80f0d2de27770535f055ece0e0a7473", + "message": "Merge branch '7862-refactor-refactor-ctp-flow-to-fetch-mca_id-and-get-the-connector-creds-instead-of-connector_name' of https://github.com/juspay/hyperswitch into 7925-feature-add-support-for-confirmation-flow-for-click-to-pay", + "author": "Sahkal Poddar", + "date": "2025-01-06T09:26:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/27230f0ac80f0d2de27770535f055ece0e0a7473" + }, + { + "sha": "f0ae185b97141a50d28905ce0a271834aad17076", + "message": "add authentication flow support in uas framework and make necessary changes in pre_auth, post_auth flows for external_authentication", + "author": "sai-harsha-vardhan", + "date": "2025-01-11T13:15:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f0ae185b97141a50d28905ce0a271834aad17076" + }, + { + "sha": "a2d3c17727a40e3802d6b5e361a296079f3e6c14", + "message": "resolve conflicts", + "author": "sai-harsha-vardhan", + "date": "2025-01-11T13:20:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a2d3c17727a40e3802d6b5e361a296079f3e6c14" + }, + { + "sha": "4a53878716d8136fbf3fe9dc42d99e321bc15fc7", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-11T13:21:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4a53878716d8136fbf3fe9dc42d99e321bc15fc7" + }, + { + "sha": "15394c13915848aa9815b31a317c32bcce48cecc", + "message": "fix clippy", + "author": "sai-harsha-vardhan", + "date": "2025-01-11T13:33:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/15394c13915848aa9815b31a317c32bcce48cecc" + }, + { + "sha": "bff3aefad88d29a11b5d32e66a7e4b0b15647ae9", + "message": "Merge branch 'add-auth-and-webhook-flow-uas' of github.com:juspay/hyperswitch into add-auth-and-webhook-flow-uas", + "author": "sai-harsha-vardhan", + "date": "2025-01-11T13:34:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/bff3aefad88d29a11b5d32e66a7e4b0b15647ae9" + }, + { + "sha": "c6bc41713bd5c26b0f19ec7bbd3415d743b0374e", + "message": "resolved merge conflicts", + "author": "Sahkal Poddar", + "date": "2025-01-13T10:54:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c6bc41713bd5c26b0f19ec7bbd3415d743b0374e" + }, + { + "sha": "4f82382f08cd133fdf497069f05a8772c845a634", + "message": "Merge branch 'main' into 7862-refactor-refactor-ctp-flow-to-fetch-mca_id-and-get-the-connector-creds-instead-of-connector_name", + "author": "Sahkal Poddar", + "date": "2025-01-15T07:21:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4f82382f08cd133fdf497069f05a8772c845a634" + }, + { + "sha": "392c044f45744fb6b170f0b8be2f80fe0d262814", + "message": "fixed open-api specs", + "author": "Sahkal Poddar", + "date": "2025-01-15T07:27:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/392c044f45744fb6b170f0b8be2f80fe0d262814" + }, + { + "sha": "5128445e5038534b8c6b10ea4ee7f868b5009e62", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-15T07:56:42+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5128445e5038534b8c6b10ea4ee7f868b5009e62" + }, + { + "sha": "ecbee617e88e1d8d731bbbef320afcec0201eaf3", + "message": "addressed pr commnets added example for apen_api specs\n'", + "author": "Sahkal Poddar", + "date": "2025-01-15T11:46:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ecbee617e88e1d8d731bbbef320afcec0201eaf3" + }, + { + "sha": "3cfac70e273066165aaa72cfaaed301c815bfded", + "message": "removed if condition for logging db error", + "author": "Sahkal Poddar", + "date": "2025-01-15T14:30:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3cfac70e273066165aaa72cfaaed301c815bfded" + }, + { + "sha": "4205f6425e84d468754081b2b5d25eea0d143262", + "message": "Merge branch 'main' of github.com:juspay/hyperswitch into external-auth-through-uas-core-flow-changes", + "author": "sai-harsha-vardhan", + "date": "2025-01-17T14:54:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4205f6425e84d468754081b2b5d25eea0d143262" + }, + { + "sha": "0347a8949fea9565e4a5877788856cb43c3e7a4a", + "message": "merge refactor changes", + "author": "sai-harsha-vardhan", + "date": "2025-01-17T16:28:42+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0347a8949fea9565e4a5877788856cb43c3e7a4a" + }, + { + "sha": "55df98f955976947ef408ef45e3138ede05613dd", + "message": "add core changes for external authentication through unified_authentication_service", + "author": "sai-harsha-vardhan", + "date": "2025-01-18T17:26:57+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/55df98f955976947ef408ef45e3138ede05613dd" + }, + { + "sha": "f448f6853f2bdc0dfb68e7e19b9aacd284c1a72d", + "message": "Merge branch 'main' into 7862-refactor-refactor-ctp-flow-to-fetch-mca_id-and-get-the-connector-creds-instead-of-connector_name", + "author": "Sai Harsha Vardhan", + "date": "2025-01-18T17:30:48+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f448f6853f2bdc0dfb68e7e19b9aacd284c1a72d" + }, + { + "sha": "4769e8847ddc98b07993258546d32e2d132ed7cd", + "message": "Merge branch '7862-refactor-refactor-ctp-flow-to-fetch-mca_id-and-get-the-connector-creds-instead-of-connector_name' into external-auth-through-uas-core-flow-changes", + "author": "Sai Harsha Vardhan", + "date": "2025-01-18T17:31:09+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4769e8847ddc98b07993258546d32e2d132ed7cd" + }, + { + "sha": "db8b96c265479aa5a04a5dad10985887416c3272", + "message": "fix payment external authentication", + "author": "sai-harsha-vardhan", + "date": "2025-01-19T14:03:32+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/db8b96c265479aa5a04a5dad10985887416c3272" + }, + { + "sha": "bb773327dbaf0e8a124352fbee934ddf93ca3958", + "message": "fix external_authentication_initiate in confirm flow", + "author": "sai-harsha-vardhan", + "date": "2025-01-19T17:25:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/bb773327dbaf0e8a124352fbee934ddf93ca3958" + }, + { + "sha": "d532d578c8c6ee9537ec08b206929b5f619f9dcb", + "message": "resolved merge conflicts", + "author": "Sahkal Poddar", + "date": "2025-01-21T07:43:54+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d532d578c8c6ee9537ec08b206929b5f619f9dcb" + }, + { + "sha": "c694073286827d0339c3219cfdd6fc80068b8f03", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-21T08:12:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c694073286827d0339c3219cfdd6fc80068b8f03" + }, + { + "sha": "7d850e71dbff55c088bce3077be1f64032e73d87", + "message": "resolve conflicts", + "author": "sai-harsha-vardhan", + "date": "2025-01-21T13:17:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7d850e71dbff55c088bce3077be1f64032e73d87" + }, + { + "sha": "6b0cc79ab05adee0fefac2abf6051c407fdf13e6", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-21T13:18:00+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6b0cc79ab05adee0fefac2abf6051c407fdf13e6" + }, + { + "sha": "59d969d2452a564054157819bab771d520d95deb", + "message": "resolve conflicts", + "author": "sai-harsha-vardhan", + "date": "2025-01-23T08:47:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/59d969d2452a564054157819bab771d520d95deb" + }, + { + "sha": "e2958e72faff29e42bca772a991d4c9e53b048ee", + "message": "resolve comments", + "author": "sai-harsha-vardhan", + "date": "2025-01-23T10:18:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e2958e72faff29e42bca772a991d4c9e53b048ee" + }, + { + "sha": "b54a55f28087c3da8bf511b767e5cab49f091f62", + "message": "Merge branch 'main' into external-auth-through-uas-core-flow-changes", + "author": "Sai Harsha Vardhan", + "date": "2025-01-24T08:59:01+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b54a55f28087c3da8bf511b767e5cab49f091f62" + }, + { + "sha": "784af5743d97a39b4a3e3611ffbdb0543533d6dc", + "message": "resolved merge conflicts", + "author": "Sahkal Poddar", + "date": "2025-01-24T09:06:41+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/784af5743d97a39b4a3e3611ffbdb0543533d6dc" + }, + { + "sha": "de519f0d41a21a2704ef6b637fb2dd33295a1a43", + "message": "Merge branch 'main' into 7925-feature-add-support-for-confirmation-flow-for-click-to-pay", + "author": "Sahkal Poddar", + "date": "2025-01-27T10:00:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/de519f0d41a21a2704ef6b637fb2dd33295a1a43" + }, + { + "sha": "aea7dc1de60f99336b15c0f5ea8444856da8e9a3", + "message": "added netcetera changes resolved merge conflicts", + "author": "Sahkal Poddar", + "date": "2025-01-30T09:35:54+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/aea7dc1de60f99336b15c0f5ea8444856da8e9a3" + }, + { + "sha": "9618649706d136e1f38d1166bd7c18e2477eb7b9", + "message": "Merge branch '7925-feature-add-support-for-confirmation-flow-for-click-to-pay' of https://github.com/juspay/hyperswitch into 7925-feature-add-support-for-confirmation-flow-for-click-to-pay", + "author": "Sahkal Poddar", + "date": "2025-01-30T09:36:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9618649706d136e1f38d1166bd7c18e2477eb7b9" + }, + { + "sha": "b8a819fff833419306248c76360ffb3d5ab73ca9", + "message": "Merge branch 'main' into 7925-feature-add-support-for-confirmation-flow-for-click-to-pay", + "author": "Sahkal Poddar", + "date": "2025-01-30T12:55:18+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b8a819fff833419306248c76360ffb3d5ab73ca9" + }, + { + "sha": "113703f6e14d8f13b7063ff7bde0ea7934254b40", + "message": "Merge branch 'main' into 7925-feature-add-support-for-confirmation-flow-for-click-to-pay", + "author": "Sahkal Poddar", + "date": "2025-01-31T07:57:24+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/113703f6e14d8f13b7063ff7bde0ea7934254b40" + }, + { + "sha": "6fa5fea55fefb9f5aefc11ce55bae1fed72e15b6", + "message": "refactor(core): resolved merge conflicts", + "author": "Sahkal Poddar", + "date": "2025-02-04T07:33:00+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6fa5fea55fefb9f5aefc11ce55bae1fed72e15b6" + }, + { + "sha": "9a4fba7acefd398a1409d06a580f9c62b0accbcf", + "message": "Merge branch '7925-feature-add-support-for-confirmation-flow-for-click-to-pay' of https://github.com/juspay/hyperswitch into 7925-feature-add-support-for-confirmation-flow-for-click-to-pay", + "author": "Sahkal Poddar", + "date": "2025-02-04T07:33:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9a4fba7acefd398a1409d06a580f9c62b0accbcf" + }, + { + "sha": "40f51eb5044df826548dd07a61c9ed79a0f3912c", + "message": "refactor(core): fixed clippy error", + "author": "Sahkal Poddar", + "date": "2025-02-05T11:44:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/40f51eb5044df826548dd07a61c9ed79a0f3912c" + }, + { + "sha": "dc6a5fbe75472aaab58bc529382f35fb6a582338", + "message": "Merge branch 'main' into 7925-feature-add-support-for-confirmation-flow-for-click-to-pay", + "author": "Sahkal Poddar", + "date": "2025-02-06T12:36:25+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/dc6a5fbe75472aaab58bc529382f35fb6a582338" + }, + { + "sha": "dfd8c44861eaef72ab42b46dbe18cd183322fb47", + "message": "resolved merge conflicts", + "author": "Sahkal Poddar", + "date": "2025-02-10T07:06:01+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/dfd8c44861eaef72ab42b46dbe18cd183322fb47" + }, + { + "sha": "5399e3f3aef16fc8883172627a62fbd2dfe44820", + "message": "resolve confirmation api comments\n\"", + "author": "Sahkal Poddar", + "date": "2025-02-10T07:27:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5399e3f3aef16fc8883172627a62fbd2dfe44820" + }, + { + "sha": "98acf9ff24cf7ec86654fb51a500b3162802aff2", + "message": "Merge branch 'main' into 7925-feature-add-support-for-confirmation-flow-for-click-to-pay", + "author": "Sahkal Poddar", + "date": "2025-02-10T08:18:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/98acf9ff24cf7ec86654fb51a500b3162802aff2" + }, + { + "sha": "a65322ed01f77adc97b5dc087fd5fdb686b65576", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into 7925-feature-add-support-for-confirmation-flow-for-click-to-pay", + "author": "Sahkal Poddar", + "date": "2025-02-11T07:43:25+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a65322ed01f77adc97b5dc087fd5fdb686b65576" + }, + { + "sha": "6519efd71507fa45796be5a3361b6afd9bbd863c", + "message": "fixed clippy connector errors", + "author": "Sahkal Poddar", + "date": "2025-02-11T08:49:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6519efd71507fa45796be5a3361b6afd9bbd863c" + }, + { + "sha": "59bf3b91a50ba980799008304cf0be72b7936afd", + "message": "resolved merge conflicts", + "author": "Sahkal Poddar", + "date": "2025-02-17T07:57:13+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/59bf3b91a50ba980799008304cf0be72b7936afd" + }, + { + "sha": "3527d0d3ef90df1e5e99bb8b0d675dbf489ef421", + "message": "fixed v2 clippy error", + "author": "Sahkal Poddar", + "date": "2025-02-17T10:41:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3527d0d3ef90df1e5e99bb8b0d675dbf489ef421" + }, + { + "sha": "def51e2ce776df94c8330566f5ce172282c370ae", + "message": "addressed pr comments", + "author": "Sahkal Poddar", + "date": "2025-02-19T09:09:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/def51e2ce776df94c8330566f5ce172282c370ae" + }, + { + "sha": "492b7a3a0b25bbc80da2a782f54d345ab27b75f6", + "message": "removed variable mutability", + "author": "Sahkal Poddar", + "date": "2025-02-19T10:00:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/492b7a3a0b25bbc80da2a782f54d345ab27b75f6" + } + ] +} \ No newline at end of file diff --git a/prs/pr_6985.json b/prs/pr_6985.json new file mode 100644 index 0000000000000000000000000000000000000000..c2c4c9d551ee89bd9cd278716e778e1b31890832 --- /dev/null +++ b/prs/pr_6985.json @@ -0,0 +1,50 @@ +{ + "number": 6985, + "title": "chore(roles): remove redundant variant from PermissionGroup", + "description": "## Type of Change\r\n\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\nThis removes the redundant `ReconOps` variant from `PermissionGroup` enum which is stored in DB. This was kept back in application for backwards compatibility. Migrations are added for this and this will not be needed anymore.\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\n\r\n\r\n## Motivation and Context\r\nHelps in keeping a clean permission view on HS dashboard.\r\n\r\n## How did you test it?\r\nLocally by running migrations and viewing permission view in dashboard.\r\n\r\n## Checklist\r\n\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", + "author": "kashif-m", + "created_at": "2025-01-03T10:45:05+00:00", + "merged_at": "2025-02-06T14:29:12+00:00", + "base_branch": "main", + "labels": [ + "M-database-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/6985", + "commits": [ + { + "sha": "42ad87202e28d9c189e4ee69e03332bca3b3b8e8", + "message": "chore(roles): remove redundant variant from PermissionGroup", + "author": "Kashif", + "date": "2025-01-03T10:42:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/42ad87202e28d9c189e4ee69e03332bca3b3b8e8" + }, + { + "sha": "27ee7d2da7fddaa9f5f3156f9ddbb0ad096ee419", + "message": "chore(roles): update PermissionGroup descriptions for recon", + "author": "Kashif", + "date": "2025-01-03T12:23:54+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/27ee7d2da7fddaa9f5f3156f9ddbb0ad096ee419" + }, + { + "sha": "a81c431f6051bc772d292c8ef6fe56ba61f14231", + "message": "chore(roles): reword recon description", + "author": "Kashif", + "date": "2025-01-03T12:30:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a81c431f6051bc772d292c8ef6fe56ba61f14231" + }, + { + "sha": "5fb2739e8c1574573afb3fcceb260cf1c67fd93c", + "message": "Merge branch 'main' into 6983-chore-remove-redundant-variants-from-permissiongroup", + "author": "Kashif", + "date": "2025-01-31T08:15:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5fb2739e8c1574573afb3fcceb260cf1c67fd93c" + }, + { + "sha": "565f676c7354ca136cb0f0629c276e5c37ffeda4", + "message": "Merge branch 'main' into 6983-chore-remove-redundant-variants-from-permissiongroup", + "author": "Kashif", + "date": "2025-02-05T16:15:41+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/565f676c7354ca136cb0f0629c276e5c37ffeda4" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7011.json b/prs/pr_7011.json new file mode 100644 index 0000000000000000000000000000000000000000..8afe5e98e82b1bd6efaaa0e23d5295088a805835 --- /dev/null +++ b/prs/pr_7011.json @@ -0,0 +1,58 @@ +{ + "number": 7011, + "title": "refactor(connector): [AUTHORIZEDOTNET] Add metadata information to connector request", + "description": "## Type of Change\r\n\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\r\n\r\nThis PR is for code changes which sends the metadata passed in payment intent create to authorizedotnet as request payload, as per merchant requirements. \r\n\r\nThe merchant receives a receipt of the transaction through email, which contains the metadata passed by the merchant in payment intent create request.\r\n\r\n![image](https://github.com/user-attachments/assets/84fa9591-bf64-473c-aaba-c95b9cf78dcb)\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\nAll flows have been tested as per the authorizedotnet developer docs:\r\nhttps://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-credit-card\r\n\r\n## How did you test it?\r\n\r\n\r\n**Postman Tests**\r\n\r\n**1. Authorize (Manual)**\r\n\r\n - Request\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_0vV4HvaBn68pmZTvXLzU9V7hR79lgEjiarEG2IDxveccjZ6ypKjpPaRrdeQRHhKu' \\\r\n--data-raw '{\r\n \"amount\": 6540,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"manual\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"amount_to_capture\": 6540,\r\n \"customer_id\": \"StripeCustomer1\",\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 \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4242424242424242\",\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"123\"\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\": \"likhin\",\r\n \"last_name\": \"bopanna\"\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\": \"likhin\",\r\n \"last_name\": \"bopanna\"\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {\r\n \"count_tickets\": 1,\r\n \"transaction_number\": \"5590045\"\r\n }\r\n}'\r\n```\r\n- Response\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_aMR57wTed0e8hKIvqEXk\",\r\n \"merchant_id\": \"postman_merchant_GHAction_4bc8cb40-6e2b-4474-a4ba-662cce1e8224\",\r\n \"status\": \"requires_capture\",\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\": \"authorizedotnet\",\r\n \"client_secret\": \"pay_aMR57wTed0e8hKIvqEXk_secret_7ClGeHihtfOkLr17zmY6\",\r\n \"created\": \"2025-01-08T12:18:38.236Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer1\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer1\",\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\": \"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\": \"manual\",\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\": 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\": \"likhin\",\r\n \"last_name\": \"bopanna\"\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\": \"likhin\",\r\n \"last_name\": \"bopanna\"\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\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": \"StripeCustomer1\",\r\n \"created_at\": 1736338718,\r\n \"expires\": 1736342318,\r\n \"secret\": \"epk_a3fa4b96efa94fbe817dd39b634b4b10\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"80033079979\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"count_tickets\": 1,\r\n \"transaction_number\": \"5590045\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"80033079979\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_54auzGTSaZOQ9xIUOEn8\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_tFxUMA2vfBlte3s7jSw7\",\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-08T12:33:38.236Z\",\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-08T12:18:40.884Z\",\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\n**2. Capture (Manual)**\r\n\r\n - Request\r\n \r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_aMR57wTed0e8hKIvqEXk/capture' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_0vV4HvaBn68pmZTvXLzU9V7hR79lgEjiarEG2IDxveccjZ6ypKjpPaRrdeQRHhKu' \\\r\n--data '{\r\n \"amount_to_capture\": 6540,\r\n \"statement_descriptor_name\": \"Joseph\",\r\n \"statement_descriptor_suffix\": \"JS\"\r\n}'\r\n```\r\n\r\n- Response \r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_aMR57wTed0e8hKIvqEXk\",\r\n \"merchant_id\": \"postman_merchant_GHAction_4bc8cb40-6e2b-4474-a4ba-662cce1e8224\",\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\": \"authorizedotnet\",\r\n \"client_secret\": \"pay_aMR57wTed0e8hKIvqEXk_secret_7ClGeHihtfOkLr17zmY6\",\r\n \"created\": \"2025-01-08T12:18:38.236Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer1\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer1\",\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\": \"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\": \"manual\",\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\": 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\": \"likhin\",\r\n \"last_name\": \"bopanna\"\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\": \"likhin\",\r\n \"last_name\": \"bopanna\"\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\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": null,\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"80033079979\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"count_tickets\": 1,\r\n \"transaction_number\": \"5590045\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"80033079979\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_54auzGTSaZOQ9xIUOEn8\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_tFxUMA2vfBlte3s7jSw7\",\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-08T12:33:38.236Z\",\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-08T12:20:16.395Z\",\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\n**3. Authorize + Capture**\r\n\r\n - Request\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_0vV4HvaBn68pmZTvXLzU9V7hR79lgEjiarEG2IDxveccjZ6ypKjpPaRrdeQRHhKu' \\\r\n--data-raw '{\r\n \"amount\": 6550,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"amount_to_capture\": 6550,\r\n \"customer_id\": \"StripeCustomer1\",\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 \"payment_method\": \"card\",\r\n \"payment_method_type\": \"debit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4242424242424242\",\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"123\"\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\": \"sundari\",\r\n \"last_name\": \"sundari\"\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\": \"sundari\",\r\n \"last_name\": \"sundari\"\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {\r\n \"count_tickets\": 1,\r\n \"transaction_number\": \"5590045\"\r\n }\r\n}'\r\n```\r\n\r\n- Response\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_EbFXhSWxwVQ0996FxZdt\",\r\n \"merchant_id\": \"postman_merchant_GHAction_4bc8cb40-6e2b-4474-a4ba-662cce1e8224\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 6550,\r\n \"net_amount\": 6550,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 6550,\r\n \"connector\": \"authorizedotnet\",\r\n \"client_secret\": \"pay_EbFXhSWxwVQ0996FxZdt_secret_3J0fmk53qE22LeKiGIGx\",\r\n \"created\": \"2025-01-08T12:21:59.998Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer1\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer1\",\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\": \"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\": \"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\": \"01\",\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\": 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\": \"sundari\",\r\n \"last_name\": \"sundari\"\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\": \"sundari\",\r\n \"last_name\": \"sundari\"\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\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": \"debit\",\r\n \"connector_label\": \"authorizedotnet_US_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\": \"StripeCustomer1\",\r\n \"created_at\": 1736338919,\r\n \"expires\": 1736342519,\r\n \"secret\": \"epk_a1b2ad7e39a14673a4e01692f76e5193\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"80033080191\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"count_tickets\": 1,\r\n \"transaction_number\": \"5590045\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"80033080191\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_54auzGTSaZOQ9xIUOEn8\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_tFxUMA2vfBlte3s7jSw7\",\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-08T12:36:59.998Z\",\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-08T12:22:02.624Z\",\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\n**4. PSync**\r\n\r\n - Request\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_EbFXhSWxwVQ0996FxZdt?force_sync=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_0vV4HvaBn68pmZTvXLzU9V7hR79lgEjiarEG2IDxveccjZ6ypKjpPaRrdeQRHhKu'\r\n```\r\n\r\n- Response\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_EbFXhSWxwVQ0996FxZdt\",\r\n \"merchant_id\": \"postman_merchant_GHAction_4bc8cb40-6e2b-4474-a4ba-662cce1e8224\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 6550,\r\n \"net_amount\": 6550,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 6550,\r\n \"connector\": \"authorizedotnet\",\r\n \"client_secret\": \"pay_EbFXhSWxwVQ0996FxZdt_secret_3J0fmk53qE22LeKiGIGx\",\r\n \"created\": \"2025-01-08T12:21:59.998Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer1\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer1\",\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\": \"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\": \"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\": \"01\",\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\": 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\": \"sundari\",\r\n \"last_name\": \"sundari\"\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\": \"sundari\",\r\n \"last_name\": \"sundari\"\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\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": \"debit\",\r\n \"connector_label\": \"authorizedotnet_US_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\": null,\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"80033080191\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"count_tickets\": 1,\r\n \"transaction_number\": \"5590045\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"80033080191\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_54auzGTSaZOQ9xIUOEn8\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_tFxUMA2vfBlte3s7jSw7\",\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-08T12:36:59.998Z\",\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-08T12:22:02.624Z\",\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\n**5. Refund**\r\n\r\n - Request\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: dev_0vV4HvaBn68pmZTvXLzU9V7hR79lgEjiarEG2IDxveccjZ6ypKjpPaRrdeQRHhKu' \\\r\n--data '{\r\n \"payment_id\": \"pay_LdFELbsSHWr31UxLX51l\",\r\n \"amount\": 5000,\r\n \"reason\": \"Customer returned product\",\r\n \"refund_type\": \"scheduled\",\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- Response\r\n\r\n```\r\n{\r\n \"refund_id\": \"ref_ht8iD8smYnJl5sDF0BEn\",\r\n \"payment_id\": \"pay_LdFELbsSHWr31UxLX51l\",\r\n \"amount\": 5000,\r\n \"currency\": \"USD\",\r\n \"status\": \"pending\",\r\n \"reason\": \"Customer returned product\",\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 \"error_message\": null,\r\n \"error_code\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"created_at\": \"2025-01-08T12:31:33.642Z\",\r\n \"updated_at\": \"2025-01-08T12:31:33.642Z\",\r\n \"connector\": \"authorizedotnet\",\r\n \"profile_id\": \"pro_54auzGTSaZOQ9xIUOEn8\",\r\n \"merchant_connector_id\": \"mca_tFxUMA2vfBlte3s7jSw7\",\r\n \"split_refunds\": null\r\n}\r\n```\r\n\r\n**6. RSync**\r\n\r\n - Request\r\n\r\n```\r\ncurl --location 'http://localhost:8080/refunds/ref_ht8iD8smYnJl5sDF0BEn' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_0vV4HvaBn68pmZTvXLzU9V7hR79lgEjiarEG2IDxveccjZ6ypKjpPaRrdeQRHhKu'\r\n```\r\n\r\n- Response\r\n\r\n```\r\n{\r\n \"refund_id\": \"ref_ht8iD8smYnJl5sDF0BEn\",\r\n \"payment_id\": \"pay_LdFELbsSHWr31UxLX51l\",\r\n \"amount\": 5000,\r\n \"currency\": \"USD\",\r\n \"status\": \"pending\",\r\n \"reason\": \"Customer returned product\",\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 \"error_message\": null,\r\n \"error_code\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"created_at\": \"2025-01-08T12:31:33.642Z\",\r\n \"updated_at\": \"2025-01-08T12:31:33.642Z\",\r\n \"connector\": \"authorizedotnet\",\r\n \"profile_id\": \"pro_54auzGTSaZOQ9xIUOEn8\",\r\n \"merchant_connector_id\": \"mca_tFxUMA2vfBlte3s7jSw7\",\r\n \"split_refunds\": null\r\n}\r\n```\r\n\r\n**7. Cancel/Void**\r\n\r\n - Request\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_LdFELbsSHWr31UxLX51l/cancel' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_0vV4HvaBn68pmZTvXLzU9V7hR79lgEjiarEG2IDxveccjZ6ypKjpPaRrdeQRHhKu' \\\r\n--data '{\"cancellation_reason\":\"requested_by_customer\"}'\r\n```\r\n\r\n- Response\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_wM2Pf7TjLVabcAj41aDz\",\r\n \"merchant_id\": \"postman_merchant_GHAction_4bc8cb40-6e2b-4474-a4ba-662cce1e8224\",\r\n \"status\": \"cancelled\",\r\n \"amount\": 5000,\r\n \"net_amount\": 5000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": \"authorizedotnet\",\r\n \"client_secret\": \"pay_wM2Pf7TjLVabcAj41aDz_secret_vjFJJKmyoVaNqOmQ0Bge\",\r\n \"created\": \"2025-01-08T12:29:07.232Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer1\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer1\",\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\": \"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\": \"manual\",\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\": 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\": \"likhin\",\r\n \"last_name\": \"bopanna\"\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\": \"likhin\",\r\n \"last_name\": \"bopanna\"\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\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": \"requested_by_customer\",\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\": false,\r\n \"connector_transaction_id\": \"80033080543\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"count_tickets\": 1,\r\n \"transaction_number\": \"5590045\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"80033080543\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_54auzGTSaZOQ9xIUOEn8\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_tFxUMA2vfBlte3s7jSw7\",\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-08T12:44:07.232Z\",\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-08T12:29:28.533Z\",\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\n\r\n## Checklist\r\n\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", + "author": "Debarshi-Gupta", + "created_at": "2025-01-08T08:42:03+00:00", + "merged_at": "2025-02-05T14:48:45+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "C-refactor" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7011", + "commits": [ + { + "sha": "8ce784ca3a881fc7099ad19d2d6dd916a4703f69", + "message": "chore(authorizedotnet): add metadata information to connector request", + "author": "Debarshi Gupta", + "date": "2025-01-08T08:18:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8ce784ca3a881fc7099ad19d2d6dd916a4703f69" + }, + { + "sha": "8c631f1def6f44a4a62782e2d24ad68d96a0d71b", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-08T08:47:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8c631f1def6f44a4a62782e2d24ad68d96a0d71b" + }, + { + "sha": "1862559ee226072748e187eb859d06f11f57ba3a", + "message": "chore(authorizedotnet): add metadata information to connector request", + "author": "Debarshi Gupta", + "date": "2025-01-10T06:10:00+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1862559ee226072748e187eb859d06f11f57ba3a" + }, + { + "sha": "387e6ae396b74b5065f6b06a49b9cf71fc584a10", + "message": "chore: Resolved PR comments", + "author": "Debarshi Gupta", + "date": "2025-01-10T12:39:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/387e6ae396b74b5065f6b06a49b9cf71fc584a10" + }, + { + "sha": "d55aea1ea37e3899ea9fa85e609e83cfe985c716", + "message": "chore: Resolved PR comments", + "author": "Debarshi Gupta", + "date": "2025-01-13T07:02:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d55aea1ea37e3899ea9fa85e609e83cfe985c716" + }, + { + "sha": "51ce64813f110fdc8efc1d9dcf3a5da28160c778", + "message": "Merge branch 'main' into add-metadata-for-authorizeddotnet", + "author": "Debarshi Gupta", + "date": "2025-01-29T14:04:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/51ce64813f110fdc8efc1d9dcf3a5da28160c778" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7012.json b/prs/pr_7012.json new file mode 100644 index 0000000000000000000000000000000000000000..66337f00c8032e13743c44aa876cfcc4631b1f05 --- /dev/null +++ b/prs/pr_7012.json @@ -0,0 +1,20 @@ +{ + "number": 7012, + "title": "fix: consider status of payment method before filtering wallets in list pm", + "description": "## Type of Change\r\n\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\r\nMain pr - https://github.com/juspay/hyperswitch/pull/7004\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\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\r\n## Checklist\r\n\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", + "author": "Chethan-rao", + "created_at": "2025-01-08T10:11:53+00:00", + "merged_at": "2025-01-09T07:49:41+00:00", + "base_branch": "hotfix-2024.12.04.0", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/7012", + "commits": [ + { + "sha": "305dafa448326a3cbff5c81f1c74ce3c728480d9", + "message": "fix: consider status of payment method before filtering wallets in list pm", + "author": "Chethan", + "date": "2025-01-07T13:43:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/305dafa448326a3cbff5c81f1c74ce3c728480d9" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7032.json b/prs/pr_7032.json new file mode 100644 index 0000000000000000000000000000000000000000..58ac8681e2d927d98dff3179d8654838a06daaf9 --- /dev/null +++ b/prs/pr_7032.json @@ -0,0 +1,29 @@ +{ + "number": 7032, + "title": "refactor(euclid): update proto file for elimination routing", + "description": "## Type of Change\r\n\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\r\nThis will update the proto file for elimination routing to include the global rates. This is basically done in order to keep the proto file upto-date with dynamic routing service.\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n\r\nTesting isn't required as this is only env change\r\n\r\n## Checklist\r\n\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", + "author": "prajjwalkumar17", + "created_at": "2025-01-13T08:39:40+00:00", + "merged_at": "2025-01-29T08:22:45+00:00", + "base_branch": "main", + "labels": [ + "A-routing" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7032", + "commits": [ + { + "sha": "ea07b453f4d3467a14727cf5899b0d156aa8242f", + "message": "refactor(euclid): update proto file for elimination routing", + "author": "prajjwalkumar17", + "date": "2025-01-13T08:34:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ea07b453f4d3467a14727cf5899b0d156aa8242f" + }, + { + "sha": "11615c626f4006159463b70b7c9a1bcb796d19c8", + "message": "Merge branch 'main' into update_proto_for_er", + "author": "Prajjwal Kumar", + "date": "2025-01-24T10:01:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/11615c626f4006159463b70b7c9a1bcb796d19c8" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7109.json b/prs/pr_7109.json new file mode 100644 index 0000000000000000000000000000000000000000..af5b06ffdabb3a55f7d028ef3b3af7923e79a835 --- /dev/null +++ b/prs/pr_7109.json @@ -0,0 +1,366 @@ +{ + "number": 7109, + "title": "feat(connector): Add support for passive churn recovery webhooks", + "description": "## Type of Change\r\n\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\r\n\r\n\r\n**Recovery Incoming Webhooks service :** \r\nConsume incoming webhooks of billing platforms to schedule revenue recovery retries in hs.\r\n**Endpoint :** \r\nv2/webhooks/revenue_recovery/{{profile_id}}/{{merchant_connector_account_id}}\r\n**Authentication :**\r\nSource verification.\r\n**Method :** \r\nPOST\r\n**Request :** \r\nAccepts connector specific requests , unified fields that we are going to consume and verified across billing platforms(Chargebee, Recurly, Stripe Billing).\r\n**Response :** \r\nThey expect us to send 200 back.\r\n\r\n**DB changes** : \r\n- Triggered by : Flag to find out whether an attempt was created external or internal. Possible enums of triggered_by EXTERNAL/ INTERNAL. \r\n- Payment attempt \r\n```\r\nfeature_metadata{\r\nrevenue_recovery : {\r\ntriggered_by : TriggeredBy\r\n}\r\n}\r\n```\r\n \r\n**triggered_by** : Flag to find out whether an attempt was created external or internal. Possible enums of triggered_by EXTERNAL/ INTERNAL\r\n\r\n \r\n**Flow**\r\n1) We receive invoice and transactional related incoming webhooks from billing connectors(ex: chargebee). \r\n2) Verify the source with source verification logic using incoming webhook trait. \r\n3) Fetch the intent using merchant reference id(Invoice id), if not found create new payment intent for the invoice. \r\n4) Fetch the attempt if event is transactional event, if not found record new attempt against the payment intent . \r\n5) Based on triggered_by and event type decide what actions needs to be taken for the webhook\r\n\r\nNote: Only handler functions of payments core are called in webhooks flow to make revenue recovery flow modular. No direct DB call is made in recovery incoming webhook flow to payments(intent/attempt) table.\r\n\r\n**why do we need attempt.triggered_by and event type to take the decision?** \r\n- Recovery event types : There can be 4 types of events that we consume from billing connector. \r\n - Payment Failure, payment success, payment pending, Invoice cancel \r\nBased on event we take the action but we need to triggered by to know whether it was created by Hyperswitch or External system.\r\n- Recovery Actions : \r\n```\r\n/// type of action that needs to taken after consuming recovery payload\r\nRecoveryAction {\r\n /// Stops the process tracker and update the payment intent.\r\n CancelInvoice,\r\n /// Records the external transaction against payment intent.\r\n ScheduleFailedPayment,\r\n /// Records the external payment and stops the internal process tracker.\r\n SuccessPaymentExternal,\r\n /// Pending payments from billing processor.\r\n PendingPayment,\r\n /// No action required.\r\n NoAction,\r\n /// Invalid event has been received.\r\n InvalidAction,\r\n}\r\n```\r\nMapping between (event, triggered_by) and Actions\r\n```\r\nIncomingWebhookEvent::RecoveryPaymentFailure => match attempt_triggered_by {\r\n Some(TriggeredBy::Internal) => RecoveryAction::NoAction,\r\n Some(TriggeredBy::External) | None => RecoveryAction::ScheduleFailedPayment,\r\n },\r\n IncomingWebhookEvent::RecoveryPaymentSuccess => match attempt_triggered_by {\r\n Some(TriggeredBy::Internal) => RecoveryAction::NoAction,\r\n Some(TriggeredBy::External) | None => RecoveryAction::SuccessPaymentExternal,\r\n },\r\n IncomingWebhookEvent::RecoveryPaymentPending => RecoveryAction::PendingPayment,\r\n IncomingWebhookEvent::RecoveryInvoiceCancel => RecoveryAction::CancelInvoice,\r\n```\r\n\r\nNote : Pending Task From this PR \r\n- charegebee Webhooks implementations- #7110\r\n- Record Attempt internal - #7236 \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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\nCannot test this flow, will be tested once #7236 and #7110 are merged.\r\n\r\n\r\n## Checklist\r\n\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", + "author": "srujanchikke", + "created_at": "2025-01-27T05:44:50+00:00", + "merged_at": "2025-02-22T21:44:08+00:00", + "base_branch": "main", + "labels": [ + "M-database-changes", + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7109", + "commits": [ + { + "sha": "57b6b86f9e7fe06f7a513447bcfcdcedbbb40d92", + "message": "add template code for chargebee", + "author": "Chikke Srujan", + "date": "2025-01-15T03:57:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/57b6b86f9e7fe06f7a513447bcfcdcedbbb40d92" + }, + { + "sha": "d27700e1100ed3d674957ce2a4f590395a38d7fe", + "message": "merge main", + "author": "Chikke Srujan", + "date": "2025-01-15T04:13:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d27700e1100ed3d674957ce2a4f590395a38d7fe" + }, + { + "sha": "b3908c050c773a4c14f077a2555c337252c0c439", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-15T04:14:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b3908c050c773a4c14f077a2555c337252c0c439" + }, + { + "sha": "ff414803af9d311c1e37360eb510e02799d75b66", + "message": "add recovery incoming webhooks support", + "author": "Chikke Srujan", + "date": "2025-01-19T18:12:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ff414803af9d311c1e37360eb510e02799d75b66" + }, + { + "sha": "d5d14feb22df0b742111f09d1c69c8a1b5d4194d", + "message": "add feature metadata queries", + "author": "Chikke Srujan", + "date": "2025-01-21T06:05:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d5d14feb22df0b742111f09d1c69c8a1b5d4194d" + }, + { + "sha": "dcc6b1f63e4b9dd27d180cf80d7f7d41480a692d", + "message": "clippy fix", + "author": "Chikke Srujan", + "date": "2025-01-21T07:58:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/dcc6b1f63e4b9dd27d180cf80d7f7d41480a692d" + }, + { + "sha": "55f3018fc8d05e03925687f2524e9e99b10c024c", + "message": "Merge branch 'main' into chargebee_integration", + "author": "chikke srujan", + "date": "2025-01-21T07:58:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/55f3018fc8d05e03925687f2524e9e99b10c024c" + }, + { + "sha": "7f05e1ae97b64f5e67d9c2137ad69a4db4dd9979", + "message": "merge main", + "author": "Chikke Srujan", + "date": "2025-01-26T18:55:13+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7f05e1ae97b64f5e67d9c2137ad69a4db4dd9979" + }, + { + "sha": "251f4929b247ee6c4693fd4503188c4b89bc64ba", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-26T18:56:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/251f4929b247ee6c4693fd4503188c4b89bc64ba" + }, + { + "sha": "9619365a9f3923090cbb4aa49cb7ca4e726668e2", + "message": "Merge branch 'chargebee_integration' into recovery_webhooks", + "author": "chikke srujan", + "date": "2025-01-27T05:45:09+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9619365a9f3923090cbb4aa49cb7ca4e726668e2" + }, + { + "sha": "6866eaf5ec7f43a51c9c15f0800c6695196ae1e1", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-27T05:46:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6866eaf5ec7f43a51c9c15f0800c6695196ae1e1" + }, + { + "sha": "7994d7120b3239c215dea0f1ef81091f85a19ad4", + "message": "Merge branch 'main' into recovery_webhooks", + "author": "chikke srujan", + "date": "2025-01-29T11:53:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7994d7120b3239c215dea0f1ef81091f85a19ad4" + }, + { + "sha": "b0699a3612ee57b77a4f84db17dc8b74f3bb532b", + "message": "Merge branch 'main' into recovery_webhooks", + "author": "Chikke Srujan", + "date": "2025-02-10T14:33:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b0699a3612ee57b77a4f84db17dc8b74f3bb532b" + }, + { + "sha": "f92ee73fd3ad511fd2880a7ddd17d4408fffbf7b", + "message": "Merge branch 'main' into recovery_webhooks", + "author": "Chikke Srujan", + "date": "2025-02-12T05:46:07+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f92ee73fd3ad511fd2880a7ddd17d4408fffbf7b" + }, + { + "sha": "ef12ef3aee7c985a6b90cd8196747f901b63e32c", + "message": "Merge branch 'main' into recovery_webhooks", + "author": "Chikke Srujan", + "date": "2025-02-13T19:19:17+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ef12ef3aee7c985a6b90cd8196747f901b63e32c" + }, + { + "sha": "aff2350c3f9e4f6b753c0e37700757f2fad9ef61", + "message": "Merge branch 'main' into recovery_webhooks", + "author": "chikke srujan", + "date": "2025-02-14T13:02:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/aff2350c3f9e4f6b753c0e37700757f2fad9ef61" + }, + { + "sha": "4203413bf78cd82b6437a0abd023306a9a3bd150", + "message": "payment attempt feature metadata refactor", + "author": "Chikke Srujan", + "date": "2025-02-16T19:26:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4203413bf78cd82b6437a0abd023306a9a3bd150" + }, + { + "sha": "1c60b720d8f5a2197e949b48f532d717a9385d6a", + "message": "Merge branch 'main' into recovery_webhooks", + "author": "chikke srujan", + "date": "2025-02-16T19:26:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1c60b720d8f5a2197e949b48f532d717a9385d6a" + }, + { + "sha": "6e5cd99768e208a1dc6fbc481ee9e45b4893b7b2", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-02-16T19:27:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6e5cd99768e208a1dc6fbc481ee9e45b4893b7b2" + }, + { + "sha": "a75741a97d31b552c7e074b5796b332d835966e2", + "message": "clippy fix", + "author": "Chikke Srujan", + "date": "2025-02-17T04:43:41+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a75741a97d31b552c7e074b5796b332d835966e2" + }, + { + "sha": "d22da808556f7ecd59413bb12da1ce64bbf4dac3", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-02-17T04:44:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d22da808556f7ecd59413bb12da1ce64bbf4dac3" + }, + { + "sha": "9b3cd4706a1f6734e9c28734b0705e592f0cbe4f", + "message": "minor refactor", + "author": "Chikke Srujan", + "date": "2025-02-17T12:58:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9b3cd4706a1f6734e9c28734b0705e592f0cbe4f" + }, + { + "sha": "13d6e91bd8b5b4ce0d4f2c64ce38f3a69d870b7b", + "message": "Merge branch 'main' into recovery_webhooks", + "author": "chikke srujan", + "date": "2025-02-17T12:58:42+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/13d6e91bd8b5b4ce0d4f2c64ce38f3a69d870b7b" + }, + { + "sha": "f63cb5ecd7d7d71ff993f6438a095463d7140370", + "message": "change feature flag name", + "author": "Chikke Srujan", + "date": "2025-02-17T13:56:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f63cb5ecd7d7d71ff993f6438a095463d7140370" + }, + { + "sha": "e22e24b3b2dc214d64d5d175eba48fc8f139e50f", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-02-17T15:09:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e22e24b3b2dc214d64d5d175eba48fc8f139e50f" + }, + { + "sha": "e8c46e2fc2c2cafa5e5860865960bcd1857a5911", + "message": "clippy fix v2", + "author": "Chikke Srujan", + "date": "2025-02-18T06:22:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e8c46e2fc2c2cafa5e5860865960bcd1857a5911" + }, + { + "sha": "a753edc3066c9927952cb53fe3fed1355e72ea11", + "message": "typos fix", + "author": "Chikke Srujan", + "date": "2025-02-18T06:23:30+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a753edc3066c9927952cb53fe3fed1355e72ea11" + }, + { + "sha": "a675dc882a1897ac2c32796a4517b59f12dbf1ab", + "message": "add openapi spec changes", + "author": "Chikke Srujan", + "date": "2025-02-18T07:08:52+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a675dc882a1897ac2c32796a4517b59f12dbf1ab" + }, + { + "sha": "1a3b3edf658c9a30b75da7ae1fbc0b6ba69db330", + "message": "Merge branch 'main' into recovery_webhooks", + "author": "chikke srujan", + "date": "2025-02-18T07:57:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1a3b3edf658c9a30b75da7ae1fbc0b6ba69db330" + }, + { + "sha": "bde7819dc225a193083a990d31398cd25f20f262", + "message": "add recovery webhooks", + "author": "Chikke Srujan", + "date": "2025-02-18T12:00:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/bde7819dc225a193083a990d31398cd25f20f262" + }, + { + "sha": "3413b69b884fde99f1193c1f60fec1b4bb210545", + "message": "feature flag revert", + "author": "Chikke Srujan", + "date": "2025-02-18T12:18:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3413b69b884fde99f1193c1f60fec1b4bb210545" + }, + { + "sha": "b18f5d7274a125467a3f15b9d7572538e70ca14d", + "message": "spell check fix", + "author": "Chikke Srujan", + "date": "2025-02-18T13:38:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b18f5d7274a125467a3f15b9d7572538e70ca14d" + }, + { + "sha": "2affe4ac373dfaf508060fd7ca2a74b347a4b701", + "message": "Merge branch 'main' into recovery_webhooks", + "author": "Chikke Srujan", + "date": "2025-02-18T17:19:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2affe4ac373dfaf508060fd7ca2a74b347a4b701" + }, + { + "sha": "61aee666388f7a7cc4568eb94426f10ab2b103ab", + "message": "resolve comments", + "author": "Chikke Srujan", + "date": "2025-02-19T11:15:07+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/61aee666388f7a7cc4568eb94426f10ab2b103ab" + }, + { + "sha": "1e8eb88febadcbd3b45ceb7b7b3d3224f4a7f220", + "message": "clippy fix", + "author": "Chikke Srujan", + "date": "2025-02-19T11:30:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1e8eb88febadcbd3b45ceb7b7b3d3224f4a7f220" + }, + { + "sha": "6cc5d2d824ffc20800a864941ae6cb8c4498358c", + "message": "resolve comments", + "author": "Chikke Srujan", + "date": "2025-02-19T11:45:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6cc5d2d824ffc20800a864941ae6cb8c4498358c" + }, + { + "sha": "51efe703d79f25150e1995fb8cd4d1d75300cfa1", + "message": "clippy fix", + "author": "Chikke Srujan", + "date": "2025-02-19T12:17:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/51efe703d79f25150e1995fb8cd4d1d75300cfa1" + }, + { + "sha": "be03d4cbe2c96003a6618bdb92a364b1ce30eefb", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-02-19T13:28:38+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/be03d4cbe2c96003a6618bdb92a364b1ce30eefb" + }, + { + "sha": "5353ae6e312a2c5f0086f82c6470f2d5a4649da5", + "message": "resolve comments", + "author": "Chikke Srujan", + "date": "2025-02-20T08:44:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5353ae6e312a2c5f0086f82c6470f2d5a4649da5" + }, + { + "sha": "f333fa01b0e02455bd06ebedcfa214a757cde545", + "message": "revert toml", + "author": "Chikke Srujan", + "date": "2025-02-20T08:45:23+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f333fa01b0e02455bd06ebedcfa214a757cde545" + }, + { + "sha": "488563ffd7527458857fe95558a4fb86847c0181", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-02-20T08:50:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/488563ffd7527458857fe95558a4fb86847c0181" + }, + { + "sha": "675c5c5255dbf4e5623ee9a930681903a5563bcb", + "message": "Merge branch 'main' into recovery_webhooks", + "author": "chikke srujan", + "date": "2025-02-20T09:00:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/675c5c5255dbf4e5623ee9a930681903a5563bcb" + }, + { + "sha": "ced73094ceeb4a7aa0ab13c35b0d6f8252030d70", + "message": "open api fix", + "author": "Chikke Srujan", + "date": "2025-02-20T09:31:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ced73094ceeb4a7aa0ab13c35b0d6f8252030d70" + }, + { + "sha": "03f4ad418e3a7c0d9c307e31ced3de769f55433e", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-02-20T09:45:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/03f4ad418e3a7c0d9c307e31ced3de769f55433e" + }, + { + "sha": "ee8bb092c33f70b38f1d3db5f60e1768c5d0d0e1", + "message": "add v1 feature flag", + "author": "Chikke Srujan", + "date": "2025-02-20T09:59:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ee8bb092c33f70b38f1d3db5f60e1768c5d0d0e1" + }, + { + "sha": "7a6dd9416f5929df3bca7ad32f1c150c6a9a2fb8", + "message": "Merge branch 'main' into recovery_webhooks", + "author": "chikke srujan", + "date": "2025-02-20T12:45:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7a6dd9416f5929df3bca7ad32f1c150c6a9a2fb8" + }, + { + "sha": "05a11dd1f59d1abf197b78721f231eaf71c41806", + "message": "resolve comments", + "author": "Chikke Srujan", + "date": "2025-02-20T13:04:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/05a11dd1f59d1abf197b78721f231eaf71c41806" + }, + { + "sha": "4a5152af24cdbe693a8722cb09e93181d8ae34f6", + "message": "clippy fix", + "author": "Chikke Srujan", + "date": "2025-02-21T06:29:25+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4a5152af24cdbe693a8722cb09e93181d8ae34f6" + }, + { + "sha": "abaf2c3798f70ab7a80aa4a6bc9b6bd423da2942", + "message": "Merge branch 'main' into recovery_webhooks", + "author": "chikke srujan", + "date": "2025-02-21T08:37:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/abaf2c3798f70ab7a80aa4a6bc9b6bd423da2942" + }, + { + "sha": "5c58cab35d7f0902b41d2dec2bacdf79722f1238", + "message": "Merge branch 'main' into recovery_webhooks", + "author": "chikke srujan", + "date": "2025-02-22T16:36:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5c58cab35d7f0902b41d2dec2bacdf79722f1238" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7121.json b/prs/pr_7121.json new file mode 100644 index 0000000000000000000000000000000000000000..a47723d22da4c971d8f6f9c8da4049b0ea04e64d --- /dev/null +++ b/prs/pr_7121.json @@ -0,0 +1,73 @@ +{ + "number": 7121, + "title": "refactor(router): add display_name field to connector feature api ", + "description": "## Type of Change\r\n\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\r\nIn this PR we will \r\n1. Add display_name field to connector feature api \r\n2. Rename non_threeDs to no_threeDs\r\n\r\n\r\n## How did you test it?\r\n\r\nList the connector feature and check if it contains display name and no_threeds instead of threeds\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```\r\nResponse\r\n```\r\n{\r\n \"connector_count\": 3,\r\n \"connectors\": [\r\n {\r\n \"name\": \"BAMBORA\",\r\n \"display_name\": \"Bambora\",\r\n \"description\": \"Bambora is a leading online payment provider in Canada and United States.\",\r\n \"category\": \"payment_gateway\",\r\n \"supported_payment_methods\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"three_ds\": \"supported\",\r\n \"no_three_ds\": \"supported\",\r\n \"supported_card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\",\r\n \"AmericanExpress\",\r\n \"Discover\",\r\n \"JCB\",\r\n \"DinersClub\"\r\n ],\r\n \"supported_countries\": [\r\n \"CA\",\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 \"name\": \"DEUTSCHEBANK\",\r\n \"display_name\": \"Deutsche Bank\",\r\n \"description\": \"Deutsche Bank is a German multinational investment bank and financial services company \",\r\n \"category\": \"bank_acquirer\",\r\n \"supported_payment_methods\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"three_ds\": \"supported\",\r\n \"no_three_ds\": \"not_supported\",\r\n \"supported_card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"supported_countries\": null,\r\n \"supported_currencies\": null\r\n },\r\n {\r\n \"payment_method\": \"bank_debit\",\r\n \"payment_method_type\": \"sepa\",\r\n \"mandates\": \"supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"supported_countries\": null,\r\n \"supported_currencies\": null\r\n }\r\n ],\r\n \"supported_webhook_flows\": []\r\n },\r\n {\r\n \"name\": \"ZSL\",\r\n \"display_name\": \"ZSL\",\r\n \"description\": \"Zsl is a payment gateway operating in China, specializing in facilitating local bank transfers\",\r\n \"category\": \"payment_gateway\",\r\n \"supported_payment_methods\": [\r\n {\r\n \"payment_method\": \"bank_transfer\",\r\n \"payment_method_type\": \"local_bank_transfer\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"not_supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\"\r\n ],\r\n \"supported_countries\": [\r\n \"CN\"\r\n ],\r\n \"supported_currencies\": [\r\n \"CNY\"\r\n ]\r\n }\r\n ],\r\n \"supported_webhook_flows\": []\r\n }\r\n ]\r\n}\r\n```\r\n\r\n## Checklist\r\n\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", + "author": "AkshayaFoiger", + "created_at": "2025-01-27T12:41:17+00:00", + "merged_at": "2025-02-07T08:29:19+00:00", + "base_branch": "main", + "labels": [ + "A-connector-compatibility", + "M-api-contract-changes", + "enhancement" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7121", + "commits": [ + { + "sha": "33dbf953e9b1e109fc0ba9af0d373d7043a3fb8d", + "message": "refactor(router): add display name to connector_api", + "author": "AkshayaFoiger", + "date": "2025-01-27T12:28:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/33dbf953e9b1e109fc0ba9af0d373d7043a3fb8d" + }, + { + "sha": "a6f52152591d8900433d430bd01668870216da42", + "message": "refactor(router): rename non_threeds to no_threeds", + "author": "AkshayaFoiger", + "date": "2025-01-27T12:33:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a6f52152591d8900433d430bd01668870216da42" + }, + { + "sha": "b68cabe140d030c8e6b0b6b2d94444beec9b16a7", + "message": "generate openapi spec", + "author": "AkshayaFoiger", + "date": "2025-01-27T12:47:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b68cabe140d030c8e6b0b6b2d94444beec9b16a7" + }, + { + "sha": "b45e572335aa8a676af184e49d5b8f85edb47719", + "message": "Change the type of display_name and description", + "author": "AkshayaFoiger", + "date": "2025-01-27T14:28:38+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b45e572335aa8a676af184e49d5b8f85edb47719" + }, + { + "sha": "8a8850c13279cc41612f57f2c22157b75e863642", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-01-27T20:22:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8a8850c13279cc41612f57f2c22157b75e863642" + }, + { + "sha": "5f81f72f57c722682d7a0bf063452d8c910eab97", + "message": "Merge branch 'main' into add-display-name", + "author": "AkshayaFoiger", + "date": "2025-02-03T07:40:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5f81f72f57c722682d7a0bf063452d8c910eab97" + }, + { + "sha": "a7577d8ce9fbde48b9108823ccb00506c04769b8", + "message": "Merge branch 'main' into add-display-name", + "author": "AkshayaFoiger", + "date": "2025-02-06T18:22:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a7577d8ce9fbde48b9108823ccb00506c04769b8" + }, + { + "sha": "2519244cb9b9c76c5b41081d882e82680c4b45f7", + "message": "fix clippy error", + "author": "AkshayaFoiger", + "date": "2025-02-06T18:52:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2519244cb9b9c76c5b41081d882e82680c4b45f7" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7148.json b/prs/pr_7148.json new file mode 100644 index 0000000000000000000000000000000000000000..bb6fd8d8461753a1715f16a9471b23e2ae4d1251 --- /dev/null +++ b/prs/pr_7148.json @@ -0,0 +1,34 @@ +{ + "number": 7148, + "title": "feat(connector): [JPMORGAN, PAYU, DIGITALVIRGO, PAYBOX, BITPAY, HELCIM] added in feature matrix api", + "description": "## Type of Change\r\n\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\nFixes juspay/hyperswitch-cloud#8276\r\n\r\n## Description\r\nAdded details feature api details for Jpmorgan, Payu, Digital Virgo.\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\n## How did you test it?\r\n\r\nRequest : \r\n\r\n`curl --location 'http://localhost:8080/feature_matrix' \\ --header 'Content-Type: application/json' \\ --header 'Accept: application/json' \\ --header 'api-key: dev_vE*****DCUv82mKkL'`\r\n\r\nResponse : \r\n\r\n```\r\n{\r\n \"connector_count\": 9,\r\n \"connectors\": [\r\n {\r\n \"name\": \"BAMBORA\",\r\n \"display_name\": \"Bambora\",\r\n \"description\": \"Bambora is a leading online payment provider in Canada and United States.\",\r\n \"category\": \"payment_gateway\",\r\n \"supported_payment_methods\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"three_ds\": \"supported\",\r\n \"no_three_ds\": \"supported\",\r\n \"supported_card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\",\r\n \"AmericanExpress\",\r\n \"Discover\",\r\n \"JCB\",\r\n \"DinersClub\"\r\n ],\r\n \"supported_countries\": [\r\n \"US\",\r\n \"CA\"\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 \"name\": \"BITPAY\",\r\n \"display_name\": \"Bitpay\",\r\n \"description\": \"BitPay is a cryptocurrency payment processor that enables businesses to accept Bitcoin and other digital currencies \",\r\n \"category\": \"alternative_payment_method\",\r\n \"supported_payment_methods\": [\r\n {\r\n \"payment_method\": \"crypto\",\r\n \"payment_method_type\": \"crypto_currency\",\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 \"BE\",\r\n \"GR\",\r\n \"US\",\r\n \"DE\",\r\n \"SE\",\r\n \"PL\",\r\n \"LV\",\r\n \"FI\",\r\n \"NL\",\r\n \"RO\",\r\n \"GB\",\r\n \"BG\",\r\n \"AT\",\r\n \"CA\",\r\n \"HR\",\r\n \"LT\",\r\n \"EE\",\r\n \"CZ\",\r\n \"FR\",\r\n \"DK\",\r\n \"PT\",\r\n \"HU\",\r\n \"LU\",\r\n \"SI\",\r\n \"MT\",\r\n \"IE\",\r\n \"CY\",\r\n \"IT\",\r\n \"ES\",\r\n \"SK\"\r\n ],\r\n \"supported_currencies\": [\r\n \"CHF\",\r\n \"MXN\",\r\n \"USD\",\r\n \"GBP\",\r\n \"EUR\",\r\n \"NZD\",\r\n \"AUD\",\r\n \"CAD\"\r\n ]\r\n }\r\n ],\r\n \"supported_webhook_flows\": [\r\n \"payments\"\r\n ]\r\n },\r\n {\r\n \"name\": \"DEUTSCHEBANK\",\r\n \"display_name\": \"Deutsche Bank\",\r\n \"description\": \"Deutsche Bank is a German multinational investment bank and financial services company \",\r\n \"category\": \"bank_acquirer\",\r\n \"supported_payment_methods\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"three_ds\": \"supported\",\r\n \"no_three_ds\": \"not_supported\",\r\n \"supported_card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"supported_countries\": null,\r\n \"supported_currencies\": null\r\n },\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"debit\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"three_ds\": \"supported\",\r\n \"no_three_ds\": \"not_supported\",\r\n \"supported_card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\"\r\n ],\r\n \"supported_countries\": null,\r\n \"supported_currencies\": null\r\n },\r\n {\r\n \"payment_method\": \"bank_debit\",\r\n \"payment_method_type\": \"sepa\",\r\n \"mandates\": \"supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"supported_countries\": null,\r\n \"supported_currencies\": null\r\n }\r\n ],\r\n \"supported_webhook_flows\": []\r\n },\r\n {\r\n \"name\": \"DIGITALVIRGO\",\r\n \"display_name\": \"Digital Virgo\",\r\n \"description\": \"Digital Virgo is an alternative payment provider specializing in carrier billing and mobile payments \",\r\n \"category\": \"alternative_payment_method\",\r\n \"supported_payment_methods\": [\r\n {\r\n \"payment_method\": \"mobile_payment\",\r\n \"payment_method_type\": \"direct_carrier_billing\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"sequential_automatic\"\r\n ],\r\n \"supported_countries\": [\r\n \"AE\",\r\n \"PS\",\r\n \"RU\",\r\n \"SD\",\r\n \"TR\",\r\n \"CM\",\r\n \"GN\",\r\n \"AZ\",\r\n \"NL\",\r\n \"BH\",\r\n \"IQ\",\r\n \"MA\",\r\n \"BW\",\r\n \"BR\",\r\n \"LY\",\r\n \"SA\",\r\n \"GH\",\r\n \"SG\",\r\n \"PL\",\r\n \"ML\",\r\n \"FR\",\r\n \"CG\",\r\n \"MG\",\r\n \"EG\",\r\n \"BE\",\r\n \"NG\",\r\n \"IE\",\r\n \"SK\",\r\n \"CH\",\r\n \"ID\",\r\n \"GR\",\r\n \"JO\",\r\n \"SN\",\r\n \"IT\",\r\n \"DE\",\r\n \"KW\",\r\n \"PT\",\r\n \"GB\",\r\n \"MX\",\r\n \"ZA\",\r\n \"QA\",\r\n \"AR\",\r\n \"OM\",\r\n \"GA\",\r\n \"DZ\",\r\n \"CL\",\r\n \"ES\",\r\n \"TN\"\r\n ],\r\n \"supported_currencies\": [\r\n \"BHD\",\r\n \"ZAR\",\r\n \"EGP\",\r\n \"OMR\",\r\n \"GNF\",\r\n \"JOD\",\r\n \"IQD\",\r\n \"XAF\",\r\n \"CHF\",\r\n \"LYD\",\r\n \"MGA\",\r\n \"CLP\",\r\n \"BRL\",\r\n \"SDG\",\r\n \"EUR\",\r\n \"TRY\",\r\n \"ARS\",\r\n \"MAD\",\r\n \"SAR\",\r\n \"ILS\",\r\n \"TND\",\r\n \"IDR\",\r\n \"XOF\",\r\n \"MXN\",\r\n \"DZD\",\r\n \"AZN\",\r\n \"PLN\",\r\n \"QAR\",\r\n \"AED\",\r\n \"CDF\",\r\n \"RUB\",\r\n \"GHS\",\r\n \"BWP\",\r\n \"GBP\",\r\n \"NGN\",\r\n \"SGD\",\r\n \"KWD\"\r\n ]\r\n }\r\n ],\r\n \"supported_webhook_flows\": []\r\n },\r\n {\r\n \"name\": \"HELCIM\",\r\n \"display_name\": \"Helcim\",\r\n \"description\": \"Helcim is a payment processing company that offers transparent, affordable merchant services for businesses of all sizes\",\r\n \"category\": \"payment_gateway\",\r\n \"supported_payment_methods\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"mandates\": \"supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"three_ds\": \"not_supported\",\r\n \"no_three_ds\": \"supported\",\r\n \"supported_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 \"supported_countries\": [\r\n \"CA\",\r\n \"US\"\r\n ],\r\n \"supported_currencies\": [\r\n \"USD\",\r\n \"CAD\"\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"debit\",\r\n \"mandates\": \"supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"three_ds\": \"not_supported\",\r\n \"no_three_ds\": \"supported\",\r\n \"supported_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 \"supported_countries\": [\r\n \"CA\",\r\n \"US\"\r\n ],\r\n \"supported_currencies\": [\r\n \"CAD\",\r\n \"USD\"\r\n ]\r\n }\r\n ],\r\n \"supported_webhook_flows\": []\r\n },\r\n {\r\n \"name\": \"JPMORGAN\",\r\n \"display_name\": \"Jpmorgan\",\r\n \"description\": \"J.P. Morgan is a global financial services firm and investment bank, offering banking, asset management, and payment processing solutions\",\r\n \"category\": \"bank_acquirer\",\r\n \"supported_payment_methods\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"not_supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\"\r\n ],\r\n \"three_ds\": \"not_supported\",\r\n \"no_three_ds\": \"supported\",\r\n \"supported_card_networks\": [\r\n \"AmericanExpress\",\r\n \"DinersClub\",\r\n \"Discover\",\r\n \"JCB\",\r\n \"Mastercard\",\r\n \"UnionPay\",\r\n \"Visa\"\r\n ],\r\n \"supported_countries\": [\r\n \"LT\",\r\n \"PL\",\r\n \"BG\",\r\n \"CA\",\r\n \"CZ\",\r\n \"FI\",\r\n \"NL\",\r\n \"CY\",\r\n \"EE\",\r\n \"DK\",\r\n \"ES\",\r\n \"IE\",\r\n \"RO\",\r\n \"GB\",\r\n \"SI\",\r\n \"HR\",\r\n \"GR\",\r\n \"HU\",\r\n \"FR\",\r\n \"BE\",\r\n \"SE\",\r\n \"LV\",\r\n \"US\",\r\n \"PT\",\r\n \"LU\",\r\n \"IT\",\r\n \"MT\",\r\n \"DE\",\r\n \"SK\",\r\n \"AT\"\r\n ],\r\n \"supported_currencies\": [\r\n \"FJD\",\r\n \"PKR\",\r\n \"SHP\",\r\n \"CAD\",\r\n \"GHS\",\r\n \"PGK\",\r\n \"UGX\",\r\n \"RSD\",\r\n \"LSL\",\r\n \"HNL\",\r\n \"JPY\",\r\n \"MMK\",\r\n \"EGP\",\r\n \"GIP\",\r\n \"DKK\",\r\n \"LBP\",\r\n \"ALL\",\r\n \"CVE\",\r\n \"STN\",\r\n \"TTD\",\r\n \"CNY\",\r\n \"BND\",\r\n \"JMD\",\r\n \"MVR\",\r\n \"UYU\",\r\n \"KES\",\r\n \"KHR\",\r\n \"BBD\",\r\n \"HUF\",\r\n \"MNT\",\r\n \"AED\",\r\n \"CHF\",\r\n \"AWG\",\r\n \"TZS\",\r\n \"SEK\",\r\n \"ZAR\",\r\n \"AFN\",\r\n \"INR\",\r\n \"HKD\",\r\n \"LRD\",\r\n \"NAD\",\r\n \"MKD\",\r\n \"MYR\",\r\n \"HRK\",\r\n \"MOP\",\r\n \"NGN\",\r\n \"VUV\",\r\n \"GMD\",\r\n \"PHP\",\r\n \"SBD\",\r\n \"XCD\",\r\n \"DOP\",\r\n \"SCR\",\r\n \"SRD\",\r\n \"LAK\",\r\n \"SZL\",\r\n \"KZT\",\r\n \"KYD\",\r\n \"MZN\",\r\n \"CZK\",\r\n \"BWP\",\r\n \"BSD\",\r\n \"MGA\",\r\n \"WST\",\r\n \"MXN\",\r\n \"SLL\",\r\n \"MWK\",\r\n \"PYG\",\r\n \"NZD\",\r\n \"THB\",\r\n \"USD\",\r\n \"BTN\",\r\n \"ETB\",\r\n \"ISK\",\r\n \"QAR\",\r\n \"FKP\",\r\n \"CLP\",\r\n \"XPF\",\r\n \"XAF\",\r\n \"TJS\",\r\n \"PLN\",\r\n \"DZD\",\r\n \"PEN\",\r\n \"RWF\",\r\n \"COP\",\r\n \"BIF\",\r\n \"KMF\",\r\n \"NOK\",\r\n \"VND\",\r\n \"NPR\",\r\n \"GBP\",\r\n \"ZMW\",\r\n \"BDT\",\r\n \"TOP\",\r\n \"BAM\",\r\n \"CRC\",\r\n \"GEL\",\r\n \"TRY\",\r\n \"GYD\",\r\n \"XOF\",\r\n \"MAD\",\r\n \"ANG\",\r\n \"HTG\",\r\n \"UZS\",\r\n \"SAR\",\r\n \"CDF\",\r\n \"AZN\",\r\n \"GTQ\",\r\n \"SOS\",\r\n \"YER\",\r\n \"AUD\",\r\n \"MRU\",\r\n \"NIO\",\r\n \"IDR\",\r\n \"SGD\",\r\n \"RON\",\r\n \"BRL\",\r\n \"TWD\",\r\n \"AMD\",\r\n \"ARS\",\r\n \"BYN\",\r\n \"ILS\",\r\n \"MDL\",\r\n \"BMD\",\r\n \"PAB\",\r\n \"BOB\",\r\n \"UAH\",\r\n \"LKR\",\r\n \"KRW\",\r\n \"BZD\",\r\n \"MUR\",\r\n \"AOA\",\r\n \"BGN\",\r\n \"DJF\",\r\n \"EUR\"\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"debit\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"not_supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\"\r\n ],\r\n \"three_ds\": \"not_supported\",\r\n \"no_three_ds\": \"supported\",\r\n \"supported_card_networks\": [\r\n \"AmericanExpress\",\r\n \"DinersClub\",\r\n \"Discover\",\r\n \"JCB\",\r\n \"Mastercard\",\r\n \"UnionPay\",\r\n \"Visa\"\r\n ],\r\n \"supported_countries\": [\r\n \"GB\",\r\n \"HR\",\r\n \"EE\",\r\n \"FR\",\r\n \"PL\",\r\n \"SE\",\r\n \"AT\",\r\n \"GR\",\r\n \"SI\",\r\n \"NL\",\r\n \"SK\",\r\n \"FI\",\r\n \"CA\",\r\n \"CZ\",\r\n \"HU\",\r\n \"CY\",\r\n \"IT\",\r\n \"BG\",\r\n \"DK\",\r\n \"RO\",\r\n \"LT\",\r\n \"LV\",\r\n \"US\",\r\n \"MT\",\r\n \"DE\",\r\n \"LU\",\r\n \"IE\",\r\n \"ES\",\r\n \"BE\",\r\n \"PT\"\r\n ],\r\n \"supported_currencies\": [\r\n \"PYG\",\r\n \"TOP\",\r\n \"BIF\",\r\n \"VUV\",\r\n \"CVE\",\r\n \"JPY\",\r\n \"MXN\",\r\n \"KRW\",\r\n \"BRL\",\r\n \"KES\",\r\n \"PHP\",\r\n \"KMF\",\r\n \"BDT\",\r\n \"BND\",\r\n \"RSD\",\r\n \"PKR\",\r\n \"ZMW\",\r\n \"BOB\",\r\n \"LSL\",\r\n \"UAH\",\r\n \"NIO\",\r\n \"KZT\",\r\n \"KHR\",\r\n \"TJS\",\r\n \"CLP\",\r\n \"PAB\",\r\n \"UGX\",\r\n \"KYD\",\r\n \"RON\",\r\n \"COP\",\r\n \"CRC\",\r\n \"MMK\",\r\n \"TTD\",\r\n \"VND\",\r\n \"YER\",\r\n \"MNT\",\r\n \"AWG\",\r\n \"STN\",\r\n \"ETB\",\r\n \"SHP\",\r\n \"AUD\",\r\n \"DJF\",\r\n \"HTG\",\r\n \"HRK\",\r\n \"SZL\",\r\n \"AMD\",\r\n \"PGK\",\r\n \"MGA\",\r\n \"IDR\",\r\n \"TRY\",\r\n \"WST\",\r\n \"NAD\",\r\n \"CHF\",\r\n \"CNY\",\r\n \"UYU\",\r\n \"HUF\",\r\n \"THB\",\r\n \"AFN\",\r\n \"MRU\",\r\n \"DZD\",\r\n \"BGN\",\r\n \"GTQ\",\r\n \"EGP\",\r\n \"MAD\",\r\n \"JMD\",\r\n \"GIP\",\r\n \"NPR\",\r\n \"LBP\",\r\n \"MDL\",\r\n \"SCR\",\r\n \"BSD\",\r\n \"SBD\",\r\n \"ARS\",\r\n \"AOA\",\r\n \"XAF\",\r\n \"MKD\",\r\n \"TWD\",\r\n \"GBP\",\r\n \"BYN\",\r\n \"UZS\",\r\n \"MYR\",\r\n \"CAD\",\r\n \"LAK\",\r\n \"MZN\",\r\n \"AED\",\r\n \"SGD\",\r\n \"EUR\",\r\n \"SRD\",\r\n \"MUR\",\r\n \"GHS\",\r\n \"FJD\",\r\n \"GEL\",\r\n \"GMD\",\r\n \"XOF\",\r\n \"SLL\",\r\n \"SAR\",\r\n \"BAM\",\r\n \"NZD\",\r\n \"BWP\",\r\n \"GYD\",\r\n \"NGN\",\r\n \"FKP\",\r\n \"HNL\",\r\n \"SEK\",\r\n \"INR\",\r\n \"PEN\",\r\n \"BTN\",\r\n \"BBD\",\r\n \"ALL\",\r\n \"USD\",\r\n \"LRD\",\r\n \"XPF\",\r\n \"MVR\",\r\n \"XCD\",\r\n \"SOS\",\r\n \"BZD\",\r\n \"AZN\",\r\n \"MWK\",\r\n \"TZS\",\r\n \"DKK\",\r\n \"CZK\",\r\n \"ISK\",\r\n \"RWF\",\r\n \"DOP\",\r\n \"ZAR\",\r\n \"BMD\",\r\n \"LKR\",\r\n \"NOK\",\r\n \"HKD\",\r\n \"QAR\",\r\n \"CDF\",\r\n \"PLN\",\r\n \"MOP\",\r\n \"ANG\",\r\n \"ILS\"\r\n ]\r\n }\r\n ],\r\n \"supported_webhook_flows\": []\r\n },\r\n {\r\n \"name\": \"PAYBOX\",\r\n \"display_name\": \"Paybox\",\r\n \"description\": \"Paybox is a payment gateway that enables businesses to process online transactions securely \",\r\n \"category\": \"payment_gateway\",\r\n \"supported_payment_methods\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"debit\",\r\n \"mandates\": \"supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"three_ds\": \"supported\",\r\n \"no_three_ds\": \"supported\",\r\n \"supported_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 \"supported_countries\": [\r\n \"FR\"\r\n ],\r\n \"supported_currencies\": [\r\n \"CAD\",\r\n \"EUR\",\r\n \"AUD\",\r\n \"USD\"\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"mandates\": \"supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"three_ds\": \"supported\",\r\n \"no_three_ds\": \"supported\",\r\n \"supported_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 \"supported_countries\": [\r\n \"FR\"\r\n ],\r\n \"supported_currencies\": [\r\n \"USD\",\r\n \"CAD\",\r\n \"AUD\",\r\n \"EUR\"\r\n ]\r\n }\r\n ],\r\n \"supported_webhook_flows\": []\r\n },\r\n {\r\n \"name\": \"PAYU\",\r\n \"display_name\": \"Payu\",\r\n \"description\": \"PayU is a global fintech company providing online payment solutions, including card processing, UPI, wallets, and BNPL services across multiple markets \",\r\n \"category\": \"payment_gateway\",\r\n \"supported_payment_methods\": [\r\n {\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"google_pay\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"supported_countries\": [\r\n \"GY\",\r\n \"DZ\",\r\n \"SR\",\r\n \"CR\",\r\n \"NA\",\r\n \"TJ\",\r\n \"MK\",\r\n \"ET\",\r\n \"GH\",\r\n \"HK\",\r\n \"MG\",\r\n \"AL\",\r\n \"LR\",\r\n \"SO\",\r\n \"UG\",\r\n \"FJ\",\r\n \"AI\",\r\n \"DJ\",\r\n \"IL\",\r\n \"KH\",\r\n \"AS\",\r\n \"BM\",\r\n \"BR\",\r\n \"SV\",\r\n \"MN\",\r\n \"RO\",\r\n \"VE\",\r\n \"PA\",\r\n \"BW\",\r\n \"BH\",\r\n \"SZ\",\r\n \"PL\",\r\n \"SH\",\r\n \"FK\",\r\n \"CL\",\r\n \"CD\",\r\n \"TT\",\r\n \"JP\",\r\n \"TH\",\r\n \"AW\",\r\n \"PF\",\r\n \"BY\",\r\n \"MD\",\r\n \"TW\",\r\n \"AU\",\r\n \"GT\",\r\n \"KR\",\r\n \"AF\",\r\n \"BZ\",\r\n \"AZ\",\r\n \"GE\",\r\n \"MW\",\r\n \"MY\",\r\n \"TO\",\r\n \"MA\",\r\n \"VU\",\r\n \"SC\",\r\n \"LI\",\r\n \"MZ\",\r\n \"BV\",\r\n \"AE\",\r\n \"CN\",\r\n \"GG\",\r\n \"BB\",\r\n \"TN\",\r\n \"SA\",\r\n \"HN\",\r\n \"MR\",\r\n \"OM\",\r\n \"NG\",\r\n \"JO\",\r\n \"CO\",\r\n \"QA\",\r\n \"WS\",\r\n \"GN\",\r\n \"ZM\",\r\n \"AR\",\r\n \"KM\",\r\n \"BN\",\r\n \"RW\",\r\n \"CZ\",\r\n \"SE\",\r\n \"AO\",\r\n \"EG\",\r\n \"BS\",\r\n \"KZ\",\r\n \"UY\",\r\n \"CA\",\r\n \"HR\",\r\n \"ZA\",\r\n \"GI\",\r\n \"BI\",\r\n \"BJ\",\r\n \"PY\",\r\n \"UZ\",\r\n \"SB\",\r\n \"ZW\",\r\n \"VN\",\r\n \"CK\",\r\n \"BA\",\r\n \"AM\",\r\n \"BG\",\r\n \"YE\",\r\n \"IQ\",\r\n \"JM\",\r\n \"ID\",\r\n \"PE\",\r\n \"PG\",\r\n \"BO\",\r\n \"TR\",\r\n \"CM\",\r\n \"IS\",\r\n \"HT\",\r\n \"LS\",\r\n \"NI\",\r\n \"TM\",\r\n \"CW\",\r\n \"LA\",\r\n \"MO\",\r\n \"AD\",\r\n \"SG\",\r\n \"GM\",\r\n \"KG\",\r\n \"KW\",\r\n \"CV\",\r\n \"MV\",\r\n \"MX\",\r\n \"TZ\",\r\n \"KY\",\r\n \"RS\",\r\n \"DK\",\r\n \"HU\",\r\n \"LB\",\r\n \"DO\"\r\n ],\r\n \"supported_currencies\": [\r\n \"KWD\",\r\n \"PEN\",\r\n \"NIO\",\r\n \"RSD\",\r\n \"BWP\",\r\n \"HKD\",\r\n \"MDL\",\r\n \"USD\",\r\n \"VND\",\r\n \"AMD\",\r\n \"ISK\",\r\n \"ILS\",\r\n \"TOP\",\r\n \"JOD\",\r\n \"ZMW\",\r\n \"TJS\",\r\n \"BSD\",\r\n \"DKK\",\r\n \"BAM\",\r\n \"MNT\",\r\n \"PYG\",\r\n \"HUF\",\r\n \"ALL\",\r\n \"GNF\",\r\n \"KZT\",\r\n \"MWK\",\r\n \"RON\",\r\n \"VUV\",\r\n \"XCD\",\r\n \"XAF\",\r\n \"CLP\",\r\n \"BOB\",\r\n \"KGS\",\r\n \"VES\",\r\n \"AWG\",\r\n \"BRL\",\r\n \"CNY\",\r\n \"IQD\",\r\n \"CZK\",\r\n \"SCR\",\r\n \"MGA\",\r\n \"MVR\",\r\n \"SZL\",\r\n \"WST\",\r\n \"TZS\",\r\n \"MYR\",\r\n \"ARS\",\r\n \"NZD\",\r\n \"LRD\",\r\n \"CAD\",\r\n \"BYN\",\r\n \"BIF\",\r\n \"HNL\",\r\n \"CVE\",\r\n \"GHS\",\r\n \"SVC\",\r\n \"BHD\",\r\n \"SEK\",\r\n \"AZN\",\r\n \"OMR\",\r\n \"SBD\",\r\n \"BBD\",\r\n \"BZD\",\r\n \"PAB\",\r\n \"SHP\",\r\n \"BGN\",\r\n \"GEL\",\r\n \"UYU\",\r\n \"ZAR\",\r\n \"CRC\",\r\n \"KYD\",\r\n \"HRK\",\r\n \"AED\",\r\n \"BND\",\r\n \"ETB\",\r\n \"MKD\",\r\n \"SOS\",\r\n \"LAK\",\r\n \"BMD\",\r\n \"MAD\",\r\n \"NOK\",\r\n \"TWD\",\r\n \"UGX\",\r\n \"LBP\",\r\n \"EUR\",\r\n \"GBP\",\r\n \"XPF\",\r\n \"YER\",\r\n \"RWF\",\r\n \"JPY\",\r\n \"TTD\",\r\n \"AUD\",\r\n \"KHR\",\r\n \"FKP\",\r\n \"TND\",\r\n \"PLN\",\r\n \"SAR\",\r\n \"MOP\",\r\n \"CDF\",\r\n \"AFN\",\r\n \"TRY\",\r\n \"GTQ\",\r\n \"HTG\",\r\n \"SRD\",\r\n \"LSL\",\r\n \"COP\",\r\n \"AOA\",\r\n \"JMD\",\r\n \"KRW\",\r\n \"DOP\",\r\n \"XOF\",\r\n \"ZWL\",\r\n \"GYD\",\r\n \"DJF\",\r\n \"SGD\",\r\n \"THB\",\r\n \"FJD\",\r\n \"GIP\",\r\n \"DZD\",\r\n \"EGP\",\r\n \"CHF\",\r\n \"GMD\",\r\n \"IDR\",\r\n \"MRU\",\r\n \"TMT\",\r\n \"KMF\",\r\n \"NGN\",\r\n \"QAR\",\r\n \"UZS\",\r\n \"MXN\",\r\n \"MZN\",\r\n \"ANG\",\r\n \"NAD\",\r\n \"PGK\"\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"three_ds\": \"not_supported\",\r\n \"no_three_ds\": \"supported\",\r\n \"supported_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 \"supported_countries\": [\r\n \"AM\",\r\n \"AE\",\r\n \"ZW\",\r\n \"WS\",\r\n \"DO\",\r\n \"UY\",\r\n \"HR\",\r\n \"AO\",\r\n \"MV\",\r\n \"QA\",\r\n \"TR\",\r\n \"NI\",\r\n \"GY\",\r\n \"VU\",\r\n \"MD\",\r\n \"GI\",\r\n \"SA\",\r\n \"UZ\",\r\n \"MA\",\r\n \"TH\",\r\n \"GN\",\r\n \"OM\",\r\n \"AS\",\r\n \"BA\",\r\n \"YE\",\r\n \"CK\",\r\n \"SV\",\r\n \"TT\",\r\n \"SZ\",\r\n \"AR\",\r\n \"BR\",\r\n \"BW\",\r\n \"JO\",\r\n \"BH\",\r\n \"LA\",\r\n \"SE\",\r\n \"BZ\",\r\n \"AZ\",\r\n \"HU\",\r\n \"MY\",\r\n \"CO\",\r\n \"KH\",\r\n \"AI\",\r\n \"TZ\",\r\n \"MK\",\r\n \"TM\",\r\n \"SR\",\r\n \"KR\",\r\n \"BN\",\r\n \"EG\",\r\n \"AU\",\r\n \"PY\",\r\n \"NG\",\r\n \"GH\",\r\n \"CN\",\r\n \"KZ\",\r\n \"NA\",\r\n \"ZM\",\r\n \"JP\",\r\n \"ID\",\r\n \"VN\",\r\n \"MZ\",\r\n \"SO\",\r\n \"BM\",\r\n \"CL\",\r\n \"ET\",\r\n \"MR\",\r\n \"LI\",\r\n \"KY\",\r\n \"AF\",\r\n \"BS\",\r\n \"MX\",\r\n \"RW\",\r\n \"CD\",\r\n \"TO\",\r\n \"RS\",\r\n \"DK\",\r\n \"GG\",\r\n \"PE\",\r\n \"PA\",\r\n \"CA\",\r\n \"LB\",\r\n \"CR\",\r\n \"MW\",\r\n \"FJ\",\r\n \"PG\",\r\n \"TN\",\r\n \"TW\",\r\n \"BO\",\r\n \"LR\",\r\n \"AD\",\r\n \"IS\",\r\n \"GM\",\r\n \"BG\",\r\n \"BV\",\r\n \"SG\",\r\n \"PF\",\r\n \"AL\",\r\n \"BI\",\r\n \"KM\",\r\n \"CM\",\r\n \"ZA\",\r\n \"AW\",\r\n \"RO\",\r\n \"TJ\",\r\n \"HK\",\r\n \"CW\",\r\n \"BB\",\r\n \"GT\",\r\n \"MO\",\r\n \"SH\",\r\n \"VE\",\r\n \"BJ\",\r\n \"IQ\",\r\n \"GE\",\r\n \"KG\",\r\n \"MG\",\r\n \"PL\",\r\n \"DZ\",\r\n \"BY\",\r\n \"HN\",\r\n \"MN\",\r\n \"FK\",\r\n \"LS\",\r\n \"UG\",\r\n \"CV\",\r\n \"HT\",\r\n \"CZ\",\r\n \"KW\",\r\n \"SB\",\r\n \"SC\",\r\n \"IL\",\r\n \"DJ\",\r\n \"JM\"\r\n ],\r\n \"supported_currencies\": [\r\n \"COP\",\r\n \"GMD\",\r\n \"AOA\",\r\n \"AED\",\r\n \"HRK\",\r\n \"LBP\",\r\n \"BWP\",\r\n \"ILS\",\r\n \"TRY\",\r\n \"UYU\",\r\n \"XAF\",\r\n \"ZAR\",\r\n \"SZL\",\r\n \"MXN\",\r\n \"ANG\",\r\n \"BRL\",\r\n \"CLP\",\r\n \"MOP\",\r\n \"IDR\",\r\n \"MVR\",\r\n \"PYG\",\r\n \"NAD\",\r\n \"SOS\",\r\n \"VES\",\r\n \"KYD\",\r\n \"HKD\",\r\n \"SCR\",\r\n \"AWG\",\r\n \"THB\",\r\n \"GBP\",\r\n \"FJD\",\r\n \"ALL\",\r\n \"KZT\",\r\n \"BAM\",\r\n \"SHP\",\r\n \"BIF\",\r\n \"SVC\",\r\n \"ARS\",\r\n \"SGD\",\r\n \"BGN\",\r\n \"DZD\",\r\n \"JMD\",\r\n \"ETB\",\r\n \"AUD\",\r\n \"SBD\",\r\n \"BMD\",\r\n \"NOK\",\r\n \"CNY\",\r\n \"IQD\",\r\n \"BBD\",\r\n \"CDF\",\r\n \"HNL\",\r\n \"DOP\",\r\n \"MAD\",\r\n \"TJS\",\r\n \"YER\",\r\n \"UGX\",\r\n \"ZMW\",\r\n \"BYN\",\r\n \"MNT\",\r\n \"KMF\",\r\n \"PAB\",\r\n \"CZK\",\r\n \"BOB\",\r\n \"USD\",\r\n \"NGN\",\r\n \"KGS\",\r\n \"QAR\",\r\n \"MDL\",\r\n \"MRU\",\r\n \"SEK\",\r\n \"DJF\",\r\n \"EGP\",\r\n \"LSL\",\r\n \"GTQ\",\r\n \"SRD\",\r\n \"TND\",\r\n \"MZN\",\r\n \"WST\",\r\n \"JPY\",\r\n \"TTD\",\r\n \"KWD\",\r\n \"MKD\",\r\n \"OMR\",\r\n \"XOF\",\r\n \"MWK\",\r\n \"CVE\",\r\n \"NZD\",\r\n \"EUR\",\r\n \"RSD\",\r\n \"XCD\",\r\n \"AMD\",\r\n \"ISK\",\r\n \"LRD\",\r\n \"TZS\",\r\n \"BND\",\r\n \"PEN\",\r\n \"NIO\",\r\n \"DKK\",\r\n \"HUF\",\r\n \"TMT\",\r\n \"BZD\",\r\n \"VND\",\r\n \"BHD\",\r\n \"JOD\",\r\n \"MGA\",\r\n \"VUV\",\r\n \"GIP\",\r\n \"HTG\",\r\n \"KHR\",\r\n \"FKP\",\r\n \"CAD\",\r\n \"BSD\",\r\n \"TWD\",\r\n \"UZS\",\r\n \"ZWL\",\r\n \"PLN\",\r\n \"PGK\",\r\n \"KRW\",\r\n \"RWF\",\r\n \"AFN\",\r\n \"GEL\",\r\n \"CHF\",\r\n \"CRC\",\r\n \"AZN\",\r\n \"GYD\",\r\n \"XPF\",\r\n \"TOP\",\r\n \"GNF\",\r\n \"GHS\",\r\n \"RON\",\r\n \"SAR\",\r\n \"LAK\",\r\n \"MYR\"\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"debit\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"three_ds\": \"not_supported\",\r\n \"no_three_ds\": \"supported\",\r\n \"supported_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 \"supported_countries\": [\r\n \"EG\",\r\n \"DZ\",\r\n \"OM\",\r\n \"BG\",\r\n \"GE\",\r\n \"MN\",\r\n \"BJ\",\r\n \"CZ\",\r\n \"ZM\",\r\n \"MA\",\r\n \"UG\",\r\n \"KR\",\r\n \"PF\",\r\n \"TH\",\r\n \"FK\",\r\n \"VE\",\r\n \"AL\",\r\n \"HR\",\r\n \"JP\",\r\n \"BO\",\r\n \"PL\",\r\n \"HN\",\r\n \"MZ\",\r\n \"ET\",\r\n \"BZ\",\r\n \"SO\",\r\n \"AI\",\r\n \"BN\",\r\n \"RO\",\r\n \"AS\",\r\n \"ID\",\r\n \"KW\",\r\n \"TT\",\r\n \"KZ\",\r\n \"AE\",\r\n \"SZ\",\r\n \"LI\",\r\n \"GM\",\r\n \"AD\",\r\n \"KM\",\r\n \"UZ\",\r\n \"TM\",\r\n \"WS\",\r\n \"DK\",\r\n \"MR\",\r\n \"LA\",\r\n \"CM\",\r\n \"BM\",\r\n \"CW\",\r\n \"MK\",\r\n \"KY\",\r\n \"KG\",\r\n \"DO\",\r\n \"TO\",\r\n \"BH\",\r\n \"PY\",\r\n \"AM\",\r\n \"CV\",\r\n \"MO\",\r\n \"RS\",\r\n \"BR\",\r\n \"GT\",\r\n \"ZA\",\r\n \"IL\",\r\n \"GY\",\r\n \"SB\",\r\n \"AR\",\r\n \"MV\",\r\n \"PE\",\r\n \"CK\",\r\n \"NG\",\r\n \"BB\",\r\n \"CO\",\r\n \"LS\",\r\n \"IS\",\r\n \"BV\",\r\n \"DJ\",\r\n \"SR\",\r\n \"HT\",\r\n \"YE\",\r\n \"AF\",\r\n \"AW\",\r\n \"QA\",\r\n \"MY\",\r\n \"ZW\",\r\n \"PG\",\r\n \"JM\",\r\n \"TZ\",\r\n \"GI\",\r\n \"IQ\",\r\n \"BW\",\r\n \"CN\",\r\n \"SE\",\r\n \"TJ\",\r\n \"CL\",\r\n \"GG\",\r\n \"PA\",\r\n \"HK\",\r\n \"AU\",\r\n \"MD\",\r\n \"JO\",\r\n \"CR\",\r\n \"TW\",\r\n \"FJ\",\r\n \"VU\",\r\n \"NA\",\r\n \"CD\",\r\n \"TN\",\r\n \"UY\",\r\n \"BS\",\r\n \"CA\",\r\n \"GH\",\r\n \"MG\",\r\n \"BA\",\r\n \"SA\",\r\n \"BY\",\r\n \"SH\",\r\n \"HU\",\r\n \"MX\",\r\n \"KH\",\r\n \"LR\",\r\n \"MW\",\r\n \"NI\",\r\n \"AZ\",\r\n \"LB\",\r\n \"RW\",\r\n \"SV\",\r\n \"GN\",\r\n \"SC\",\r\n \"BI\",\r\n \"VN\",\r\n \"TR\",\r\n \"SG\",\r\n \"AO\"\r\n ],\r\n \"supported_currencies\": [\r\n \"KYD\",\r\n \"NOK\",\r\n \"CVE\",\r\n \"BBD\",\r\n \"MYR\",\r\n \"NGN\",\r\n \"IDR\",\r\n \"MKD\",\r\n \"RWF\",\r\n \"UZS\",\r\n \"GNF\",\r\n \"ZWL\",\r\n \"AMD\",\r\n \"BYN\",\r\n \"MDL\",\r\n \"CHF\",\r\n \"RON\",\r\n \"DKK\",\r\n \"KHR\",\r\n \"TWD\",\r\n \"VES\",\r\n \"NZD\",\r\n \"SHP\",\r\n \"SVC\",\r\n \"BGN\",\r\n \"BHD\",\r\n \"CLP\",\r\n \"SZL\",\r\n \"TRY\",\r\n \"SEK\",\r\n \"KRW\",\r\n \"SCR\",\r\n \"HNL\",\r\n \"LRD\",\r\n \"UYU\",\r\n \"NIO\",\r\n \"PYG\",\r\n \"SGD\",\r\n \"WST\",\r\n \"HRK\",\r\n \"USD\",\r\n \"AZN\",\r\n \"MZN\",\r\n \"RSD\",\r\n \"TTD\",\r\n \"VND\",\r\n \"FKP\",\r\n \"JMD\",\r\n \"PLN\",\r\n \"MRU\",\r\n \"AFN\",\r\n \"BWP\",\r\n \"SAR\",\r\n \"XOF\",\r\n \"CDF\",\r\n \"CAD\",\r\n \"JOD\",\r\n \"NAD\",\r\n \"SBD\",\r\n \"BZD\",\r\n \"GHS\",\r\n \"BAM\",\r\n \"TZS\",\r\n \"GIP\",\r\n \"LBP\",\r\n \"MNT\",\r\n \"FJD\",\r\n \"AWG\",\r\n \"ILS\",\r\n \"BIF\",\r\n \"TJS\",\r\n \"TOP\",\r\n \"SRD\",\r\n \"BND\",\r\n \"KZT\",\r\n \"CZK\",\r\n \"YER\",\r\n \"MWK\",\r\n \"BMD\",\r\n \"EUR\",\r\n \"HKD\",\r\n \"BRL\",\r\n \"MOP\",\r\n \"GTQ\",\r\n \"LSL\",\r\n \"JPY\",\r\n \"THB\",\r\n \"CNY\",\r\n \"GMD\",\r\n \"HTG\",\r\n \"BOB\",\r\n \"ZAR\",\r\n \"MVR\",\r\n \"ETB\",\r\n \"ALL\",\r\n \"GYD\",\r\n \"ARS\",\r\n \"AUD\",\r\n \"UGX\",\r\n \"DZD\",\r\n \"CRC\",\r\n \"XCD\",\r\n \"GBP\",\r\n \"KMF\",\r\n \"AOA\",\r\n \"DJF\",\r\n \"TND\",\r\n \"TMT\",\r\n \"AED\",\r\n \"COP\",\r\n \"KWD\",\r\n \"OMR\",\r\n \"PEN\",\r\n \"MAD\",\r\n \"XAF\",\r\n \"GEL\",\r\n \"ANG\",\r\n \"PAB\",\r\n \"ISK\",\r\n \"QAR\",\r\n \"MXN\",\r\n \"PGK\",\r\n \"XPF\",\r\n \"MGA\",\r\n \"LAK\",\r\n \"ZMW\",\r\n \"VUV\",\r\n \"SOS\",\r\n \"IQD\",\r\n \"BSD\",\r\n \"DOP\",\r\n \"EGP\",\r\n \"KGS\",\r\n \"HUF\"\r\n ]\r\n }\r\n ],\r\n \"supported_webhook_flows\": []\r\n },\r\n {\r\n \"name\": \"ZSL\",\r\n \"display_name\": \"ZSL\",\r\n \"description\": \"Zsl is a payment gateway operating in China, specializing in facilitating local bank transfers\",\r\n \"category\": \"payment_gateway\",\r\n \"supported_payment_methods\": [\r\n {\r\n \"payment_method\": \"bank_transfer\",\r\n \"payment_method_type\": \"local_bank_transfer\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"not_supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\"\r\n ],\r\n \"supported_countries\": [\r\n \"CN\"\r\n ],\r\n \"supported_currencies\": [\r\n \"CNY\"\r\n ]\r\n }\r\n ],\r\n \"supported_webhook_flows\": []\r\n }\r\n ]\r\n}\r\n```\r\n\r\n## Checklist\r\n\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", + "author": "bsayak03", + "created_at": "2025-01-30T19:41:38+00:00", + "merged_at": "2025-02-25T19:48:48+00:00", + "base_branch": "main", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/7148", + "commits": [ + { + "sha": "3d0fad215534ac995bc0a918e442907b92d31bfe", + "message": "feat(connector): [JPMORGAN, PAYU, DIGITALVIRGO] added in feature matrix api", + "author": "Sayak Bhattacharya", + "date": "2025-01-30T17:18:29+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3d0fad215534ac995bc0a918e442907b92d31bfe" + }, + { + "sha": "6b274c49c2c9eba75748cf834ab06f316d083b62", + "message": "chore: Resolve PR commits", + "author": "Sayak Bhattacharya", + "date": "2025-02-05T14:09:57+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6b274c49c2c9eba75748cf834ab06f316d083b62" + }, + { + "sha": "3d4df8d02cd40595bdfe8eec7609f4dfb2dcf52e", + "message": "Merge branch 'main' into ft_matrix", + "author": "Sayak Bhattacharya", + "date": "2025-02-21T11:48:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3d4df8d02cd40595bdfe8eec7609f4dfb2dcf52e" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7231.json b/prs/pr_7231.json new file mode 100644 index 0000000000000000000000000000000000000000..70894a4edc876a98b4beb75d8dfcd7de3279c4d4 --- /dev/null +++ b/prs/pr_7231.json @@ -0,0 +1,20 @@ +{ + "number": 7231, + "title": "fix(connector): [fiuu] update PSync and webhooks response", + "description": "## Type of Change\r\n\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/7211\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\n\r\n\r\n## Motivation and Context\r\nHelps fix Fiuu connector specifically for DuitNow.\r\n\r\n## How did you test it?\r\nDuitNow cannot be tested. Updated based on API documentation.\r\n\r\n\r\n## Checklist\r\n\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", + "author": "kashif-m", + "created_at": "2025-02-10T09:00:00+00:00", + "merged_at": "2025-02-10T12:37:44+00:00", + "base_branch": "hotfix-2025.01.20.0", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/7231", + "commits": [ + { + "sha": "950064c9edb3ebfb93ccf6c6f9875dc5d6c2cafe", + "message": "fix(connector): [fiuu] update PSync and webhooks response (#7211)\n\n(cherry picked from commit 1c54211b2f8aa650fc4dbb7ab3d796e21d50461a)", + "author": "Kashif", + "date": "2025-02-10T05:52:54+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/950064c9edb3ebfb93ccf6c6f9875dc5d6c2cafe" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7301.json b/prs/pr_7301.json new file mode 100644 index 0000000000000000000000000000000000000000..5a498685270b1bd3ea232228331736939b572bfd --- /dev/null +++ b/prs/pr_7301.json @@ -0,0 +1,36 @@ +{ + "number": 7301, + "title": "fix(connector): [SCRIPT] Update template generating script and updated connector doc", + "description": "## Type of Change\r\n\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [x] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [x] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n\r\nupdated add_connector.sh script, to make a entry in required places.\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\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\r\n## Checklist\r\n\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", + "author": "sumanmaji4", + "created_at": "2025-02-18T14:10:52+00:00", + "merged_at": "2025-02-19T21:09:17+00:00", + "base_branch": "main", + "labels": [ + "C-feature" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7301", + "commits": [ + { + "sha": "97e27924b17ea016f764f76602dacfc227f4c730", + "message": "wip", + "author": "sumanmaji4", + "date": "2025-02-18T09:45:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/97e27924b17ea016f764f76602dacfc227f4c730" + }, + { + "sha": "0100026e88183218a21c37ac2ff88b2f08d244a0", + "message": "connector script update", + "author": "sumanmaji4", + "date": "2025-02-18T14:07:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0100026e88183218a21c37ac2ff88b2f08d244a0" + }, + { + "sha": "98e84ba27390df3e201d06d784155024914ced7f", + "message": "add updated connector documentation", + "author": "Anurag Singh", + "date": "2025-02-18T16:47:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/98e84ba27390df3e201d06d784155024914ced7f" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7414.json b/prs/pr_7414.json new file mode 100644 index 0000000000000000000000000000000000000000..515b1f975cee592a2bd4a11f32c1e49cb9ef8ce7 --- /dev/null +++ b/prs/pr_7414.json @@ -0,0 +1,37 @@ +{ + "number": 7414, + "title": "feat(connector): add functionality for transforming QR image color", + "description": "## Type of Change\r\n\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\nThis PR adds functionality to \r\n- Create QR image data URI for a given hex color\r\n- Send back the border color and display text message along with the QR data in `NextActionData` - which is consumed by SDK to take next action\r\n\r\nDescribed in #7405 \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\n\r\n\r\n## Motivation and Context\r\nDuitNow is a realtime payment system which works by scanning QR codes. Displaying these QR codes has certain guidelines mentioned here - https://docs.developer.paynet.my/branding/duitnow/DuitNow%20Brand.pdf\r\n\r\nThis PR sends required data in the confirm API response which is consumed by SDK.\r\n\r\n\r\n## How did you test it?\r\nTested locally by creating payment links and proceeding with DuitNow payment method.\r\n\r\n
\r\n Create a payment link (ensure DuitNow is enabled)\r\n\r\ncURL\r\n\r\n curl --location --request POST 'http://localhost:8080/payments' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'Accept: application/json' \\\r\n --header 'api-key: dev_mdkyMYu7o5AvOHSe81Y5MYanl7eTn9rFTRg7DdMvIsJm88Iq5QtXrSihb94pVXmW' \\\r\n --data-raw '{\"customer_id\":\"cus_AuvaBi0Ga8Wqx0AyKrYd\",\"profile_id\":\"pro_7ez6O5T557WOZlcVlidL\",\"customer_acceptance\":{\"acceptance_type\":\"online\",\"accepted_at\":\"1963-05-03T04:07:52.723Z\",\"online\":{\"ip_address\":\"127.0.0.1\",\"user_agent\":\"amet irure esse\"}},\"amount\":100,\"currency\":\"MYR\",\"payment_link\":true,\"capture_method\":\"automatic\",\"billing\":{\"address\":{\"line1\":\"1467\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"CA\",\"zip\":\"94122\",\"country\":\"MY\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"email\":\"john.doe@example.co.in\",\"session_expiry\":100000,\"return_url\":\"https://example.com\",\"payment_link_config\":{\"theme\":\"#003264\",\"display_sdk_only\":true,\"hide_card_nickname_field\":true,\"payment_button_colour\":\"#FFA445\",\"custom_message_for_card_terms\":\"Pour v\u00e9rifier votre compte, un montant de 0,00 \u20ac sera d\u00e9bit\u00e9 lorsque vous aurez cliqu\u00e9 sur le bouton \u00ab Confirmer \u00bb\",\"payment_button_text\":\"Confirmer\",\"payment_button_text_colour\":\"#003264\",\"skip_status_screen\":true,\"background_colour\":\"#F9F9F9\"}}'\r\n\r\nResponse\r\n\r\n {\"payment_id\":\"pay_o8k60sUsjHfrG7a4gExy\",\"merchant_id\":\"merchant_1741062746\",\"status\":\"requires_payment_method\",\"amount\":100,\"net_amount\":100,\"shipping_cost\":null,\"amount_capturable\":100,\"amount_received\":null,\"connector\":null,\"client_secret\":\"pay_o8k60sUsjHfrG7a4gExy_secret_OVVV51kpUYJUdtXFJz1l\",\"created\":\"2025-03-04T06:11:28.748Z\",\"currency\":\"MYR\",\"customer_id\":\"cus_AuvaBi0Ga8Wqx0AyKrYd\",\"customer\":{\"id\":\"cus_AuvaBi0Ga8Wqx0AyKrYd\",\"name\":\"John Nether\",\"email\":\"john.doe@example.co.in\",\"phone\":\"6168205362\",\"phone_country_code\":\"+1\"},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":null,\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":null,\"payment_method_data\":null,\"payment_token\":null,\"shipping\":null,\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"MY\",\"line1\":\"1467\",\"line2\":null,\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"CA\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":null},\"order_details\":null,\"email\":\"john.doe@example.co.in\",\"name\":\"John Nether\",\"phone\":\"6168205362\",\"return_url\":\"https://example.com/\",\"authentication_type\":null,\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":null,\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"cus_AuvaBi0Ga8Wqx0AyKrYd\",\"created_at\":1741068688,\"expires\":1741072288,\"secret\":\"epk_2abaa6e62d0d4b43af67b73aa52160c9\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":null,\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":null,\"payment_link\":{\"link\":\"http://localhost:8080/payment_link/merchant_1741062746/pay_o8k60sUsjHfrG7a4gExy?locale=en\",\"secure_link\":null,\"payment_link_id\":\"plink_PLK7sgcmehAkqs93KUAq\"},\"profile_id\":\"pro_7ez6O5T557WOZlcVlidL\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":null,\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-05T09:58:08.746Z\",\"fingerprint\":null,\"browser_info\":null,\"payment_method_id\":null,\"payment_method_status\":null,\"updated\":\"2025-03-04T06:11:28.763Z\",\"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}\r\n\r\n
\r\n\r\n
\r\n Select and proceed with DuitNow\r\n\r\n\"Screenshot\r\n\r\n
\r\n\r\n## Checklist\r\n\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", + "author": "kashif-m", + "created_at": "2025-03-04T06:02:20+00:00", + "merged_at": "2025-03-04T11:14:11+00:00", + "base_branch": "main", + "labels": [ + "A-connector-compatibility", + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7414", + "commits": [ + { + "sha": "5d80108272db44c8cc062ce9600ad27eb43ce966", + "message": "feat(connector): add functionality for transforming QR image color", + "author": "Kashif", + "date": "2025-03-04T05:56:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5d80108272db44c8cc062ce9600ad27eb43ce966" + }, + { + "sha": "086a3129e3fc2a1724e42d26e0cf6e5264510d8c", + "message": "chore: re-generate openAPI spec", + "author": "Kashif", + "date": "2025-03-04T06:01:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/086a3129e3fc2a1724e42d26e0cf6e5264510d8c" + }, + { + "sha": "b3b7ef13bc860e88d4c87f2b2d49cc1c3e0ca24a", + "message": "chore: revert v2 openAPI spec", + "author": "Kashif", + "date": "2025-03-04T06:18:35+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b3b7ef13bc860e88d4c87f2b2d49cc1c3e0ca24a" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7451.json b/prs/pr_7451.json new file mode 100644 index 0000000000000000000000000000000000000000..efb65f4648d809ab8f939382bf88207f9bb9c4a1 --- /dev/null +++ b/prs/pr_7451.json @@ -0,0 +1,30 @@ +{ + "number": 7451, + "title": "feat(analytics): add new filters, dimensions and metrics for authentication analytics", + "description": "\r\n\r\n## Type of Change\r\n\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\r\nAdded support for filters and dimensions for authentication analytics.\r\nFilters added: \r\n- AuthenticationConnector\r\n- MessageVersion\r\n\r\nDimensions added:\r\n- AuthenticationStatus,\r\n- TransactionStatus,\r\n- ErrorMessage,\r\n- AuthenticationConnector,\r\n- MessageVersion,\r\n\r\nNew metrics added:\r\n- AuthenticationErrorMessage\r\n- AuthenticationFunnel\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\n\r\n\r\n## Motivation and Context\r\n\r\nGet better insights into authentication data.\r\n\r\n## How did you test it?\r\n\r\nHit the curls:\r\n#### AuthenticationErrorMessage:\r\n```bash\r\ncurl --location 'http://localhost:8080/analytics/v1/metrics/auth_events' \\\r\n--header 'Accept: */*' \\\r\n--header 'Accept-Language: en-US,en;q=0.9' \\\r\n--header 'Connection: keep-alive' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Origin: http://localhost:9000' \\\r\n--header 'Referer: http://localhost:9000/' \\\r\n--header 'Sec-Fetch-Dest: empty' \\\r\n--header 'Sec-Fetch-Mode: cors' \\\r\n--header 'Sec-Fetch-Site: same-site' \\\r\n--header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36' \\\r\n--header 'api-key: hyperswitch' \\\r\n--header 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiYWFiNWIxNDEtNjQwOC00YTUyLTk2MjMtNTVhNTgxMTU1M2U4IiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQwNDE0OTA5Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc0MTI3NDY4NSwib3JnX2lkIjoib3JnX1QwSEtYNHYyRGFRT2lHUDVwRk52IiwicHJvZmlsZV9pZCI6InByb19xOWc2ZW1xcGM3YjQxTG83VVhweCIsInRlbmFudF9pZCI6InB1YmxpYyJ9.LIExs1jjG6N5AFu5_S3oiuy77fWF0IbJmNGbK8HHLXI' \\\r\n--header 'sec-ch-ua: \"Chromium\";v=\"128\", \"Not;A=Brand\";v=\"24\", \"Google Chrome\";v=\"128\"' \\\r\n--header 'sec-ch-ua-mobile: ?0' \\\r\n--header 'sec-ch-ua-platform: \"macOS\"' \\\r\n--data '[\r\n {\r\n \"timeRange\": {\r\n \"startTime\": \"2025-02-01T18:30:00Z\",\r\n \"endTime\": \"2025-02-28T09:22:00Z\"\r\n },\r\n \"source\": \"BATCH\",\r\n \"timeSeries\": {\r\n \"granularity\": \"G_ONEDAY\"\r\n },\r\n \"groupByNames\": [\r\n \"error_message\"\r\n ], \r\n \"metrics\": [\r\n \"authentication_error_message\"\r\n ],\r\n \"delta\": true\r\n }\r\n]'\r\n```\r\n\r\nSample Output:\r\n```json\r\n{\r\n \"queryData\": [\r\n {\r\n \"authentication_count\": null,\r\n \"authentication_attempt_count\": null,\r\n \"authentication_success_count\": null,\r\n \"challenge_flow_count\": null,\r\n \"challenge_attempt_count\": null,\r\n \"challenge_success_count\": null,\r\n \"frictionless_flow_count\": null,\r\n \"frictionless_success_count\": null,\r\n \"error_message_count\": 1,\r\n \"authentication_funnel\": null,\r\n \"authentication_status\": null,\r\n \"trans_status\": null,\r\n \"error_message\": \"Failed to authenticate\",\r\n \"authentication_connector\": null,\r\n \"message_version\": null,\r\n \"time_range\": {\r\n \"start_time\": \"2025-02-10T00:00:00.000Z\",\r\n \"end_time\": \"2025-02-10T23:00:00.000Z\"\r\n },\r\n \"time_bucket\": \"2025-02-10 00:00:00\"\r\n },\r\n {\r\n \"authentication_count\": null,\r\n \"authentication_attempt_count\": null,\r\n \"authentication_success_count\": null,\r\n \"challenge_flow_count\": null,\r\n \"challenge_attempt_count\": null,\r\n \"challenge_success_count\": null,\r\n \"frictionless_flow_count\": null,\r\n \"frictionless_success_count\": null,\r\n \"error_message_count\": 1,\r\n \"authentication_funnel\": null,\r\n \"authentication_status\": null,\r\n \"trans_status\": null,\r\n \"error_message\": \"Something went wrong\",\r\n \"authentication_connector\": null,\r\n \"message_version\": null,\r\n \"time_range\": {\r\n \"start_time\": \"2025-02-20T00:00:00.000Z\",\r\n \"end_time\": \"2025-02-20T23:00:00.000Z\"\r\n },\r\n \"time_bucket\": \"2025-02-20 00:00:00\"\r\n }\r\n ],\r\n \"metaData\": [\r\n {\r\n \"total_error_message_count\": 2\r\n }\r\n ]\r\n}\r\n```\r\n\r\n#### Authentication Funnel:\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/analytics/v1/metrics/auth_events' \\\r\n--header 'Accept: */*' \\\r\n--header 'Accept-Language: en-US,en;q=0.9' \\\r\n--header 'Connection: keep-alive' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Origin: http://localhost:9000' \\\r\n--header 'Referer: http://localhost:9000/' \\\r\n--header 'Sec-Fetch-Dest: empty' \\\r\n--header 'Sec-Fetch-Mode: cors' \\\r\n--header 'Sec-Fetch-Site: same-site' \\\r\n--header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36' \\\r\n--header 'api-key: hyperswitch' \\\r\n--header 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiYWFiNWIxNDEtNjQwOC00YTUyLTk2MjMtNTVhNTgxMTU1M2U4IiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQwNDE0OTA5Iiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc0MTI3NDY4NSwib3JnX2lkIjoib3JnX1QwSEtYNHYyRGFRT2lHUDVwRk52IiwicHJvZmlsZV9pZCI6InByb19xOWc2ZW1xcGM3YjQxTG83VVhweCIsInRlbmFudF9pZCI6InB1YmxpYyJ9.LIExs1jjG6N5AFu5_S3oiuy77fWF0IbJmNGbK8HHLXI' \\\r\n--header 'sec-ch-ua: \"Chromium\";v=\"128\", \"Not;A=Brand\";v=\"24\", \"Google Chrome\";v=\"128\"' \\\r\n--header 'sec-ch-ua-mobile: ?0' \\\r\n--header 'sec-ch-ua-platform: \"macOS\"' \\\r\n--data '[\r\n {\r\n \"timeRange\": {\r\n \"startTime\": \"2025-02-01T18:30:00Z\",\r\n \"endTime\": \"2025-02-28T09:22:00Z\"\r\n },\r\n \"source\": \"BATCH\",\r\n \"timeSeries\": {\r\n \"granularity\": \"G_ONEDAY\"\r\n }, \r\n \"filters\": {\r\n \"authentication_status\": [\r\n \"success\", \"failed\"\r\n ]\r\n },\r\n \"metrics\": [\r\n \"authentication_funnel\"\r\n ],\r\n \"delta\": true\r\n }\r\n]'\r\n```\r\n\r\nSample Output:\r\n```json\r\n{\r\n \"queryData\": [\r\n {\r\n \"authentication_count\": null,\r\n \"authentication_attempt_count\": null,\r\n \"authentication_success_count\": null,\r\n \"challenge_flow_count\": null,\r\n \"challenge_attempt_count\": null,\r\n \"challenge_success_count\": null,\r\n \"frictionless_flow_count\": null,\r\n \"frictionless_success_count\": null,\r\n \"error_message_count\": null,\r\n \"authentication_funnel\": 3,\r\n \"authentication_status\": null,\r\n \"trans_status\": null,\r\n \"error_message\": null,\r\n \"authentication_connector\": null,\r\n \"message_version\": null,\r\n \"time_range\": {\r\n \"start_time\": \"2025-02-11T00:00:00.000Z\",\r\n \"end_time\": \"2025-02-11T23:00:00.000Z\"\r\n },\r\n \"time_bucket\": \"2025-02-11 00:00:00\"\r\n },\r\n {\r\n \"authentication_count\": null,\r\n \"authentication_attempt_count\": null,\r\n \"authentication_success_count\": null,\r\n \"challenge_flow_count\": null,\r\n \"challenge_attempt_count\": null,\r\n \"challenge_success_count\": null,\r\n \"frictionless_flow_count\": null,\r\n \"frictionless_success_count\": null,\r\n \"error_message_count\": null,\r\n \"authentication_funnel\": 64,\r\n \"authentication_status\": null,\r\n \"trans_status\": null,\r\n \"error_message\": null,\r\n \"authentication_connector\": null,\r\n \"message_version\": null,\r\n \"time_range\": {\r\n \"start_time\": \"2025-02-10T00:00:00.000Z\",\r\n \"end_time\": \"2025-02-10T23:00:00.000Z\"\r\n },\r\n \"time_bucket\": \"2025-02-10 00:00:00\"\r\n },\r\n {\r\n \"authentication_count\": null,\r\n \"authentication_attempt_count\": null,\r\n \"authentication_success_count\": null,\r\n \"challenge_flow_count\": null,\r\n \"challenge_attempt_count\": null,\r\n \"challenge_success_count\": null,\r\n \"frictionless_flow_count\": null,\r\n \"frictionless_success_count\": null,\r\n \"error_message_count\": null,\r\n \"authentication_funnel\": 11,\r\n \"authentication_status\": null,\r\n \"trans_status\": null,\r\n \"error_message\": null,\r\n \"authentication_connector\": null,\r\n \"message_version\": null,\r\n \"time_range\": {\r\n \"start_time\": \"2025-02-20T00:00:00.000Z\",\r\n \"end_time\": \"2025-02-20T23:00:00.000Z\"\r\n },\r\n \"time_bucket\": \"2025-02-20 00:00:00\"\r\n }\r\n ],\r\n \"metaData\": [\r\n {\r\n \"total_error_message_count\": 0\r\n }\r\n ]\r\n}\r\n```\r\n## Checklist\r\n\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", + "author": "tsdk02", + "created_at": "2025-03-06T14:57:01+00:00", + "merged_at": "2025-03-06T16:53:37+00:00", + "base_branch": "main", + "labels": [ + "C-feature", + "A-Analytics" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7451", + "commits": [ + { + "sha": "6b5bdf3ce1f88187fec8b5dbaf25ef97a54df73c", + "message": "feat(analytics): add new filters, dimensions and metrics for authentication analytics", + "author": "Sandeep Kumar", + "date": "2025-03-06T14:49:41+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6b5bdf3ce1f88187fec8b5dbaf25ef97a54df73c" + }, + { + "sha": "7592d9d14e333c86b7a09cb97b38cb0e4a7de52d", + "message": "fix clippy errors", + "author": "Sandeep Kumar", + "date": "2025-03-06T15:08:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7592d9d14e333c86b7a09cb97b38cb0e4a7de52d" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7457.json b/prs/pr_7457.json new file mode 100644 index 0000000000000000000000000000000000000000..6311ebda96fe140f2238744f436a9d29f69dffcb --- /dev/null +++ b/prs/pr_7457.json @@ -0,0 +1,22 @@ +{ + "number": 7457, + "title": "fix(dashboard): Added auth key to juspay threeds server", + "description": "## Type of Change\r\n\r\n\r\n- [x] Bugfix\r\n\r\n## Description\r\n\r\n Added auth key to juspay threeds server\r\n \r\n wasm change for FE dashboard to test, once it gets merged we can check dashboard FE for api_key auth for juspaythreedsserver\r\n\r\n## Checklist\r\n\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", + "author": "sahkal", + "created_at": "2025-03-07T07:05:26+00:00", + "merged_at": "2025-03-07T08:22:16+00:00", + "base_branch": "main", + "labels": [ + "C-bug" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7457", + "commits": [ + { + "sha": "b5dfd1ecc3c0097bd4f353f4cdc2e8a79b0c8ec8", + "message": "added auth key to juspay threeds server", + "author": "Sahkal Poddar", + "date": "2025-03-07T07:03:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b5dfd1ecc3c0097bd4f353f4cdc2e8a79b0c8ec8" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7466.json b/prs/pr_7466.json new file mode 100644 index 0000000000000000000000000000000000000000..dcdb3980e15a8a4e18ed6144da414fe616df6440 --- /dev/null +++ b/prs/pr_7466.json @@ -0,0 +1,23 @@ +{ + "number": 7466, + "title": "refactor(connector): [Rapyd] fix amount conversion framework", + "description": "## Type of Change\r\n\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\nfix amount conversion framework for Rapyd \r\nAccording to doc - https://docs.rapyd.net/en/create-payment.html , amount should be of FloatType (BaseUnit).\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\nWe can not test it, as we dont have credentials for Rapyd connector\r\n\r\n\r\n## Checklist\r\n\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", + "author": "swangi-kumari", + "created_at": "2025-03-09T19:10:25+00:00", + "merged_at": "2025-03-10T17:54:07+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "C-refactor" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7466", + "commits": [ + { + "sha": "247cff92c71e5a4bebd27b3ff0a3accbbf420da5", + "message": "feat: amount conversion", + "author": "Swangi Kumari", + "date": "2025-03-09T19:06:39+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/247cff92c71e5a4bebd27b3ff0a3accbbf420da5" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7481.json b/prs/pr_7481.json new file mode 100644 index 0000000000000000000000000000000000000000..ac48e7028f8397061cec8cdfede2e23dcbea8c4c --- /dev/null +++ b/prs/pr_7481.json @@ -0,0 +1,45 @@ +{ + "number": 7481, + "title": "fix(router): pass card network for external 3DS from additional_payment_method_data", + "description": "## Type of Change\r\n\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\r\n- card network fetch from db was not being populated in payment call resulting in sending the default value which failed the payment\r\n- util function have been added to collect the card network from additional_payment_method_data\r\n- ucaf_indicator is being populated for mastercard \r\n- profile generic update is made optional to not update the force_3ds_challenge if it is passed as null\r\n- External authentication is disabled for Datatrans\r\n\r\nNote: hotfix raised against https://github.com/juspay/hyperswitch/pull/7473\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n\r\nTested through Postman:\r\n- Create MCA(Cybersource):\r\n- Create MCA(Netcetera):\r\n- Create a payment call (enable external 3ds):\r\n```\r\n{\r\n \"amount\": 499,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"customer_id\": \"test_rec7\",\r\n \"email\": \"guest@example.com\",\r\n \"request_external_three_ds_authentication\": true,\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\": \"5512459816707531\",\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 }\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\": \"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 \"authentication_type\": \"three_ds\"\r\n}\r\n```\r\nResponse should have the following data:\r\n```\r\n{\r\n \"payment_id\": \"pay_DJzWCB8vpM2nl6tti5q5\",\r\n \"merchant_id\": \"merchant_1741687051\",\r\n \"status\": \"requires_customer_action\",\r\n \"amount\": 499,\r\n \"net_amount\": 499,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 499,\r\n \"amount_received\": null,\r\n \"connector\": \"cybersource\",\r\n \"client_secret\": \"pay_DJzWCB8vpM2nl6tti5q5_secret_JwlJcjRW9Q5TRrlNKNrf\",\r\n \"created\": \"2025-03-11T10:43:06.966Z\",\r\n \"currency\": \"USD\",\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\": \"7531\",\r\n \"card_type\": null,\r\n \"card_network\": \"Mastercard\",\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"551245\",\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\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_eappafndmAWU8SvNsaoy\",\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\": \"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 \"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\": \"three_ds\",\r\n \"statement_descriptor_name\": null,\r\n \"statement_descriptor_suffix\": null,\r\n \"next_action\": {\r\n \"type\": \"three_ds_invoke\",\r\n \"three_ds_data\": {\r\n \"three_ds_authentication_url\": \"http://localhost:8080/payments/pay_DJzWCB8vpM2nl6tti5q5/3ds/authentication\",\r\n \"three_ds_authorize_url\": \"http://localhost:8080/payments/pay_DJzWCB8vpM2nl6tti5q5/merchant_1741687051/authorize/cybersource\",\r\n \"three_ds_method_details\": {\r\n \"three_ds_method_key\": \"threeDSMethodData\",\r\n \"three_ds_method_data_submission\": true,\r\n \"three_ds_method_data\": \"eyJ0aHJlZURTTWV0aG9kTm90aWZpY2F0aW9uVVJMIjoiaHR0cHM6Ly9leGFtcGxlLmNvbS8zZHMtbWV0aG9kLW5vdGlmaWNhdGlvbi11cmwiLCJ0aHJlZURTU2VydmVyVHJhbnNJRCI6ImVkNmQ4Y2M1LWU2YTgtNDg4ZC05NDI4LWM2ZDRkZWY2ZDFlNiJ9\",\r\n \"three_ds_method_url\": \"https://ndm-prev.3dss-non-prod.cloud.netcetera.com/acs/3ds-method\"\r\n },\r\n \"poll_config\": {\r\n \"poll_id\": \"external_authentication_pay_DJzWCB8vpM2nl6tti5q5\",\r\n \"delay_in_secs\": 2,\r\n \"frequency\": 5\r\n },\r\n \"message_version\": \"2.3.1\",\r\n \"directory_server_id\": \"A000000004\"\r\n }\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\": \"test_rec7\",\r\n \"created_at\": 1741689786,\r\n \"expires\": 1741693386,\r\n \"secret\": \"epk_71a1ecdc177e48a2af0172ad2bb14fc8\"\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\": null,\r\n \"profile_id\": \"pro_IauTXmHo2gR6Cufm1fXK\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_qJi1npMpCWiTuiL0rGOK\",\r\n \"incremental_authorization_allowed\": null,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": {\r\n \"authentication_flow\": null,\r\n \"electronic_commerce_indicator\": null,\r\n \"status\": \"pending\",\r\n \"ds_transaction_id\": \"ed6d8cc5-e6a8-488d-9428-c6d4def6d1e6\",\r\n \"version\": \"2.3.1\",\r\n \"error_code\": null,\r\n \"error_message\": null\r\n },\r\n \"external_3ds_authentication_attempted\": true,\r\n \"expires_on\": \"2025-03-11T10:58:06.966Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.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-11T10:43:07.760Z\",\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}\r\n```\r\n- Create Challenge\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:{{api_key}}' \\\r\n--data '{\r\n \"client_secret\": \"{{client_secret}}\",\r\n \"device_channel\": \"BRW\",\r\n \"threeds_method_comp_ind\": \"Y\"\r\n}'\r\n```\r\n- Response should contain following data:\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\": \"ed6d8cc5-e6a8-488d-9428-c6d4def6d1e6\",\r\n \"acs_signed_content\": null,\r\n \"three_ds_requestor_url\": \"https://google.com\"\r\n}\r\n```\r\n- Authorize from Netcetera:\r\n```\r\ncurl --location --request POST '{{baseurl}}/payments/{{payment_id}}/{{merchant_id}}/authorize/checkout' \\\r\n--header 'api-key:{{api_Key}}'\r\n```\r\n\r\n- Retrieve the transaction, the status should be succeeded in response, below is an example:\r\n```\r\n{\r\n \"payment_id\": \"pay_lTIv7ZbWr5Y237CqHXxq\",\r\n \"merchant_id\": \"merchant_1741687051\",\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_lTIv7ZbWr5Y237CqHXxq_secret_cYx3O8cQMGUR2O1RVta9\",\r\n \"created\": \"2025-03-11T10:28:34.005Z\",\r\n \"currency\": \"USD\",\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\": \"7531\",\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\": \"551245\",\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_P8rNgP3WpYuJWLRgRWaz\",\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\": \"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 \"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\": \"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\": \"7416889232566498604807\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"pay_lTIv7ZbWr5Y237CqHXxq_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_IauTXmHo2gR6Cufm1fXK\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_qJi1npMpCWiTuiL0rGOK\",\r\n \"incremental_authorization_allowed\": false,\r\n \"authorization_count\": null,\r\n \"incremental_authorizations\": null,\r\n \"external_authentication_details\": {\r\n \"authentication_flow\": \"frictionless\",\r\n \"electronic_commerce_indicator\": null,\r\n \"status\": \"success\",\r\n \"ds_transaction_id\": \"19329442-7532-4e25-bc88-a5f1d99c1f5e\",\r\n \"version\": \"2.3.1\",\r\n \"error_code\": null,\r\n \"error_message\": null\r\n },\r\n \"external_3ds_authentication_attempted\": true,\r\n \"expires_on\": \"2025-03-11T10:43:34.005Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.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\": \"pm_Wfs6CcChddyjlx99kQKU\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-03-11T10:28:43.771Z\",\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}\r\n```\r\n\r\n\r\n## Checklist\r\n\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", + "author": "Sakilmostak", + "created_at": "2025-03-11T13:33:23+00:00", + "merged_at": "2025-03-11T15:42:49+00:00", + "base_branch": "hotfix-2025.03.05.0", + "labels": [ + "A-connector-integration", + "A-core", + "C-bug" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7481", + "commits": [ + { + "sha": "59ee2b7cabcb759a8254fe95537f8e8db9660ad1", + "message": "fix: add card_network from additional_payment_method_data", + "author": "Sk Sakil Mostak", + "date": "2025-03-10T06:42:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/59ee2b7cabcb759a8254fe95537f8e8db9660ad1" + }, + { + "sha": "c2c8153ec6baabd1cf3e145c7e3548f17144d6de", + "message": "fix: pass card_network from additional_payment_method_data", + "author": "Sk Sakil Mostak", + "date": "2025-03-10T08:23:30+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c2c8153ec6baabd1cf3e145c7e3548f17144d6de" + }, + { + "sha": "bd8a237adbdbe9584acb640dc76f71b382f205d0", + "message": "fix: update call for force_3ds_challenge and remove seperate_auth for datatrans", + "author": "Sk Sakil Mostak", + "date": "2025-03-11T10:52:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/bd8a237adbdbe9584acb640dc76f71b382f205d0" + }, + { + "sha": "b1607098a8525bec93f2766bd09140e73743c1d6", + "message": "fix: pass raw card data for eci indicator", + "author": "Sk Sakil Mostak", + "date": "2025-03-11T13:11:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b1607098a8525bec93f2766bd09140e73743c1d6" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7484.json b/prs/pr_7484.json new file mode 100644 index 0000000000000000000000000000000000000000..f4cd54c025a9183936dd0914470bee4f5165c0ac --- /dev/null +++ b/prs/pr_7484.json @@ -0,0 +1,122 @@ +{ + "number": 7484, + "title": "feat(core): added force_3ds_challenge for decoupled txns", + "description": "## Type of Change\r\n\r\n\r\n- [x] New feature\r\n\r\n## Description\r\n\r\nAdded force_3ds_challenge flag in payments request for decoupled txns.\r\n\r\nPreviously `force_3ds_challenge` flag was a business_profile property, but now we will priortise flag send in payments request over business_profile.\r\n\r\nadd two new fields in payment_create response `force_3ds_challenge`, `force_3ds_challenge_trigger`\r\n\r\n## How did you test it?\r\n\r\nTry doing a netcetera txns by updating business profile `force_3ds_challenge` as `true` \r\n\r\nFor validation you can check connector request logs\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_skofCKwuzyPyyjl4YCBQJS0fVb0YwOtqBisHGo3PCtFmrCTURvcAaOVzGA7Oom6a' \\\r\n--data-raw '\r\n{\r\n \"amount\": 100,\r\n \"currency\": \"PLN\",\r\n \"confirm\": true,\r\n \"email\": \"sahouhdq@gmail.com\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"5512459816707531\",\r\n \"card_exp_month\": \"04\",\r\n \"card_exp_year\": \"2029\",\r\n \"card_holder_name\": \"John Smith\",\r\n \"card_cvc\": \"238\",\r\n \"card_network\": \"Visa\"\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\": \"CA\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"John\",\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 \"request_external_three_ds_authentication\": true,\r\n \"authentication_type\": \"three_ds\",\r\n} \r\n'\r\n```\r\n\r\nforce_3ds_challenge: true\r\n\"Screenshot\r\n\r\nnow try overriding the value set in business profile `force_3ds_challenge` as false in payment create\r\n\r\n```shell\r\ncurl --location 'localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_Ghv3WFaXE8YXowo77WnQpMoIXsVtC0DcMfnowobAIkIkStzxVMXdTF6Li7SJoyWM' \\\r\n--data-raw '{\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\": \"StripeCustomer\",\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\": \"three_ds\",\r\n \"return_url\": \"https://duck.com\",\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\": \"PiX\"\r\n },\r\n \"phone\": {\r\n \"number\": \"123456789\",\r\n \"country_code\": \"12\"\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 \"phone\": {\r\n \"number\": \"123456789\",\r\n \"country_code\": \"12\"\r\n }\r\n },\r\n \"request_external_three_ds_authentication\": true,\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 \"force_3ds_challenge\": false\r\n}'\r\n```\r\n\r\nforce_3ds_challenge: false\r\n\"Screenshot\r\n\r\n\r\nPayment Create Response\r\n\r\n```shell\r\n{\r\n \"payment_id\": \"pay_N5VoouQEnkDL6bx8yxeu\",\r\n \"merchant_id\": \"sahkal\",\r\n \"status\": \"requires_payment_method\",\r\n \"amount\": 6540,\r\n \"net_amount\": 6540,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": null,\r\n \"client_secret\": \"pay_N5VoouQEnkDL6bx8yxeu_secret_8bFLGPv5ymU16mal9Qew\",\r\n \"created\": \"2025-03-23T20:17:16.893Z\",\r\n \"currency\": \"USD\",\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\": \"+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\": {\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\": {\r\n \"number\": \"123456789\",\r\n \"country_code\": \"12\"\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\": \"PiX\",\r\n \"last_name\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"123456789\",\r\n \"country_code\": \"12\"\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://duck.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\": 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\": \"StripeCustomer\",\r\n \"created_at\": 1742761036,\r\n \"expires\": 1742764636,\r\n \"secret\": \"epk_c714e3ec07cf4c27844cd37561dfe854\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": null,\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_sc0RRAwEw4IuLCnHqvZ9\",\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-03-23T20:32:16.893Z\",\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-03-23T20:17:16.952Z\",\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}\r\n```\r\n\r\n## Checklist\r\n\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", + "author": "sahkal", + "created_at": "2025-03-11T18:30:30+00:00", + "merged_at": "2025-04-07T09:25:16+00:00", + "base_branch": "main", + "labels": [ + "A-core", + "M-database-changes", + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7484", + "commits": [ + { + "sha": "54497f8cf504415113fb7ad7ca17fbf972eb4a55", + "message": "feat(core): added force_3ds_challenge for decoupled txns", + "author": "Sahkal Poddar", + "date": "2025-03-11T18:28:48+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/54497f8cf504415113fb7ad7ca17fbf972eb4a55" + }, + { + "sha": "110f12714f6bced66db12a1f6b820967d072d00c", + "message": "added force_3ds_challenge to payment update as well", + "author": "Sahkal Poddar", + "date": "2025-03-11T19:28:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/110f12714f6bced66db12a1f6b820967d072d00c" + }, + { + "sha": "18a88578a4f25466587bafa92534a1a2e4d6ca02", + "message": "fixed ci checks", + "author": "Sahkal Poddar", + "date": "2025-03-12T06:01:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/18a88578a4f25466587bafa92534a1a2e4d6ca02" + }, + { + "sha": "b6f8fb1b891d157156bd0da5da81826ca4bb69f1", + "message": "fixed migration inconsistency", + "author": "Sahkal Poddar", + "date": "2025-03-12T06:20:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b6f8fb1b891d157156bd0da5da81826ca4bb69f1" + }, + { + "sha": "9e6a693ef646e7e8cc9c483c036d1c1e48700f02", + "message": "added force_3ds_challenge in response", + "author": "Sahkal Poddar", + "date": "2025-03-13T09:36:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9e6a693ef646e7e8cc9c483c036d1c1e48700f02" + }, + { + "sha": "9f3123b3f2ca008603f9b61415559fbf8acdd4ec", + "message": "fixed open api specs", + "author": "Sahkal Poddar", + "date": "2025-03-13T09:47:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9f3123b3f2ca008603f9b61415559fbf8acdd4ec" + }, + { + "sha": "9a9ec42121edfdd363e9d2fa13dbd9f6893b002e", + "message": "fixed open-api specs", + "author": "Sahkal Poddar", + "date": "2025-03-13T11:57:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9a9ec42121edfdd363e9d2fa13dbd9f6893b002e" + }, + { + "sha": "6111f4f7dd8955fa41d773b7ea4454864e7edc69", + "message": "fixed open api v2 specs", + "author": "Sahkal Poddar", + "date": "2025-03-13T12:07:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6111f4f7dd8955fa41d773b7ea4454864e7edc69" + }, + { + "sha": "44d32ef71b318970184ff628201e6960f63f78a7", + "message": "added force_challenge_trigger field in payment authentication flow", + "author": "Sahkal Poddar", + "date": "2025-03-20T12:06:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/44d32ef71b318970184ff628201e6960f63f78a7" + }, + { + "sha": "4267b5b9ff315ec0cfac13b72fbb95f0203fa22f", + "message": "resolved merge conflicts", + "author": "Sahkal Poddar", + "date": "2025-03-23T19:57:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4267b5b9ff315ec0cfac13b72fbb95f0203fa22f" + }, + { + "sha": "f8a3f5d6696e2ca280152972efd23f5560ad11fa", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-23T20:03:09+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f8a3f5d6696e2ca280152972efd23f5560ad11fa" + }, + { + "sha": "0b963518a9f5868522afef7472ba9fea0d57e683", + "message": "changed force_3ds_overwrite to force_3ds_challenge", + "author": "Sahkal Poddar", + "date": "2025-03-26T15:32:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0b963518a9f5868522afef7472ba9fea0d57e683" + }, + { + "sha": "624c08c59610cae68fb535845a6ec90b2382eb67", + "message": "resolved merge conflicts", + "author": "Sahkal Poddar", + "date": "2025-03-26T15:43:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/624c08c59610cae68fb535845a6ec90b2382eb67" + }, + { + "sha": "b1cc4e07ecba8480654d6bac3bbe35b268c22bb1", + "message": "resolved merge conflicts", + "author": "Sahkal Poddar", + "date": "2025-03-31T18:25:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b1cc4e07ecba8480654d6bac3bbe35b268c22bb1" + }, + { + "sha": "432a5d7bb818032868396e4682c9596e7275d31b", + "message": "Merge branch 'main' into 8765-feat-add-force_3ds_challenge-flag-in-payments-request", + "author": "Sahkal Poddar", + "date": "2025-04-02T08:11:48+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/432a5d7bb818032868396e4682c9596e7275d31b" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7503.json b/prs/pr_7503.json new file mode 100644 index 0000000000000000000000000000000000000000..9146803b85a997c34819721b2cdfdbc3039e238b --- /dev/null +++ b/prs/pr_7503.json @@ -0,0 +1,85 @@ +{ + "number": 7503, + "title": "feat(refunds): Add refunds diesel model support in V2 API", + "description": "## Type of Change\r\n\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\nThis PR is a part of v2 implementation of refunds. This PR contains the necessary database schema refactoring as well as handling this in the storage_impl crate.\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] 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\n\r\n\r\n## Motivation and Context\r\n\r\nMerging this PR would add db support for refunds in v2 apis.\r\n\r\n\r\n## How did you test it?\r\n\r\nCannot be tested because the core flow is not implemented for the refunds in V2 APIs, will be taking that in upcoming PRs.\r\n\r\n## Checklist\r\n\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", + "author": "AmeyWale", + "created_at": "2025-03-12T16:18:08+00:00", + "merged_at": "2025-03-24T11:16:20+00:00", + "base_branch": "main", + "labels": [ + "M-database-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7503", + "commits": [ + { + "sha": "0fec919baacf7bcaf8369c7c11865abdac46cbf1", + "message": "feat(refunds): Add refunds support in V2 API", + "author": "Amey Wale", + "date": "2025-03-12T12:52:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0fec919baacf7bcaf8369c7c11865abdac46cbf1" + }, + { + "sha": "acb40ef665e02eb435d885e4269c57f850a842be", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-12T16:19:00+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/acb40ef665e02eb435d885e4269c57f850a842be" + }, + { + "sha": "9e2afc09d7d75419b212b49d04479b439f868cf3", + "message": "refactor(refunds_v2): Apply suggestions", + "author": "Amey Wale", + "date": "2025-03-13T10:03:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9e2afc09d7d75419b212b49d04479b439f868cf3" + }, + { + "sha": "994f9cae0689f863e7233f6ac61724fcd89a7c38", + "message": "refactor(refunds_v2): Fix merge conflicts", + "author": "Amey Wale", + "date": "2025-03-13T10:10:17+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/994f9cae0689f863e7233f6ac61724fcd89a7c38" + }, + { + "sha": "7d79df97de1b85fe0b7de41a7641c523a74435d9", + "message": "refactor(refunds_v2): Fix clippy failure", + "author": "Amey Wale", + "date": "2025-03-13T10:55:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7d79df97de1b85fe0b7de41a7641c523a74435d9" + }, + { + "sha": "c2b0cbf64ab2c36ce9e7b41ba2e30d22cfe81787", + "message": "refactor(refunds_v2): Apply suggestions", + "author": "Amey Wale", + "date": "2025-03-17T08:23:13+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c2b0cbf64ab2c36ce9e7b41ba2e30d22cfe81787" + }, + { + "sha": "8cbd6b9545bfe30fcf7ecad7cc5379bdb07de2d9", + "message": "Merge branch 'main' into refunds-v2-diesel-models", + "author": "Amey Wale", + "date": "2025-03-19T13:02:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8cbd6b9545bfe30fcf7ecad7cc5379bdb07de2d9" + }, + { + "sha": "0218970d191d02cad6bd604b4eaad1385a95f650", + "message": "Merge branch 'main' into refunds-v2-diesel-models", + "author": "Hrithikesh", + "date": "2025-03-19T16:37:38+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0218970d191d02cad6bd604b4eaad1385a95f650" + }, + { + "sha": "9b78f788a4b0697d3d7b27c76de0090850a674e1", + "message": "refactor(refunds_v2): Add refunds update structs in diesel model", + "author": "Amey Wale", + "date": "2025-03-20T09:12:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9b78f788a4b0697d3d7b27c76de0090850a674e1" + }, + { + "sha": "b9a020c8725f545394c84b7fe71745faa5a0f29a", + "message": "Merge branch 'refunds-v2-diesel-models' of github.com:juspay/hyperswitch into refunds-v2-diesel-models", + "author": "Amey Wale", + "date": "2025-03-20T09:13:07+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b9a020c8725f545394c84b7fe71745faa5a0f29a" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7508.json b/prs/pr_7508.json new file mode 100644 index 0000000000000000000000000000000000000000..c96378713624e0a35e1df53c046cecfe9c9c7b16 --- /dev/null +++ b/prs/pr_7508.json @@ -0,0 +1,459 @@ +{ + "number": 7508, + "title": "feat(connectors): [Redsys] add 3D secure card payment support, including transaction capture, cancellation, and refunds", + "description": "## Type of Change\r\n\r\n\r\n- [x] 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\r\nIn this PR \r\n1. A new next action is added\r\n```json\r\n \"next_action\": {\r\n \"type\": \"invoke_hidden_iframe\",\r\n \"iframe_data\": {\r\n \"method_key\": \"threeDSMethodData\",\r\n \"three_ds_method_url\": \"https://sis-d.redsys.es/sis-simulador-web/threeDsMethod.jsp\",\r\n \"three_ds_method_data_submission\": true,\r\n \"three_ds_method_data\": \"eyJ0aHJlZURTU2VydmVyVHJhbnNJRCI6Imh0dHBzOi8vc2lzLWQucmVkc3lzLmVzL3Npcy1zaW11bGFkb3Itd2ViL3RocmVlRHNNZXRob2QuanNwIiwidGhyZWVEU01ldGhvZE5vdGlmaWNhdGlvblVSTCI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODA4MC93ZWJob29rcy9wb3N0bWFuX21lcmNoYW50X0dIQWN0aW9uX2VkMzczYmQzLTM4MGYtNDAyNi1hZGY3LTNiN2I2MzAwOGFhNy9tY2FfYUI2Tk9BdXk4cEpLV2ZPd1NUaUcifQ==\",\r\n \"directory_server_id\": \"e8a57182-7192-474f-8808-e651855c0dd7\",\r\n \"message_version\": \"2.1.0\"\r\n }\r\n }\r\n```\r\n2. Threeds Methods completion flag is added to the payments request and is used in the complete authorize router data\r\n3. Card 3DS Implemeneted for Redsys\r\nRedsys 3DS has 4 Scenarios \r\n-> Threeds Invoke + Challenge (Card number to trigger - 4918019199883839)\r\n-> Threeds Invoke + Frictionless (Card number to trigger - 4918019160034602)\r\n-> Challenge (Card number to trigger - 4548817212493017)\r\n-> Frictionless (Card number to trigger - 4548814479727229)\r\n\r\nRedsys Connector Create\r\n\r\n```\r\n \"connector_account_details\": {\r\n \"auth_type\": \"SignatureKey\",\r\n \"api_key\": \"merchant_id\",\r\n \"key1\": \"terminal_id\",\r\n \"api_secret\": \"sha256_pwd\"\r\n }\r\n```\r\n\r\n## Additional Fixes \r\nModifications have been made to ensure: \r\n1. Preprocessing for Xendit payments will only be triggered during the PaymentsAuthorize call. \r\n2. If a payment method is supported by the connector and the payment_method_type for the transaction is unspecified (None), the payment method will be regarded as supported by the connector.\r\n3. Signals feature is removed from `hyperswitch_connector` crate\r\n\r\n## How is this next action different form ThreedsInvoke\r\nIn ThreedsInvoke, after invoking an iframe. The front end, has to call two other APIs to complete the payment. This next action only requires calling complete_authorize API\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## Points to Ponder\r\n-> All statuses from redsys is not completely handled. (Waiting on clarity)\r\n-> Psync and Rsync are not implemented. (Waiting on clarity)\r\n\r\n\r\n## How did you test it?\r\n\r\n\r\n
\r\nRedsys Connector Create\r\n\r\n```json\r\n{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"redsys\",\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\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\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"credit\",\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\": \"card\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"debit\",\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\": \"apple_pay\",\r\n \"payment_experience\": \"invoke_sdk_client\",\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\": \"invoke_sdk_client\",\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}\r\n```\r\nResponse\r\n\r\n```json\r\n{\"connector_type\":\"payment_processor\",\"connector_name\":\"redsys\",\"connector_label\":\"redsys_US_default\",\"merchant_connector_id\":\"mca_aB6NOAuy8pJKWfOwSTiG\",\"profile_id\":\"pro_eOH03lBB7VBEzDNVnhEg\",\"connector_account_details\":{\"auth_type\":\"SignatureKey\",\"api_key\":\"33*****31\",\"key1\":\"***\",\"api_secret\":\"sq****************************J7\"},\"payment_methods_enabled\":[{\"payment_method\":\"pay_later\",\"payment_method_types\":[{\"payment_method_type\":\"affirm\",\"payment_experience\":\"redirect_to_url\",\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true}]},{\"payment_method\":\"pay_later\",\"payment_method_types\":[{\"payment_method_type\":\"afterpay_clearpay\",\"payment_experience\":\"redirect_to_url\",\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true}]},{\"payment_method\":\"pay_later\",\"payment_method_types\":[{\"payment_method_type\":\"klarna\",\"payment_experience\":\"redirect_to_url\",\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true}]},{\"payment_method\":\"pay_later\",\"payment_method_types\":[{\"payment_method_type\":\"klarna\",\"payment_experience\":\"invoke_sdk_client\",\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true}]},{\"payment_method\":\"bank_redirect\",\"payment_method_types\":[{\"payment_method_type\":\"ideal\",\"payment_experience\":null,\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true},{\"payment_method_type\":\"bancontact_card\",\"payment_experience\":null,\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true},{\"payment_method_type\":\"przelewy24\",\"payment_experience\":null,\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true},{\"payment_method_type\":\"giropay\",\"payment_experience\":null,\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true},{\"payment_method_type\":\"sofort\",\"payment_experience\":null,\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true},{\"payment_method_type\":\"eps\",\"payment_experience\":null,\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true}]},{\"payment_method\":\"bank_debit\",\"payment_method_types\":[{\"payment_method_type\":\"ach\",\"payment_experience\":null,\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true},{\"payment_method_type\":\"becs\",\"payment_experience\":null,\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true},{\"payment_method_type\":\"sepa\",\"payment_experience\":null,\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true},{\"payment_method_type\":\"bacs\",\"payment_experience\":null,\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true}]},{\"payment_method\":\"bank_transfer\",\"payment_method_types\":[{\"payment_method_type\":\"ach\",\"payment_experience\":null,\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true},{\"payment_method_type\":\"bacs\",\"payment_experience\":null,\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true},{\"payment_method_type\":\"sepa\",\"payment_experience\":null,\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true}]},{\"payment_method\":\"card\",\"payment_method_types\":[{\"payment_method_type\":\"credit\",\"payment_experience\":null,\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true}]},{\"payment_method\":\"card\",\"payment_method_types\":[{\"payment_method_type\":\"debit\",\"payment_experience\":null,\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true}]},{\"payment_method\":\"wallet\",\"payment_method_types\":[{\"payment_method_type\":\"apple_pay\",\"payment_experience\":\"invoke_sdk_client\",\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true}]},{\"payment_method\":\"wallet\",\"payment_method_types\":[{\"payment_method_type\":\"google_pay\",\"payment_experience\":\"invoke_sdk_client\",\"card_networks\":null,\"accepted_currencies\":null,\"accepted_countries\":null,\"minimum_amount\":1,\"maximum_amount\":68607706,\"recurring_enabled\":true,\"installment_payment_enabled\":true}]}],\"connector_webhook_details\":null,\"metadata\":{\"google_pay\":{\"merchant_info\":{\"merchant_name\":\"Narayan Bhat\"},\"allowed_payment_methods\":[{\"type\":\"CARD\",\"parameters\":{\"allowed_auth_methods\":[\"PAN_ONLY\",\"CRYPTOGRAM_3DS\"],\"allowed_card_networks\":[\"AMEX\",\"DISCOVER\",\"INTERAC\",\"JCB\",\"MASTERCARD\",\"VISA\"]},\"tokenization_specification\":{\"type\":\"PAYMENT_GATEWAY\",\"parameters\":{\"gateway\":\"example\",\"gateway_merchant_id\":\"\"}}}]}},\"test_mode\":false,\"disabled\":false,\"frm_configs\":null,\"business_country\":\"US\",\"business_label\":\"default\",\"business_sub_label\":null,\"applepay_verified_domains\":null,\"pm_auth_config\":null,\"status\":\"active\",\"additional_merchant_data\":null,\"connector_wallets_details\":null}\r\n```\r\n\r\n
\r\n\r\n
\r\nPayment Create: Frictionless \r\n\r\n```json\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_bvqj8tQaV1iaCA5W1LZrNeR96tyWQ6DBguyEpYYhfcxMi3cE5Xfrobb13uOZzDRu' \\\r\n--data '{\r\n \"amount\": 10,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"customer_id\": \"First_Customer\",\r\n \"name\": \"John Doe\",\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\": \"4548814479727229\", \r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"124\"\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\": \"13.232.74.226\"\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\": \"Ceuta\",\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\": \"Ceuta\",\r\n \"zip\": \"94122\",\r\n \"country\": \"ES\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\"\r\n }\r\n },\r\n \"setup_future_usage\":\"on_session\"\r\n}'\r\n```\r\nResponse\r\n\r\n```json\r\n{\"payment_id\":\"pay_w32cQlkoQfrpYWCvFmcv\",\"merchant_id\":\"postman_merchant_GHAction_ed373bd3-380f-4026-adf7-3b7b63008aa7\",\"status\":\"succeeded\",\"amount\":10,\"net_amount\":10,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":10,\"connector\":\"redsys\",\"client_secret\":\"pay_w32cQlkoQfrpYWCvFmcv_secret_QUBMClABR8P1ckRBrp7u\",\"created\":\"2025-03-13T08:26:27.905Z\",\"currency\":\"EUR\",\"customer_id\":\"First_Customer\",\"customer\":{\"id\":\"First_Customer\",\"name\":\"John Doe\",\"email\":null,\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"7229\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"454881\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"25\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_tff9SQ5Wzs1f8OZe9wO6\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":null,\"email\":null},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"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\":null},\"order_details\":null,\"email\":null,\"name\":\"John Doe\",\"phone\":null,\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"First_Customer\",\"created_at\":1741854387,\"expires\":1741857987,\"secret\":\"epk_b0de0f8520fe4c1eaa8b819df853bdac\"},\"manual_retry_allowed\":false,\"connector_transaction_id\":\"581314507799\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":null,\"payment_link\":null,\"profile_id\":\"pro_eOH03lBB7VBEzDNVnhEg\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_aB6NOAuy8pJKWfOwSTiG\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-13T08:41:27.905Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"13.232.74.226\",\"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-13T08:26:33.172Z\",\"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\"}\r\n```\r\n
\r\n\r\n
\r\nPayment Create: Challenge \r\n\r\n```json\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_bvqj8tQaV1iaCA5W1LZrNeR96tyWQ6DBguyEpYYhfcxMi3cE5Xfrobb13uOZzDRu' \\\r\n--data '{\r\n \"amount\": 10,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"customer_id\": \"First_Customer\",\r\n \"name\": \"John Doe\",\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\": \"4548817212493017\", \r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"124\"\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\": \"13.232.74.226\"\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\": \"Ceuta\",\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\": \"Ceuta\",\r\n \"zip\": \"94122\",\r\n \"country\": \"ES\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\"\r\n }\r\n },\r\n \"setup_future_usage\":\"on_session\"\r\n}'\r\n```\r\nResponse\r\n\r\n```json\r\n{\"payment_id\":\"pay_qw5tcYOYHGO7RBXKrKwR\",\"merchant_id\":\"postman_merchant_GHAction_ed373bd3-380f-4026-adf7-3b7b63008aa7\",\"status\":\"requires_customer_action\",\"amount\":10,\"net_amount\":10,\"shipping_cost\":null,\"amount_capturable\":10,\"amount_received\":null,\"connector\":\"redsys\",\"client_secret\":\"pay_qw5tcYOYHGO7RBXKrKwR_secret_BuQ17aZIs3UZsCyHBu0K\",\"created\":\"2025-03-13T08:30:36.990Z\",\"currency\":\"EUR\",\"customer_id\":\"First_Customer\",\"customer\":{\"id\":\"First_Customer\",\"name\":\"John Doe\",\"email\":null,\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"3017\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"454881\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"25\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_5yr2SCPsa7G4GWbID1Fm\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":null,\"email\":null},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"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\":null},\"order_details\":null,\"email\":null,\"name\":\"John Doe\",\"phone\":null,\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":{\"type\":\"redirect_to_url\",\"redirect_to_url\":\"http://localhost:8080/payments/redirect/pay_qw5tcYOYHGO7RBXKrKwR/postman_merchant_GHAction_ed373bd3-380f-4026-adf7-3b7b63008aa7/pay_qw5tcYOYHGO7RBXKrKwR_1\"},\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"First_Customer\",\"created_at\":1741854636,\"expires\":1741858236,\"secret\":\"epk_9cc0878420ec48e5af4966a15e55d3d1\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":\"457103313984\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":null,\"payment_link\":null,\"profile_id\":\"pro_eOH03lBB7VBEzDNVnhEg\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_aB6NOAuy8pJKWfOwSTiG\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-13T08:45:36.990Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"13.232.74.226\",\"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-13T08:30:41.901Z\",\"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\"}\r\n```\r\n\r\n-> Payments Retrieve\r\n\r\n```json\r\ncurl --location 'http://localhost:8080/payments/pay_qw5tcYOYHGO7RBXKrKwR?force_sync=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_bvqj8tQaV1iaCA5W1LZrNeR96tyWQ6DBguyEpYYhfcxMi3cE5Xfrobb13uOZzDRu'\r\n```\r\nResponse\r\n\r\n```json\r\n{\"payment_id\":\"pay_qw5tcYOYHGO7RBXKrKwR\",\"merchant_id\":\"postman_merchant_GHAction_ed373bd3-380f-4026-adf7-3b7b63008aa7\",\"status\":\"succeeded\",\"amount\":10,\"net_amount\":10,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":10,\"connector\":\"redsys\",\"client_secret\":\"pay_qw5tcYOYHGO7RBXKrKwR_secret_BuQ17aZIs3UZsCyHBu0K\",\"created\":\"2025-03-13T08:30:36.990Z\",\"currency\":\"EUR\",\"customer_id\":\"First_Customer\",\"customer\":{\"id\":\"First_Customer\",\"name\":\"John Doe\",\"email\":null,\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"3017\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"454881\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"25\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_5yr2SCPsa7G4GWbID1Fm\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":null,\"email\":null},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"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\":null},\"order_details\":null,\"email\":null,\"name\":\"John Doe\",\"phone\":null,\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":null,\"manual_retry_allowed\":false,\"connector_transaction_id\":\"457103313984\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":null,\"payment_link\":null,\"profile_id\":\"pro_eOH03lBB7VBEzDNVnhEg\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_aB6NOAuy8pJKWfOwSTiG\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-13T08:45:36.990Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"13.232.74.226\",\"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-13T08:32:09.374Z\",\"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\"}\r\n```\r\n
\r\n\r\n
\r\nPayment Create: Threeds Method + Challenge \r\n\r\n```json\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_bvqj8tQaV1iaCA5W1LZrNeR96tyWQ6DBguyEpYYhfcxMi3cE5Xfrobb13uOZzDRu' \\\r\n--data '{\r\n \"amount\": 10,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"customer_id\": \"First_Customer\",\r\n \"name\": \"John Doe\",\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\": \"4918019199883839\", \r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"124\"\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\": \"13.232.74.226\"\r\n }\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\": \"Ceuta\",\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\": \"Ceuta\",\r\n \"zip\": \"94122\",\r\n \"country\": \"ES\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\"\r\n }\r\n },\r\n \"setup_future_usage\":\"on_session\"\r\n}'\r\n```\r\n```json\r\n{\"payment_id\":\"pay_VItcgnob8449Uq87QKZw\",\"merchant_id\":\"postman_merchant_GHAction_ed373bd3-380f-4026-adf7-3b7b63008aa7\",\"status\":\"requires_customer_action\",\"amount\":10,\"net_amount\":10,\"shipping_cost\":null,\"amount_capturable\":10,\"amount_received\":null,\"connector\":\"redsys\",\"client_secret\":\"pay_VItcgnob8449Uq87QKZw_secret_Uatpvz6pE9paD5qG0GmJ\",\"created\":\"2025-03-13T08:34:16.189Z\",\"currency\":\"EUR\",\"customer_id\":\"First_Customer\",\"customer\":{\"id\":\"First_Customer\",\"name\":\"John Doe\",\"email\":null,\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"3839\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"491801\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"25\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_bTLziwNEXrBt6NvcBgOf\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":null,\"email\":null},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"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\":null},\"order_details\":null,\"email\":null,\"name\":\"John Doe\",\"phone\":null,\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":{\"type\":\"invoke_hidden_iframe\",\"iframe_data\":{\"method_key\":\"threeDSMethodData\",\"three_ds_method_url\":\"https://sis-d.redsys.es/sis-simulador-web/threeDsMethod.jsp\",\"three_ds_method_data_submission\":true,\"three_ds_method_data\":\"eyJ0aHJlZURTU2VydmVyVHJhbnNJRCI6Imh0dHBzOi8vc2lzLWQucmVkc3lzLmVzL3Npcy1zaW11bGFkb3Itd2ViL3RocmVlRHNNZXRob2QuanNwIiwidGhyZWVEU01ldGhvZE5vdGlmaWNhdGlvblVSTCI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODA4MC93ZWJob29rcy9wb3N0bWFuX21lcmNoYW50X0dIQWN0aW9uX2VkMzczYmQzLTM4MGYtNDAyNi1hZGY3LTNiN2I2MzAwOGFhNy9tY2FfYUI2Tk9BdXk4cEpLV2ZPd1NUaUcifQ==\",\"directory_server_id\":\"e8a57182-7192-474f-8808-e651855c0dd7\",\"message_version\":\"2.1.0\"}},\"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\":\"First_Customer\",\"created_at\":1741854856,\"expires\":1741858456,\"secret\":\"epk_2097ff4011804a1c87c04565b3d33189\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":\"506037405236\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":null,\"payment_link\":null,\"profile_id\":\"pro_eOH03lBB7VBEzDNVnhEg\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_aB6NOAuy8pJKWfOwSTiG\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-13T08:49:16.189Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"13.232.74.226\",\"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-13T08:34:17.309Z\",\"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\"}\r\n```\r\nCreate an iframe from these details and then obtain the value for threeds_method_comp_ind then call\r\n-> Complete Auth\r\n\r\n```json\r\ncurl --location 'http://localhost:8080/payments/pay_VItcgnob8449Uq87QKZw/complete_authorize' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: pk_dev_ed8b0f1fb0b44c66a7fd1dc560995d04' \\\r\n--data '{\r\n \"threeds_method_comp_ind\": \"Y\",\r\n \"client_secret\": \"pay_VItcgnob8449Uq87QKZw_secret_Uatpvz6pE9paD5qG0GmJ\"\r\n}'\r\n```\r\nResponse\r\n```json\r\n{\"payment_id\":\"pay_VItcgnob8449Uq87QKZw\",\"merchant_id\":\"postman_merchant_GHAction_ed373bd3-380f-4026-adf7-3b7b63008aa7\",\"status\":\"requires_customer_action\",\"amount\":10,\"net_amount\":10,\"shipping_cost\":null,\"amount_capturable\":10,\"amount_received\":null,\"connector\":\"redsys\",\"client_secret\":\"pay_VItcgnob8449Uq87QKZw_secret_Uatpvz6pE9paD5qG0GmJ\",\"created\":\"2025-03-13T08:34:16.189Z\",\"currency\":\"EUR\",\"customer_id\":\"First_Customer\",\"customer\":{\"id\":\"First_Customer\",\"name\":\"John Doe\",\"email\":null,\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"3839\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"491801\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"25\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_bTLziwNEXrBt6NvcBgOf\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":null,\"email\":null},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"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\":null},\"order_details\":null,\"email\":null,\"name\":\"John Doe\",\"phone\":null,\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":{\"type\":\"redirect_to_url\",\"redirect_to_url\":\"http://localhost:8080/payments/redirect/pay_VItcgnob8449Uq87QKZw/postman_merchant_GHAction_ed373bd3-380f-4026-adf7-3b7b63008aa7/pay_VItcgnob8449Uq87QKZw_1\"},\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":null,\"manual_retry_allowed\":null,\"connector_transaction_id\":\"506037405236\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":null,\"payment_link\":null,\"profile_id\":\"pro_eOH03lBB7VBEzDNVnhEg\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_aB6NOAuy8pJKWfOwSTiG\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-13T08:49:16.189Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"13.232.74.226\",\"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-13T08:37:43.149Z\",\"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\"}\r\n```\r\n\r\n-> Payments Retrieve\r\n\r\n```json\r\ncurl --location 'http://localhost:8080/payments/pay_VItcgnob8449Uq87QKZw?force_sync=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_bvqj8tQaV1iaCA5W1LZrNeR96tyWQ6DBguyEpYYhfcxMi3cE5Xfrobb13uOZzDRu'\r\n```\r\n\r\nResponse \r\n```\r\n{\"payment_id\":\"pay_VItcgnob8449Uq87QKZw\",\"merchant_id\":\"postman_merchant_GHAction_ed373bd3-380f-4026-adf7-3b7b63008aa7\",\"status\":\"succeeded\",\"amount\":10,\"net_amount\":10,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":10,\"connector\":\"redsys\",\"client_secret\":\"pay_VItcgnob8449Uq87QKZw_secret_Uatpvz6pE9paD5qG0GmJ\",\"created\":\"2025-03-13T08:34:16.189Z\",\"currency\":\"EUR\",\"customer_id\":\"First_Customer\",\"customer\":{\"id\":\"First_Customer\",\"name\":\"John Doe\",\"email\":null,\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"3839\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"491801\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"25\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_bTLziwNEXrBt6NvcBgOf\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":null,\"email\":null},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"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\":null},\"order_details\":null,\"email\":null,\"name\":\"John Doe\",\"phone\":null,\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":null,\"manual_retry_allowed\":false,\"connector_transaction_id\":\"506037405236\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":null,\"payment_link\":null,\"profile_id\":\"pro_eOH03lBB7VBEzDNVnhEg\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_aB6NOAuy8pJKWfOwSTiG\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-13T08:49:16.189Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"13.232.74.226\",\"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-13T08:37:57.180Z\",\"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\"}\r\n```\r\n
\r\n\r\n
\r\nThreeds Method : Frictionless \r\n\r\n```json\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_bvqj8tQaV1iaCA5W1LZrNeR96tyWQ6DBguyEpYYhfcxMi3cE5Xfrobb13uOZzDRu' \\\r\n--data '{\r\n \"amount\": 10,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"customer_id\": \"First_Customer\",\r\n \"name\": \"John Doe\",\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\": \"4918019160034602\", \r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"124\"\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\": \"13.232.74.226\"\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\": \"Ceuta\",\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\": \"Ceuta\",\r\n \"zip\": \"94122\",\r\n \"country\": \"ES\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\"\r\n }\r\n },\r\n \"setup_future_usage\":\"on_session\"\r\n}'\r\n```\r\nResponse\r\n```json\r\n{\"payment_id\":\"pay_HVfveIgQwggMODsNmAkV\",\"merchant_id\":\"postman_merchant_GHAction_ed373bd3-380f-4026-adf7-3b7b63008aa7\",\"status\":\"requires_customer_action\",\"amount\":10,\"net_amount\":10,\"shipping_cost\":null,\"amount_capturable\":10,\"amount_received\":null,\"connector\":\"redsys\",\"client_secret\":\"pay_HVfveIgQwggMODsNmAkV_secret_b4VuuSEVprws2M6G9eMz\",\"created\":\"2025-03-13T08:40:59.019Z\",\"currency\":\"EUR\",\"customer_id\":\"First_Customer\",\"customer\":{\"id\":\"First_Customer\",\"name\":\"John Doe\",\"email\":null,\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"4602\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"491801\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"25\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_XfL6fPhyIm8vh5KESUQI\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":null,\"email\":null},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"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\":null},\"order_details\":null,\"email\":null,\"name\":\"John Doe\",\"phone\":null,\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":{\"type\":\"invoke_hidden_iframe\",\"iframe_data\":{\"method_key\":\"threeDSMethodData\",\"three_ds_method_url\":\"https://sis-d.redsys.es/sis-simulador-web/threeDsMethod.jsp\",\"three_ds_method_data_submission\":true,\"three_ds_method_data\":\"eyJ0aHJlZURTU2VydmVyVHJhbnNJRCI6Imh0dHBzOi8vc2lzLWQucmVkc3lzLmVzL3Npcy1zaW11bGFkb3Itd2ViL3RocmVlRHNNZXRob2QuanNwIiwidGhyZWVEU01ldGhvZE5vdGlmaWNhdGlvblVSTCI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODA4MC93ZWJob29rcy9wb3N0bWFuX21lcmNoYW50X0dIQWN0aW9uX2VkMzczYmQzLTM4MGYtNDAyNi1hZGY3LTNiN2I2MzAwOGFhNy9tY2FfYUI2Tk9BdXk4cEpLV2ZPd1NUaUcifQ==\",\"directory_server_id\":\"a4ca6fb2-ddba-456b-a352-8a7550353974\",\"message_version\":\"2.1.0\"}},\"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\":\"First_Customer\",\"created_at\":1741855258,\"expires\":1741858858,\"secret\":\"epk_bda97529ec5f4ce0a5e78ecf23e29479\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":\"917303044435\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":null,\"payment_link\":null,\"profile_id\":\"pro_eOH03lBB7VBEzDNVnhEg\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_aB6NOAuy8pJKWfOwSTiG\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-13T08:55:59.019Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"13.232.74.226\",\"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-13T08:41:00.075Z\",\"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\"}\r\n```\r\n-> Complete Authorize\r\n```json\r\ncurl --location 'http://localhost:8080/payments/pay_HVfveIgQwggMODsNmAkV/complete_authorize' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: pk_dev_87e0e03839214e2b991420b109984637' \\\r\n--data '{\r\n \"threeds_method_comp_ind\": \"Y\",\r\n \"client_secret\": \"pay_HVfveIgQwggMODsNmAkV_secret_b4VuuSEVprws2M6G9eMz\"\r\n}'\r\n```\r\nResponse\r\n```json\r\n{\"payment_id\":\"pay_HVfveIgQwggMODsNmAkV\",\"merchant_id\":\"postman_merchant_GHAction_ed373bd3-380f-4026-adf7-3b7b63008aa7\",\"status\":\"succeeded\",\"amount\":10,\"net_amount\":10,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":10,\"connector\":\"redsys\",\"client_secret\":\"pay_HVfveIgQwggMODsNmAkV_secret_b4VuuSEVprws2M6G9eMz\",\"created\":\"2025-03-13T08:40:59.019Z\",\"currency\":\"EUR\",\"customer_id\":\"First_Customer\",\"customer\":{\"id\":\"First_Customer\",\"name\":\"John Doe\",\"email\":null,\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"4602\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"491801\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"25\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_XfL6fPhyIm8vh5KESUQI\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":null,\"email\":null},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"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\":null},\"order_details\":null,\"email\":null,\"name\":\"John Doe\",\"phone\":null,\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":null,\"manual_retry_allowed\":false,\"connector_transaction_id\":\"917303044435\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":null,\"payment_link\":null,\"profile_id\":\"pro_eOH03lBB7VBEzDNVnhEg\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_aB6NOAuy8pJKWfOwSTiG\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-13T08:55:59.019Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"13.232.74.226\",\"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-13T08:42:17.894Z\",\"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\"}\r\n```\r\n
\r\n\r\n
\r\nManual Capture \r\n\r\n```json\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_bvqj8tQaV1iaCA5W1LZrNeR96tyWQ6DBguyEpYYhfcxMi3cE5Xfrobb13uOZzDRu' \\\r\n--data '{\r\n \"amount\": 10,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"manual\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"customer_id\": \"First_Customer\",\r\n \"name\": \"John Doe\",\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\": \"4548814479727229\", \r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"124\"\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\": \"13.232.74.226\"\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\": \"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\": \"Ceuta\",\r\n \"zip\": \"94122\",\r\n \"country\": \"ES\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\"\r\n }\r\n },\r\n \"setup_future_usage\":\"on_session\"\r\n}'\r\n```\r\n\r\nResponse\r\n```json\r\n{\"payment_id\":\"pay_qcZiVdQQn7f6MGCZtZBf\",\"merchant_id\":\"postman_merchant_GHAction_ed373bd3-380f-4026-adf7-3b7b63008aa7\",\"status\":\"requires_capture\",\"amount\":10,\"net_amount\":10,\"shipping_cost\":null,\"amount_capturable\":10,\"amount_received\":null,\"connector\":\"redsys\",\"client_secret\":\"pay_qcZiVdQQn7f6MGCZtZBf_secret_OcJOMyRHrIVtbngWXLYr\",\"created\":\"2025-03-13T08:44:24.672Z\",\"currency\":\"EUR\",\"customer_id\":\"First_Customer\",\"customer\":{\"id\":\"First_Customer\",\"name\":\"John Doe\",\"email\":null,\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"manual\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"7229\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"454881\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"25\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_lEr4y3EaJ6Re7374wHU1\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":null,\"email\":null},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"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\":null},\"order_details\":null,\"email\":null,\"name\":\"John Doe\",\"phone\":null,\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"First_Customer\",\"created_at\":1741855464,\"expires\":1741859064,\"secret\":\"epk_71e44d9e722e4f648bcd5feac33be76a\"},\"manual_retry_allowed\":false,\"connector_transaction_id\":\"422121527515\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":null,\"payment_link\":null,\"profile_id\":\"pro_eOH03lBB7VBEzDNVnhEg\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_aB6NOAuy8pJKWfOwSTiG\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-13T08:59:24.672Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"13.232.74.226\",\"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-13T08:44:29.165Z\",\"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\"}\r\n```\r\n-> Capture\r\n```json\r\ncurl --location 'http://localhost:8080/payments/pay_qcZiVdQQn7f6MGCZtZBf/capture' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_bvqj8tQaV1iaCA5W1LZrNeR96tyWQ6DBguyEpYYhfcxMi3cE5Xfrobb13uOZzDRu' \\\r\n--data '{\r\n \"amount_to_capture\": 5,\r\n \"statement_descriptor_name\": \"Joseph\",\r\n \"statement_descriptor_suffix\": \"JS\"\r\n}'\r\n```\r\nResponse\r\n```json\r\n{\"payment_id\":\"pay_qcZiVdQQn7f6MGCZtZBf\",\"merchant_id\":\"postman_merchant_GHAction_ed373bd3-380f-4026-adf7-3b7b63008aa7\",\"status\":\"partially_captured\",\"amount\":10,\"net_amount\":10,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":5,\"connector\":\"redsys\",\"client_secret\":\"pay_qcZiVdQQn7f6MGCZtZBf_secret_OcJOMyRHrIVtbngWXLYr\",\"created\":\"2025-03-13T08:44:24.672Z\",\"currency\":\"EUR\",\"customer_id\":\"First_Customer\",\"customer\":{\"id\":\"First_Customer\",\"name\":\"John Doe\",\"email\":null,\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"manual\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"7229\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"454881\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"25\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_lEr4y3EaJ6Re7374wHU1\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":null,\"email\":null},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"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\":null},\"order_details\":null,\"email\":null,\"name\":\"John Doe\",\"phone\":null,\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":null,\"manual_retry_allowed\":false,\"connector_transaction_id\":\"422121527515\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":\"422121527515\",\"payment_link\":null,\"profile_id\":\"pro_eOH03lBB7VBEzDNVnhEg\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_aB6NOAuy8pJKWfOwSTiG\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-13T08:59:24.672Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"13.232.74.226\",\"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-13T08:45:44.002Z\",\"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\"}\r\n```\r\n\r\n
\r\n\r\n
\r\nRefunds\r\n\r\n```json\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_bvqj8tQaV1iaCA5W1LZrNeR96tyWQ6DBguyEpYYhfcxMi3cE5Xfrobb13uOZzDRu' \\\r\n--data '{\r\n \"payment_id\": \"pay_qcZiVdQQn7f6MGCZtZBf\",\r\n \"amount\": 5,\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\nResponse\r\n```json\r\n{\"refund_id\":\"ref_YERbzFCx14PLMpJW0P5j\",\"payment_id\":\"pay_qcZiVdQQn7f6MGCZtZBf\",\"amount\":5,\"currency\":\"EUR\",\"status\":\"succeeded\",\"reason\":\"Customer returned product\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"},\"error_message\":null,\"error_code\":null,\"unified_code\":null,\"unified_message\":null,\"created_at\":\"2025-03-13T08:46:24.506Z\",\"updated_at\":\"2025-03-13T08:46:25.605Z\",\"connector\":\"redsys\",\"profile_id\":\"pro_eOH03lBB7VBEzDNVnhEg\",\"merchant_connector_id\":\"mca_aB6NOAuy8pJKWfOwSTiG\",\"split_refunds\":null}\r\n```\r\n
\r\n\r\n
\r\nCancel\r\n\r\n```json\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_bvqj8tQaV1iaCA5W1LZrNeR96tyWQ6DBguyEpYYhfcxMi3cE5Xfrobb13uOZzDRu' \\\r\n--data '{\r\n \"amount\": 10,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"manual\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"customer_id\": \"First_Customer\",\r\n \"name\": \"John Doe\",\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\": \"4548814479727229\", \r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"124\"\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\": \"13.232.74.226\"\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\": \"Ceuta\",\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\": \"Ceuta\",\r\n \"zip\": \"94122\",\r\n \"country\": \"ES\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\"\r\n }\r\n },\r\n \"setup_future_usage\":\"on_session\"\r\n}'\r\n```\r\n\r\nResponse \r\n\r\n```json\r\n{\"payment_id\":\"pay_byaJdEXTecxmaSl1DjY9\",\"merchant_id\":\"postman_merchant_GHAction_ed373bd3-380f-4026-adf7-3b7b63008aa7\",\"status\":\"requires_capture\",\"amount\":10,\"net_amount\":10,\"shipping_cost\":null,\"amount_capturable\":10,\"amount_received\":null,\"connector\":\"redsys\",\"client_secret\":\"pay_byaJdEXTecxmaSl1DjY9_secret_LcVjyiksCPMr03SyGwWm\",\"created\":\"2025-03-13T08:48:54.587Z\",\"currency\":\"EUR\",\"customer_id\":\"First_Customer\",\"customer\":{\"id\":\"First_Customer\",\"name\":\"John Doe\",\"email\":null,\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"manual\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"7229\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"454881\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"25\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_Hqkm1zmZPJtFwWz7dbPw\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":null,\"email\":null},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"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\":null},\"order_details\":null,\"email\":null,\"name\":\"John Doe\",\"phone\":null,\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"First_Customer\",\"created_at\":1741855734,\"expires\":1741859334,\"secret\":\"epk_6e708e7a6220453b9bc20eef5ce38da5\"},\"manual_retry_allowed\":false,\"connector_transaction_id\":\"219029278965\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":null,\"payment_link\":null,\"profile_id\":\"pro_eOH03lBB7VBEzDNVnhEg\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_aB6NOAuy8pJKWfOwSTiG\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-13T09:03:54.587Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"13.232.74.226\",\"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-13T08:48:59.602Z\",\"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\"}\r\n```\r\n\r\n-> Cancel \r\n```json\r\ncurl --location 'http://localhost:8080/payments/pay_byaJdEXTecxmaSl1DjY9/cancel' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_bvqj8tQaV1iaCA5W1LZrNeR96tyWQ6DBguyEpYYhfcxMi3cE5Xfrobb13uOZzDRu' \\\r\n--data '{\"cancellation_reason\":\"requested_by_customer\"}'\r\n```\r\nResponse\r\n```json\r\n{\"payment_id\":\"pay_byaJdEXTecxmaSl1DjY9\",\"merchant_id\":\"postman_merchant_GHAction_ed373bd3-380f-4026-adf7-3b7b63008aa7\",\"status\":\"cancelled\",\"amount\":10,\"net_amount\":10,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":null,\"connector\":\"redsys\",\"client_secret\":\"pay_byaJdEXTecxmaSl1DjY9_secret_LcVjyiksCPMr03SyGwWm\",\"created\":\"2025-03-13T08:48:54.587Z\",\"currency\":\"EUR\",\"customer_id\":\"First_Customer\",\"customer\":{\"id\":\"First_Customer\",\"name\":\"John Doe\",\"email\":null,\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"manual\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"7229\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"454881\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"25\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_Hqkm1zmZPJtFwWz7dbPw\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":null,\"email\":null},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"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\":null},\"order_details\":null,\"email\":null,\"name\":\"John Doe\",\"phone\":null,\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":\"requested_by_customer\",\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":null,\"manual_retry_allowed\":false,\"connector_transaction_id\":\"219029278965\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":\"219029278965\",\"payment_link\":null,\"profile_id\":\"pro_eOH03lBB7VBEzDNVnhEg\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_aB6NOAuy8pJKWfOwSTiG\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-13T09:03:54.587Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"13.232.74.226\",\"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-13T08:56:19.532Z\",\"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\"}\r\n```\r\n\r\n
\r\n
\r\nXendit Split Payment \r\nPayment Create\r\n\r\n```json\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_MnVMIySY3tKCQVap0PK5vy1XfO8zoWY9xc77rKmoHmJSyEUyEpf2qmcwFZ3gyRsN' \\\r\n--data-raw '{\r\n \"amount\": 1500000,\r\n \"currency\": \"IDR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"customer_id\": \"First_Customer\",\r\n \"name\": \"John Doe\",\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\": \"4918019199883839\",\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"124\"\r\n }\r\n },\r\n \"billing\": {\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"johndoe@gmail.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\": \"13.232.74.226\"\r\n }\r\n\r\n ,\"split_payments\": {\r\n \"xendit_split_payment\": {\r\n \"multiple_splits\" : {\r\n \"name\": \"20210908 Test\",\r\n \r\n \"description\": \"Platform fee and Delivery Fee for Marketplace\",\r\n \"routes\": [\r\n {\r\n \"flat_amount\": 100000,\r\n \"currency\": \"IDR\",\r\n \"destination_account_id\": \"*********************\",\r\n \"reference_id\": \"1234\"\r\n },\r\n {\r\n \"percent_amount\": 5,\r\n \"currency\": \"IDR\",\r\n \"destination_account_id\": \"**********************\",\r\n \"reference_id\": \"1235\"\r\n }\r\n ]\r\n }\r\n }\r\n } \r\n}'\r\n```\r\n\r\nResponse\r\n\r\n```json\r\n{\"payment_id\":\"pay_ytaRhxZOA1qetfZVyYOQ\",\"merchant_id\":\"postman_merchant_GHAction_ca24bf53-c232-4a12-857d-a8a7a3959dc8\",\"status\":\"requires_customer_action\",\"amount\":1500000,\"net_amount\":1500000,\"shipping_cost\":null,\"amount_capturable\":1500000,\"amount_received\":null,\"connector\":\"xendit\",\"client_secret\":\"pay_ytaRhxZOA1qetfZVyYOQ_secret_k4Dp1ZI88zO3k8EyNt0x\",\"created\":\"2025-03-19T16:38:13.196Z\",\"currency\":\"IDR\",\"customer_id\":\"First_Customer\",\"customer\":{\"id\":\"First_Customer\",\"name\":\"John Doe\",\"email\":null,\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":null,\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"3839\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"491801\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"25\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":null,\"shipping\":null,\"billing\":{\"address\":null,\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"johndoe@gmail.com\"},\"order_details\":null,\"email\":null,\"name\":\"John Doe\",\"phone\":null,\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":{\"type\":\"redirect_to_url\",\"redirect_to_url\":\"http://localhost:8080/payments/redirect/pay_ytaRhxZOA1qetfZVyYOQ/postman_merchant_GHAction_ca24bf53-c232-4a12-857d-a8a7a3959dc8/pay_ytaRhxZOA1qetfZVyYOQ_1\"},\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"First_Customer\",\"created_at\":1742402293,\"expires\":1742405893,\"secret\":\"epk_a3aa00f374ff4cc68e817623b2653872\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":\"pr-4ca916d9-9f25-4326-8582-575a1f82e7d1\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":\"7b3fb80f-8928-473e-a66d-6501da014324\",\"payment_link\":null,\"profile_id\":\"pro_81YEDWujEkUUJHajg3eb\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_KfvuDqkWkkL61kbZ0441\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-19T16:53:13.196Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"13.232.74.226\",\"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-19T16:38:14.692Z\",\"split_payments\":{\"xendit_split_payment\":{\"multiple_splits\":{\"split_rule_id\":\"splitru_5d653bd1-9189-484a-a7cb-7c1481c38114\",\"for_user_id\":null,\"name\":\"20210908 Test\",\"description\":\"Platform fee and Delivery Fee for Marketplace\",\"routes\":[{\"flat_amount\":100000,\"percent_amount\":null,\"currency\":\"IDR\",\"destination_account_id\":\"678a407d0951bdff0db5ba78\",\"reference_id\":\"1234\"},{\"flat_amount\":null,\"percent_amount\":5,\"currency\":\"IDR\",\"destination_account_id\":\"678a29180bffc2f28d8527c0\",\"reference_id\":\"1235\"}]}}},\"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\",\"issuer_error_code\":null,\"issuer_error_message\":null}\r\n```\r\n\r\n
\r\n\r\n## Checklist\r\n\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", + "author": "AkshayaFoiger", + "created_at": "2025-03-13T05:38:22+00:00", + "merged_at": "2025-03-21T10:12:17+00:00", + "base_branch": "main", + "labels": [ + "A-connector-compatibility", + "A-connector-integration", + "A-core", + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7508", + "commits": [ + { + "sha": "5e67785f1eeb93f59057946eaeb68f668dca703f", + "message": "undo commit", + "author": "AkshayaFoiger", + "date": "2025-02-23T15:32:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5e67785f1eeb93f59057946eaeb68f668dca703f" + }, + { + "sha": "42a03275809b0271a88a48ffc97a338405da9473", + "message": "add preprocessing in core and update sandbox url", + "author": "AkshayaFoiger", + "date": "2025-03-01T19:39:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/42a03275809b0271a88a48ffc97a338405da9473" + }, + { + "sha": "e524ef6c2db19ceda4bcea1ca2bc1ee7726c0cec", + "message": "add three_ds_invoke to prayment connect next action", + "author": "AkshayaFoiger", + "date": "2025-03-03T11:53:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e524ef6c2db19ceda4bcea1ca2bc1ee7726c0cec" + }, + { + "sha": "0b9967365ad016fe14e99dc86b7bbb9b83946816", + "message": "make poll config optional", + "author": "AkshayaFoiger", + "date": "2025-03-04T05:32:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0b9967365ad016fe14e99dc86b7bbb9b83946816" + }, + { + "sha": "7779d406fda3886cda056f409eef458a8c05bd76", + "message": "add capture, cancel and refund flow", + "author": "AkshayaFoiger", + "date": "2025-03-11T11:03:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7779d406fda3886cda056f409eef458a8c05bd76" + }, + { + "sha": "7f9ec3673bec72951649b35f9b0d8e50ab0a4c10", + "message": "fix clippy error", + "author": "AkshayaFoiger", + "date": "2025-03-12T10:08:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7f9ec3673bec72951649b35f9b0d8e50ab0a4c10" + }, + { + "sha": "c7a879fc1adb6047915e511fa0a6ff3bd48b0c4c", + "message": "fix clippy error", + "author": "AkshayaFoiger", + "date": "2025-03-12T10:21:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c7a879fc1adb6047915e511fa0a6ff3bd48b0c4c" + }, + { + "sha": "21b997f161c7337e77f02c573c6fdc81a107ae7b", + "message": "add redsys configs", + "author": "AkshayaFoiger", + "date": "2025-03-12T14:30:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/21b997f161c7337e77f02c573c6fdc81a107ae7b" + }, + { + "sha": "16a9ab562116d9732f4ea2973bbfee9c890c93e3", + "message": "add state level check", + "author": "AkshayaFoiger", + "date": "2025-03-13T07:58:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/16a9ab562116d9732f4ea2973bbfee9c890c93e3" + }, + { + "sha": "78289a4ba66e3e7f29775fd6c8c1b864db8f8c3f", + "message": "Merge branch 'main' into redsys-3ds", + "author": "AkshayaFoiger", + "date": "2025-03-13T08:07:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/78289a4ba66e3e7f29775fd6c8c1b864db8f8c3f" + }, + { + "sha": "f3f6b54854319a0273948d2d2b8b52b3327ca0e1", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-13T08:17:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f3f6b54854319a0273948d2d2b8b52b3327ca0e1" + }, + { + "sha": "63240ddacf231ba10b0ecf262ef6ad1335d11ada", + "message": "fix clippy error", + "author": "AkshayaFoiger", + "date": "2025-03-13T09:13:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/63240ddacf231ba10b0ecf262ef6ad1335d11ada" + }, + { + "sha": "2be64af6b79def0365d441bbc7d7332226a01e7d", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-13T09:25:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2be64af6b79def0365d441bbc7d7332226a01e7d" + }, + { + "sha": "f0655f9e5ed9c275f5986c48a3d4060431dc8b39", + "message": "fix errors", + "author": "AkshayaFoiger", + "date": "2025-03-13T09:41:23+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f0655f9e5ed9c275f5986c48a3d4060431dc8b39" + }, + { + "sha": "92bb6cddbd9d087e06cf08fa044bc61a1aed3059", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-13T10:49:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/92bb6cddbd9d087e06cf08fa044bc61a1aed3059" + }, + { + "sha": "fbd567d55d13e03769a7ca27ee1d8a088cb0a354", + "message": "resolve comments", + "author": "AkshayaFoiger", + "date": "2025-03-13T12:41:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fbd567d55d13e03769a7ca27ee1d8a088cb0a354" + }, + { + "sha": "19c5d867083a8aa5bcc9bd63145ceb769e0dc45c", + "message": "Merge branch 'main' into redsys-3ds", + "author": "AkshayaFoiger", + "date": "2025-03-13T12:43:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/19c5d867083a8aa5bcc9bd63145ceb769e0dc45c" + }, + { + "sha": "648d9e689c6ec5678f765458edb0879c84d69922", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-13T12:44:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/648d9e689c6ec5678f765458edb0879c84d69922" + }, + { + "sha": "c2f9935e990ef958bf607ef421a66497bd339d79", + "message": "fix spell check", + "author": "AkshayaFoiger", + "date": "2025-03-13T12:50:09+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c2f9935e990ef958bf607ef421a66497bd339d79" + }, + { + "sha": "045c8f8eaaf2fd9e4eb7d1fd0e52580d550052c2", + "message": "undo comiit", + "author": "AkshayaFoiger", + "date": "2025-03-13T12:57:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/045c8f8eaaf2fd9e4eb7d1fd0e52580d550052c2" + }, + { + "sha": "4afc9d427890d66e90f22c8a78e35f83be140be3", + "message": "fix opeanapi_spec", + "author": "AkshayaFoiger", + "date": "2025-03-13T13:22:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4afc9d427890d66e90f22c8a78e35f83be140be3" + }, + { + "sha": "80d87b8b5ee771dbd0f94edd051590b396468476", + "message": "Merge branch 'main' into redsys-3ds", + "author": "AkshayaFoiger", + "date": "2025-03-15T10:29:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/80d87b8b5ee771dbd0f94edd051590b396468476" + }, + { + "sha": "3a725159d7e80f974f80dc2d8c6b6f994bdd5537", + "message": "generate open api spec", + "author": "AkshayaFoiger", + "date": "2025-03-15T10:46:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3a725159d7e80f974f80dc2d8c6b6f994bdd5537" + }, + { + "sha": "b16f741a9365b89c986061bb3a1e2241083e5afd", + "message": "remove logs", + "author": "AkshayaFoiger", + "date": "2025-03-17T07:20:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b16f741a9365b89c986061bb3a1e2241083e5afd" + }, + { + "sha": "6d04d5f0ba42f1cbb1def79470519ccf16c9fdbf", + "message": "Merge branch 'main' into redsys-3ds", + "author": "AkshayaFoiger", + "date": "2025-03-17T07:29:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6d04d5f0ba42f1cbb1def79470519ccf16c9fdbf" + }, + { + "sha": "7677864179860f7c5c29ff2f9a686615c4213d3a", + "message": "resolve comments", + "author": "AkshayaFoiger", + "date": "2025-03-18T12:44:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7677864179860f7c5c29ff2f9a686615c4213d3a" + }, + { + "sha": "1a17b3930a2a1d242d5fab09f5ac68513a68521f", + "message": "fix state mapping function", + "author": "AkshayaFoiger", + "date": "2025-03-19T03:17:07+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1a17b3930a2a1d242d5fab09f5ac68513a68521f" + }, + { + "sha": "096925b2f296a0d7e48a9dc0c2891ec6e3b5cfb3", + "message": "remove crypto lib from cargo toml", + "author": "AkshayaFoiger", + "date": "2025-03-19T03:23:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/096925b2f296a0d7e48a9dc0c2891ec6e3b5cfb3" + }, + { + "sha": "0aa5b0843cfdb295b63c66661c14d4ea6d3ad762", + "message": "Merge branch 'main' into redsys-3ds", + "author": "AkshayaFoiger", + "date": "2025-03-19T03:26:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0aa5b0843cfdb295b63c66661c14d4ea6d3ad762" + }, + { + "sha": "027b25d2477acc43a28c9f42021a5ea6ae21bc05", + "message": "fix merge conflict", + "author": "AkshayaFoiger", + "date": "2025-03-19T03:36:18+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/027b25d2477acc43a28c9f42021a5ea6ae21bc05" + }, + { + "sha": "b1697c95b9ad04f48ddb3c7348a494813c1fd31d", + "message": "add required fields", + "author": "AkshayaFoiger", + "date": "2025-03-19T03:44:32+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b1697c95b9ad04f48ddb3c7348a494813c1fd31d" + }, + { + "sha": "a34224aeb9bdc5f290b4b2b2d850a2f7c902d712", + "message": "fix clippy and generate openapi_spec", + "author": "AkshayaFoiger", + "date": "2025-03-19T03:58:30+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a34224aeb9bdc5f290b4b2b2d850a2f7c902d712" + }, + { + "sha": "8f0219b6ea77c86d364efb6ac45bb5cde55f66ba", + "message": "fix formatting", + "author": "AkshayaFoiger", + "date": "2025-03-19T04:01:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8f0219b6ea77c86d364efb6ac45bb5cde55f66ba" + }, + { + "sha": "d54190cbbd5a3c6849fc4efd2929e8168ac6ac0f", + "message": "remove clave", + "author": "AkshayaFoiger", + "date": "2025-03-19T04:31:29+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d54190cbbd5a3c6849fc4efd2929e8168ac6ac0f" + }, + { + "sha": "2ddc5a24a19869718d86964cf9c689c24bc73b18", + "message": "fix spell check", + "author": "AkshayaFoiger", + "date": "2025-03-19T06:40:32+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2ddc5a24a19869718d86964cf9c689c24bc73b18" + }, + { + "sha": "9768c4c03e582dbc81da09e2f37670cf956e6c5e", + "message": "try fixing wasm build failure", + "author": "AkshayaFoiger", + "date": "2025-03-19T07:11:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9768c4c03e582dbc81da09e2f37670cf956e6c5e" + }, + { + "sha": "2fa5b93e731e0415b32fcba9bbc2c9ac9abe4340", + "message": "try fixing wsam build", + "author": "AkshayaFoiger", + "date": "2025-03-19T07:43:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2fa5b93e731e0415b32fcba9bbc2c9ac9abe4340" + }, + { + "sha": "7cc2934d8c9842db7b9452fdf5ce4be5392bd1c4", + "message": "fix wasm build", + "author": "AkshayaFoiger", + "date": "2025-03-19T08:04:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7cc2934d8c9842db7b9452fdf5ce4be5392bd1c4" + }, + { + "sha": "7cad37c99780eb5394a7f746b36f9bc939160d76", + "message": "fix clippy error", + "author": "AkshayaFoiger", + "date": "2025-03-19T08:11:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7cad37c99780eb5394a7f746b36f9bc939160d76" + }, + { + "sha": "4f19b6ac31326a754084c85712a2377827b53eb0", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-19T08:13:38+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4f19b6ac31326a754084c85712a2377827b53eb0" + }, + { + "sha": "a52b4d11a1dc4120c82da409a1e5779ff51bac46", + "message": "fix clippy error", + "author": "AkshayaFoiger", + "date": "2025-03-19T08:46:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a52b4d11a1dc4120c82da409a1e5779ff51bac46" + }, + { + "sha": "680a6375ce47d0a17421a9a3fcb4adf553feba05", + "message": "remove next_action_url", + "author": "AkshayaFoiger", + "date": "2025-03-19T09:18:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/680a6375ce47d0a17421a9a3fcb4adf553feba05" + }, + { + "sha": "8a1915ae5e40b881dda9033b387ea2d482b535e9", + "message": "update toml files", + "author": "AkshayaFoiger", + "date": "2025-03-19T09:32:00+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8a1915ae5e40b881dda9033b387ea2d482b535e9" + }, + { + "sha": "152c5b7fb0558a822432a48fd6a8252864e375b7", + "message": "rename openssl flag", + "author": "AkshayaFoiger", + "date": "2025-03-19T14:35:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/152c5b7fb0558a822432a48fd6a8252864e375b7" + }, + { + "sha": "a5a023ad1fcce0afbb6c4b3a1f693263cbad5de0", + "message": "undo commit", + "author": "AkshayaFoiger", + "date": "2025-03-19T14:35:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a5a023ad1fcce0afbb6c4b3a1f693263cbad5de0" + }, + { + "sha": "deea2d61f7736c582d7fe860ccfc809161dc9f17", + "message": "add redsys cypress testcases", + "author": "AkshayaFoiger", + "date": "2025-03-19T15:52:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/deea2d61f7736c582d7fe860ccfc809161dc9f17" + }, + { + "sha": "35b696f49fdf1410edc1e350bdbee2f9cc3f2066", + "message": "trim base_url", + "author": "AkshayaFoiger", + "date": "2025-03-19T16:22:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/35b696f49fdf1410edc1e350bdbee2f9cc3f2066" + }, + { + "sha": "975e2d4792aec66af1a145972f6ddb9cc5cb105d", + "message": "remove comments", + "author": "AkshayaFoiger", + "date": "2025-03-19T16:34:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/975e2d4792aec66af1a145972f6ddb9cc5cb105d" + }, + { + "sha": "e7bdb1266c932f0a004b6eb0f9419d7ac6d4cdc7", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-19T16:35:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e7bdb1266c932f0a004b6eb0f9419d7ac6d4cdc7" + }, + { + "sha": "f71fdeb8bc3359aea61987ff4d6cc4a01400af4c", + "message": "undo debugger changes", + "author": "AkshayaFoiger", + "date": "2025-03-19T16:55:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f71fdeb8bc3359aea61987ff4d6cc4a01400af4c" + }, + { + "sha": "4a94ee11d5c5b72c9f8b74d6cc97fcefbe59b67f", + "message": "chore(cypress): run formatter and address lints", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-19T16:57:03+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4a94ee11d5c5b72c9f8b74d6cc97fcefbe59b67f" + }, + { + "sha": "81cf9b29595b0509e8e03187314938b31fe92756", + "message": "Merge main", + "author": "AkshayaFoiger", + "date": "2025-03-20T11:51:13+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/81cf9b29595b0509e8e03187314938b31fe92756" + }, + { + "sha": "df60cd4bf28a4487e1373aea4524673043ffa211", + "message": "add a comment and remove redundant error message", + "author": "AkshayaFoiger", + "date": "2025-03-20T12:23:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/df60cd4bf28a4487e1373aea4524673043ffa211" + }, + { + "sha": "76d87b58900a86848a36d032bfd0a1526cf0f96b", + "message": "fix;", + "author": "AkshayaFoiger", + "date": "2025-03-20T12:54:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/76d87b58900a86848a36d032bfd0a1526cf0f96b" + }, + { + "sha": "7379af26500dd5c85105f68bc8c01b00777821be", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-20T12:54:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7379af26500dd5c85105f68bc8c01b00777821be" + }, + { + "sha": "a2db191313d498a18d35226af4e6515384e02f43", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-20T13:01:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a2db191313d498a18d35226af4e6515384e02f43" + }, + { + "sha": "56d7da547d714a6f480f0f813f644b40fa0c7cf2", + "message": "resolve comment", + "author": "AkshayaFoiger", + "date": "2025-03-20T18:26:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/56d7da547d714a6f480f0f813f644b40fa0c7cf2" + }, + { + "sha": "bfb5e5d33696f0838cc20b5e0bdbb8e3ca898966", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-20T18:27:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/bfb5e5d33696f0838cc20b5e0bdbb8e3ca898966" + }, + { + "sha": "86de8c1ad5825a35fceb5c3224de5b53179f5188", + "message": "remove signals flag", + "author": "AkshayaFoiger", + "date": "2025-03-20T18:40:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/86de8c1ad5825a35fceb5c3224de5b53179f5188" + }, + { + "sha": "e4353e688364782be6024a1ff1ef72e83de947aa", + "message": "add doc comment for normalize_string()", + "author": "AkshayaFoiger", + "date": "2025-03-20T19:22:13+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e4353e688364782be6024a1ff1ef72e83de947aa" + }, + { + "sha": "d56b06dd7403b49e15e1de8d71ad1702114a0c99", + "message": "refactor normalize string", + "author": "AkshayaFoiger", + "date": "2025-03-20T23:34:25+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d56b06dd7403b49e15e1de8d71ad1702114a0c99" + }, + { + "sha": "96ae608d5f5b94acfd813a6cadd7e25967d85afc", + "message": "fix clippy error", + "author": "AkshayaFoiger", + "date": "2025-03-20T23:57:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/96ae608d5f5b94acfd813a6cadd7e25967d85afc" + }, + { + "sha": "d2a6dddd5d77db54539245bd9a528f0618f2ef8c", + "message": "Merge branch 'main' into redsys-3ds", + "author": "AkshayaFoiger", + "date": "2025-03-21T06:38:18+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d2a6dddd5d77db54539245bd9a528f0618f2ef8c" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7527.json b/prs/pr_7527.json new file mode 100644 index 0000000000000000000000000000000000000000..ba5943cf8bd5257b0c26cd65012335d3bbb19178 --- /dev/null +++ b/prs/pr_7527.json @@ -0,0 +1,24 @@ +{ + "number": 7527, + "title": "feat(connector): [BRAINTREE] Add revoke mandate flow", + "description": "## Type of Change\r\n\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\r\nORIGINAL PR: https://github.com/juspay/hyperswitch/pull/7525\r\nAdd mandate revoke flow to Braintree\r\nhttps://developer.paypal.com/braintree/graphql/guides/payment_methods/#delete\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\n\r\n\r\n## Motivation and Context\r\n\r\nhttps://github.com/juspay/hyperswitch/issues/7526\r\n\r\n## How did you test it?\r\n\r\nRevoking an existing mandate using tunnel needs to be tested:\r\nRequest:\r\n```\r\ncurl --location 'http://localhost:8080/vs/v1/payment_methods/man_OVY39ecmn6QDAxh18qIe/detach' \\\r\n--header 'Content-Type: application/x-www-form-urlencoded' \\\r\n--header 'User-Agent: helloMozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/80.0.3987.119 Mobile Safari/537.36' \\\r\n--header 'api-key: HIDDEN' \\\r\n--data-urlencode 'merchant_connector_details%5Bencoded_data%5D=HIDDEN'\r\n```\r\n\r\nResponse:\r\n```\r\n{\r\n \"mandate_id\": \"man_OVY39ecmn6QDAxh18qIe\",\r\n \"status\": \"revoked\",\r\n \"error_code\": null,\r\n \"error_message\": null\r\n}\r\n```\r\n\r\n## Checklist\r\n\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", + "author": "deepanshu-iiitu", + "created_at": "2025-03-15T11:57:57+00:00", + "merged_at": "2025-03-15T12:12:25+00:00", + "base_branch": "hotfix-2025.03.10.0", + "labels": [ + "A-connector-integration", + "C-feature", + "Hotfix" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7527", + "commits": [ + { + "sha": "34bcff0471859211008b6ea660bde459960c89ba", + "message": "feat(connector): [BRAINTREE] Add revoke mandate flow (#7525)", + "author": "DEEPANSHU BANSAL", + "date": "2025-03-15T11:18:48+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/34bcff0471859211008b6ea660bde459960c89ba" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7575.json b/prs/pr_7575.json new file mode 100644 index 0000000000000000000000000000000000000000..e2f12677fa16cab4cc7f9c8ec7c7e9a64cd25158 --- /dev/null +++ b/prs/pr_7575.json @@ -0,0 +1,80 @@ +{ + "number": 7575, + "title": "feat(connector): [TRUSTPAY] implement Banktransfer PaymentMethod", + "description": "## Type of Change\r\n\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\nImplement Banktransfer PaymentMethod\r\n- SepabankTransfer\r\n- InstantBankTransfer\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n1. Create a Merchant Account\r\n2. Create API Key \r\n3. Create MCA for Trustpay\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1742393217/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 \r\n ]\r\n },\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 \"AmericanExpress\",\r\n \"Discover\",\r\n \"Interac\",\r\n \"JCB\",\r\n \"Mastercard\",\r\n \"Visa\",\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 \"payment_method_type\": \"debit\",\r\n \"card_networks\": [\r\n \"AmericanExpress\",\r\n \"Discover\",\r\n \"Interac\",\r\n \"JCB\",\r\n \"Mastercard\",\r\n \"Visa\",\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\": \"bank_redirect\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"giropay\",\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"eps\",\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"sofort\",\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n },\r\n {\r\n \"payment_method_type\": \"ideal\",\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true,\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"payment_experience\": \"redirect_to_url\"\r\n },\r\n {\r\n \"payment_method_type\": \"blik\",\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\": \"trustly\",\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 \"currency_id\": 1,\r\n \"platform_id\": 6,\r\n \"ledger_account_id\": \"__\"\r\n }\r\n}'\r\n```\r\n4. Create a SepaBankTransfer Request\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_qvBkR76d1dON9WyPNxtZWeulmuwqqF5Rw6Cm8qOkKbvl8rdAqaDpc7U59iD91A1s' \\\r\n--data-raw '\r\n\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_VUpjOHvTvYtckYOV48up\",\r\n \"merchant_id\": \"merchant_1742809428\",\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_VUpjOHvTvYtckYOV48up_secret_vQzFcUlrhGzCSv1RiCU4\",\r\n \"created\": \"2025-03-24T09:45:13.330Z\",\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_VUpjOHvTvYtckYOV48up/merchant_1742809428/pay_VUpjOHvTvYtckYOV48up_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\": 1742809513,\r\n \"expires\": 1742813113,\r\n \"secret\": \"epk_76fc87101d92434c934333b45e0cde63\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"1823755940\",\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_gdGGL1iBKEtqubRWArMs\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_xumIJOB7bf110Ev1YEK4\",\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-24T10:00:13.330Z\",\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-24T09:45:15.389Z\",\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\n5. Create a InstantBankTransfer 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_qvBkR76d1dON9WyPNxtZWeulmuwqqF5Rw6Cm8qOkKbvl8rdAqaDpc7U59iD91A1s' \\\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{\"payment_id\":\"pay_OSdcJIXIcFFySqWm7FZ3\",\"merchant_id\":\"merchant_1742385527\",\"status\":\"requires_customer_action\",\"amount\":6540,\"net_amount\":6540,\"shipping_cost\":null,\"amount_capturable\":6540,\"amount_received\":null,\"connector\":\"trustpay\",\"client_secret\":\"pay_OSdcJIXIcFFySqWm7FZ3_secret_hmkqdAMHQ2PpObgTgIfc\",\"created\":\"2025-03-19T12:02:02.266Z\",\"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\":{\"instant_bank_transfer\":{}},\"billing\":null},\"payment_token\":null,\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"US\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":null},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"US\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"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\":{\"type\":\"redirect_to_url\",\"redirect_to_url\":\"http://localhost:8080/payments/redirect/pay_OSdcJIXIcFFySqWm7FZ3/merchant_1742385527/pay_OSdcJIXIcFFySqWm7FZ3_1\"},\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"instant_bank_transfer\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"StripeCustomer\",\"created_at\":1742385722,\"expires\":1742389322,\"secret\":\"epk_fb63b0b5ff5d4b09bec618b213434452\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":\"5968676728\",\"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_GKgBVFZG1sYIeDDTTFht\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_LYv7UDOEKVo9ISDI4vYh\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-19T12:17:02.266Z\",\"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-19T12:02:03.526Z\",\"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\nComplete payment using redirection link.\r\npayment will be in `processing` step.\r\n\r\n\r\nPML 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\": null,\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 \"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.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.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.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.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 \"email\": {\r\n \"required_field\": \"email\",\r\n \"display_name\": \"email\",\r\n \"field_type\": \"user_email_address\",\r\n \"value\": \"guest@example.com\"\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 }\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## Checklist\r\n\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", + "author": "swangi-kumari", + "created_at": "2025-03-19T12:47:08+00:00", + "merged_at": "2025-03-25T14:58:25+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "C-feature", + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7575", + "commits": [ + { + "sha": "e93ab9ce04271355f3a0ccd97cf6358ed692dab7", + "message": "feat: implement banktransfer for trustpay", + "author": "Swangi Kumari", + "date": "2025-03-19T12:45:18+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e93ab9ce04271355f3a0ccd97cf6358ed692dab7" + }, + { + "sha": "6a7112b5fa7feb7fe96b68793748f5599129ed63", + "message": "feat: wasm", + "author": "Swangi Kumari", + "date": "2025-03-19T14:48:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6a7112b5fa7feb7fe96b68793748f5599129ed63" + }, + { + "sha": "08e6e691f52ba28d61b447a5b3df7c45227450f9", + "message": "refactor: add sepabanktrasfer pmt", + "author": "Swangi Kumari", + "date": "2025-03-23T13:41:35+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/08e6e691f52ba28d61b447a5b3df7c45227450f9" + }, + { + "sha": "c7b95c98972ae5ce009b52c6e91f79f60e1dc9a9", + "message": "Merge branch 'main' into trustpay-bank-transfer", + "author": "Swangi Kumari", + "date": "2025-03-23T13:49:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c7b95c98972ae5ce009b52c6e91f79f60e1dc9a9" + }, + { + "sha": "fe4dfa0411c7167d4dc79fb14eb92bb47d3715e9", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-23T13:56:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fe4dfa0411c7167d4dc79fb14eb92bb47d3715e9" + }, + { + "sha": "14eff7a9fa2c36457c1fa84ea6ed6bd451f6a03f", + "message": "Merge branch 'main' into trustpay-bank-transfer", + "author": "Swangi Kumari", + "date": "2025-03-24T12:58:52+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/14eff7a9fa2c36457c1fa84ea6ed6bd451f6a03f" + }, + { + "sha": "ccec5dceb4bf7678a3bb55fc688a259a41975ead", + "message": "ci: change `sepa` to `sepa_bank_transfer` for payouts", + "author": "Swangi Kumari", + "date": "2025-03-25T08:40:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ccec5dceb4bf7678a3bb55fc688a259a41975ead" + }, + { + "sha": "5115e1d531329b51aa713ebe772c5e9fddfced00", + "message": "refactor: change `sepa` to `sepaBankTransfer` for payouts", + "author": "Swangi Kumari", + "date": "2025-03-25T08:41:23+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5115e1d531329b51aa713ebe772c5e9fddfced00" + }, + { + "sha": "184e126e47ddb148e9d4a53b6c9a285737c03621", + "message": "refactor: rename test name", + "author": "Swangi Kumari", + "date": "2025-03-25T10:17:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/184e126e47ddb148e9d4a53b6c9a285737c03621" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7577.json b/prs/pr_7577.json new file mode 100644 index 0000000000000000000000000000000000000000..29fe9ec03f117ed1ba0d035a0a5750df10ef2d9c --- /dev/null +++ b/prs/pr_7577.json @@ -0,0 +1,23 @@ +{ + "number": 7577, + "title": "fix(connector): [CYBERSOURCE] send xid as none for external 3ds payments", + "description": "## Type of Change\r\n\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\r\nsend xid as none for external 3ds payments\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n\r\nSanity external 3ds payment\r\nCURL\r\n```\r\ncurl --location 'localhost:8080/payments/{PAYMENT_ID}}/3ds/authentication' \\\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 \"client_secret\": \"{{CLIENT_SECRET}}\",\r\n \"device_channel\": \"BRW\",\r\n \"threeds_method_comp_ind\": \"Y\"\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\": \"648051f1-c9d5-4559-92fa-0a8805ed8e55\",\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\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", + "author": "sai-harsha-vardhan", + "created_at": "2025-03-19T19:08:56+00:00", + "merged_at": "2025-03-20T07:56:40+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "C-bug" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7577", + "commits": [ + { + "sha": "36842b1180a52f7bc85028fcaa1995bba0662187", + "message": "do not send xid in consumerAuth for Cybs", + "author": "sai-harsha-vardhan", + "date": "2025-03-19T07:35:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/36842b1180a52f7bc85028fcaa1995bba0662187" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7586.json b/prs/pr_7586.json new file mode 100644 index 0000000000000000000000000000000000000000..2d414488b2ac0c74b447e2a9f9d080f373ce8a87 --- /dev/null +++ b/prs/pr_7586.json @@ -0,0 +1,611 @@ +{ + "number": 7586, + "title": "feat(connectors): [Redsys] add Psync and Rsync support", + "description": "## Type of Change\r\n\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\r\n1. Redsys Psync and Rsync implementation. \r\nAPI type: SOAP XML API \r\n\r\n_Note: Connector doesn't support Psync call, when the next action is `threeds_invoke` (just after the preprocessing call). If triggeredRedsys will throw an error with error_code: `xml0024`._ \r\n\r\n2. Status mapping change \r\na) \"9999\" is mapped to Authentication pending as this status specifies - \"Operation that has been redirected to the issuer to authenticate\" and \"9998\" maps to failed status\r\n\r\n## How did you test it?\r\n \r\nCannot be tested as processing status cannot be stimulated during sandbox testing\r\n\r\n
\r\n Local Testing (manually mark the payment as pending and do a Psync) \r\n\r\n```curl\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_S8QiRuQPjHGG1szVbgNxJVhTwTRF9ydj9APuvTeXCsp79NmRGNctIyPsvMAZL3Hg' \\\r\n--data-raw '{\r\n \"amount\": 10,\r\n \"currency\": \"EUR\",\r\n \"return_url\": \"https://hyperswitch.io\",\r\n \"confirm\": true,\r\n \"customer_acceptance\": null,\r\n \"customer_id\" :\"asbh\",\r\n \"capture_method\": \"automatic\",\r\n \"authentication_type\": \"three_ds\",\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\": \"ES\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"email\": \"mauro.morandi@nexi.it\",\r\n \"phone\": {\r\n \"number\": \"9123456789\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"email\": \"hyperswitch_sdk_demo_id@gmail.com\",\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/120.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-US\",\r\n \"color_depth\": 32,\r\n \"screen_height\": 1117,\r\n \"screen_width\": 1728,\r\n \"time_zone\": -330,\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 \"payment_method\": \"card\",\r\n \r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4548814479727229\",\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"49\",\r\n \"card_holder_name\": \"Joseph\",\r\n \"card_cvc\": \"123\"\r\n }\r\n },\r\n \"setup_future_usage\": \"on_session\",\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\": \"Ceuta\",\r\n \"zip\": \"94122\",\r\n \"country\": \"ES\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"email\": \"mauro.morandi@nexi.it\",\r\n \"phone\": {\r\n \"number\": \"9123456789\",\r\n \"country_code\": \"+91\"\r\n }\r\n }\r\n}'\r\n```\r\nResponse \r\n\r\n```json\r\n{\"payment_id\":\"pay_sJAE201oybS9Nom6njE0\",\"merchant_id\":\"postman_merchant_GHAction_20dc3fc4-9c75-4224-9113-f1a66dc1d515\",\"status\":\"processing\",\"amount\":10,\"net_amount\":10,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":null,\"connector\":\"redsys\",\"client_secret\":\"pay_sJAE201oybS9Nom6njE0_secret_1Krj7K16Sbb8Jys68BQn\",\"created\":\"2025-03-21T06:29:43.144Z\",\"currency\":\"EUR\",\"customer_id\":\"asbh\",\"customer\":{\"id\":\"asbh\",\"name\":null,\"email\":\"hyperswitch_sdk_demo_id@gmail.com\",\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"7229\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"454881\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"49\",\"card_holder_name\":\"Joseph\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_PGJePKDPhz6Q0RyBeRap\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"9123456789\",\"country_code\":\"+91\"},\"email\":\"mauro.morandi@nexi.it\"},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"9123456789\",\"country_code\":\"+91\"},\"email\":\"mauro.morandi@nexi.it\"},\"order_details\":null,\"email\":\"hyperswitch_sdk_demo_id@gmail.com\",\"name\":null,\"phone\":null,\"return_url\":\"https://hyperswitch.io/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":null,\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"asbh\",\"created_at\":1742538583,\"expires\":1742542183,\"secret\":\"epk_ab1283dd0d4042c88994d81e0163ea30\"},\"manual_retry_allowed\":false,\"connector_transaction_id\":\"206678482225\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":\"206678482225\",\"payment_link\":null,\"profile_id\":\"pro_501tEJX8ANb93eYoVAeO\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_TUNS4WRo8qUaNApH0dtb\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-21T06:44:43.144Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"en-US\",\"time_zone\":-330,\"ip_address\":\"127.0.0.1\",\"user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36\",\"color_depth\":32,\"java_enabled\":true,\"screen_width\":1728,\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"screen_height\":1117,\"java_script_enabled\":true},\"payment_method_id\":null,\"payment_method_status\":null,\"updated\":\"2025-03-21T06:29:48.812Z\",\"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\",\"issuer_error_code\":null,\"issuer_error_message\":null}\r\n```\r\n\r\n Psync\r\n\r\n```curl\r\n\r\ncurl --location 'http://localhost:8080/payments/pay_sJAE201oybS9Nom6njE0?force_sync=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_S8QiRuQPjHGG1szVbgNxJVhTwTRF9ydj9APuvTeXCsp79NmRGNctIyPsvMAZL3Hg'\r\n```\r\nResponse\r\n```json\r\n{\"payment_id\":\"pay_sJAE201oybS9Nom6njE0\",\"merchant_id\":\"postman_merchant_GHAction_20dc3fc4-9c75-4224-9113-f1a66dc1d515\",\"status\":\"succeeded\",\"amount\":10,\"net_amount\":10,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":10,\"connector\":\"redsys\",\"client_secret\":\"pay_sJAE201oybS9Nom6njE0_secret_1Krj7K16Sbb8Jys68BQn\",\"created\":\"2025-03-21T06:29:43.144Z\",\"currency\":\"EUR\",\"customer_id\":\"asbh\",\"customer\":{\"id\":\"asbh\",\"name\":null,\"email\":\"hyperswitch_sdk_demo_id@gmail.com\",\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"7229\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"454881\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"49\",\"card_holder_name\":\"Joseph\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_PGJePKDPhz6Q0RyBeRap\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"9123456789\",\"country_code\":\"+91\"},\"email\":\"mauro.morandi@nexi.it\"},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"9123456789\",\"country_code\":\"+91\"},\"email\":\"mauro.morandi@nexi.it\"},\"order_details\":null,\"email\":\"hyperswitch_sdk_demo_id@gmail.com\",\"name\":null,\"phone\":null,\"return_url\":\"https://hyperswitch.io/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":null,\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":null,\"manual_retry_allowed\":false,\"connector_transaction_id\":\"206678482225\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":\"206678482225\",\"payment_link\":null,\"profile_id\":\"pro_501tEJX8ANb93eYoVAeO\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_TUNS4WRo8qUaNApH0dtb\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-21T06:44:43.144Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"en-US\",\"time_zone\":-330,\"ip_address\":\"127.0.0.1\",\"user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36\",\"color_depth\":32,\"java_enabled\":true,\"screen_width\":1728,\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"screen_height\":1117,\"java_script_enabled\":true},\"payment_method_id\":null,\"payment_method_status\":null,\"updated\":\"2025-03-21T06:30:31.189Z\",\"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\",\"issuer_error_code\":null,\"issuer_error_message\":null}\r\n```\r\n
\r\n\r\n
\r\n Psync after and before redirection \r\nCreate a 3ds payment\r\n\r\n```curl\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_eYTBjERYvLMQg36q5VL8J3bwcWX9TONkgOB8E1wbOaQ38InTXnDJHrYQDQWoRu2b' \\\r\n--data-raw '{\r\n \"amount\": 10,\r\n \"currency\": \"EUR\",\r\n \"return_url\": \"https://hyperswitch.io\",\r\n \"confirm\": true,\r\n \"customer_acceptance\": null,\r\n \"customer_id\" :\"asbh\",\r\n \"capture_method\": \"automatic\",\r\n \"authentication_type\": \"three_ds\",\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\": \"Ceut\u00e2\",\r\n \"zip\": \"94122\",\r\n \"country\": \"ES\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"email\": \"mauro.morandi@nexi.it\",\r\n \"phone\": {\r\n \"number\": \"9123456789\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"email\": \"hyperswitch_sdk_demo_id@gmail.com\",\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/120.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-US\",\r\n \"color_depth\": 32,\r\n \"screen_height\": 1117,\r\n \"screen_width\": 1728,\r\n \"time_zone\": -330,\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 \"payment_method\": \"card\",\r\n \r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4548817212493017\",\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"49\",\r\n \"card_holder_name\": \"Joseph\",\r\n \"card_cvc\": \"123\"\r\n }\r\n },\r\n \"setup_future_usage\": \"on_session\",\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\": \"Ceuta\",\r\n \"zip\": \"94122\",\r\n \"country\": \"ES\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"email\": \"mauro.morandi@nexi.it\",\r\n \"phone\": {\r\n \"number\": \"9123456789\",\r\n \"country_code\": \"+91\"\r\n }\r\n }\r\n}'\r\n```\r\nResponse\r\n\r\n```json\r\n{\"payment_id\":\"pay_W2nrSGTtg0T5gxvc9W20\",\"merchant_id\":\"postman_merchant_GHAction_cfbbe59e-3f32-4dc5-a43f-6cb0dd952d10\",\"status\":\"requires_customer_action\",\"amount\":10,\"net_amount\":10,\"shipping_cost\":null,\"amount_capturable\":10,\"amount_received\":null,\"connector\":\"redsys\",\"client_secret\":\"pay_W2nrSGTtg0T5gxvc9W20_secret_vbXSeTVqLKxCS4WLKP5O\",\"created\":\"2025-03-21T12:53:47.232Z\",\"currency\":\"EUR\",\"customer_id\":\"asbh\",\"customer\":{\"id\":\"asbh\",\"name\":null,\"email\":\"hyperswitch_sdk_demo_id@gmail.com\",\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"3017\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"454881\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"49\",\"card_holder_name\":\"Joseph\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_ZnViWQzmhFBJ2I9Nt2fK\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"9123456789\",\"country_code\":\"+91\"},\"email\":\"mauro.morandi@nexi.it\"},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceut\u00e2\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"9123456789\",\"country_code\":\"+91\"},\"email\":\"mauro.morandi@nexi.it\"},\"order_details\":null,\"email\":\"hyperswitch_sdk_demo_id@gmail.com\",\"name\":null,\"phone\":null,\"return_url\":\"https://hyperswitch.io/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":{\"type\":\"redirect_to_url\",\"redirect_to_url\":\"http://localhost:8080/payments/redirect/pay_W2nrSGTtg0T5gxvc9W20/postman_merchant_GHAction_cfbbe59e-3f32-4dc5-a43f-6cb0dd952d10/pay_W2nrSGTtg0T5gxvc9W20_1\"},\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":null,\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"asbh\",\"created_at\":1742561627,\"expires\":1742565227,\"secret\":\"epk_6f43b57c9b1f4199a874280094988181\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":\"511143349445\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":\"511143349445\",\"payment_link\":null,\"profile_id\":\"pro_YFj3piUG8tJyeIjrH3PJ\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_X7xy9kmBfdRs0l8kjOlo\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-21T13:08:47.232Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"en-US\",\"time_zone\":-330,\"ip_address\":\"127.0.0.1\",\"user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36\",\"color_depth\":32,\"java_enabled\":true,\"screen_width\":1728,\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"screen_height\":1117,\"java_script_enabled\":true},\"payment_method_id\":null,\"payment_method_status\":null,\"updated\":\"2025-03-21T12:53:52.795Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"capture_before\":null,\"merchant_order_reference_id\":null,\"order_tax_amount\":null,\"connector_mandate_id\":null,\"card_discovery\":\"manual\",\"issuer_error_code\":null,\"issuer_error_message\":null}\r\n```\r\nBefore processing the the redirection, do a psync\r\n\r\n```curl\r\ncurl --location 'http://localhost:8080/payments/pay_W2nrSGTtg0T5gxvc9W20?force_sync=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_eYTBjERYvLMQg36q5VL8J3bwcWX9TONkgOB8E1wbOaQ38InTXnDJHrYQDQWoRu2b'\r\n```\r\nResponse\r\n\r\n```json\r\n{\"payment_id\":\"pay_W2nrSGTtg0T5gxvc9W20\",\"merchant_id\":\"postman_merchant_GHAction_cfbbe59e-3f32-4dc5-a43f-6cb0dd952d10\",\"status\":\"requires_customer_action\",\"amount\":10,\"net_amount\":10,\"shipping_cost\":null,\"amount_capturable\":10,\"amount_received\":null,\"connector\":\"redsys\",\"client_secret\":\"pay_W2nrSGTtg0T5gxvc9W20_secret_vbXSeTVqLKxCS4WLKP5O\",\"created\":\"2025-03-21T12:53:47.232Z\",\"currency\":\"EUR\",\"customer_id\":\"asbh\",\"customer\":{\"id\":\"asbh\",\"name\":null,\"email\":\"hyperswitch_sdk_demo_id@gmail.com\",\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"3017\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"454881\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"49\",\"card_holder_name\":\"Joseph\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_ZnViWQzmhFBJ2I9Nt2fK\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"9123456789\",\"country_code\":\"+91\"},\"email\":\"mauro.morandi@nexi.it\"},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceut\u00e2\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"9123456789\",\"country_code\":\"+91\"},\"email\":\"mauro.morandi@nexi.it\"},\"order_details\":null,\"email\":\"hyperswitch_sdk_demo_id@gmail.com\",\"name\":null,\"phone\":null,\"return_url\":\"https://hyperswitch.io/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":{\"type\":\"redirect_to_url\",\"redirect_to_url\":\"http://localhost:8080/payments/redirect/pay_W2nrSGTtg0T5gxvc9W20/postman_merchant_GHAction_cfbbe59e-3f32-4dc5-a43f-6cb0dd952d10/pay_W2nrSGTtg0T5gxvc9W20_1\"},\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":null,\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":null,\"manual_retry_allowed\":null,\"connector_transaction_id\":\"511143349445\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":\"511143349445\",\"payment_link\":null,\"profile_id\":\"pro_YFj3piUG8tJyeIjrH3PJ\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_X7xy9kmBfdRs0l8kjOlo\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-21T13:08:47.232Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"en-US\",\"time_zone\":-330,\"ip_address\":\"127.0.0.1\",\"user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36\",\"color_depth\":32,\"java_enabled\":true,\"screen_width\":1728,\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"screen_height\":1117,\"java_script_enabled\":true},\"payment_method_id\":null,\"payment_method_status\":null,\"updated\":\"2025-03-21T12:57:13.053Z\",\"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\",\"issuer_error_code\":null,\"issuer_error_message\":null}\r\n```\r\n\r\nAfter redirection completion, do a Psync\r\n\r\n```curl\r\ncurl --location 'http://localhost:8080/payments/pay_W2nrSGTtg0T5gxvc9W20?force_sync=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_eYTBjERYvLMQg36q5VL8J3bwcWX9TONkgOB8E1wbOaQ38InTXnDJHrYQDQWoRu2b'\r\n``` \r\nResponse\r\n```json\r\n{\"payment_id\":\"pay_W2nrSGTtg0T5gxvc9W20\",\"merchant_id\":\"postman_merchant_GHAction_cfbbe59e-3f32-4dc5-a43f-6cb0dd952d10\",\"status\":\"succeeded\",\"amount\":10,\"net_amount\":10,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":10,\"connector\":\"redsys\",\"client_secret\":\"pay_W2nrSGTtg0T5gxvc9W20_secret_vbXSeTVqLKxCS4WLKP5O\",\"created\":\"2025-03-21T12:53:47.232Z\",\"currency\":\"EUR\",\"customer_id\":\"asbh\",\"customer\":{\"id\":\"asbh\",\"name\":null,\"email\":\"hyperswitch_sdk_demo_id@gmail.com\",\"phone\":null,\"phone_country_code\":null},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"3017\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"454881\",\"card_extended_bin\":null,\"card_exp_month\":\"12\",\"card_exp_year\":\"49\",\"card_holder_name\":\"Joseph\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_ZnViWQzmhFBJ2I9Nt2fK\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceuta\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"9123456789\",\"country_code\":\"+91\"},\"email\":\"mauro.morandi@nexi.it\"},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"ES\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"Ceut\u00e2\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"9123456789\",\"country_code\":\"+91\"},\"email\":\"mauro.morandi@nexi.it\"},\"order_details\":null,\"email\":\"hyperswitch_sdk_demo_id@gmail.com\",\"name\":null,\"phone\":null,\"return_url\":\"https://hyperswitch.io/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":null,\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":null,\"manual_retry_allowed\":false,\"connector_transaction_id\":\"511143349445\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":\"511143349445\",\"payment_link\":null,\"profile_id\":\"pro_YFj3piUG8tJyeIjrH3PJ\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_X7xy9kmBfdRs0l8kjOlo\",\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-03-21T13:08:47.232Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"en-US\",\"time_zone\":-330,\"ip_address\":\"127.0.0.1\",\"user_agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36\",\"color_depth\":32,\"java_enabled\":true,\"screen_width\":1728,\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"screen_height\":1117,\"java_script_enabled\":true},\"payment_method_id\":null,\"payment_method_status\":null,\"updated\":\"2025-03-21T12:57:53.568Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"capture_before\":null,\"merchant_order_reference_id\":null,\"order_tax_amount\":null,\"connector_mandate_id\":null,\"card_discovery\":\"manual\",\"issuer_error_code\":null,\"issuer_error_message\":null}\r\n```\r\n\r\n
\r\n\r\n
\r\nTest Rsync by updating the refund status to pending locally \r\n\r\nCreate a refund\r\n```curl\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_eYTBjERYvLMQg36q5VL8J3bwcWX9TONkgOB8E1wbOaQ38InTXnDJHrYQDQWoRu2b' \\\r\n--data '{\r\n \"payment_id\": \"pay_W2nrSGTtg0T5gxvc9W20\",\r\n \"amount\": 5,\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\nResponse\r\n\r\n```json\r\n{\"refund_id\":\"ref_5Oc5arvl7rYO2GK8pZFX\",\"payment_id\":\"pay_W2nrSGTtg0T5gxvc9W20\",\"amount\":5,\"currency\":\"EUR\",\"status\":\"pending\",\"reason\":\"Customer returned product\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"},\"error_message\":null,\"error_code\":null,\"unified_code\":null,\"unified_message\":null,\"created_at\":\"2025-03-21T13:00:21.670Z\",\"updated_at\":\"2025-03-21T13:00:22.652Z\",\"connector\":\"redsys\",\"profile_id\":\"pro_YFj3piUG8tJyeIjrH3PJ\",\"merchant_connector_id\":\"mca_X7xy9kmBfdRs0l8kjOlo\",\"split_refunds\":null,\"issuer_error_code\":null,\"issuer_error_message\":null}\r\n```\r\n\r\nTrigger a Rsync call\r\n```curl\r\ncurl --location 'http://localhost:8080/refunds/ref_5Oc5arvl7rYO2GK8pZFX' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_eYTBjERYvLMQg36q5VL8J3bwcWX9TONkgOB8E1wbOaQ38InTXnDJHrYQDQWoRu2b'\r\n```\r\nResponse\r\n```json\r\n{\"refund_id\":\"ref_5Oc5arvl7rYO2GK8pZFX\",\"payment_id\":\"pay_W2nrSGTtg0T5gxvc9W20\",\"amount\":5,\"currency\":\"EUR\",\"status\":\"succeeded\",\"reason\":\"Customer returned product\",\"metadata\":{\"udf1\":\"value1\",\"new_customer\":\"true\",\"login_date\":\"2019-09-10T10:11:12Z\"},\"error_message\":null,\"error_code\":null,\"unified_code\":null,\"unified_message\":null,\"created_at\":\"2025-03-21T13:00:21.670Z\",\"updated_at\":\"2025-03-21T13:01:23.315Z\",\"connector\":\"redsys\",\"profile_id\":\"pro_YFj3piUG8tJyeIjrH3PJ\",\"merchant_connector_id\":\"mca_X7xy9kmBfdRs0l8kjOlo\",\"split_refunds\":null,\"issuer_error_code\":null,\"issuer_error_message\":null}\r\n```\r\n
\r\n\r\n## Checklist\r\n\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", + "author": "AkshayaFoiger", + "created_at": "2025-03-21T06:08:49+00:00", + "merged_at": "2025-03-22T06:06:34+00:00", + "base_branch": "main", + "labels": [ + "A-connector-compatibility", + "A-connector-integration" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7586", + "commits": [ + { + "sha": "5e67785f1eeb93f59057946eaeb68f668dca703f", + "message": "undo commit", + "author": "AkshayaFoiger", + "date": "2025-02-23T15:32:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5e67785f1eeb93f59057946eaeb68f668dca703f" + }, + { + "sha": "42a03275809b0271a88a48ffc97a338405da9473", + "message": "add preprocessing in core and update sandbox url", + "author": "AkshayaFoiger", + "date": "2025-03-01T19:39:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/42a03275809b0271a88a48ffc97a338405da9473" + }, + { + "sha": "e524ef6c2db19ceda4bcea1ca2bc1ee7726c0cec", + "message": "add three_ds_invoke to prayment connect next action", + "author": "AkshayaFoiger", + "date": "2025-03-03T11:53:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e524ef6c2db19ceda4bcea1ca2bc1ee7726c0cec" + }, + { + "sha": "0b9967365ad016fe14e99dc86b7bbb9b83946816", + "message": "make poll config optional", + "author": "AkshayaFoiger", + "date": "2025-03-04T05:32:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0b9967365ad016fe14e99dc86b7bbb9b83946816" + }, + { + "sha": "7779d406fda3886cda056f409eef458a8c05bd76", + "message": "add capture, cancel and refund flow", + "author": "AkshayaFoiger", + "date": "2025-03-11T11:03:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7779d406fda3886cda056f409eef458a8c05bd76" + }, + { + "sha": "7f9ec3673bec72951649b35f9b0d8e50ab0a4c10", + "message": "fix clippy error", + "author": "AkshayaFoiger", + "date": "2025-03-12T10:08:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7f9ec3673bec72951649b35f9b0d8e50ab0a4c10" + }, + { + "sha": "c7a879fc1adb6047915e511fa0a6ff3bd48b0c4c", + "message": "fix clippy error", + "author": "AkshayaFoiger", + "date": "2025-03-12T10:21:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c7a879fc1adb6047915e511fa0a6ff3bd48b0c4c" + }, + { + "sha": "21b997f161c7337e77f02c573c6fdc81a107ae7b", + "message": "add redsys configs", + "author": "AkshayaFoiger", + "date": "2025-03-12T14:30:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/21b997f161c7337e77f02c573c6fdc81a107ae7b" + }, + { + "sha": "16a9ab562116d9732f4ea2973bbfee9c890c93e3", + "message": "add state level check", + "author": "AkshayaFoiger", + "date": "2025-03-13T07:58:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/16a9ab562116d9732f4ea2973bbfee9c890c93e3" + }, + { + "sha": "78289a4ba66e3e7f29775fd6c8c1b864db8f8c3f", + "message": "Merge branch 'main' into redsys-3ds", + "author": "AkshayaFoiger", + "date": "2025-03-13T08:07:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/78289a4ba66e3e7f29775fd6c8c1b864db8f8c3f" + }, + { + "sha": "f3f6b54854319a0273948d2d2b8b52b3327ca0e1", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-13T08:17:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f3f6b54854319a0273948d2d2b8b52b3327ca0e1" + }, + { + "sha": "63240ddacf231ba10b0ecf262ef6ad1335d11ada", + "message": "fix clippy error", + "author": "AkshayaFoiger", + "date": "2025-03-13T09:13:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/63240ddacf231ba10b0ecf262ef6ad1335d11ada" + }, + { + "sha": "2be64af6b79def0365d441bbc7d7332226a01e7d", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-13T09:25:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2be64af6b79def0365d441bbc7d7332226a01e7d" + }, + { + "sha": "f0655f9e5ed9c275f5986c48a3d4060431dc8b39", + "message": "fix errors", + "author": "AkshayaFoiger", + "date": "2025-03-13T09:41:23+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f0655f9e5ed9c275f5986c48a3d4060431dc8b39" + }, + { + "sha": "92bb6cddbd9d087e06cf08fa044bc61a1aed3059", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-13T10:49:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/92bb6cddbd9d087e06cf08fa044bc61a1aed3059" + }, + { + "sha": "fbd567d55d13e03769a7ca27ee1d8a088cb0a354", + "message": "resolve comments", + "author": "AkshayaFoiger", + "date": "2025-03-13T12:41:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fbd567d55d13e03769a7ca27ee1d8a088cb0a354" + }, + { + "sha": "19c5d867083a8aa5bcc9bd63145ceb769e0dc45c", + "message": "Merge branch 'main' into redsys-3ds", + "author": "AkshayaFoiger", + "date": "2025-03-13T12:43:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/19c5d867083a8aa5bcc9bd63145ceb769e0dc45c" + }, + { + "sha": "648d9e689c6ec5678f765458edb0879c84d69922", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-13T12:44:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/648d9e689c6ec5678f765458edb0879c84d69922" + }, + { + "sha": "c2f9935e990ef958bf607ef421a66497bd339d79", + "message": "fix spell check", + "author": "AkshayaFoiger", + "date": "2025-03-13T12:50:09+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c2f9935e990ef958bf607ef421a66497bd339d79" + }, + { + "sha": "045c8f8eaaf2fd9e4eb7d1fd0e52580d550052c2", + "message": "undo comiit", + "author": "AkshayaFoiger", + "date": "2025-03-13T12:57:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/045c8f8eaaf2fd9e4eb7d1fd0e52580d550052c2" + }, + { + "sha": "4afc9d427890d66e90f22c8a78e35f83be140be3", + "message": "fix opeanapi_spec", + "author": "AkshayaFoiger", + "date": "2025-03-13T13:22:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4afc9d427890d66e90f22c8a78e35f83be140be3" + }, + { + "sha": "80d87b8b5ee771dbd0f94edd051590b396468476", + "message": "Merge branch 'main' into redsys-3ds", + "author": "AkshayaFoiger", + "date": "2025-03-15T10:29:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/80d87b8b5ee771dbd0f94edd051590b396468476" + }, + { + "sha": "3a725159d7e80f974f80dc2d8c6b6f994bdd5537", + "message": "generate open api spec", + "author": "AkshayaFoiger", + "date": "2025-03-15T10:46:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3a725159d7e80f974f80dc2d8c6b6f994bdd5537" + }, + { + "sha": "b16f741a9365b89c986061bb3a1e2241083e5afd", + "message": "remove logs", + "author": "AkshayaFoiger", + "date": "2025-03-17T07:20:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b16f741a9365b89c986061bb3a1e2241083e5afd" + }, + { + "sha": "6d04d5f0ba42f1cbb1def79470519ccf16c9fdbf", + "message": "Merge branch 'main' into redsys-3ds", + "author": "AkshayaFoiger", + "date": "2025-03-17T07:29:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6d04d5f0ba42f1cbb1def79470519ccf16c9fdbf" + }, + { + "sha": "7677864179860f7c5c29ff2f9a686615c4213d3a", + "message": "resolve comments", + "author": "AkshayaFoiger", + "date": "2025-03-18T12:44:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7677864179860f7c5c29ff2f9a686615c4213d3a" + }, + { + "sha": "1a17b3930a2a1d242d5fab09f5ac68513a68521f", + "message": "fix state mapping function", + "author": "AkshayaFoiger", + "date": "2025-03-19T03:17:07+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1a17b3930a2a1d242d5fab09f5ac68513a68521f" + }, + { + "sha": "096925b2f296a0d7e48a9dc0c2891ec6e3b5cfb3", + "message": "remove crypto lib from cargo toml", + "author": "AkshayaFoiger", + "date": "2025-03-19T03:23:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/096925b2f296a0d7e48a9dc0c2891ec6e3b5cfb3" + }, + { + "sha": "0aa5b0843cfdb295b63c66661c14d4ea6d3ad762", + "message": "Merge branch 'main' into redsys-3ds", + "author": "AkshayaFoiger", + "date": "2025-03-19T03:26:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0aa5b0843cfdb295b63c66661c14d4ea6d3ad762" + }, + { + "sha": "027b25d2477acc43a28c9f42021a5ea6ae21bc05", + "message": "fix merge conflict", + "author": "AkshayaFoiger", + "date": "2025-03-19T03:36:18+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/027b25d2477acc43a28c9f42021a5ea6ae21bc05" + }, + { + "sha": "b1697c95b9ad04f48ddb3c7348a494813c1fd31d", + "message": "add required fields", + "author": "AkshayaFoiger", + "date": "2025-03-19T03:44:32+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b1697c95b9ad04f48ddb3c7348a494813c1fd31d" + }, + { + "sha": "a34224aeb9bdc5f290b4b2b2d850a2f7c902d712", + "message": "fix clippy and generate openapi_spec", + "author": "AkshayaFoiger", + "date": "2025-03-19T03:58:30+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a34224aeb9bdc5f290b4b2b2d850a2f7c902d712" + }, + { + "sha": "8f0219b6ea77c86d364efb6ac45bb5cde55f66ba", + "message": "fix formatting", + "author": "AkshayaFoiger", + "date": "2025-03-19T04:01:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8f0219b6ea77c86d364efb6ac45bb5cde55f66ba" + }, + { + "sha": "d54190cbbd5a3c6849fc4efd2929e8168ac6ac0f", + "message": "remove clave", + "author": "AkshayaFoiger", + "date": "2025-03-19T04:31:29+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d54190cbbd5a3c6849fc4efd2929e8168ac6ac0f" + }, + { + "sha": "2ddc5a24a19869718d86964cf9c689c24bc73b18", + "message": "fix spell check", + "author": "AkshayaFoiger", + "date": "2025-03-19T06:40:32+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2ddc5a24a19869718d86964cf9c689c24bc73b18" + }, + { + "sha": "9768c4c03e582dbc81da09e2f37670cf956e6c5e", + "message": "try fixing wasm build failure", + "author": "AkshayaFoiger", + "date": "2025-03-19T07:11:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9768c4c03e582dbc81da09e2f37670cf956e6c5e" + }, + { + "sha": "2fa5b93e731e0415b32fcba9bbc2c9ac9abe4340", + "message": "try fixing wsam build", + "author": "AkshayaFoiger", + "date": "2025-03-19T07:43:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2fa5b93e731e0415b32fcba9bbc2c9ac9abe4340" + }, + { + "sha": "7cc2934d8c9842db7b9452fdf5ce4be5392bd1c4", + "message": "fix wasm build", + "author": "AkshayaFoiger", + "date": "2025-03-19T08:04:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7cc2934d8c9842db7b9452fdf5ce4be5392bd1c4" + }, + { + "sha": "7cad37c99780eb5394a7f746b36f9bc939160d76", + "message": "fix clippy error", + "author": "AkshayaFoiger", + "date": "2025-03-19T08:11:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7cad37c99780eb5394a7f746b36f9bc939160d76" + }, + { + "sha": "4f19b6ac31326a754084c85712a2377827b53eb0", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-19T08:13:38+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4f19b6ac31326a754084c85712a2377827b53eb0" + }, + { + "sha": "a52b4d11a1dc4120c82da409a1e5779ff51bac46", + "message": "fix clippy error", + "author": "AkshayaFoiger", + "date": "2025-03-19T08:46:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a52b4d11a1dc4120c82da409a1e5779ff51bac46" + }, + { + "sha": "680a6375ce47d0a17421a9a3fcb4adf553feba05", + "message": "remove next_action_url", + "author": "AkshayaFoiger", + "date": "2025-03-19T09:18:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/680a6375ce47d0a17421a9a3fcb4adf553feba05" + }, + { + "sha": "8a1915ae5e40b881dda9033b387ea2d482b535e9", + "message": "update toml files", + "author": "AkshayaFoiger", + "date": "2025-03-19T09:32:00+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8a1915ae5e40b881dda9033b387ea2d482b535e9" + }, + { + "sha": "152c5b7fb0558a822432a48fd6a8252864e375b7", + "message": "rename openssl flag", + "author": "AkshayaFoiger", + "date": "2025-03-19T14:35:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/152c5b7fb0558a822432a48fd6a8252864e375b7" + }, + { + "sha": "a5a023ad1fcce0afbb6c4b3a1f693263cbad5de0", + "message": "undo commit", + "author": "AkshayaFoiger", + "date": "2025-03-19T14:35:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a5a023ad1fcce0afbb6c4b3a1f693263cbad5de0" + }, + { + "sha": "deea2d61f7736c582d7fe860ccfc809161dc9f17", + "message": "add redsys cypress testcases", + "author": "AkshayaFoiger", + "date": "2025-03-19T15:52:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/deea2d61f7736c582d7fe860ccfc809161dc9f17" + }, + { + "sha": "35b696f49fdf1410edc1e350bdbee2f9cc3f2066", + "message": "trim base_url", + "author": "AkshayaFoiger", + "date": "2025-03-19T16:22:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/35b696f49fdf1410edc1e350bdbee2f9cc3f2066" + }, + { + "sha": "975e2d4792aec66af1a145972f6ddb9cc5cb105d", + "message": "remove comments", + "author": "AkshayaFoiger", + "date": "2025-03-19T16:34:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/975e2d4792aec66af1a145972f6ddb9cc5cb105d" + }, + { + "sha": "e7bdb1266c932f0a004b6eb0f9419d7ac6d4cdc7", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-19T16:35:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e7bdb1266c932f0a004b6eb0f9419d7ac6d4cdc7" + }, + { + "sha": "f71fdeb8bc3359aea61987ff4d6cc4a01400af4c", + "message": "undo debugger changes", + "author": "AkshayaFoiger", + "date": "2025-03-19T16:55:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f71fdeb8bc3359aea61987ff4d6cc4a01400af4c" + }, + { + "sha": "4a94ee11d5c5b72c9f8b74d6cc97fcefbe59b67f", + "message": "chore(cypress): run formatter and address lints", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-19T16:57:03+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4a94ee11d5c5b72c9f8b74d6cc97fcefbe59b67f" + }, + { + "sha": "83a5074a96cc96a4cfab883db0bf72eeec3d39e6", + "message": "undo commit", + "author": "AkshayaFoiger", + "date": "2025-03-20T08:23:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/83a5074a96cc96a4cfab883db0bf72eeec3d39e6" + }, + { + "sha": "622e59ff3962fd7bb338fc6b1c0919141bbf4391", + "message": "add soap request", + "author": "AkshayaFoiger", + "date": "2025-03-20T11:34:41+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/622e59ff3962fd7bb338fc6b1c0919141bbf4391" + }, + { + "sha": "81cf9b29595b0509e8e03187314938b31fe92756", + "message": "Merge main", + "author": "AkshayaFoiger", + "date": "2025-03-20T11:51:13+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/81cf9b29595b0509e8e03187314938b31fe92756" + }, + { + "sha": "df60cd4bf28a4487e1373aea4524673043ffa211", + "message": "add a comment and remove redundant error message", + "author": "AkshayaFoiger", + "date": "2025-03-20T12:23:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/df60cd4bf28a4487e1373aea4524673043ffa211" + }, + { + "sha": "76d87b58900a86848a36d032bfd0a1526cf0f96b", + "message": "fix;", + "author": "AkshayaFoiger", + "date": "2025-03-20T12:54:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/76d87b58900a86848a36d032bfd0a1526cf0f96b" + }, + { + "sha": "7379af26500dd5c85105f68bc8c01b00777821be", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-20T12:54:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7379af26500dd5c85105f68bc8c01b00777821be" + }, + { + "sha": "a2db191313d498a18d35226af4e6515384e02f43", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-20T13:01:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a2db191313d498a18d35226af4e6515384e02f43" + }, + { + "sha": "5cc65f8185345b0d969e349e44a3b0bed34ea9e9", + "message": "add psync request", + "author": "AkshayaFoiger", + "date": "2025-03-20T18:21:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5cc65f8185345b0d969e349e44a3b0bed34ea9e9" + }, + { + "sha": "56d7da547d714a6f480f0f813f644b40fa0c7cf2", + "message": "resolve comment", + "author": "AkshayaFoiger", + "date": "2025-03-20T18:26:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/56d7da547d714a6f480f0f813f644b40fa0c7cf2" + }, + { + "sha": "bfb5e5d33696f0838cc20b5e0bdbb8e3ca898966", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-20T18:27:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/bfb5e5d33696f0838cc20b5e0bdbb8e3ca898966" + }, + { + "sha": "86de8c1ad5825a35fceb5c3224de5b53179f5188", + "message": "remove signals flag", + "author": "AkshayaFoiger", + "date": "2025-03-20T18:40:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/86de8c1ad5825a35fceb5c3224de5b53179f5188" + }, + { + "sha": "e4353e688364782be6024a1ff1ef72e83de947aa", + "message": "add doc comment for normalize_string()", + "author": "AkshayaFoiger", + "date": "2025-03-20T19:22:13+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e4353e688364782be6024a1ff1ef72e83de947aa" + }, + { + "sha": "dcedf12f417a0e977fead3a2e5ce37716c280b6e", + "message": "Merge branch 'redsys-3ds' into redsys-soap-api", + "author": "AkshayaFoiger", + "date": "2025-03-20T19:26:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/dcedf12f417a0e977fead3a2e5ce37716c280b6e" + }, + { + "sha": "d56b06dd7403b49e15e1de8d71ad1702114a0c99", + "message": "refactor normalize string", + "author": "AkshayaFoiger", + "date": "2025-03-20T23:34:25+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d56b06dd7403b49e15e1de8d71ad1702114a0c99" + }, + { + "sha": "d2568448db0b68697b8bd560b1d2396985e09d2f", + "message": "undo commit", + "author": "AkshayaFoiger", + "date": "2025-03-20T23:56:18+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d2568448db0b68697b8bd560b1d2396985e09d2f" + }, + { + "sha": "96ae608d5f5b94acfd813a6cadd7e25967d85afc", + "message": "fix clippy error", + "author": "AkshayaFoiger", + "date": "2025-03-20T23:57:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/96ae608d5f5b94acfd813a6cadd7e25967d85afc" + }, + { + "sha": "9239fb25354ad2b29888b104f14fd3504ff76d18", + "message": "add rsync support", + "author": "AkshayaFoiger", + "date": "2025-03-21T00:51:24+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9239fb25354ad2b29888b104f14fd3504ff76d18" + }, + { + "sha": "08757392ea6e54f2b87fcb64897acc86493a4ca1", + "message": "fix deserialization error", + "author": "AkshayaFoiger", + "date": "2025-03-21T02:28:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/08757392ea6e54f2b87fcb64897acc86493a4ca1" + }, + { + "sha": "858d29e07d436e6bf7e04a60ef640399faaf460a", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-21T06:09:42+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/858d29e07d436e6bf7e04a60ef640399faaf460a" + }, + { + "sha": "c11a6e60e1ed30ca73c7be49256a3832498c952c", + "message": "Merge branch 'main' into redsys-soap-api", + "author": "AkshayaFoiger", + "date": "2025-03-21T06:32:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c11a6e60e1ed30ca73c7be49256a3832498c952c" + }, + { + "sha": "f083eb737acc605bd6e593338e6b881d16adf1c1", + "message": "Merge branch 'redsys-3ds' into redsys-soap-api", + "author": "AkshayaFoiger", + "date": "2025-03-21T06:34:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f083eb737acc605bd6e593338e6b881d16adf1c1" + }, + { + "sha": "d2a6dddd5d77db54539245bd9a528f0618f2ef8c", + "message": "Merge branch 'main' into redsys-3ds", + "author": "AkshayaFoiger", + "date": "2025-03-21T06:38:18+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d2a6dddd5d77db54539245bd9a528f0618f2ef8c" + }, + { + "sha": "0b9b29ca7fbc372bc465dc54145cadef636fee9d", + "message": "Merge branch 'redsys-3ds' into redsys-soap-api", + "author": "AkshayaFoiger", + "date": "2025-03-21T06:39:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0b9b29ca7fbc372bc465dc54145cadef636fee9d" + }, + { + "sha": "c883c58ff71f323be426cfa04496e411adfba992", + "message": "clippy fix", + "author": "AkshayaFoiger", + "date": "2025-03-21T07:11:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c883c58ff71f323be426cfa04496e411adfba992" + }, + { + "sha": "213737e5f603d284a14cb4b06348e2d32e159bc1", + "message": "add comment regarding xml parsing", + "author": "AkshayaFoiger", + "date": "2025-03-21T08:07:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/213737e5f603d284a14cb4b06348e2d32e159bc1" + }, + { + "sha": "077514e2d88c91aebcbefbd505ce38ca0e55b514", + "message": "fix status mapping", + "author": "AkshayaFoiger", + "date": "2025-03-21T08:55:29+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/077514e2d88c91aebcbefbd505ce38ca0e55b514" + }, + { + "sha": "a0c5fb4b03aab9db8767b68cb66a932e6a4b9271", + "message": "fix status mapping", + "author": "AkshayaFoiger", + "date": "2025-03-21T09:04:39+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a0c5fb4b03aab9db8767b68cb66a932e6a4b9271" + }, + { + "sha": "830fda8e7ce4a20b1f8ffab78f09ac267c7a4e8d", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-21T09:22:18+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/830fda8e7ce4a20b1f8ffab78f09ac267c7a4e8d" + }, + { + "sha": "7ec91e3e8bdf828ede6695ba9056e8cd734f7b06", + "message": "add LazyLock to normalize_string", + "author": "AkshayaFoiger", + "date": "2025-03-21T10:08:52+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7ec91e3e8bdf828ede6695ba9056e8cd734f7b06" + }, + { + "sha": "49a3b553e7d44e2e4e2fe6d145702b099042e5f2", + "message": "Merge branch 'main' into redsys-soap-api", + "author": "AkshayaFoiger", + "date": "2025-03-21T10:27:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/49a3b553e7d44e2e4e2fe6d145702b099042e5f2" + }, + { + "sha": "340fd6603281407fe083a80672d1db7ab0b648d9", + "message": "refactor sync response handling", + "author": "AkshayaFoiger", + "date": "2025-03-21T10:32:54+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/340fd6603281407fe083a80672d1db7ab0b648d9" + }, + { + "sha": "4763d859d3dbb48dc65ce7381e8e4295167a20e4", + "message": "undo redundant code", + "author": "AkshayaFoiger", + "date": "2025-03-21T12:27:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4763d859d3dbb48dc65ce7381e8e4295167a20e4" + }, + { + "sha": "aebfa1d3864690c16ccd3fc1a38b3651736a2e30", + "message": "Merge branch 'main' into redsys-soap-api", + "author": "AkshayaFoiger", + "date": "2025-03-21T12:39:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/aebfa1d3864690c16ccd3fc1a38b3651736a2e30" + }, + { + "sha": "cc65686363e8f5626ae9876a360297d635065f6e", + "message": "Merge branch 'main' into redsys-soap-api", + "author": "AkshayaFoiger", + "date": "2025-03-21T16:46:30+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/cc65686363e8f5626ae9876a360297d635065f6e" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7594.json b/prs/pr_7594.json new file mode 100644 index 0000000000000000000000000000000000000000..00bdafc01775868e46a1a1288e9f0af581b4b3d4 --- /dev/null +++ b/prs/pr_7594.json @@ -0,0 +1,23 @@ +{ + "number": 7594, + "title": "feat(core): add three_ds_requestor_app_url in business_profile", + "description": "## Type of Change\r\n\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 [PR 7589](https://github.com/juspay/hyperswitch/pull/7589)\r\n\r\n`cargo clippy` output \u2705 (Ignore the warnings, they are not coming from the current commit)\r\n\r\nhttps://github.com/user-attachments/assets/6667b2c9-45c7-4b42-a575-6b69260c448c\r\n\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\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\r\n## Checklist\r\n\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", + "author": "dgeee13", + "created_at": "2025-03-21T11:43:15+00:00", + "merged_at": "2025-03-21T13:12:06+00:00", + "base_branch": "hotfix-2025.03.10.0", + "labels": [ + "M-api-contract-changes", + "Hotfix" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7594", + "commits": [ + { + "sha": "96e27359823b03675b63e69e63a43aa151e1d2a8", + "message": "feat(core): add three_ds_requestor_app_url in business_profile", + "author": "Debarati", + "date": "2025-03-21T09:04:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/96e27359823b03675b63e69e63a43aa151e1d2a8" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7639.json b/prs/pr_7639.json new file mode 100644 index 0000000000000000000000000000000000000000..071da113f67a09aa62b20306843975298ddc214e --- /dev/null +++ b/prs/pr_7639.json @@ -0,0 +1,130 @@ +{ + "number": 7639, + "title": "feat(router): add payment method display name to feature matrix response", + "description": "## Type of Change\r\n\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\r\nThis PR\r\n1. Adds payment method display name to feature matrix response\r\n2. Replace the 2 digit country codes into 3 digit country codes\r\n\r\n\r\n## How did you test it?\r\n\r\nList the feature matrix and ensure it contains the payment_method_type_dsplay_name field and the country code is 3 digits long. \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```\r\nResponse\r\n\r\n```\r\n{\r\n \"connector_count\": 28,\r\n \"connectors\": [\r\n {\r\n \"name\": \"BAMBORA\",\r\n \"display_name\": \"Bambora\",\r\n \"description\": \"Bambora is a leading online payment provider in Canada and United States.\",\r\n \"category\": \"payment_gateway\",\r\n \"supported_payment_methods\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_type_display_name\": \"Credit Card\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"three_ds\": \"supported\",\r\n \"no_three_ds\": \"supported\",\r\n \"supported_card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\",\r\n \"AmericanExpress\",\r\n \"Discover\",\r\n \"JCB\",\r\n \"DinersClub\"\r\n ],\r\n \"supported_countries\": [\r\n \"USA\",\r\n \"CAN\"\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 \"name\": \"BAMBORAAPAC\",\r\n \"display_name\": \"Bambora Asia-Pacific\",\r\n \"description\": \"Bambora Asia-Pacific, provides comprehensive payment solutions, offering merchants smart and smooth payment processing capabilities.\",\r\n \"category\": \"payment_gateway\",\r\n \"supported_payment_methods\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"debit\",\r\n \"payment_method_type_display_name\": \"Debit Card\",\r\n \"mandates\": \"supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"three_ds\": \"supported\",\r\n \"no_three_ds\": \"supported\",\r\n \"supported_card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\",\r\n \"DinersClub\"\r\n ],\r\n \"supported_countries\": [\r\n \"KIR\",\r\n \"SWE\",\r\n \"MUS\",\r\n \"COL\",\r\n \"USA\",\r\n \"EST\",\r\n \"LIE\",\r\n \"WSM\",\r\n \"IND\",\r\n \"NLD\",\r\n \"COD\",\r\n \"SOM\",\r\n \"FRA\",\r\n \"UKR\",\r\n \"KEN\",\r\n \"TJK\",\r\n \"CPV\",\r\n \"MRT\",\r\n \"SSD\",\r\n \"CAN\",\r\n \"NOR\",\r\n \"HND\",\r\n \"GBR\",\r\n \"AUT\",\r\n \"SUR\",\r\n \"MDA\",\r\n \"DEU\",\r\n \"MDV\",\r\n \"PAK\",\r\n \"LSO\",\r\n \"ARG\",\r\n \"JOR\",\r\n \"SMR\",\r\n \"LKA\",\r\n \"SRB\",\r\n \"TGO\",\r\n \"DMA\",\r\n \"ZWE\",\r\n \"RWA\",\r\n \"LAO\",\r\n \"EGY\",\r\n \"PRT\",\r\n \"BEN\",\r\n \"PNG\",\r\n \"ETH\",\r\n \"BHR\",\r\n \"NAM\",\r\n \"TKM\",\r\n \"PER\",\r\n \"AUS\",\r\n \"MEX\",\r\n \"BWA\",\r\n \"ECU\",\r\n \"UGA\",\r\n \"TUN\",\r\n \"JAM\",\r\n \"GNQ\",\r\n \"CZE\",\r\n \"BIH\",\r\n \"ISR\",\r\n \"CHL\",\r\n \"BGR\",\r\n \"KAZ\",\r\n \"BOL\",\r\n \"POL\",\r\n \"BDI\",\r\n \"AZE\",\r\n \"MNE\",\r\n \"GIN\",\r\n \"ZAF\",\r\n \"TZA\",\r\n \"URY\",\r\n \"SYC\",\r\n \"DZA\",\r\n \"ROU\",\r\n \"IRL\",\r\n \"OMN\",\r\n \"NZL\",\r\n \"MWI\",\r\n \"BRA\",\r\n \"CAF\",\r\n \"PSE\",\r\n \"BTN\",\r\n \"GGY\",\r\n \"MCO\",\r\n \"SWZ\",\r\n \"NIC\",\r\n \"JPN\",\r\n \"CRI\",\r\n \"AND\",\r\n \"NER\",\r\n \"SLE\",\r\n \"SEN\",\r\n \"ERI\",\r\n \"LUX\",\r\n \"NPL\",\r\n \"TTO\",\r\n \"SAU\",\r\n \"BRB\",\r\n \"BLZ\",\r\n \"PHL\",\r\n \"DOM\",\r\n \"MLT\",\r\n \"TUV\",\r\n \"TON\",\r\n \"FJI\",\r\n \"KNA\",\r\n \"CIV\",\r\n \"MYS\",\r\n \"TLS\",\r\n \"MDG\",\r\n \"CYP\",\r\n \"MMR\",\r\n \"PRY\",\r\n \"GUY\",\r\n \"VNM\",\r\n \"BHS\",\r\n \"NGA\",\r\n \"ZMB\",\r\n \"VEN\",\r\n \"SGP\",\r\n \"TCD\",\r\n \"GAB\",\r\n \"GNB\",\r\n \"DJI\",\r\n \"TUR\",\r\n \"CHN\",\r\n \"KWT\",\r\n \"LTU\",\r\n \"AGO\",\r\n \"GTM\",\r\n \"SVN\",\r\n \"UZB\",\r\n \"CMR\",\r\n \"SLB\",\r\n \"ARM\",\r\n \"FSM\",\r\n \"STP\",\r\n \"DNK\",\r\n \"GRD\",\r\n \"ISL\",\r\n \"NRU\",\r\n \"IDN\",\r\n \"LCA\",\r\n \"HTI\",\r\n \"CHE\",\r\n \"ALB\",\r\n \"MKD\",\r\n \"KGZ\",\r\n \"MNG\",\r\n \"BEL\",\r\n \"MAR\",\r\n \"GMB\",\r\n \"VAT\",\r\n \"VCT\",\r\n \"LVA\",\r\n \"PAN\",\r\n \"MHL\",\r\n \"QAT\",\r\n \"BGD\",\r\n \"ITA\",\r\n \"GEO\",\r\n \"MOZ\",\r\n \"COG\",\r\n \"ESP\",\r\n \"LBR\",\r\n \"HRV\",\r\n \"LBN\",\r\n \"ATG\",\r\n \"GRC\",\r\n \"BRN\",\r\n \"MLI\",\r\n \"BLR\",\r\n \"ARE\",\r\n \"SLV\",\r\n \"FIN\",\r\n \"PLW\",\r\n \"HUN\",\r\n \"GHA\",\r\n \"VUT\",\r\n \"KOR\",\r\n \"SVK\",\r\n \"KHM\",\r\n \"COM\",\r\n \"THA\"\r\n ],\r\n \"supported_currencies\": [\r\n \"RUB\",\r\n \"ILS\",\r\n \"ZMW\",\r\n \"KZT\",\r\n \"MOP\",\r\n \"MAD\",\r\n \"EGP\",\r\n \"SCR\",\r\n \"SLL\",\r\n \"CHF\",\r\n \"LAK\",\r\n \"MMK\",\r\n \"SEK\",\r\n \"RWF\",\r\n \"MDL\",\r\n \"DKK\",\r\n \"QAR\",\r\n \"UAH\",\r\n \"MXN\",\r\n \"INR\",\r\n \"IQD\",\r\n \"CZK\",\r\n \"BGN\",\r\n \"NAD\",\r\n \"USD\",\r\n \"MWK\",\r\n \"BRL\",\r\n \"RSD\",\r\n \"BOB\",\r\n \"CAD\",\r\n \"KRW\",\r\n \"IDR\",\r\n \"NZD\",\r\n \"BDT\",\r\n \"SGD\",\r\n \"XOF\",\r\n \"THB\",\r\n \"NOK\",\r\n \"GHS\",\r\n \"NPR\",\r\n \"KWD\",\r\n \"UGX\",\r\n \"ZAR\",\r\n \"BND\",\r\n \"HUF\",\r\n \"GEL\",\r\n \"PEN\",\r\n \"JPY\",\r\n \"MZN\",\r\n \"UYU\",\r\n \"EUR\",\r\n \"TRY\",\r\n \"COP\",\r\n \"LKR\",\r\n \"HRK\",\r\n \"CNY\",\r\n \"NGN\",\r\n \"KES\",\r\n \"XAF\",\r\n \"TZS\",\r\n \"VND\",\r\n \"PLN\",\r\n \"GBP\",\r\n \"ISK\",\r\n \"AED\",\r\n \"BWP\",\r\n \"HKD\",\r\n \"TWD\",\r\n \"PHP\",\r\n \"RON\",\r\n \"MYR\",\r\n \"SAR\",\r\n \"AUD\",\r\n \"IRR\",\r\n \"PKR\",\r\n \"FJD\"\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_type_display_name\": \"Credit Card\",\r\n \"mandates\": \"supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"three_ds\": \"supported\",\r\n \"no_three_ds\": \"supported\",\r\n \"supported_card_networks\": [\r\n \"Visa\",\r\n \"Mastercard\",\r\n \"DinersClub\"\r\n ],\r\n \"supported_countries\": [\r\n \"VEN\",\r\n \"JOR\",\r\n \"EST\",\r\n \"PLW\",\r\n \"VNM\",\r\n \"KEN\",\r\n \"ROU\",\r\n \"NER\",\r\n \"VCT\",\r\n \"KHM\",\r\n \"IRL\",\r\n \"NPL\",\r\n \"GTM\",\r\n \"BRB\",\r\n \"CHE\",\r\n \"DNK\",\r\n \"TJK\",\r\n \"PAN\",\r\n \"CIV\",\r\n \"PRT\",\r\n \"PER\",\r\n \"JPN\",\r\n \"KIR\",\r\n \"SAU\",\r\n \"MAR\",\r\n \"QAT\",\r\n \"HUN\",\r\n \"DMA\",\r\n \"CMR\",\r\n \"URY\",\r\n \"ETH\",\r\n \"MDG\",\r\n \"VAT\",\r\n \"TZA\",\r\n \"SLB\",\r\n \"ARE\",\r\n \"HRV\",\r\n \"FSM\",\r\n \"MLT\",\r\n \"ZWE\",\r\n \"AUT\",\r\n \"COM\",\r\n \"IDN\",\r\n \"LCA\",\r\n \"GGY\",\r\n \"ESP\",\r\n \"TKM\",\r\n \"GNQ\",\r\n \"NGA\",\r\n \"AND\",\r\n \"LAO\",\r\n \"LKA\",\r\n \"SLV\",\r\n \"FJI\",\r\n \"USA\",\r\n \"BRA\",\r\n \"LUX\",\r\n \"SGP\",\r\n \"JAM\",\r\n \"GBR\",\r\n \"NAM\",\r\n \"PHL\",\r\n \"GIN\",\r\n \"LIE\",\r\n \"ISL\",\r\n \"GMB\",\r\n \"DEU\",\r\n \"AUS\",\r\n \"KWT\",\r\n \"SOM\",\r\n \"BTN\",\r\n \"SYC\",\r\n \"FIN\",\r\n \"BLR\",\r\n \"UZB\",\r\n \"MMR\",\r\n \"POL\",\r\n \"MNE\",\r\n \"BWA\",\r\n \"PRY\",\r\n \"BGR\",\r\n \"CRI\",\r\n \"SMR\",\r\n \"MLI\",\r\n \"SSD\",\r\n \"TLS\",\r\n \"GRD\",\r\n \"SVK\",\r\n \"KOR\",\r\n \"MDV\",\r\n \"ZMB\",\r\n \"BHR\",\r\n \"MHL\",\r\n \"NZL\",\r\n \"IND\",\r\n \"MNG\",\r\n \"MDA\",\r\n \"GRC\",\r\n \"VUT\",\r\n \"LVA\",\r\n \"GHA\",\r\n \"CHL\",\r\n \"CPV\",\r\n \"CAN\",\r\n \"CAF\",\r\n \"ISR\",\r\n \"DZA\",\r\n \"MCO\",\r\n \"TUN\",\r\n \"MUS\",\r\n \"BEN\",\r\n \"CHN\",\r\n \"BEL\",\r\n \"EGY\",\r\n \"PNG\",\r\n \"UGA\",\r\n \"DJI\",\r\n \"ECU\",\r\n \"ATG\",\r\n \"SEN\",\r\n \"LBN\",\r\n \"ERI\",\r\n \"BHS\",\r\n \"KNA\",\r\n \"THA\",\r\n \"MEX\",\r\n \"WSM\",\r\n \"SUR\",\r\n \"TUR\",\r\n \"SLE\",\r\n \"ARM\",\r\n \"NOR\",\r\n \"MWI\",\r\n \"AZE\",\r\n \"FRA\",\r\n \"AGO\",\r\n \"NLD\",\r\n \"ALB\",\r\n \"HND\",\r\n \"LTU\",\r\n \"RWA\",\r\n \"KGZ\",\r\n \"DOM\",\r\n \"TTO\",\r\n \"BRN\",\r\n \"KAZ\",\r\n \"COL\",\r\n \"BIH\",\r\n \"NRU\",\r\n \"CYP\",\r\n \"ZAF\",\r\n \"LSO\",\r\n \"OMN\",\r\n \"TON\",\r\n \"GNB\",\r\n \"MRT\",\r\n \"ARG\",\r\n \"GEO\",\r\n \"COG\",\r\n \"GAB\",\r\n \"BGD\",\r\n \"TCD\",\r\n \"TUV\",\r\n \"MKD\",\r\n \"SVN\",\r\n \"BLZ\",\r\n \"SRB\",\r\n \"LBR\",\r\n \"BDI\",\r\n \"SWZ\",\r\n \"ITA\",\r\n \"PSE\",\r\n \"COD\",\r\n \"STP\",\r\n \"PAK\",\r\n \"NIC\",\r\n \"TGO\",\r\n \"CZE\",\r\n \"UKR\",\r\n \"HTI\",\r\n \"SWE\",\r\n \"BOL\",\r\n \"GUY\",\r\n \"MOZ\",\r\n \"MYS\"\r\n ],\r\n \"supported_currencies\": [\r\n \"QAR\",\r\n \"MZN\",\r\n \"ILS\",\r\n \"NPR\",\r\n \"RON\",\r\n \"CHF\",\r\n \"LKR\",\r\n \"ISK\",\r\n \"NAD\",\r\n \"RWF\",\r\n \"DKK\",\r\n \"UYU\",\r\n \"VND\",\r\n \"IRR\",\r\n \"XAF\",\r\n \"KWD\",\r\n \"MWK\",\r\n \"MAD\",\r\n \"RSD\",\r\n \"MMK\",\r\n \"HUF\",\r\n \"CZK\",\r\n \"BGN\",\r\n \"THB\",\r\n \"PKR\",\r\n \"IDR\",\r\n \"LAK\",\r\n \"BRL\",\r\n \"GBP\",\r\n \"MOP\",\r\n \"NGN\",\r\n \"SCR\",\r\n \"SLL\",\r\n \"ZMW\",\r\n \"INR\",\r\n \"MYR\",\r\n \"IQD\",\r\n \"GEL\",\r\n \"RUB\",\r\n \"NZD\",\r\n \"JPY\",\r\n \"EGP\",\r\n \"AED\",\r\n \"SEK\",\r\n \"XOF\",\r\n \"FJD\",\r\n \"GHS\",\r\n \"PHP\",\r\n \"TZS\",\r\n \"NOK\",\r\n \"CAD\",\r\n \"TRY\",\r\n \"MXN\",\r\n \"PEN\",\r\n \"CNY\",\r\n \"KRW\",\r\n \"MDL\",\r\n \"SGD\",\r\n \"BDT\",\r\n \"AUD\",\r\n \"UGX\",\r\n \"USD\",\r\n \"ZAR\",\r\n \"UAH\",\r\n \"HKD\",\r\n \"BND\",\r\n \"BOB\",\r\n \"COP\",\r\n \"HRK\",\r\n \"TWD\",\r\n \"PLN\",\r\n \"BWP\",\r\n \"SAR\",\r\n \"KZT\",\r\n \"KES\",\r\n \"EUR\"\r\n ]\r\n }\r\n ],\r\n \"supported_webhook_flows\": []\r\n },\r\n {\r\n \"name\": \"BILLWERK\",\r\n \"display_name\": \"Billwerk\",\r\n \"description\": \"Billwerk+ Pay is an acquirer independent payment gateway that's easy to setup with more than 50 recurring and non-recurring payment methods.\",\r\n \"category\": \"payment_gateway\",\r\n \"supported_payment_methods\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_type_display_name\": \"Credit Card\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"three_ds\": \"not_supported\",\r\n \"no_three_ds\": \"supported\",\r\n \"supported_card_networks\": [\r\n \"Mastercard\",\r\n \"Visa\",\r\n \"AmericanExpress\",\r\n \"Discover\",\r\n \"JCB\",\r\n \"UnionPay\",\r\n \"DinersClub\",\r\n \"Interac\",\r\n \"CartesBancaires\"\r\n ],\r\n \"supported_countries\": [\r\n \"SWE\",\r\n \"FRA\",\r\n \"DNK\",\r\n \"DEU\"\r\n ],\r\n \"supported_currencies\": [\r\n \"DKK\",\r\n \"NOK\"\r\n ]\r\n },\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"debit\",\r\n \"payment_method_type_display_name\": \"Debit Card\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\",\r\n \"sequential_automatic\"\r\n ],\r\n \"three_ds\": \"not_supported\",\r\n \"no_three_ds\": \"supported\",\r\n \"supported_card_networks\": [\r\n \"Mastercard\",\r\n \"Visa\",\r\n \"AmericanExpress\",\r\n \"Discover\",\r\n \"JCB\",\r\n \"UnionPay\",\r\n \"DinersClub\",\r\n \"Interac\",\r\n \"CartesBancaires\"\r\n ],\r\n \"supported_countries\": [\r\n \"DNK\",\r\n \"FRA\",\r\n \"SWE\",\r\n \"DEU\"\r\n ],\r\n \"supported_currencies\": [\r\n \"DKK\",\r\n \"NOK\"\r\n ]\r\n }\r\n ],\r\n \"supported_webhook_flows\": []\r\n }\r\n]}\r\n\r\n```\r\n\r\n## Checklist\r\n\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", + "author": "AkshayaFoiger", + "created_at": "2025-03-26T10:28:27+00:00", + "merged_at": "2025-04-01T12:15:42+00:00", + "base_branch": "main", + "labels": [ + "A-framework", + "A-core", + "C-feature", + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7639", + "commits": [ + { + "sha": "394608f953ccf014a15e3a1271d662dcdd029ecb", + "message": "add payment_method_type_display_name and 3 digit count code", + "author": "AkshayaFoiger", + "date": "2025-03-26T10:12:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/394608f953ccf014a15e3a1271d662dcdd029ecb" + }, + { + "sha": "392657c5d702ae0531a3837bd4755211d0a53830", + "message": "generate openapi_spec", + "author": "AkshayaFoiger", + "date": "2025-03-26T10:20:07+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/392657c5d702ae0531a3837bd4755211d0a53830" + }, + { + "sha": "d1d2cc323d1618ff299737a2eee6e04fa35c707d", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-26T10:38:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d1d2cc323d1618ff299737a2eee6e04fa35c707d" + }, + { + "sha": "4d702f28cd0fb88d810a5c641a0b565600442ddc", + "message": "fix openapi_spec", + "author": "AkshayaFoiger", + "date": "2025-03-26T11:07:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4d702f28cd0fb88d810a5c641a0b565600442ddc" + }, + { + "sha": "53ab082da02252db12ed5ade7d6ad6d5c330ff85", + "message": "fix openapi_spec", + "author": "AkshayaFoiger", + "date": "2025-03-26T11:12:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/53ab082da02252db12ed5ade7d6ad6d5c330ff85" + }, + { + "sha": "3c70d82d57703f5fe0a04e1809c780d3552b7ad1", + "message": "fix openapi_sepc", + "author": "AkshayaFoiger", + "date": "2025-03-26T11:14:57+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3c70d82d57703f5fe0a04e1809c780d3552b7ad1" + }, + { + "sha": "5ad673d02c219bdf95af84fcc123b81d96b36884", + "message": "fix openapi_spec", + "author": "AkshayaFoiger", + "date": "2025-03-26T11:16:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5ad673d02c219bdf95af84fcc123b81d96b36884" + }, + { + "sha": "1b1c4174d8fdefecaf43a4ec987535386e7a5f25", + "message": "add CountryAlpha3 to openapi_spec", + "author": "AkshayaFoiger", + "date": "2025-03-26T11:50:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1b1c4174d8fdefecaf43a4ec987535386e7a5f25" + }, + { + "sha": "69384076b70be34055631376630613079d941dae", + "message": "fix clippy error", + "author": "AkshayaFoiger", + "date": "2025-03-27T07:04:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/69384076b70be34055631376630613079d941dae" + }, + { + "sha": "b24fc77885e3516733c4749269a415f5af687361", + "message": "rename mifinity", + "author": "AkshayaFoiger", + "date": "2025-03-27T07:06:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b24fc77885e3516733c4749269a415f5af687361" + }, + { + "sha": "12a95fbc16c3507954e5b0966d602c8e0e5b626c", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-27T07:07:32+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/12a95fbc16c3507954e5b0966d602c8e0e5b626c" + }, + { + "sha": "0bdb728385835e61135cca39382b8074451a86c3", + "message": "Merge branch 'main' into feature-matrix-v3", + "author": "AkshayaFoiger", + "date": "2025-03-27T07:08:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0bdb728385835e61135cca39382b8074451a86c3" + }, + { + "sha": "eee2ee0887716ed7cc829f8a957d97b95fd3713c", + "message": "refactor to_display_name function", + "author": "AkshayaFoiger", + "date": "2025-03-27T09:16:13+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/eee2ee0887716ed7cc829f8a957d97b95fd3713c" + }, + { + "sha": "01bbe10e665ea5bbff3ce2c538df3d1ad024c328", + "message": "add doc comments", + "author": "AkshayaFoiger", + "date": "2025-03-27T10:41:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/01bbe10e665ea5bbff3ce2c538df3d1ad024c328" + }, + { + "sha": "d632569794d2acebdbd14d2741bc6a7a940dd777", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-03-27T10:43:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d632569794d2acebdbd14d2741bc6a7a940dd777" + }, + { + "sha": "4f99971a4e227d25f2498be45ad5a83478620836", + "message": "remove .", + "author": "AkshayaFoiger", + "date": "2025-03-27T10:44:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4f99971a4e227d25f2498be45ad5a83478620836" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7678.json b/prs/pr_7678.json new file mode 100644 index 0000000000000000000000000000000000000000..b9e7fcd1c414f8d62f203201b101afa987966f94 --- /dev/null +++ b/prs/pr_7678.json @@ -0,0 +1,22 @@ +{ + "number": 7678, + "title": "refactor(openapi): update authentication for profiles and mca openapi", + "description": "## Type of Change\r\n\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [x] Enhancement\r\n- [x] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n\r\nModified the authentication for profile and mca routes to use API Key instead of Admin API Key.\r\nThis PR has the corresponding OpenAPI spec changes.\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n\r\nCannot test\r\nCorresponding code changes are there in this PR: [https://github.com/juspay/hyperswitch/pull/7656](https://github.com/juspay/hyperswitch/pull/7656)\r\n\r\n## Checklist\r\n\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", + "author": "tsdk02", + "created_at": "2025-04-01T11:40:04+00:00", + "merged_at": "2025-04-02T07:01:58+00:00", + "base_branch": "main", + "labels": [ + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7678", + "commits": [ + { + "sha": "00b2be91fc0ab01c9982a96455e5ebda0b5eb067", + "message": "feat(openapi): update authentication for profiles and mca openapi", + "author": "Sandeep Kumar", + "date": "2025-04-01T10:31:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/00b2be91fc0ab01c9982a96455e5ebda0b5eb067" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7700.json b/prs/pr_7700.json new file mode 100644 index 0000000000000000000000000000000000000000..fc0c04c9bd77085b4682fe69b13c0ccde0d131d2 --- /dev/null +++ b/prs/pr_7700.json @@ -0,0 +1,29 @@ +{ + "number": 7700, + "title": "fix: web-docker pull from docker hub", + "description": "## Type of Change\r\n\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\nDocker pull from latest stable tag\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\n## Motivation and Context\r\n\r\n\r\nWeb Docker Image was not working properly \r\n\r\n\"Screenshot\r\n\r\nNow with this fix its working\r\n\r\n\r\n## How did you test it?\r\nVia locally running Docker Image\r\n\r\n\r\n## Checklist\r\n\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", + "author": "PritishBudhiraja", + "created_at": "2025-04-02T09:57:03+00:00", + "merged_at": "2025-04-03T07:29:59+00:00", + "base_branch": "main", + "labels": [ + "A-CI-CD" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7700", + "commits": [ + { + "sha": "8bd155306edb5b4813fe387f9c6c2f63a8e81c3d", + "message": "fix: web-docker pull from docker hub", + "author": "Pritish Budhiraja", + "date": "2025-04-02T09:54:54+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8bd155306edb5b4813fe387f9c6c2f63a8e81c3d" + }, + { + "sha": "46f07e58c7c07a4e5d1254a96dbf29118ea9a0de", + "message": "chore(docker-compose): fix incorrect indentation", + "author": "Sanchith Hegde", + "date": "2025-04-02T10:36:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/46f07e58c7c07a4e5d1254a96dbf29118ea9a0de" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7776.json b/prs/pr_7776.json new file mode 100644 index 0000000000000000000000000000000000000000..b176f9a54b02616e61975c2bd0cbf9fb921685e9 --- /dev/null +++ b/prs/pr_7776.json @@ -0,0 +1,123 @@ +{ + "number": 7776, + "title": "feat(core): Add support for updating metadata after payment has been authorized", + "description": "## Type of Change\r\n\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- Add support where merchant can update the payment metadata after the payment has been authorized. \r\n- Introduce a new api \\payments\\:id\\update_metadata\r\n- Only the metadata field can be updated, which is a key value pair.\r\n- This api can do a connector call just using the metadata field.\r\n- After this call is successful, metadata will be updated, it will have the intent_metadata along with the metadata passed in this new api 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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n1. Create Merchant Account\r\n2. Create API Key \r\n3. Create Stripe MCA\r\n4. Create a Stripe 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 \"amount\": 6540,\r\n \"currency\": \"USD\",\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\": \"no_three_ds\",\r\n \"return_url\": \"https://duck.com\",\r\n \"setup_future_usage\": \"off_session\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4242424242424242\",\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"123\"\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\": \"sundari\"\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\": \"sundari\"\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 \"routing\": {\r\n \"type\": \"single\",\r\n \"data\": \"stripe\"\r\n }\r\n}'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_MxPTKHNcJwOOoL8FDtPN\",\r\n \"merchant_id\": \"postman_merchant_GHAction_da04b367-690b-4bde-ad7c-3cfbf62e4e84\",\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\": \"stripe\",\r\n \"client_secret\": \"pay_MxPTKHNcJwOOoL8FDtPN_secret_025WQHlpbdojP0rBFWMj\",\r\n \"created\": \"2025-04-10T11:35:49.375Z\",\r\n \"currency\": \"USD\",\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\": \"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\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"STRIPE PAYMENTS UK LIMITED\",\r\n \"card_issuing_country\": \"UNITEDKINGDOM\",\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\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": \"pass\"\r\n },\r\n \"authentication_data\": null\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\": \"sundari\",\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\": \"sundari\",\r\n \"last_name\": null\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\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": \"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\": \"StripeCustomer\",\r\n \"created_at\": 1744284949,\r\n \"expires\": 1744288549,\r\n \"secret\": \"epk_6468c3c1c40a4364b195d2cc5c02f9a0\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"pi_3RCJObD5R7gDAGff0xK5cBVw\",\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\": \"pi_3RCJObD5R7gDAGff0xK5cBVw\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_2DPhFg35OVObpgXxYyB3\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_i5a4IRbcJtPyI9WCzMxz\",\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-04-10T11:50:49.375Z\",\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-04-10T11:35:51.031Z\",\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\nMetaData in DB after confirm call\r\n\r\n\"Screenshot\r\n\r\n5. Update metadata\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_MxPTKHNcJwOOoL8FDtPN/update_metadata' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_bSPrVP5RULlFD83TafFu8lTKXxRpdotKpvkCXWzH4Qz1YIPwq32452dcqdE7T1p6' \\\r\n--data '{\r\n \"metadata\": {\r\n \"order_id\": \"999999897989\"\r\n }\r\n}'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_MxPTKHNcJwOOoL8FDtPN\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"order_id\": \"999999897989\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\",\r\n \"new_customer\": \"true\"\r\n }\r\n}\r\n```\r\n\r\nMetadata in DB after UpdateMetadata call\r\n\"Screenshot\r\n- Here Metadata is updated with `order_id`\r\n\r\n\r\n\r\n\r\n## Checklist\r\n\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", + "author": "swangi-kumari", + "created_at": "2025-04-09T13:56:23+00:00", + "merged_at": "2025-04-15T07:39:02+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "A-core", + "C-feature", + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7776", + "commits": [ + { + "sha": "7226555af305dd5c79bda5bd80ed3c9528ac6626", + "message": "refactor: new end point", + "author": "Swangi Kumari", + "date": "2025-04-09T13:55:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7226555af305dd5c79bda5bd80ed3c9528ac6626" + }, + { + "sha": "c64d5e4a94782d73f2ba83d91e1d418089962ead", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-04-09T14:02:52+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c64d5e4a94782d73f2ba83d91e1d418089962ead" + }, + { + "sha": "736362e843f2e2029cfafab74b82c86c350ff6ab", + "message": "refactor: update metadata", + "author": "Swangi Kumari", + "date": "2025-04-10T07:12:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/736362e843f2e2029cfafab74b82c86c350ff6ab" + }, + { + "sha": "9b74510c6b0b8afdc73f3e77e295c97fe7c5b1aa", + "message": "Merge branch 'update' of https://github.com/juspay/hyperswitch into update", + "author": "Swangi Kumari", + "date": "2025-04-10T07:33:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9b74510c6b0b8afdc73f3e77e295c97fe7c5b1aa" + }, + { + "sha": "56168544c742f4174f0d617aef6040b24ad1d254", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-04-10T07:39:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/56168544c742f4174f0d617aef6040b24ad1d254" + }, + { + "sha": "e3c36ba7b1284bca1d5c1313c2e0d2d937f6b23c", + "message": "refactor: update", + "author": "Swangi Kumari", + "date": "2025-04-10T13:20:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e3c36ba7b1284bca1d5c1313c2e0d2d937f6b23c" + }, + { + "sha": "a0ad2cee28fef33c49d018f352a48f0fe69cb1f9", + "message": "refactor: resolve comments", + "author": "Swangi Kumari", + "date": "2025-04-11T13:08:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a0ad2cee28fef33c49d018f352a48f0fe69cb1f9" + }, + { + "sha": "ef16a60a9f896fd70d5f8e521cfc771a1bcedcf4", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-04-11T13:14:41+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ef16a60a9f896fd70d5f8e521cfc771a1bcedcf4" + }, + { + "sha": "52127fc079b683af9153caf4bcbcd6bd5c6950b7", + "message": "refactor: mintilfy", + "author": "Swangi Kumari", + "date": "2025-04-11T13:43:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/52127fc079b683af9153caf4bcbcd6bd5c6950b7" + }, + { + "sha": "dd0a7407fa6d52fd86c4fc81d1b87aef516b268c", + "message": "Merge branch 'update' of https://github.com/juspay/hyperswitch into update", + "author": "Swangi Kumari", + "date": "2025-04-11T13:43:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/dd0a7407fa6d52fd86c4fc81d1b87aef516b268c" + }, + { + "sha": "4b518e480026669770e121d6b3d7af9eb1cd3b2e", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-04-11T13:50:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4b518e480026669770e121d6b3d7af9eb1cd3b2e" + }, + { + "sha": "1df4d4f19b60ec7b718196e38c2610817a153caf", + "message": "refactor: resolve comments", + "author": "Swangi Kumari", + "date": "2025-04-12T07:24:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1df4d4f19b60ec7b718196e38c2610817a153caf" + }, + { + "sha": "12565242a102ec88afa56b14a45f51d6ffd0996f", + "message": "Merge branch 'update' of https://github.com/juspay/hyperswitch into update", + "author": "Swangi Kumari", + "date": "2025-04-12T07:24:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/12565242a102ec88afa56b14a45f51d6ffd0996f" + }, + { + "sha": "c1fd201bb5ebee651fb5df9bbe5826ac5012df96", + "message": "refactor: resolve comments", + "author": "Swangi Kumari", + "date": "2025-04-14T17:08:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c1fd201bb5ebee651fb5df9bbe5826ac5012df96" + }, + { + "sha": "4ec063d0df36984bf383aa91a11616e2ea90e91d", + "message": "refactor: change type", + "author": "Swangi Kumari", + "date": "2025-04-14T17:33:25+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4ec063d0df36984bf383aa91a11616e2ea90e91d" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7954.json b/prs/pr_7954.json new file mode 100644 index 0000000000000000000000000000000000000000..053e86725e062b17926e18fcc176ac3402f00621 --- /dev/null +++ b/prs/pr_7954.json @@ -0,0 +1,20 @@ +{ + "number": 7954, + "title": "fix(payment_methods): Re-revert changes done in `pr#7866` by `pr#7882`", + "description": "## Type of Change\r\n\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\r\nContext\r\nhttps://github.com/juspay/hyperswitch/pull/7882 accidentally reverted changes made in https://github.com/juspay/hyperswitch/pull/7866, which was a merchant critical PR.\r\n\r\nReason:\r\n- This might have occured due to incorrect resolution of merge conflicts in [this PR](https://github.com/juspay/hyperswitch/pull/7882)\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\n\r\n### Fixes #7952 \r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n\r\n- Create MA and an MCA with wallets\r\n- Create a payment and Save one wallet (eg: Paypal)\r\n- Create a new payment intent\r\n- List the Merchant PML again, Paypal would still be there\r\n##### cURL\r\n```bash\r\ncurl --location 'http://localhost:8080/account/payment_methods?client_secret={{client_secret}}' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: {{publishable_key}}'\r\n```\r\n##### Response\r\n\r\n```json\r\n{\r\n \"redirect_url\": null,\r\n \"currency\": \"USD\",\r\n \"payment_methods\": [\r\n {\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"paypal\",\r\n \"payment_experience\": [\r\n {\r\n \"payment_experience_type\": \"invoke_sdk_client\",\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n },\r\n {\r\n \"payment_experience_type\": \"redirect_to_url\",\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n }\r\n ],\r\n \"card_networks\": null,\r\n \"bank_names\": null,\r\n \"bank_debits\": null,\r\n \"bank_transfers\": null,\r\n \"required_fields\": {\r\n \"shipping.address.city\": {\r\n \"required_field\": \"shipping.address.city\",\r\n \"display_name\": \"city\",\r\n \"field_type\": \"user_shipping_address_city\",\r\n \"value\": \"San Fransico\"\r\n },\r\n \"shipping.address.first_name\": {\r\n \"required_field\": \"shipping.address.first_name\",\r\n \"display_name\": \"shipping_first_name\",\r\n \"field_type\": \"user_shipping_name\",\r\n \"value\": \"joseph\"\r\n },\r\n \"shipping.address.state\": {\r\n \"required_field\": \"shipping.address.state\",\r\n \"display_name\": \"state\",\r\n \"field_type\": \"user_shipping_address_state\",\r\n \"value\": \"California\"\r\n },\r\n \"shipping.address.country\": {\r\n \"required_field\": \"shipping.address.country\",\r\n \"display_name\": \"country\",\r\n \"field_type\": {\r\n \"user_shipping_address_country\": {\r\n \"options\": [\r\n \"ALL\"\r\n ]\r\n }\r\n },\r\n \"value\": \"US\"\r\n },\r\n \"shipping.address.line1\": {\r\n \"required_field\": \"shipping.address.line1\",\r\n \"display_name\": \"line1\",\r\n \"field_type\": \"user_shipping_address_line1\",\r\n \"value\": \"1467\"\r\n },\r\n \"shipping.address.zip\": {\r\n \"required_field\": \"shipping.address.zip\",\r\n \"display_name\": \"zip\",\r\n \"field_type\": \"user_shipping_address_pincode\",\r\n \"value\": \"94122\"\r\n },\r\n \"shipping.address.last_name\": {\r\n \"required_field\": \"shipping.address.last_name\",\r\n \"display_name\": \"shipping_last_name\",\r\n \"field_type\": \"user_shipping_name\",\r\n \"value\": \"Doe\"\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 \"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 {\r\n \"card_network\": \"Discover\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"Mastercard\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"Interac\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"Visa\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"DinersClub\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"UnionPay\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"JCB\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"CartesBancaires\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"AmericanExpress\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n }\r\n ],\r\n \"bank_names\": null,\r\n \"bank_debits\": null,\r\n \"bank_transfers\": null,\r\n \"required_fields\": {\r\n \"payment_method_data.card.card_exp_year\": {\r\n \"required_field\": \"payment_method_data.card.card_exp_year\",\r\n \"display_name\": \"card_exp_year\",\r\n \"field_type\": \"user_card_expiry_year\",\r\n \"value\": null\r\n },\r\n \"payment_method_data.card.card_exp_month\": {\r\n \"required_field\": \"payment_method_data.card.card_exp_month\",\r\n \"display_name\": \"card_exp_month\",\r\n \"field_type\": \"user_card_expiry_month\",\r\n \"value\": null\r\n },\r\n \"payment_method_data.card.card_number\": {\r\n \"required_field\": \"payment_method_data.card.card_number\",\r\n \"display_name\": \"card_number\",\r\n \"field_type\": \"user_card_number\",\r\n \"value\": null\r\n },\r\n \"payment_method_data.card.card_cvc\": {\r\n \"required_field\": \"payment_method_data.card.card_cvc\",\r\n \"display_name\": \"card_cvc\",\r\n \"field_type\": \"user_card_cvc\",\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\": \"debit\",\r\n \"payment_experience\": null,\r\n \"card_networks\": [\r\n {\r\n \"card_network\": \"JCB\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"Mastercard\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"UnionPay\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"Discover\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"CartesBancaires\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"DinersClub\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"Visa\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"Interac\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n },\r\n {\r\n \"card_network\": \"AmericanExpress\",\r\n \"surcharge_details\": null,\r\n \"eligible_connectors\": [\r\n \"paypal\"\r\n ]\r\n }\r\n ],\r\n \"bank_names\": null,\r\n \"bank_debits\": null,\r\n \"bank_transfers\": null,\r\n \"required_fields\": {\r\n \"payment_method_data.card.card_exp_year\": {\r\n \"required_field\": \"payment_method_data.card.card_exp_year\",\r\n \"display_name\": \"card_exp_year\",\r\n \"field_type\": \"user_card_expiry_year\",\r\n \"value\": null\r\n },\r\n \"payment_method_data.card.card_exp_month\": {\r\n \"required_field\": \"payment_method_data.card.card_exp_month\",\r\n \"display_name\": \"card_exp_month\",\r\n \"field_type\": \"user_card_expiry_month\",\r\n \"value\": null\r\n },\r\n \"payment_method_data.card.card_number\": {\r\n \"required_field\": \"payment_method_data.card.card_number\",\r\n \"display_name\": \"card_number\",\r\n \"field_type\": \"user_card_number\",\r\n \"value\": null\r\n },\r\n \"payment_method_data.card.card_cvc\": {\r\n \"required_field\": \"payment_method_data.card.card_cvc\",\r\n \"display_name\": \"card_cvc\",\r\n \"field_type\": \"user_card_cvc\",\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\": \"standard\",\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## Checklist\r\n\r\n\r\n- [x] 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", + "author": "maverox", + "created_at": "2025-05-05T09:22:23+00:00", + "merged_at": "2025-05-05T12:58:42+00:00", + "base_branch": "main", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/7954", + "commits": [ + { + "sha": "74944b420ea4674f5b0e9bc9b32bd23d6b45d6b8", + "message": "fix(payment_methods): re-revert changes made by pr#7882", + "author": "uzair khan", + "date": "2025-05-05T09:14:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/74944b420ea4674f5b0e9bc9b32bd23d6b45d6b8" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7959.json b/prs/pr_7959.json new file mode 100644 index 0000000000000000000000000000000000000000..91d32da1cd30e4fc8a0ecac4a535d3f8145adeb2 --- /dev/null +++ b/prs/pr_7959.json @@ -0,0 +1,20 @@ +{ + "number": 7959, + "title": "fix(connector): [Novalnet] allow debit card MITs", + "description": "## Type of Change\r\n\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/7956\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\n\r\n\r\n## Motivation and Context\r\nFixes the bug which allows debit card mandate creation, but does not allow MITs for the same payment method entry.\r\n\r\n## How did you test it?\r\nSame as described in https://github.com/juspay/hyperswitch/pull/7956\r\n\r\n## Checklist\r\n\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", + "author": "kashif-m", + "created_at": "2025-05-05T11:40:02+00:00", + "merged_at": "2025-05-05T12:34:09+00:00", + "base_branch": "hotfix-2025.05.05.0", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/7959", + "commits": [ + { + "sha": "dcecce64886a4307ee12bed3ed07e1ee4365a043", + "message": "fix(connector): [Novalnet] allow debit card MITs (#7956)\n\n(cherry picked from commit 18142a4fdb1f81e4b493067b669a68576bac5d08)", + "author": "Kashif", + "date": "2025-05-05T10:53:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/dcecce64886a4307ee12bed3ed07e1ee4365a043" + } + ] +} \ No newline at end of file diff --git a/prs/pr_7998.json b/prs/pr_7998.json new file mode 100644 index 0000000000000000000000000000000000000000..d8dd539c837025f2b821d8da210e057f98e1e1f2 --- /dev/null +++ b/prs/pr_7998.json @@ -0,0 +1,64 @@ +{ + "number": 7998, + "title": "feat(core): add all_keys_required in confirm and psync payload", + "description": "## Type of Change\r\n\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\ncloses this [issue](https://github.com/juspay/hyperswitch/issues/7997)\r\n\r\n## Description\r\n\r\n\r\nAdded all_keys_required in confirm and psync payload. If all_keys_required is passed as true, we will send the whole connector 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\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\nPostman Test\r\n\r\nConfirm call (with `all_keys_required` passed as `true`)\r\n\r\nRequest (taking AuthorizeDotNet as connector)\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_MsmPKoZNKAk0zpoBuA5Z/confirm' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'all_keys_required: true' \\\r\n--header 'api-key: \u2022\u2022\u2022\u2022\u2022\u2022' \\\r\n--data '\r\n{\r\n \"connector\": [\"authorizedotnet\"],\r\n \"all_keys_required\": true,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"370000000000002\",\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"123\"\r\n }\r\n }\r\n}\r\n'\r\n```\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_UHNVQh54xvuv97CixQVF\",\r\n \"merchant_id\": \"merchant_1746796056\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 35308,\r\n \"net_amount\": 35308,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 35308,\r\n \"connector\": \"authorizedotnet\",\r\n \"client_secret\": \"pay_UHNVQh54xvuv97CixQVF_secret_aUvQnXDaU6Op4uFuWHC1\",\r\n \"created\": \"2025-05-09T13:08:19.469Z\",\r\n \"currency\": \"USD\",\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\": 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\": \"0000\",\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\": \"491761\",\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_xZJ3bAv0dVvWBWpuYRga\",\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\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": null,\r\n \"authentication_type\": \"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\": \"80040892370\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"80040892370\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_NLQkgFo4oL87ujOInwp1\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_Bjt7NDYXrZmazh9Tdavu\",\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-09T13:23:19.469Z\",\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-05-09T13:18:33.486Z\",\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 \"whole_connector_response\": \"{\\\"transactionResponse\\\":{\\\"responseCode\\\":\\\"1\\\",\\\"authCode\\\":\\\"140GJ4\\\",\\\"avsResultCode\\\":\\\"Y\\\",\\\"cvvResultCode\\\":\\\"P\\\",\\\"cavvResultCode\\\":\\\"2\\\",\\\"transId\\\":\\\"80040892370\\\",\\\"refTransID\\\":\\\"\\\",\\\"transHash\\\":\\\"\\\",\\\"testRequest\\\":\\\"0\\\",\\\"accountNumber\\\":\\\"XXXX0000\\\",\\\"accountType\\\":\\\"Visa\\\",\\\"messages\\\":[{\\\"code\\\":\\\"1\\\",\\\"description\\\":\\\"This transaction has been approved.\\\"}],\\\"transHashSha2\\\":\\\"EDD14C10BDDBD427B768E42099F1AF0D089221FA13F9CA55D8B6323C8449585476AFEE55B4A054EE7FD26F73D4B85EF147B0552F0DB4EE17F4F60F8FB16CA2B9\\\",\\\"SupplementalDataQualificationIndicator\\\":0,\\\"networkTransId\\\":\\\"Z9TSL0XISGMU542D7Z5TF0A\\\"},\\\"refId\\\":\\\"\\\",\\\"messages\\\":{\\\"resultCode\\\":\\\"Ok\\\",\\\"message\\\":[{\\\"code\\\":\\\"I00001\\\",\\\"text\\\":\\\"Successful.\\\"}]}}\"\r\n}\r\n```\r\n\r\nPsync:\r\n\r\nURL:\r\n\r\n```\r\n{{baseUrl}}/payments/:id?expand_captures=true&expand_attempts=true&all_keys_required=true\r\n```\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_UHNVQh54xvuv97CixQVF\",\r\n \"merchant_id\": \"merchant_1746796056\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 35308,\r\n \"net_amount\": 35308,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 35308,\r\n \"connector\": \"authorizedotnet\",\r\n \"client_secret\": \"pay_UHNVQh54xvuv97CixQVF_secret_aUvQnXDaU6Op4uFuWHC1\",\r\n \"created\": \"2025-05-09T13:08:19.469Z\",\r\n \"currency\": \"USD\",\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\": null,\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"attempts\": [\r\n {\r\n \"attempt_id\": \"pay_UHNVQh54xvuv97CixQVF_1\",\r\n \"status\": \"charged\",\r\n \"amount\": 35308,\r\n \"order_tax_amount\": null,\r\n \"currency\": \"USD\",\r\n \"connector\": \"authorizedotnet\",\r\n \"error_message\": null,\r\n \"payment_method\": \"card\",\r\n \"connector_transaction_id\": \"80040892370\",\r\n \"capture_method\": \"automatic\",\r\n \"authentication_type\": \"three_ds\",\r\n \"created_at\": \"2025-05-09T13:08:19.470Z\",\r\n \"modified_at\": \"2025-05-09T13:18:33.485Z\",\r\n \"cancellation_reason\": null,\r\n \"mandate_id\": null,\r\n \"error_code\": null,\r\n \"payment_token\": \"token_xZJ3bAv0dVvWBWpuYRga\",\r\n \"connector_metadata\": {\r\n \"creditCard\": {\r\n \"cardNumber\": \"XXXX0000\",\r\n \"expirationDate\": \"XXXX\"\r\n }\r\n },\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"reference_id\": \"80040892370\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"client_source\": null,\r\n \"client_version\": null\r\n }\r\n ],\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\": \"0000\",\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\": \"491761\",\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_xZJ3bAv0dVvWBWpuYRga\",\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\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": null,\r\n \"authentication_type\": \"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\": \"80040892370\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"80040892370\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_NLQkgFo4oL87ujOInwp1\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_Bjt7NDYXrZmazh9Tdavu\",\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-09T13:23:19.469Z\",\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-05-09T13:19:32.525Z\",\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 \"whole_connector_response\": \"{\\\"transaction\\\":{\\\"transId\\\":\\\"80040892370\\\",\\\"submitTimeUTC\\\":\\\"2025-05-09T13:18:33.043Z\\\",\\\"submitTimeLocal\\\":\\\"2025-05-09T06:18:33.043\\\",\\\"transactionType\\\":\\\"authCaptureTransaction\\\",\\\"transactionStatus\\\":\\\"capturedPendingSettlement\\\",\\\"responseCode\\\":1,\\\"responseReasonCode\\\":1,\\\"responseReasonDescription\\\":\\\"Approval\\\",\\\"authCode\\\":\\\"140GJ4\\\",\\\"AVSResponse\\\":\\\"Y\\\",\\\"cardCodeResponse\\\":\\\"P\\\",\\\"order\\\":{\\\"description\\\":\\\"pay_UHNVQh54xvuv97CixQVF_1\\\",\\\"discountAmount\\\":0.0,\\\"taxIsAfterDiscount\\\":false},\\\"authAmount\\\":353.08,\\\"settleAmount\\\":353.08,\\\"taxExempt\\\":false,\\\"payment\\\":{\\\"creditCard\\\":{\\\"cardNumber\\\":\\\"XXXX0000\\\",\\\"expirationDate\\\":\\\"XXXX\\\",\\\"cardType\\\":\\\"Visa\\\"}},\\\"billTo\\\":{\\\"firstName\\\":\\\"joseph\\\",\\\"lastName\\\":\\\"Doe\\\",\\\"address\\\":\\\"1467\\\",\\\"city\\\":\\\"San Fransico\\\",\\\"state\\\":\\\"California\\\",\\\"zip\\\":\\\"94122\\\",\\\"country\\\":\\\"US\\\"},\\\"recurringBilling\\\":false,\\\"customerIP\\\":\\\"110.227.219.118\\\",\\\"product\\\":\\\"Card Not Present\\\",\\\"marketType\\\":\\\"eCommerce\\\",\\\"networkTransId\\\":\\\"Z9TSL0XISGMU542D7Z5TF0A\\\",\\\"authorizationIndicator\\\":\\\"final\\\"},\\\"messages\\\":{\\\"resultCode\\\":\\\"Ok\\\",\\\"message\\\":[{\\\"code\\\":\\\"I00001\\\",\\\"text\\\":\\\"Successful.\\\"}]}}\"\r\n}\r\n```\r\n\r\n## Checklist\r\n\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", + "author": "Anurag-05-prog", + "created_at": "2025-05-09T13:20:44+00:00", + "merged_at": "2025-05-19T14:00:36+00:00", + "base_branch": "main", + "labels": [ + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/7998", + "commits": [ + { + "sha": "d680cf5ad698f27d28cd352f6bae24056b094c90", + "message": "feat(core): add all_keys_required in confirm and psync payload", + "author": "Anurag Singh", + "date": "2025-05-09T13:00:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d680cf5ad698f27d28cd352f6bae24056b094c90" + }, + { + "sha": "66ee3acff5b8d9ace07d5b1ef8011c92c5071154", + "message": "Merge remote-tracking branch 'origin/main' into whole-connector-response", + "author": "Anurag Singh", + "date": "2025-05-10T15:55:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/66ee3acff5b8d9ace07d5b1ef8011c92c5071154" + }, + { + "sha": "a3fdcd811a9045770d4a5e05205e51260cb86c1a", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-05-10T16:01:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a3fdcd811a9045770d4a5e05205e51260cb86c1a" + }, + { + "sha": "31a31a635b2ccc737de336f85794b80337eac5bb", + "message": "fix: just clippy_v2 errors", + "author": "Anurag Singh", + "date": "2025-05-10T19:00:17+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/31a31a635b2ccc737de336f85794b80337eac5bb" + }, + { + "sha": "ae2e6a20b5220d18d62da11aee4f90c85b589bc0", + "message": "fix: resolve just clippy_v2 errors", + "author": "Anurag Singh", + "date": "2025-05-12T11:40:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ae2e6a20b5220d18d62da11aee4f90c85b589bc0" + }, + { + "sha": "36a70aec6244ad2a9806f96b77ba2c55306bf7a2", + "message": "Merge remote-tracking branch 'origin/main' into whole-connector-response", + "author": "Anurag Singh", + "date": "2025-05-19T09:04:09+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/36a70aec6244ad2a9806f96b77ba2c55306bf7a2" + }, + { + "sha": "ddb56976e24ac015bea9237d3625ab7202b7f51e", + "message": "Merge remote-tracking branch 'origin/main' into whole-connector-response", + "author": "Anurag Singh", + "date": "2025-05-19T11:23:18+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ddb56976e24ac015bea9237d3625ab7202b7f51e" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8028.json b/prs/pr_8028.json new file mode 100644 index 0000000000000000000000000000000000000000..4e24884a64135e84aae88c27c060c541e14d6eff --- /dev/null +++ b/prs/pr_8028.json @@ -0,0 +1,23 @@ +{ + "number": 8028, + "title": "chore: Move async-bb8-diesel crate to crates.io version", + "description": "## Type of Change\r\n\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [x] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n\r\nChanged `async-bb8-diesel crate from custom [fork](https://github.com/jarnura/async-bb8-diesel) to crates.io [version](https://github.com/oxidecomputer/async-bb8-diesel)\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\n\r\n\r\n## Motivation and Context\r\n\r\nCloses #8026 \r\n\r\n## How did you test it?\r\n\r\n\r\nRan clippy and tested multiple endpoints in the `router` binary\r\n\r\n## Checklist\r\n\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", + "author": "AnuthaDev", + "created_at": "2025-05-14T10:53:34+00:00", + "merged_at": "2025-05-15T12:05:55+00:00", + "base_branch": "main", + "labels": [ + "A-dependencies", + "A-framework" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8028", + "commits": [ + { + "sha": "22e15212ef712b7bd0c4def64ef0a8cd5cb98646", + "message": "chore: Move async-bb8-diesel crate to crates.io version", + "author": "Anurag Thakur", + "date": "2025-05-14T08:52:17+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/22e15212ef712b7bd0c4def64ef0a8cd5cb98646" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8132.json b/prs/pr_8132.json new file mode 100644 index 0000000000000000000000000000000000000000..1ac682b29d48be4c19172c6fa3761685055da382 --- /dev/null +++ b/prs/pr_8132.json @@ -0,0 +1,96 @@ +{ + "number": 8132, + "title": "feat(router): add three_ds_decision_rule support in routing apis", + "description": "## Type of Change\r\n\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\r\nadd three_ds_decision_rule support in routing apis\r\n\r\nThis pull request introduces support for a new `ThreeDsDecisionRule` routing algorithm and a corresponding `ThreeDsAuthentication` transaction type, while also implementing validation and error handling for these additions. The changes span multiple files and include updates to enums, structs, and core routing logic.\r\n\r\n### Additions to Routing Algorithm and Transaction Type\r\n\r\n* Added `ThreeDsDecisionRule` to `RoutingAlgorithmKind` and `RoutingAlgorithm`, along with a validation method to determine if connectors should be validated for this algorithm. (`crates/api_models/src/routing.rs`, [[1]](diffhunk://#diff-6eb6e93a94555e904f304999acc96ab6125769971da9ec3dcbb30d5912b4fc45R306) [[2]](diffhunk://#diff-6eb6e93a94555e904f304999acc96ab6125769971da9ec3dcbb30d5912b4fc45R329-R338)\r\n* Introduced `ThreeDsAuthentication` to `TransactionType` with a helper method `is_three_ds_authentication` for type checks. (`crates/common_enums/src/enums.rs`, [crates/common_enums/src/enums.rsR7232-R7238](diffhunk://#diff-955707712c9bdbbd986dc29a9dd001579001580cf0a65e286ac8a2a25a2a49f2R7232-R7238))\r\n\r\n### Updates to Routing Logic\r\n\r\n* Modified routing-related functions to handle the new `ThreeDsDecisionRule` algorithm and `ThreeDsAuthentication` transaction type, including validation and error handling. (`crates/router/src/core/routing.rs`, [[1]](diffhunk://#diff-d5e8699013fe33212f63d552ecebf1c6a9ab1c0f3aa36662702a7426bcb8cee2L148-R156) [[2]](diffhunk://#diff-d5e8699013fe33212f63d552ecebf1c6a9ab1c0f3aa36662702a7426bcb8cee2R331) [[3]](diffhunk://#diff-d5e8699013fe33212f63d552ecebf1c6a9ab1c0f3aa36662702a7426bcb8cee2L852-R855)\r\n* Updated routing cache logic to exclude `ThreeDsAuthentication` from cache invalidation. (`crates/router/src/core/routing/helpers.rs`, [crates/router/src/core/routing/helpers.rsR269-R284](diffhunk://#diff-ea48d33e52b2cb7edbbba1d236b55f946fdb2c178f8c76f4226818b3630c4658R269-R284))\r\n\r\n### Error Handling Enhancements\r\n\r\n* Added new error types, such as `InvalidTransactionType` and `InvalidRoutingAlgorithmStructure`, to manage unsupported scenarios. (`crates/router/src/core/errors.rs`, [crates/router/src/core/errors.rsR387-R388](diffhunk://#diff-8df7200d52ca866d681cea17f2bd2387674aa34b63eff8d46eb8a7ba8b1d6738R387-R388))\r\n\r\n### Struct and Enum Extensions\r\n\r\n* Extended routing-related structs to include `transaction_type` as an optional field for better configurability. (`crates/api_models/src/routing.rs`, [[1]](diffhunk://#diff-6eb6e93a94555e904f304999acc96ab6125769971da9ec3dcbb30d5912b4fc45R66) [[2]](diffhunk://#diff-6eb6e93a94555e904f304999acc96ab6125769971da9ec3dcbb30d5912b4fc45R80-R91)\r\n* Updated `RoutingAlgorithmSerde` to support serialization and deserialization of the `ThreeDsDecisionRule` algorithm. (`crates/api_models/src/routing.rs`, [crates/api_models/src/routing.rsR348](diffhunk://#diff-6eb6e93a94555e904f304999acc96ab6125769971da9ec3dcbb30d5912b4fc45R348))\r\n\r\n### Validation and Helper Updates\r\n\r\n* Enhanced validation logic to handle the new algorithm and transaction type, ensuring unsupported configurations are rejected. (`crates/router/src/core/routing/helpers.rs`, [crates/router/src/core/routing/helpers.rsR568-R572](diffhunk://#diff-ea48d33e52b2cb7edbbba1d236b55f946fdb2c178f8c76f4226818b3630c4658R568-R572))\r\n* Added a default configuration key for `ThreeDsAuthentication` in helper functions. (`crates/router/src/core/routing/helpers.rs`, [crates/router/src/core/routing/helpers.rsR594-R596](diffhunk://#diff-ea48d33e52b2cb7edbbba1d236b55f946fdb2c178f8c76f4226818b3630c4658R594-R596))\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n\r\nTested Manually\r\n1. Static routing (rule based) sanity \r\n\r\n2. Create Three DS Deicison rule using routing create config api\r\n\r\n**CURL**\r\n```\r\ncurl --location '{{BASE_URL}}/routing' \\\r\n--header 'api-key: {{API_KEY}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--data '{\r\n \"name\": \"Three DS Decision Rule for exemption\",\r\n \"description\": \"This is a three_ds_decision_rule\",\r\n \"profile_id\": \"pro_grHb38qPPHB61ZxZQL4f\",\r\n \"transaction_type\": \"three_ds_authentication\",\r\n \"algorithm\": {\r\n \"type\": \"three_ds_decision_rule\",\r\n \"data\": {\r\n \"defaultSelection\": {\r\n \"decision\": \"no_three_ds\"\r\n },\r\n \"rules\": [\r\n {\r\n \"name\": \"rule_1\",\r\n \"connectorSelection\": {\r\n \"decision\": \"challenge_requested\"\r\n },\r\n \"statements\": [\r\n {\r\n \"condition\": [\r\n {\r\n \"lhs\": \"issuer_country\",\r\n \"comparison\": \"equal\",\r\n \"value\": {\r\n \"type\": \"enum_variant\",\r\n \"value\": \"Switzerland\"\r\n },\r\n \"metadata\": {}\r\n },\r\n {\r\n \"lhs\": \"acquirer_country\",\r\n \"comparison\": \"equal\",\r\n \"value\": {\r\n \"type\": \"enum_variant\",\r\n \"value\": \"Switzerland\"\r\n },\r\n \"metadata\": {}\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\": {}\r\n }\r\n }\r\n}'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"id\": \"routing_apyFo6xRDVwBgIM2xzqh\",\r\n \"profile_id\": \"pro_grHb38qPPHB61ZxZQL4f\",\r\n \"name\": \"Three DS Decision Rule for exemption\",\r\n \"kind\": \"three_ds_decision_rule\",\r\n \"description\": \"This is a three_ds_decision_rule\",\r\n \"created_at\": 1748119944,\r\n \"modified_at\": 1748119944,\r\n \"algorithm_for\": \"three_ds_authentication\",\r\n \"decision_engine_routing_id\": null\r\n}\r\n```\r\n\r\n3. Activate the Three DS decision rule using activate api\r\n\r\n**CURL**\r\n```\r\ncurl --location '{{BASE_URL}}/routing/routing_apyFo6xRDVwBgIM2xzqh/activate' \\\r\n--header 'api-key: {{API_KEY}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--data '{\r\n \"transaction_type\": \"three_ds_authentication\"\r\n}'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"id\": \"routing_apyFo6xRDVwBgIM2xzqh\",\r\n \"profile_id\": \"pro_grHb38qPPHB61ZxZQL4f\",\r\n \"name\": \"Three DS Decision Rule for exemption\",\r\n \"kind\": \"three_ds_decision_rule\",\r\n \"description\": \"This is a three_ds_decision_rule\",\r\n \"created_at\": 1748119944,\r\n \"modified_at\": 1748119944,\r\n \"algorithm_for\": \"three_ds_authentication\",\r\n \"decision_engine_routing_id\": null\r\n}\r\n```\r\n\r\nBusiness Profile DB to verify the value of three_ds_decision_algorithm\r\n\r\n\"image\"\r\n\r\n## Checklist\r\n\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", + "author": "sai-harsha-vardhan", + "created_at": "2025-05-25T10:55:31+00:00", + "merged_at": "2025-05-30T14:04:43+00:00", + "base_branch": "main", + "labels": [ + "A-core", + "C-feature", + "M-database-changes", + "M-api-contract-changes", + "A-routing" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8132", + "commits": [ + { + "sha": "05942dcc4a4ca7715515895f83c815eab6d49afb", + "message": "feat: add three_ds_decision_rule_algorithm to the domain and diesel models of business_profile", + "author": "sai-harsha-vardhan", + "date": "2025-05-21T19:21:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/05942dcc4a4ca7715515895f83c815eab6d49afb" + }, + { + "sha": "a6c55538570eafd0070c9398ba96113f32856aeb", + "message": "fix: migrations for v2", + "author": "sai-harsha-vardhan", + "date": "2025-05-21T19:46:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a6c55538570eafd0070c9398ba96113f32856aeb" + }, + { + "sha": "e2b28bdadea9aecc52d8b7489f167ae29e026fc7", + "message": "feat: add three_ds_decision_rule support in routing apis", + "author": "sai-harsha-vardhan", + "date": "2025-05-25T10:51:42+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e2b28bdadea9aecc52d8b7489f167ae29e026fc7" + }, + { + "sha": "4b4bcb00877bb68d2bd6b81382febbc1472c1c5b", + "message": "chore: resolve conflicts", + "author": "sai-harsha-vardhan", + "date": "2025-05-25T11:11:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4b4bcb00877bb68d2bd6b81382febbc1472c1c5b" + }, + { + "sha": "6b95782b1b06db5292ec1876394dc69db12d14ea", + "message": "fix: clippy v2 and openapi spec", + "author": "sai-harsha-vardhan", + "date": "2025-05-26T07:39:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6b95782b1b06db5292ec1876394dc69db12d14ea" + }, + { + "sha": "ff41603e7a8197c85b6dc9b53f6ee81bd5f0c2ac", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-05-26T07:45:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ff41603e7a8197c85b6dc9b53f6ee81bd5f0c2ac" + }, + { + "sha": "ef0e148dad65b44ea61458287f6e6973737656f5", + "message": "fix: openapi spec", + "author": "sai-harsha-vardhan", + "date": "2025-05-26T08:39:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ef0e148dad65b44ea61458287f6e6973737656f5" + }, + { + "sha": "06007cd9bdb742cea158497ee5dfa90981d86927", + "message": "chore: resolve conflicts", + "author": "sai-harsha-vardhan", + "date": "2025-05-26T08:40:38+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/06007cd9bdb742cea158497ee5dfa90981d86927" + }, + { + "sha": "9f7270b4c91299e3cd3d210893c0022fb5f173cc", + "message": "Merge branch 'main' into add-three-ds-decision-rule-in-routing-apis", + "author": "Sai Harsha Vardhan", + "date": "2025-05-26T09:56:03+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9f7270b4c91299e3cd3d210893c0022fb5f173cc" + }, + { + "sha": "bc747a77336ffa70a014e68226a09f82989f9cb0", + "message": "fix: conflicts", + "author": "sai-harsha-vardhan", + "date": "2025-05-28T12:26:41+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/bc747a77336ffa70a014e68226a09f82989f9cb0" + }, + { + "sha": "f46900239eeb4685bc25255652482c6411a7d9ac", + "message": "Merge branch 'main' into add-three-ds-decision-rule-in-routing-apis", + "author": "Sai Harsha Vardhan", + "date": "2025-05-28T15:19:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f46900239eeb4685bc25255652482c6411a7d9ac" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8141.json b/prs/pr_8141.json new file mode 100644 index 0000000000000000000000000000000000000000..af6931ad9dae7478b5dcf1ca40fbdf05826e5d40 --- /dev/null +++ b/prs/pr_8141.json @@ -0,0 +1,29 @@ +{ + "number": 8141, + "title": "refactor(debit_routing): Handle missing merchant_business_country by defaulting to US", + "description": "## Type of Change\r\n\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [x] Enhancement\r\n- [x] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n\r\nIf the business profile does not have a country set, we cannot perform debit routing, because the merchant_business_country will be treated as the acquirer_country, which is used to determine whether a transaction is local or global in the open router. For now, since debit routing is only implemented for USD, we can safely assume the acquirer_country is US if not provided by the merchant.\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\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-> Update the business profile to set is_debit_routing_enabled to true whereas the merchant_business_country will still be null.\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1748264799/business_profile/pro_15JiSFiM9m6TM3yuxgMI' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: ' \\\r\n--data '{\r\n \"is_debit_routing_enabled\": true\r\n}'\r\n```\r\n```\r\n{\r\n \"merchant_id\": \"merchant_1748264799\",\r\n \"profile_id\": \"pro_15JiSFiM9m6TM3yuxgMI\",\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\": \"5l7IJEsRsndG8yfoTGMsbnnxXAfRwjIMYBo2wbA1MMcGekcbTNn9tH3KueaXAjQJ\",\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 },\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\": true,\r\n \"merchant_business_country\": null,\r\n \"is_pre_network_tokenization_enabled\": false\r\n}\r\n```\r\n-> Make a payment and it should go through debit routing flow\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 'x-tenant-id: hyperswitch' \\\r\n--header 'api-key: ' \\\r\n--data-raw '{\r\n \"amount\": 100,\r\n \"amount_to_capture\": 100,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"setup_future_usage\": \"on_session\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\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\": \"no_three_ds\",\r\n \"customer_id\": \"cu_1747729092\",\r\n \"return_url\": \"http://127.0.0.1:4040\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"debit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4400002000000004\",\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 \"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 \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"PiX\",\r\n \"last_name\": \"ss\"\r\n },\r\n \"email\": \"raj@gmail.com\"\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 \"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 \"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{\r\n \"payment_id\": \"pay_bUuuAvxcM8GZyiXUK01M\",\r\n \"merchant_id\": \"merchant_1748264799\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 100,\r\n \"net_amount\": 100,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 100,\r\n \"connector\": \"adyen\",\r\n \"client_secret\": \"pay_bUuuAvxcM8GZyiXUK01M_secret_kpTGYz66ll5bYgWZdfzK\",\r\n \"created\": \"2025-05-26T13:09:15.219Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cu_1747729092\",\r\n \"customer\": {\r\n \"id\": \"cu_1747729092\",\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\": \"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\": \"0004\",\r\n \"card_type\": \"DEBIT\",\r\n \"card_network\": \"Accel\",\r\n \"card_issuer\": \"Wells Fargo Bank\",\r\n \"card_issuing_country\": \"UNITEDSTATES\",\r\n \"card_isin\": \"440000\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\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\": {\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\",\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\": \"ss\"\r\n },\r\n \"phone\": null,\r\n \"email\": \"raj@gmail.com\"\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\": \"http://127.0.0.1:4040/\",\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\": \"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\": {\r\n \"customer_id\": \"cu_1747729092\",\r\n \"created_at\": 1748264955,\r\n \"expires\": 1748268555,\r\n \"secret\": \"epk_4f3cb7ba24a7432e9524c958ba3e167c\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"K7ZPG2FFPZBK6R65\",\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\": \"pay_bUuuAvxcM8GZyiXUK01M_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_15JiSFiM9m6TM3yuxgMI\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_2VuIwuvgf5y58mK3873Q\",\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-26T13:24:15.219Z\",\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-05-26T13:09:16.661Z\",\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}\r\n```\r\n-> decision engine logs showing `acquirer_country` being considered US by default\r\n\"image\"\r\n\r\n\r\n\r\n## Checklist\r\n\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", + "author": "ShankarSinghC", + "created_at": "2025-05-26T11:30:40+00:00", + "merged_at": "2025-05-28T06:51:44+00:00", + "base_branch": "main", + "labels": [ + "A-routing" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8141", + "commits": [ + { + "sha": "752d9a728bb347c70197c39c242f5d049ecca56e", + "message": "feat(debit_routing): Handle missing merchant_business_country by defaulting to US", + "author": "Shankar Singh C", + "date": "2025-05-26T11:25:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/752d9a728bb347c70197c39c242f5d049ecca56e" + }, + { + "sha": "6b6faccbdc21f15cc1842ac5c0f10bc57165f46c", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-05-26T12:27:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6b6faccbdc21f15cc1842ac5c0f10bc57165f46c" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8155.json b/prs/pr_8155.json new file mode 100644 index 0000000000000000000000000000000000000000..c2d308cd1aed0a70b9be5322b96e4a7fbf288676 --- /dev/null +++ b/prs/pr_8155.json @@ -0,0 +1,247 @@ +{ + "number": 8155, + "title": "feat(authentication): added profile acquirer create module", + "description": "## Type of Change\r\n\r\n- [x] New feature\r\n\r\n## Description\r\n\r\nadded merchant acquirer create and list module\r\n\r\n### Additional Changes\r\n\r\n- [ ] 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\nAdd new field merchant_acquirer_ids in business_profile\r\n\r\nThis pull request introduces support for managing acquirer configurations and profile acquirer entities, including updates to the OpenAPI specification, the Rust codebase, and database schema. The changes enable the creation, storage, and retrieval of acquirer configuration data and profile acquirer entities, which are essential for linking merchant profiles to acquirer accounts.\r\n\r\n### API Enhancements:\r\n* Added a new endpoint `/profile_acquirers` for creating profile acquirers in `api-reference/openapi_spec.json`. Includes request and response schemas (`ProfileAcquirerCreate` and `ProfileAcquirerResponse`). [[1]](diffhunk://#diff-120d5ba664a56f45b6d881ccac78000f991d22e2909b5e45c83602c7dfab27cdR5960-R5999) [[2]](diffhunk://#diff-120d5ba664a56f45b6d881ccac78000f991d22e2909b5e45c83602c7dfab27cdR25396-R25513)\r\n* Defined schemas for `AcquirerConfig` and `AcquirerConfigMap` to describe acquirer configurations. [[1]](diffhunk://#diff-120d5ba664a56f45b6d881ccac78000f991d22e2909b5e45c83602c7dfab27cdR6350-R6406) [[2]](diffhunk://#diff-120d5ba664a56f45b6d881ccac78000f991d22e2909b5e45c83602c7dfab27cdR26036-R26043)\r\n\r\n### Rust Codebase Updates:\r\n* Introduced `ProfileAcquirerCreate` and `ProfileAcquirerResponse` structs in the new `crates/api_models/src/profile_acquirer.rs` file for handling profile acquirer data.\r\n* Added `AcquirerConfig` and `AcquirerConfigMap` structs in `crates/common_types/src/domain.rs` to represent acquirer configuration data.\r\n* Implemented `ProfileAcquirerId` type in `crates/common_utils/src/id_type/profile_acquirer.rs` for unique identification of profile acquirers.\r\n\r\n### Database Schema Changes:\r\n* Updated `business_profile` table to include a new column `acquirer_config_map` for storing acquirer configuration data in JSON format. [[1]](diffhunk://#diff-b3de56db64ac930fe24b6b0acb45282191598a506d20732f70ef00192b4b18d5R231) [[2]](diffhunk://#diff-22fdeee3005db31c44a9d40cd43c5a244e77a74e17d2e227d4c0b376f133f37eR226)\r\n* Modified `Profile` and `ProfileUpdateInternal` structs in `crates/diesel_models/src/business_profile.rs` to include `acquirer_config_map`. [[1]](diffhunk://#diff-9580ab8a5056970f087fa2af0a8de98dae6bf038ade612e3c996b88b23ae6e11R77) [[2]](diffhunk://#diff-9580ab8a5056970f087fa2af0a8de98dae6bf038ade612e3c996b88b23ae6e11R187) [[3]](diffhunk://#diff-9580ab8a5056970f087fa2af0a8de98dae6bf038ade612e3c996b88b23ae6e11R239)\r\n\r\n### Event and Utility Enhancements:\r\n* Added `ProfileAcquirer` as a new event type in `crates/common_utils/src/events.rs`.\r\n* Implemented utility functions for generating and handling `ProfileAcquirerId`. [[1]](diffhunk://#diff-9bbc934a55fcf5282e0b0ba208a3722e9691ee71709d15a5c0d0958759280fa0R256-R262) [[2]](diffhunk://#diff-42f2c04d1e7d6eaf0534968a602f64eb00017fc3799f3426816fd59abae0145cR1-R41)\r\n\r\n## Motivation and Context\r\n\r\nCurrently we donot have a table to store merchant acquirer information, have build an api to insert data for merchant acquirer into business profile table\r\n\r\n## How did you test it?\r\n\r\nCreate a merchant account\r\n\r\nOnce done create merchant_acquirer\r\n\r\nRequest\r\n\r\n```shell\r\ncurl --location 'localhost:8080/profile_acquirer' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: dev_rDKEInoZiJlNIfJPYNuqBMC2EOJjegGylLbzRMDw6kmSxV0FztdYfLcSoWZD6ZsT' \\\r\n--data '{\r\n \"acquirer_assigned_merchant_id\": \"ACQ1xwjnd23456\",\r\n \"merchant_name\": \"Demo Merchant\",\r\n \"merchant_country_code\": \"IN\",\r\n \"network\": \"Visa\",\r\n \"acquirer_bin\": \"400000\",\r\n \"acquirer_ica\": \"ICA98765\",\r\n \"acquirer_fraud_rate\": 0.02,\r\n \"profile_id\": \"pro_AFTXNDSW2mZadl5tEmqd\"\r\n}'\r\n```\r\n\r\nResponse:\r\n\r\n```shell\r\n{\r\n \"profile_acquirer_id\": \"pro_acq_ZlIC3dqlERLvrvLfXCUX\",\r\n \"acquirer_assigned_merchant_id\": \"ACQ1xwjnd23456\",\r\n \"merchant_name\": \"Demo Merchant\",\r\n \"merchant_country_code\": \"IN\",\r\n \"network\": \"Visa\",\r\n \"acquirer_bin\": \"400000\",\r\n \"acquirer_ica\": \"ICA98765\",\r\n \"acquirer_fraud_rate\": 0.02,\r\n \"profile_id\": \"pro_B9IE9uHjgRVKXHp9MSqG\",\r\n \"created_at\": \"2025-05-27T11:43:15.477Z\"\r\n}\r\n```\r\n\r\ntry hitting the api with same sample set\r\n\r\nResponse:shell\r\n\r\n```\r\n{\r\n \"error\": {\r\n \"type\": \"invalid_request\",\r\n \"message\": \"Profile acquirer configuration with id pro_acq_vhDNwqBvqM6BqbCZ8FJa already exists.\",\r\n \"code\": \"IR_38\"\r\n }\r\n}\r\n```\r\nBusiness profile schema details\r\n\r\n```shell\r\n Table \"public.business_profile\"\r\n Column | Type | Collation | Nullable | Default\r\n-------------------------------------------------------+-----------------------------+-----------+----------+-------------------------\r\n profile_id | character varying(64) | | not null |\r\n merchant_id | character varying(64) | | not null |\r\n profile_name | character varying(64) | | not null |\r\n created_at | timestamp without time zone | | not null |\r\n modified_at | timestamp without time zone | | not null |\r\n return_url | text | | |\r\n enable_payment_response_hash | boolean | | not null | true\r\n payment_response_hash_key | character varying(255) | | | NULL::character varying\r\n redirect_to_merchant_with_http_post | boolean | | not null | false\r\n webhook_details | json | | |\r\n metadata | json | | |\r\n routing_algorithm | json | | |\r\n intent_fulfillment_time | bigint | | |\r\n frm_routing_algorithm | jsonb | | |\r\n payout_routing_algorithm | jsonb | | |\r\n is_recon_enabled | boolean | | not null | false\r\n applepay_verified_domains | text[] | | |\r\n payment_link_config | jsonb | | |\r\n session_expiry | bigint | | |\r\n authentication_connector_details | jsonb | | |\r\n payout_link_config | jsonb | | |\r\n is_extended_card_info_enabled | boolean | | | false\r\n extended_card_info_config | jsonb | | |\r\n is_connector_agnostic_mit_enabled | boolean | | | false\r\n use_billing_as_payment_method_billing | boolean | | | true\r\n collect_shipping_details_from_wallet_connector | boolean | | | false\r\n collect_billing_details_from_wallet_connector | boolean | | | false\r\n outgoing_webhook_custom_http_headers | bytea | | |\r\n always_collect_billing_details_from_wallet_connector | boolean | | | false\r\n always_collect_shipping_details_from_wallet_connector | boolean | | | false\r\n tax_connector_id | character varying(64) | | |\r\n is_tax_connector_enabled | boolean | | |\r\n version | \"ApiVersion\" | | not null | 'v1'::\"ApiVersion\"\r\n dynamic_routing_algorithm | json | | |\r\n is_network_tokenization_enabled | boolean | | not null | false\r\n is_auto_retries_enabled | boolean | | |\r\n max_auto_retries_enabled | smallint | | |\r\n always_request_extended_authorization | boolean | | |\r\n is_click_to_pay_enabled | boolean | | not null | false\r\n authentication_product_ids | jsonb | | |\r\n card_testing_guard_config | jsonb | | |\r\n card_testing_secret_key | bytea | | |\r\n is_clear_pan_retries_enabled | boolean | | not null | false\r\n force_3ds_challenge | boolean | | | false\r\n is_debit_routing_enabled | boolean | | not null | false\r\n merchant_business_country | \"CountryAlpha2\" | | |\r\n id | character varying(64) | | |\r\n is_iframe_redirection_enabled | boolean | | |\r\n is_pre_network_tokenization_enabled | boolean | | |\r\n three_ds_decision_rule_algorithm | jsonb | | |\r\n acquirer_config_map | jsonb | | |\r\nIndexes:\r\n \"business_profile_pkey\" PRIMARY KEY, btree (profile_id)\r\n```\r\n\r\n\r\nList profile acquirer account -- do business profile retrieve\r\n\r\n```shell\r\ncurl --location 'localhost:8080/account/sahkal/business_profile/pro_RUyg7qT8yMzgfQpTqqm8' \\\r\n--header 'api-key: dev_dzO6ovCaZazaULNtb0AJxDIfCX67yQUQGYP190ZKX8KCd9WYoFhFIFRxVB8B5w6Q'\r\n```\r\n\r\nResponse\r\n\r\n```shell\r\n{\r\n \"merchant_id\": \"sahkal\",\r\n \"profile_id\": \"pro_RUyg7qT8yMzgfQpTqqm8\",\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\": \"U9qcRdTlSXQc4cnsaEXMEpuiPVgw4RmekxfLjNznZjUt83u2tav6e6XYIdFZA9dw\",\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 },\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\": {\r\n \"pro_acq_jkn6Di8kIqBVrmICSEYU\": {\r\n \"acquirer_assigned_merchant_id\": \"fqwcqsqqwacccwwwec\",\r\n \"merchant_name\": \"Demo Merchant\",\r\n \"merchant_country_code\": \"US\",\r\n \"network\": \"Visa\",\r\n \"acquirer_bin\": \"400000\",\r\n \"acquirer_ica\": null,\r\n \"acquirer_fraud_rate\": 0.06\r\n },\r\n \"pro_acq_bbNCgQibI8K1Xr6Cv3fu\": {\r\n \"acquirer_assigned_merchant_id\": \"fqwcqsqqwacdqwdwqdccwwwec\",\r\n \"merchant_name\": \"Demo Merchant\",\r\n \"merchant_country_code\": \"US\",\r\n \"network\": \"Visa\",\r\n \"acquirer_bin\": \"400000\",\r\n \"acquirer_ica\": null,\r\n \"acquirer_fraud_rate\": 0.06\r\n }\r\n }\r\n}\r\n```\r\n\r\n\r\n## Checklist\r\n\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\r\n\r\n\r\n## Summary by CodeRabbit\r\n\r\n- **New Features**\r\n - Added a new API endpoint to create Profile Acquirers linked to business profiles.\r\n - Enabled profiles to store multiple acquirer configurations with detailed attributes like merchant ID, country code, network, BIN, ICA, and fraud rate.\r\n- **Database**\r\n - Introduced a new JSONB column to store acquirer configuration maps within business profiles.\r\n- **API Documentation**\r\n - Updated OpenAPI specs to document new Profile Acquirer endpoints and related schemas.\r\n", + "author": "sahkal", + "created_at": "2025-05-27T11:08:05+00:00", + "merged_at": "2025-06-11T13:53:52+00:00", + "base_branch": "main", + "labels": [ + "A-core", + "M-database-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8155", + "commits": [ + { + "sha": "6b3ff10ff0957b0b707f2d56ae1cd4d330b75dce", + "message": "added merchant acquirer create module", + "author": "Sahkal Poddar", + "date": "2025-05-27T11:06:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6b3ff10ff0957b0b707f2d56ae1cd4d330b75dce" + }, + { + "sha": "8267b1bb5d1daa9471882328b13f89ff423d3782", + "message": "resolved merge conflicts", + "author": "Sahkal Poddar", + "date": "2025-05-27T11:28:41+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8267b1bb5d1daa9471882328b13f89ff423d3782" + }, + { + "sha": "f316edde5ab8341af3747050e49b3638775f4555", + "message": "chore(cypress): run formatter and address lints", + "author": "hyperswitch-bot[bot]", + "date": "2025-05-27T11:29:41+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f316edde5ab8341af3747050e49b3638775f4555" + }, + { + "sha": "7f3244ad2808f5dd2b994caf523e8634ab877bb0", + "message": "fixed v2 migration error", + "author": "Sahkal Poddar", + "date": "2025-05-27T12:45:25+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7f3244ad2808f5dd2b994caf523e8634ab877bb0" + }, + { + "sha": "922e7281e7c750b4968a32d478ecd7728c68c9ea", + "message": "Merge branch '9668-merchant-acquirer-create' of github.com:juspay/hyperswitch into 9668-merchant-acquirer-create", + "author": "Sahkal Poddar", + "date": "2025-05-27T12:45:38+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/922e7281e7c750b4968a32d478ecd7728c68c9ea" + }, + { + "sha": "47584a94b1011abfba183a5188b40779be319e4f", + "message": "Merge branch 'main' into 9668-merchant-acquirer-create", + "author": "Sahkal Poddar", + "date": "2025-05-28T06:50:39+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/47584a94b1011abfba183a5188b40779be319e4f" + }, + { + "sha": "b6451d245a921205a26165262beadf12ba2fc260", + "message": "added openapi specs", + "author": "Sahkal Poddar", + "date": "2025-05-28T07:50:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b6451d245a921205a26165262beadf12ba2fc260" + }, + { + "sha": "5781cd6c32a356168cd18cd2c3c649e187cf63c0", + "message": "Merge branch '9668-merchant-acquirer-create' of github.com:juspay/hyperswitch into 9668-merchant-acquirer-create", + "author": "Sahkal Poddar", + "date": "2025-05-28T07:50:52+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5781cd6c32a356168cd18cd2c3c649e187cf63c0" + }, + { + "sha": "a9b2cf56ee49a682a1d57bf8367f6925080966a2", + "message": "added acquirer list in business profile response", + "author": "Sahkal Poddar", + "date": "2025-05-28T08:21:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a9b2cf56ee49a682a1d57bf8367f6925080966a2" + }, + { + "sha": "cbb9077026cabfea1a0b41e81af34c84c05f3b25", + "message": "resolved pr comments", + "author": "Sahkal Poddar", + "date": "2025-05-29T09:08:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/cbb9077026cabfea1a0b41e81af34c84c05f3b25" + }, + { + "sha": "4ce39843526e2fa32d008136bfcbf08ef69e093a", + "message": "fixed ci checks", + "author": "Sahkal Poddar", + "date": "2025-05-29T09:29:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4ce39843526e2fa32d008136bfcbf08ef69e093a" + }, + { + "sha": "1067e4e4d03e6342443d0cc3d81e9bedb89412f2", + "message": "Merge branch 'main' into 9668-merchant-acquirer-create", + "author": "Sahkal Poddar", + "date": "2025-05-29T10:10:30+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1067e4e4d03e6342443d0cc3d81e9bedb89412f2" + }, + { + "sha": "51fad5633c41cfe31ee1d2992b38ea2122b2b87a", + "message": "added profile acquirer account config create", + "author": "Sahkal Poddar", + "date": "2025-05-30T10:52:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/51fad5633c41cfe31ee1d2992b38ea2122b2b87a" + }, + { + "sha": "fbfea21661228f08795aa5f578e673fb00bba954", + "message": "removed profile acquirer id's from business profile", + "author": "Sahkal Poddar", + "date": "2025-05-30T12:23:01+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fbfea21661228f08795aa5f578e673fb00bba954" + }, + { + "sha": "d77bd09060e6e9f3c321b0bfcec14f6e3a79c532", + "message": "added profile acquirer list api", + "author": "Sahkal Poddar", + "date": "2025-06-02T08:31:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d77bd09060e6e9f3c321b0bfcec14f6e3a79c532" + }, + { + "sha": "b6212578eac7b5ffa07ec4c96d288cfee247023f", + "message": "changed merchant acquirer to profile acquirer", + "author": "Sahkal Poddar", + "date": "2025-06-02T10:20:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b6212578eac7b5ffa07ec4c96d288cfee247023f" + }, + { + "sha": "4842b4a59c5ad53c3ae773dd53381c381c0d74bb", + "message": "Merge branch 'main' into 9668-merchant-acquirer-create", + "author": "Sahkal Poddar", + "date": "2025-06-02T10:22:29+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4842b4a59c5ad53c3ae773dd53381c381c0d74bb" + }, + { + "sha": "48a30be07d0a57847b5dc4443b81ac217faf3e38", + "message": "Added api contract comments for open-api specs", + "author": "Sahkal Poddar", + "date": "2025-06-02T10:44:03+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/48a30be07d0a57847b5dc4443b81ac217faf3e38" + }, + { + "sha": "7c8cb2c562d3e2795c41c359b3ae2420722348fe", + "message": "Merge branch '9668-merchant-acquirer-create' of github.com:juspay/hyperswitch into 9668-merchant-acquirer-create", + "author": "Sahkal Poddar", + "date": "2025-06-02T10:44:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7c8cb2c562d3e2795c41c359b3ae2420722348fe" + }, + { + "sha": "4bdaa2dd2d320f29b6d99f950848e97c9c9115f2", + "message": "added curd flows for profile acquirer", + "author": "Sahkal Poddar", + "date": "2025-06-05T14:10:01+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4bdaa2dd2d320f29b6d99f950848e97c9c9115f2" + }, + { + "sha": "e43d477fb3d2b20f96af88e14748f8ce651100d4", + "message": "fixed ci check errors", + "author": "Sahkal Poddar", + "date": "2025-06-07T18:02:09+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e43d477fb3d2b20f96af88e14748f8ce651100d4" + }, + { + "sha": "02d4ee28c48b8483e2a9aaa8ccab6867be4d9ae0", + "message": "resolved merge conflicts", + "author": "Sahkal Poddar", + "date": "2025-06-07T18:09:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/02d4ee28c48b8483e2a9aaa8ccab6867be4d9ae0" + }, + { + "sha": "8b0b6b074dce069a0d5f2376a7254967fd03106e", + "message": "fixed open-api specs", + "author": "Sahkal Poddar", + "date": "2025-06-09T08:21:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8b0b6b074dce069a0d5f2376a7254967fd03106e" + }, + { + "sha": "5f622d1aea06834bfa9aeeab6890a85633ef2706", + "message": "removed mcc", + "author": "Sahkal Poddar", + "date": "2025-06-09T11:04:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5f622d1aea06834bfa9aeeab6890a85633ef2706" + }, + { + "sha": "0761602c8285178474a414a95806e6949e1d0dc1", + "message": "removed mcc", + "author": "Sahkal Poddar", + "date": "2025-06-09T12:46:42+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0761602c8285178474a414a95806e6949e1d0dc1" + }, + { + "sha": "eb963dffaefbeebe4127a754aece77fde46964d7", + "message": "resolved merge conflicts", + "author": "Sahkal Poddar", + "date": "2025-06-11T10:23:03+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/eb963dffaefbeebe4127a754aece77fde46964d7" + }, + { + "sha": "8c7f295284f825a9bd9868c11b56307f144dc34a", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-06-11T10:29:13+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8c7f295284f825a9bd9868c11b56307f144dc34a" + }, + { + "sha": "ecd85a5a614a4b2b18ee164fc4a64812ccab9350", + "message": "Merge branch 'main' into 9668-merchant-acquirer-create", + "author": "Sahkal Poddar", + "date": "2025-06-11T10:44:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ecd85a5a614a4b2b18ee164fc4a64812ccab9350" + }, + { + "sha": "d7132020bdb4507267f8ac0b2fb4c8d76ddf66cd", + "message": "Merge branch 'main' of github.com:juspay/hyperswitch into 9668-merchant-acquirer-create", + "author": "Sahkal Poddar", + "date": "2025-06-11T10:45:23+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d7132020bdb4507267f8ac0b2fb4c8d76ddf66cd" + }, + { + "sha": "d3f0a738464a5d1fc3b421797d25562502f217b2", + "message": "Merge branch '9668-merchant-acquirer-create' of github.com:juspay/hyperswitch into 9668-merchant-acquirer-create", + "author": "Sahkal Poddar", + "date": "2025-06-11T10:45:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d3f0a738464a5d1fc3b421797d25562502f217b2" + }, + { + "sha": "2d45531030f35b3fadb5f10471dab0454df067fb", + "message": "resolved clippy error due to large content", + "author": "Sahkal Poddar", + "date": "2025-06-11T10:57:30+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2d45531030f35b3fadb5f10471dab0454df067fb" + }, + { + "sha": "3de9c41a556f0d13e033afd090a7ccfd2c34cf29", + "message": "removed profile acquirer list api from open-api", + "author": "Sahkal Poddar", + "date": "2025-06-11T10:59:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3de9c41a556f0d13e033afd090a7ccfd2c34cf29" + }, + { + "sha": "ecb0eeb8ce8d81c35c22af6a6a91e6ed0f491231", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-06-11T11:09:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ecb0eeb8ce8d81c35c22af6a6a91e6ed0f491231" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8187.json b/prs/pr_8187.json new file mode 100644 index 0000000000000000000000000000000000000000..ba75f19dc507a82d061a9803853db7679a934b45 --- /dev/null +++ b/prs/pr_8187.json @@ -0,0 +1,79 @@ +{ + "number": 8187, + "title": "ci(cypress): Add Airwallex Connector Test", + "description": "## Type of Change\r\n\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- [x] CI/CD\r\n\r\n## Description\r\n1.Enhanced Airwallex Connector in cypress for Comprehensive Testing\r\n2.Fixed the connector_mandate_id expectation for mandates:\r\n Due to fallback they connector_mandate_id is based on the the request of setup_future_usage. In this PR i have modified based on the reponse.setup_future_usage.\r\n\r\n\r\n## Motivation and Context\r\nThese enhancements improve test coverage and reliability for the Airwallex connector, ensuring that all payment flows are properly tested and verified.\r\n\r\n\r\n## How did you test it?\r\n\r\n\"Screenshot\r\n1.Refund 1scenario was failing due to service unavailable. Ran the test again for refund and provided the screenshot below.\r\n2.Another 1 scenario is failing in dynamic field due to payment_method is empty in PML if the billing address is not present. Its a issue needs to be fixed.\r\n\"Screenshot\r\n\r\n\r\n\r\n## Checklist\r\n\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", + "author": "Gnanasundari24", + "created_at": "2025-05-30T11:33:11+00:00", + "merged_at": "2025-06-06T12:34:21+00:00", + "base_branch": "main", + "labels": [ + "A-CI-CD", + "C-test" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8187", + "commits": [ + { + "sha": "3a5bf562902a1e11b21f9c878616e81b10ff2d26", + "message": "ci(cypress): Add Airwallex Connector Test", + "author": "gnanasundarig", + "date": "2025-05-30T11:25:25+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3a5bf562902a1e11b21f9c878616e81b10ff2d26" + }, + { + "sha": "61e1ae067ebe8af8546a3801c3c6dbb2461fcc44", + "message": "Addressing Lints", + "author": "gnanasundarig", + "date": "2025-05-30T13:05:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/61e1ae067ebe8af8546a3801c3c6dbb2461fcc44" + }, + { + "sha": "1b98186e0906492faf9f8b682855b11a3b2fe26c", + "message": "Address lints", + "author": "gnanasundarig", + "date": "2025-06-02T09:20:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1b98186e0906492faf9f8b682855b11a3b2fe26c" + }, + { + "sha": "88113640e457166ba72b650cc53caca5f3c52896", + "message": "Merge branch 'main' of github.com:juspay/orca into airwallex-test", + "author": "gnanasundarig", + "date": "2025-06-02T09:25:32+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/88113640e457166ba72b650cc53caca5f3c52896" + }, + { + "sha": "726e68404bd3b7b6964dd7cec4ec1fe773af0a18", + "message": "Removed extra line", + "author": "gnanasundarig", + "date": "2025-06-02T09:29:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/726e68404bd3b7b6964dd7cec4ec1fe773af0a18" + }, + { + "sha": "c9efa410e1bd6b82e8de78630c9f446986413be7", + "message": "Resolved conflicts", + "author": "gnanasundarig", + "date": "2025-06-03T08:24:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c9efa410e1bd6b82e8de78630c9f446986413be7" + }, + { + "sha": "ea411884d9c1fe196a789767af8122345677d63f", + "message": "Updated the utils for new connector", + "author": "gnanasundarig", + "date": "2025-06-03T08:29:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ea411884d9c1fe196a789767af8122345677d63f" + }, + { + "sha": "f476aac51bf532f69329af15fab96a4f6083380c", + "message": "Fixed the connector_mandate_id checks", + "author": "gnanasundarig", + "date": "2025-06-03T12:40:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f476aac51bf532f69329af15fab96a4f6083380c" + }, + { + "sha": "2fa3a5e7971a3a457dedfbe06b8ffd75ab140ad3", + "message": "Rename airwallex.js to Airwallex.js", + "author": "Gnanasundari24", + "date": "2025-06-03T13:42:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2fa3a5e7971a3a457dedfbe06b8ffd75ab140ad3" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8220.json b/prs/pr_8220.json new file mode 100644 index 0000000000000000000000000000000000000000..c652d851cecdae0bbe54c2f72ef2a624c879bae8 --- /dev/null +++ b/prs/pr_8220.json @@ -0,0 +1,25 @@ +{ + "number": 8220, + "title": "feat(router): add retry support for debit routing", + "description": "## Type of Change\r\n\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\r\nIn the case of debit routing flow, the routing output (`CallConnectorType`) will include both the connector and its associated card network. In our current implementation, we simply iterate over the connector list and pass the connector. With the updated requirement, we will also need to pass the corresponding card network for each connector in the case of debit routing.\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n\r\nCreate a business profile and enable debit routing for it \r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1748851578/business_profile/pro_gEwS6ve9KVqywWL0hmAq' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: ' \\\r\n--data '{\r\n \"is_debit_routing_enabled\": true\r\n}'\r\n```\r\n-> Create a adyen connector\r\n-> I have created a db entry that contains the wrong card network so that the payment can be retried\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 'x-feature: router-custom' \\\r\n--header 'x-tenant-id: hyperswitch' \\\r\n--header 'api-key: ' \\\r\n--data-raw '{\r\n \"amount\": 10000,\r\n \"amount_to_capture\": 10000,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"setup_future_usage\": \"on_session\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\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\": \"no_three_ds\",\r\n \"customer_id\": \"cu_1748948839\",\r\n \"return_url\": \"http://127.0.0.1:4040\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"debit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4000033003300335\",\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 \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"PiX\",\r\n \"last_name\": \"ss\"\r\n },\r\n \"email\": \"raj@gmail.com\"\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 \"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 \"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 \"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{\r\n \"payment_id\": \"pay_JMfKcXwsfYNl06UWsCc0\",\r\n \"merchant_id\": \"merchant_1748851578\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 10000,\r\n \"net_amount\": 10000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 10000,\r\n \"connector\": \"adyen\",\r\n \"client_secret\": \"pay_JMfKcXwsfYNl06UWsCc0_secret_IHW3HhesmOpMBaUyGd8l\",\r\n \"created\": \"2025-06-03T11:07:12.121Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cu_1748948832\",\r\n \"customer\": {\r\n \"id\": \"cu_1748948832\",\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\": \"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\": \"0335\",\r\n \"card_type\": \"DEBIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"VISA U.S.A. INC.\",\r\n \"card_issuing_country\": \"UNITEDSTATES\",\r\n \"card_isin\": \"400003\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\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\": {\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\",\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\": \"ss\"\r\n },\r\n \"phone\": null,\r\n \"email\": \"raj@gmail.com\"\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\": \"http://127.0.0.1:4040/\",\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\": \"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\": {\r\n \"customer_id\": \"cu_1748948832\",\r\n \"created_at\": 1748948832,\r\n \"expires\": 1748952432,\r\n \"secret\": \"epk_caf2195bee8848358df1077b25cf2a73\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"DF4NDC3W8WH68775\",\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\": \"pay_JMfKcXwsfYNl06UWsCc0_2\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_gEwS6ve9KVqywWL0hmAq\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 2,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_zMyPaKk9qUVauLL7wFrV\",\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-06-03T11:22:12.120Z\",\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-06-03T11:07:15.083Z\",\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}\r\n```\r\n-> the payment response contains two attempts\r\n-> List all the attempts for a payments\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_JMfKcXwsfYNl06UWsCc0?force_sync=true&expand_attempts=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: '\r\n```\r\n```\r\n{\r\n \"payment_id\": \"pay_JMfKcXwsfYNl06UWsCc0\",\r\n \"merchant_id\": \"merchant_1748851578\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 10000,\r\n \"net_amount\": 10000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 10000,\r\n \"connector\": \"adyen\",\r\n \"client_secret\": \"pay_JMfKcXwsfYNl06UWsCc0_secret_IHW3HhesmOpMBaUyGd8l\",\r\n \"created\": \"2025-06-03T11:07:12.121Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cu_1748948832\",\r\n \"customer\": {\r\n \"id\": \"cu_1748948832\",\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 \"attempts\": [\r\n {\r\n \"attempt_id\": \"pay_JMfKcXwsfYNl06UWsCc0_2\",\r\n \"status\": \"charged\",\r\n \"amount\": 10000,\r\n \"order_tax_amount\": null,\r\n \"currency\": \"USD\",\r\n \"connector\": \"adyen\",\r\n \"error_message\": null,\r\n \"payment_method\": \"card\",\r\n \"connector_transaction_id\": \"DF4NDC3W8WH68775\",\r\n \"capture_method\": \"automatic\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"created_at\": \"2025-06-03T11:07:14.071Z\",\r\n \"modified_at\": \"2025-06-03T11:07:15.143Z\",\r\n \"cancellation_reason\": null,\r\n \"mandate_id\": null,\r\n \"error_code\": null,\r\n \"payment_token\": null,\r\n \"connector_metadata\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"debit\",\r\n \"reference_id\": \"pay_JMfKcXwsfYNl06UWsCc0_2\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"client_source\": null,\r\n \"client_version\": null\r\n },\r\n {\r\n \"attempt_id\": \"pay_JMfKcXwsfYNl06UWsCc0_1\",\r\n \"status\": \"failure\",\r\n \"amount\": 10000,\r\n \"order_tax_amount\": null,\r\n \"currency\": \"USD\",\r\n \"connector\": \"adyen\",\r\n \"error_message\": \"Invalid variant\",\r\n \"payment_method\": \"card\",\r\n \"connector_transaction_id\": \"ZBRJ4V4RGLQD2HV5\",\r\n \"capture_method\": \"automatic\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"created_at\": \"2025-06-03T11:07:12.121Z\",\r\n \"modified_at\": \"2025-06-03T11:07:14.075Z\",\r\n \"cancellation_reason\": null,\r\n \"mandate_id\": null,\r\n \"error_code\": \"109\",\r\n \"payment_token\": null,\r\n \"connector_metadata\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"debit\",\r\n \"reference_id\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"client_source\": null,\r\n \"client_version\": null\r\n }\r\n ],\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\": \"0335\",\r\n \"card_type\": \"DEBIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"VISA U.S.A. INC.\",\r\n \"card_issuing_country\": \"UNITEDSTATES\",\r\n \"card_isin\": \"400003\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\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\": {\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\",\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\": \"ss\"\r\n },\r\n \"phone\": null,\r\n \"email\": \"raj@gmail.com\"\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\": \"http://127.0.0.1:4040/\",\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\": \"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\": false,\r\n \"connector_transaction_id\": \"DF4NDC3W8WH68775\",\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\": \"pay_JMfKcXwsfYNl06UWsCc0_2\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_gEwS6ve9KVqywWL0hmAq\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 2,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_zMyPaKk9qUVauLL7wFrV\",\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-06-03T11:22:12.120Z\",\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\": \"pm_d6OTFivsWBpZpC9u53Hh\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-06-03T11:07:15.083Z\",\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}\r\n```\r\n-> The payment was first tried with `star` card network and then with the `visa`\r\n![image](https://github.com/user-attachments/assets/9167038f-b03b-411a-8d13-a52b14c9685e)\r\n![image](https://github.com/user-attachments/assets/7f1f1120-b3ff-4556-9140-248f922b279b)\r\n\r\n## Checklist\r\n\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", + "author": "ShankarSinghC", + "created_at": "2025-06-03T09:48:41+00:00", + "merged_at": "2025-06-16T11:50:20+00:00", + "base_branch": "main", + "labels": [ + "A-core", + "C-feature", + "A-payments", + "A-routing" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8220", + "commits": [ + { + "sha": "184e3c82698712ac22f4c2634bab3a0378f0405e", + "message": "feat(router): add retry support for debit routing", + "author": "Shankar Singh C", + "date": "2025-06-03T09:46:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/184e3c82698712ac22f4c2634bab3a0378f0405e" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8236.json b/prs/pr_8236.json new file mode 100644 index 0000000000000000000000000000000000000000..ef7bc95da831d9d9c212950be205c84f4f85a4fb --- /dev/null +++ b/prs/pr_8236.json @@ -0,0 +1,183 @@ +{ + "number": 8236, + "title": "refactor(router): Remove `payment_methods_v2` and `customer_v2` feature flag", + "description": "## Type of Change\r\n\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\nremoved the payment_methods_v2 and customer_v2 feature flag from router, payment method, domain model, diesel model, api model and storage impl crate.\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n\r\nTest case - Sanity testing for payments, payment methods in v1 and v2\r\n\r\n## Checklist\r\n\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\r\n\r\n\r\n\r\n## Summary by CodeRabbit\r\n\r\n- **Refactor**\r\n - Simplified and standardized feature flag usage across the codebase by removing the `customer_v2` and `payment_methods_v2` feature flags.\r\n - Updated conditional compilation throughout all major modules to depend solely on `v1` or `v2` features, reducing complexity and improving maintainability.\r\n - Cleaned up configuration files by removing obsolete feature flags and dependencies.\r\n - No changes to user-facing functionality or APIs; all changes are internal and structural.\r\n\r\n", + "author": "prasunna09", + "created_at": "2025-06-04T11:10:04+00:00", + "merged_at": "2025-06-11T19:09:05+00:00", + "base_branch": "main", + "labels": [ + "C-refactor" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8236", + "commits": [ + { + "sha": "df1bdf8e4ac52b1ee285c6de4e1e8933d9663500", + "message": "remove payment_methods_v2 feature flag", + "author": "Prasunna Soppa", + "date": "2025-06-03T08:06:25+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/df1bdf8e4ac52b1ee285c6de4e1e8933d9663500" + }, + { + "sha": "4b9926d24ba13e4015e38f1036db10b01834d228", + "message": "remove payment_methods_v2 feature flag", + "author": "Prasunna Soppa", + "date": "2025-06-04T08:23:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4b9926d24ba13e4015e38f1036db10b01834d228" + }, + { + "sha": "c27e50e2921a27833a12de472ba57a9e8032902f", + "message": "remove payment_methods_v2 feature flag", + "author": "Prasunna Soppa", + "date": "2025-06-04T11:51:07+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c27e50e2921a27833a12de472ba57a9e8032902f" + }, + { + "sha": "3f4236e07011cf4c5c3d70b666c16ae626c0b39f", + "message": "remove unnecessary comment", + "author": "Prasunna Soppa", + "date": "2025-06-04T12:21:52+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3f4236e07011cf4c5c3d70b666c16ae626c0b39f" + }, + { + "sha": "3e68005a0682c3ed3f572f0bed6adbeb2afc6dd0", + "message": "Merge branch 'main' into remove-payment-methods-v2-feature-flag", + "author": "Prasunna Soppa", + "date": "2025-06-04T12:25:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3e68005a0682c3ed3f572f0bed6adbeb2afc6dd0" + }, + { + "sha": "113d48401c3b486064043bd87dfcc7d5aae06024", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-06-04T12:26:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/113d48401c3b486064043bd87dfcc7d5aae06024" + }, + { + "sha": "31989c6ce2e79828fbde85e8785935bdb9eb9147", + "message": "fix clippy", + "author": "Prasunna Soppa", + "date": "2025-06-04T12:31:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/31989c6ce2e79828fbde85e8785935bdb9eb9147" + }, + { + "sha": "06f3b793d90bd481fe0671fcd09c8f1ce88a6ca4", + "message": "Merge branch 'remove-payment-methods-v2-feature-flag' of github.com:juspay/hyperswitch into remove-payment-methods-v2-feature-flag", + "author": "Prasunna Soppa", + "date": "2025-06-04T12:32:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/06f3b793d90bd481fe0671fcd09c8f1ce88a6ca4" + }, + { + "sha": "63092afb8e81a49254c430c1eb1c8bb5b04a02a4", + "message": "remove customer_v2 flag", + "author": "Prasunna Soppa", + "date": "2025-06-04T19:31:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/63092afb8e81a49254c430c1eb1c8bb5b04a02a4" + }, + { + "sha": "720d73bfba57af9fda67c80b802797afa1ac767d", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-06-04T19:32:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/720d73bfba57af9fda67c80b802797afa1ac767d" + }, + { + "sha": "db7017c42d79c79d8166b0a12ddca716370a50db", + "message": "resolve pr comments", + "author": "Prasunna Soppa", + "date": "2025-06-04T22:04:29+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/db7017c42d79c79d8166b0a12ddca716370a50db" + }, + { + "sha": "3a7151b0c7dae38686edd66e0dcee7c855e19ac6", + "message": "Merge branch 'remove-payment-methods-v2-feature-flag' of github.com:juspay/hyperswitch into remove-payment-methods-v2-feature-flag", + "author": "Prasunna Soppa", + "date": "2025-06-04T22:04:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3a7151b0c7dae38686edd66e0dcee7c855e19ac6" + }, + { + "sha": "d0aa96c8195bf08a59420f968e62f83f24c00cca", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-06-04T22:05:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d0aa96c8195bf08a59420f968e62f83f24c00cca" + }, + { + "sha": "cd9a3b1e035b3ae809248eafdbdcc14ef67c5279", + "message": "resolve pr comments", + "author": "Prasunna Soppa", + "date": "2025-06-09T07:56:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/cd9a3b1e035b3ae809248eafdbdcc14ef67c5279" + }, + { + "sha": "c336cde936d90ff4ed284162a9c0f527574dc176", + "message": "Merge branch 'remove-payment-methods-v2-feature-flag' of github.com:juspay/hyperswitch into remove-payment-methods-v2-feature-flag", + "author": "Prasunna Soppa", + "date": "2025-06-09T07:56:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c336cde936d90ff4ed284162a9c0f527574dc176" + }, + { + "sha": "eaf1a3c433e9461bc1f6fa75fe181f7e8cb92c56", + "message": "resolve pr comments", + "author": "Prasunna Soppa", + "date": "2025-06-09T10:12:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/eaf1a3c433e9461bc1f6fa75fe181f7e8cb92c56" + }, + { + "sha": "ce12bb52fc2f37a64f307cae995622667a9ed1bd", + "message": "Merge main", + "author": "Prasunna Soppa", + "date": "2025-06-09T10:25:30+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ce12bb52fc2f37a64f307cae995622667a9ed1bd" + }, + { + "sha": "219468f7158dad5fa9e3111b94962c271bf05c03", + "message": "fix clippy for v1", + "author": "Prasunna Soppa", + "date": "2025-06-09T10:25:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/219468f7158dad5fa9e3111b94962c271bf05c03" + }, + { + "sha": "54e32c1e24ac5109693d6f270e13e94bf2542ece", + "message": "resolve pr comments", + "author": "Prasunna Soppa", + "date": "2025-06-09T10:43:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/54e32c1e24ac5109693d6f270e13e94bf2542ece" + }, + { + "sha": "6a2527cace3f34dd8ba8827ef0734da1afbc918c", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-06-09T10:44:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6a2527cace3f34dd8ba8827ef0734da1afbc918c" + }, + { + "sha": "b5ac8cd00b47667ffaed63740076d421989cccd2", + "message": "resolve pr comments", + "author": "Prasunna Soppa", + "date": "2025-06-10T13:49:48+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b5ac8cd00b47667ffaed63740076d421989cccd2" + }, + { + "sha": "d0c39ea1f2cf38c0b32ac89ca97fa549aecdcc30", + "message": "Merge branch 'remove-payment-methods-v2-feature-flag' of github.com:juspay/hyperswitch into remove-payment-methods-v2-feature-flag", + "author": "Prasunna Soppa", + "date": "2025-06-10T13:51:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d0c39ea1f2cf38c0b32ac89ca97fa549aecdcc30" + }, + { + "sha": "af435df9e6b10085cf7ea7cf7623759a04ceb822", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-06-10T13:52:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/af435df9e6b10085cf7ea7cf7623759a04ceb822" + }, + { + "sha": "9aef179acf0fa8299b9bc0304ea3b3f327c1e274", + "message": "Merge branch 'main' into remove-payment-methods-v2-feature-flag", + "author": "Prasunna Soppa", + "date": "2025-06-11T14:36:24+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9aef179acf0fa8299b9bc0304ea3b3f327c1e274" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8238.json b/prs/pr_8238.json new file mode 100644 index 0000000000000000000000000000000000000000..6121f3217af2bfdd7d66aa1744932b53e83cfbf9 --- /dev/null +++ b/prs/pr_8238.json @@ -0,0 +1,41 @@ +{ + "number": 8238, + "title": "fix: Unified scarf setup", + "description": "## Type of Change\r\n\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\r\nThe installation tracking system has been upgraded to capture more information, errors and behaviors during the installation period such as:\r\n - User aborts\r\n - Server failure errors\r\n - Dependency errors\r\n - Successful installations\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n\r\nTested locally using a mock server endpoint to verify the script captures all the errors and successes.\r\n\r\n\"Screenshot\r\n\r\n## Checklist\r\n\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", + "author": "Shailesh-714", + "created_at": "2025-06-04T11:46:33+00:00", + "merged_at": "2025-06-09T07:59:11+00:00", + "base_branch": "main", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/8238", + "commits": [ + { + "sha": "e0e8698d182f5ae929c6480077e68d84d8f8093e", + "message": "initial commit", + "author": "Shailesh-714", + "date": "2025-06-01T17:08:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e0e8698d182f5ae929c6480077e68d84d8f8093e" + }, + { + "sha": "d4114c8d8d6b261e6fc76e4f0e3ca8970a9c81f2", + "message": "added tee for collecting error text from stderr", + "author": "Shailesh-714", + "date": "2025-06-02T13:21:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d4114c8d8d6b261e6fc76e4f0e3ca8970a9c81f2" + }, + { + "sha": "80dc71ee1d784e50c171768ea23cbf4a32926210", + "message": "removed port selection feature and implementing only error checking", + "author": "Shailesh-714", + "date": "2025-06-04T10:50:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/80dc71ee1d784e50c171768ea23cbf4a32926210" + }, + { + "sha": "431625c3b108f5e9dd80507e159786c6a61d46b1", + "message": "added quotes to params in poststart hook", + "author": "Shailesh-714", + "date": "2025-06-05T08:07:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/431625c3b108f5e9dd80507e159786c6a61d46b1" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8402.json b/prs/pr_8402.json new file mode 100644 index 0000000000000000000000000000000000000000..335b742bb5ba37e17fd423787063b746b57c115f --- /dev/null +++ b/prs/pr_8402.json @@ -0,0 +1,36 @@ +{ + "number": 8402, + "title": "ci(cypress): Add Forte connector test in cypress", + "description": "## Type of Change\r\n\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\nEnhanced Forte Connector in cypress for Comprehensive Testing.\r\n\r\n## How did you test it?\r\n**Forte**\r\n\"Forte\"\r\n\r\n## Checklist\r\n\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", + "author": "Gnanasundari24", + "created_at": "2025-06-20T09:57:54+00:00", + "merged_at": "2025-06-24T12:58:24+00:00", + "base_branch": "main", + "labels": [ + "A-CI-CD" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8402", + "commits": [ + { + "sha": "778655b984ddc902b4f02800ab713e709349e35a", + "message": "ci(cypress): Add Forte connector test in cypress", + "author": "gnanasundarig", + "date": "2025-06-20T09:56:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/778655b984ddc902b4f02800ab713e709349e35a" + }, + { + "sha": "5bab90de9e7313b8bb8fd791294b4c6f05e17f66", + "message": "ci(cypress): Handled error case in setDefaultPaymentMethodTest", + "author": "gnanasundarig", + "date": "2025-06-20T10:35:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5bab90de9e7313b8bb8fd791294b4c6f05e17f66" + }, + { + "sha": "2c4d5c55ee9bc26ea9a64bcdeb493396540cd330", + "message": "ci(cypress): Address comments", + "author": "gnanasundarig", + "date": "2025-06-24T09:55:17+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2c4d5c55ee9bc26ea9a64bcdeb493396540cd330" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8404.json b/prs/pr_8404.json new file mode 100644 index 0000000000000000000000000000000000000000..e1eebf8b39c24c0954a8a68836e8a6a32a046374 --- /dev/null +++ b/prs/pr_8404.json @@ -0,0 +1,29 @@ +{ + "number": 8404, + "title": "ci(cypress): Add Stax connector test in cypress", + "description": "## Type of Change\r\n\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\nEnhanced Stax Connector in cypress for Comprehensive Testing.\r\n\r\n\r\n\r\n## How did you test it?\r\n**STAX**\r\n\"stax\"\r\n\r\nNote: 3ds payments silently falling back to no-3ds(Should throw validation)\r\n\r\n\r\n## Checklist\r\n\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", + "author": "Gnanasundari24", + "created_at": "2025-06-20T10:30:25+00:00", + "merged_at": "2025-06-24T14:43:55+00:00", + "base_branch": "main", + "labels": [ + "A-CI-CD" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8404", + "commits": [ + { + "sha": "d5f32f357e24c56a23e806b244b32eff9c3855c2", + "message": "ci(cypress): Add Stax connector test in cypress", + "author": "gnanasundarig", + "date": "2025-06-20T10:27:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d5f32f357e24c56a23e806b244b32eff9c3855c2" + }, + { + "sha": "1cc2595ea540d02b3bfbec1f9f54adad5919286b", + "message": "ci(cypress): Resolve conflicts", + "author": "gnanasundarig", + "date": "2025-06-24T13:35:39+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1cc2595ea540d02b3bfbec1f9f54adad5919286b" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8436.json b/prs/pr_8436.json new file mode 100644 index 0000000000000000000000000000000000000000..33c3b306b39848854038e33bfb8033a1efaef06f --- /dev/null +++ b/prs/pr_8436.json @@ -0,0 +1,45 @@ +{ + "number": 8436, + "title": "feat(connector): [jpmorgan] implement refund flow", + "description": "## Type of Change\r\n\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- [x] CI/CD\r\n\r\n## Description\r\n\r\n\r\nThis PR implements refund flow for JPMorgan connector. Connector returns `Authorized` state (`Pending`). Post RSync call, the status gets updated to `Success`.\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\nThe connector lacked this basic feature until now. Closes #8435 \r\n\r\n## How did you test it?\r\n\r\n\r\nUpdated Cypress tests:\r\n\r\n\"image\"\r\n\r\nThere exist an issue from the connector where it returns same `transaction_id` (`connector_transaction_id`) every single time which we have no control. Because of this, refunds tend to exceed the maximum refundable amount resulting in 4xx as shown below:\r\n\r\n\"image\"\r\n\r\n\"image\"\r\n\r\n\r\n## Checklist\r\n\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `just clippy && jut clippy_v2`\r\n- [x] I reviewed the submitted code\r\n- [x] I added unit tests for my changes where possible\r\n\r\n", + "author": "pixincreate", + "created_at": "2025-06-23T17:30:48+00:00", + "merged_at": "2025-06-25T07:01:17+00:00", + "base_branch": "main", + "labels": [ + "A-CI-CD", + "A-connector-integration", + "C-feature" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8436", + "commits": [ + { + "sha": "32026a6ccd5deda42749bfe5b98d6548b52c0aa1", + "message": "feat: implement refund flow for jpmorgan", + "author": "PiX", + "date": "2025-06-23T17:12:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/32026a6ccd5deda42749bfe5b98d6548b52c0aa1" + }, + { + "sha": "908fc36ef9bf928dc957dd834760fdd0bfcffe5b", + "message": "chore: remove redundant code", + "author": "PiX", + "date": "2025-06-23T17:13:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/908fc36ef9bf928dc957dd834760fdd0bfcffe5b" + }, + { + "sha": "2f8ba95f1a1c1a0bf3f36a3867cd1c4b16f01ec8", + "message": "ci(cypress): update refund configs for jpmorgan", + "author": "PiX", + "date": "2025-06-23T17:14:00+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2f8ba95f1a1c1a0bf3f36a3867cd1c4b16f01ec8" + }, + { + "sha": "ee5f627a02ef919f6a4758bfd6a5212747ff295e", + "message": "refactor: make it more idiomatic", + "author": "PiX", + "date": "2025-06-24T15:03:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ee5f627a02ef919f6a4758bfd6a5212747ff295e" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8504.json b/prs/pr_8504.json new file mode 100644 index 0000000000000000000000000000000000000000..195cf4b07bfb13ffc6886b58e0ab7a1482a94749 --- /dev/null +++ b/prs/pr_8504.json @@ -0,0 +1,44 @@ +{ + "number": 8504, + "title": "feat(connector): [ADYENPLATFORM] add card payouts", + "description": "## Type of Change\r\n\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\nThis PR enables card payouts through AdyenPlatform connector.\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\n\r\n\r\n## Motivation and Context\r\nAllows merchants to process card payouts through Adyen's Balance Platform.\r\n\r\n## How did you test it?\r\n
\r\n 1. Card payouts via API\r\n\r\ncURL\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_lAISInmiO4UNrMmvkJogzRVKEGKlBKQbRCBFOkLJTXmq6nsD5G1H65BjOd4H72H8' \\\r\n --data '{\"amount\":100,\"currency\":\"EUR\",\"profile_id\":\"pro_vVSlzCG7M1GSX9SyssY8\",\"customer_id\":\"cus_WULwykbL8laUbxDUeGEB\",\"connector\":[\"adyenplatform\"],\"description\":\"Its my first payout request\",\"payout_type\":\"card\",\"payout_method_data\":{\"card\":{\"card_number\":\"4111111111111111\",\"expiry_month\":\"03\",\"expiry_year\":\"2030\"}},\"billing\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"CA\",\"zip\":\"94122\",\"country\":\"FR\",\"first_name\":\"John\",\"last_name\":\"Doe\"}},\"entity_type\":\"Individual\",\"recurring\":true,\"metadata\":{\"ref\":\"123\"},\"confirm\":true,\"auto_fulfill\":true}'\r\n\r\nResponse\r\n\r\n {\"payout_id\":\"ff21b89d-3cfd-4f0f-b3ff-c468d90d7074\",\"merchant_id\":\"merchant_1751292662\",\"amount\":100,\"currency\":\"EUR\",\"connector\":\"adyenplatform\",\"payout_type\":\"card\",\"payout_method_data\":{\"card\":{\"card_issuer\":null,\"card_network\":null,\"card_type\":null,\"card_issuing_country\":null,\"bank_code\":null,\"last4\":\"1111\",\"card_isin\":\"411111\",\"card_extended_bin\":null,\"card_exp_month\":\"03\",\"card_exp_year\":\"2030\",\"card_holder_name\":null}},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"FR\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"CA\",\"first_name\":\"John\",\"last_name\":\"Doe\"},\"phone\":null,\"email\":null},\"auto_fulfill\":true,\"customer_id\":\"cus_WULwykbL8laUbxDUeGEB\",\"customer\":{\"id\":\"cus_WULwykbL8laUbxDUeGEB\",\"name\":\"John Nether\",\"email\":null,\"phone\":\"6168205362\",\"phone_country_code\":\"+1\"},\"client_secret\":\"payout_ff21b89d-3cfd-4f0f-b3ff-c468d90d7074_secret_qzFALtOg6ZhYAOAUr2qY\",\"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_SfssFvg5RBT2k7iKRRsS\",\"status\":\"initiated\",\"error_message\":null,\"error_code\":null,\"profile_id\":\"pro_vVSlzCG7M1GSX9SyssY8\",\"created\":\"2025-06-30T14:12:47.886Z\",\"connector_transaction_id\":\"38EBIX67HBSYZ30V\",\"priority\":null,\"payout_link\":null,\"email\":null,\"name\":\"John Nether\",\"phone\":\"6168205362\",\"phone_country_code\":\"+1\",\"unified_code\":null,\"unified_message\":null,\"payout_method_id\":\"pm_wScFhCfxELZ7gN13Nbxz\"}\r\n\r\n
\r\n\r\n
\r\n 2. Card payouts via Payout Links\r\n\r\ncURL\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_lAISInmiO4UNrMmvkJogzRVKEGKlBKQbRCBFOkLJTXmq6nsD5G1H65BjOd4H72H8' \\\r\n --data '{\"amount\":1,\"currency\":\"EUR\",\"customer_id\":\"cus_WULwykbL8laUbxDUeGEB\",\"description\":\"Its my first payout request\",\"entity_type\":\"Individual\",\"confirm\":false,\"auto_fulfill\":true,\"session_expiry\":1000000,\"profile_id\":\"pro_vVSlzCG7M1GSX9SyssY8\",\"payout_link\":true,\"return_url\":\"https://www.google.com\",\"payout_link_config\":{\"form_layout\":\"journey\",\"theme\":\"#0066ff\",\"logo\":\"https://hyperswitch.io/favicon.ico\",\"merchant_name\":\"HyperSwitch Inc.\",\"test_mode\":true}}'\r\n\r\nResponse\r\n\r\n {\"payout_id\":\"2371746b-df3d-41da-8fa2-455faf921ea9\",\"merchant_id\":\"merchant_1751292662\",\"amount\":1,\"currency\":\"EUR\",\"connector\":null,\"payout_type\":null,\"payout_method_data\":null,\"billing\":null,\"auto_fulfill\":true,\"customer_id\":\"cus_WULwykbL8laUbxDUeGEB\",\"customer\":{\"id\":\"cus_WULwykbL8laUbxDUeGEB\",\"name\":\"John Nether\",\"email\":null,\"phone\":\"6168205362\",\"phone_country_code\":\"+1\"},\"client_secret\":\"payout_2371746b-df3d-41da-8fa2-455faf921ea9_secret_VwDeIScMTLFzG7Iz1DZU\",\"return_url\":\"https://www.google.com\",\"business_country\":null,\"business_label\":null,\"description\":\"Its my first payout request\",\"entity_type\":\"Individual\",\"recurring\":false,\"metadata\":{},\"merchant_connector_id\":null,\"status\":\"requires_payout_method_data\",\"error_message\":null,\"error_code\":null,\"profile_id\":\"pro_vVSlzCG7M1GSX9SyssY8\",\"created\":\"2025-06-30T14:14:48.897Z\",\"connector_transaction_id\":null,\"priority\":null,\"payout_link\":{\"payout_link_id\":\"payout_link_vITmtOWGkaUfeXopruRs\",\"link\":\"http://localhost:8080/payout_link/merchant_1751292662/2371746b-df3d-41da-8fa2-455faf921ea9?locale=en\"},\"email\":null,\"name\":\"John Nether\",\"phone\":\"6168205362\",\"phone_country_code\":\"+1\",\"unified_code\":null,\"unified_message\":null,\"payout_method_id\":null}\r\n\r\n\"Screenshot\r\n\"Screenshot\r\n\"Screenshot\r\n\r\n\r\n
\r\n\r\n## Checklist\r\n\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", + "author": "kashif-m", + "created_at": "2025-06-30T14:25:21+00:00", + "merged_at": "2025-07-01T11:43:42+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "Payouts" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8504", + "commits": [ + { + "sha": "0a9fd0dac7bdf857021d8807736f2e51826fb602", + "message": "feat(connector): [ADYENPLATFORM] add card payouts", + "author": "Kashif", + "date": "2025-06-30T13:28:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0a9fd0dac7bdf857021d8807736f2e51826fb602" + }, + { + "sha": "81f6cd853cf14301e81bc71b03923beeeb947c73", + "message": "refactor(payout-required-fields): update billing related fields for AdyenPlatform", + "author": "Kashif", + "date": "2025-06-30T13:33:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/81f6cd853cf14301e81bc71b03923beeeb947c73" + }, + { + "sha": "6fd77dc29e9655b97e8c49404bcafb3a88d4edde", + "message": "refactor: card and bank fields", + "author": "Kashif", + "date": "2025-06-30T14:24:38+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6fd77dc29e9655b97e8c49404bcafb3a88d4edde" + }, + { + "sha": "6170309ea9ff5ec6378990d1924f5fa3273d1440", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-06-30T14:28:07+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6170309ea9ff5ec6378990d1924f5fa3273d1440" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8535.json b/prs/pr_8535.json new file mode 100644 index 0000000000000000000000000000000000000000..540e24c0bde8292a10a60038c3ceebe7054ed34b --- /dev/null +++ b/prs/pr_8535.json @@ -0,0 +1,211 @@ +{ + "number": 8535, + "title": "feat(connector): [AIRWALLEX] Added Ideal & Skrill payment methods ", + "description": "## Type of Change\r\n\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\nAdded Skrill and iDeal payment methods in `Airwallex`\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\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## iDeal\r\n\r\n
\r\n Request \r\n\r\n```\r\n\r\n{\r\n \"amount\": 6540,\r\n \"currency\": \"EUR\",\r\n \"amount_to_capture\": 6540,\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"setup_future_usage\": \"on_session\", \r\n \"all_keys_required\": true,\r\n \"connector\": [\r\n \"airwallex\"\r\n ],\r\n \"customer\": {\r\n \"id\": \"customer123\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customer@gmail.com\",\r\n \"phone\": \"9999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"customer_id\": \"customer123\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"bank_redirect\",\r\n \"payment_method_type\": \"ideal\",\r\n \"payment_method_data\": {\r\n \"bank_redirect\": {\r\n \"ideal\": {\r\n \"billing_details\": {\r\n \"billing_name\": \"john doe\",\r\n \"email\": \"abc@gmail.com\"\r\n },\r\n \r\n \"country\": \"NL\"\r\n }\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\": \"NL\",\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\": \"guest@example.com\"\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\": \"NL\",\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\": \"guest@example.com\"\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 6540,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ],\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 \"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 \"customer_acceptance\": {\r\n \"acceptance_type\": \"offline\",\r\n \"accepted_at\": \"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\": \"125.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \"connector_metadata\": {\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n },\r\n \"payment_link\": false,\r\n \"payment_link_config\": {\r\n \"theme\": \"\",\r\n \"logo\": \"\",\r\n \"seller_name\": \"\",\r\n \"sdk_layout\": \"\",\r\n \"display_sdk_only\": false,\r\n \"enabled_saved_payment_method\": false\r\n },\r\n \"payment_type\": \"normal\", \r\n \"request_incremental_authorization\": false,\r\n \"merchant_order_reference_id\": \"test_ord\",\r\n \"session_expiry\": 900\r\n }\r\n \r\n```\r\n\r\n
\r\n\r\n
\r\n\r\n Response \r\n\r\n```\r\n\r\n{\r\n \"payment_id\": \"pay_4kD0TrueYNM0rHzQhp6v\",\r\n \"merchant_id\": \"merchant_1751452437\",\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\": \"airwallex\",\r\n \"client_secret\": \"pay_4kD0TrueYNM0rHzQhp6v_secret_eyZsYvebTp5yQVWhtGyF\",\r\n \"created\": \"2025-07-02T12:59:37.119Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"customer123\",\r\n \"customer\": {\r\n \"id\": \"customer123\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customer@gmail.com\",\r\n \"phone\": \"9999999999\",\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\": \"on_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"bank_redirect\",\r\n \"payment_method_data\": {\r\n \"bank_redirect\": {\r\n \"type\": \"BankRedirectResponse\",\r\n \"bank_name\": null\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\": \"NL\",\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\": \"guest@example.com\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"NL\",\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\": \"guest@example.com\"\r\n },\r\n \"order_details\": [\r\n {\r\n \"brand\": null,\r\n \"amount\": 6540,\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\": \"customer@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"9999999999\",\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_4kD0TrueYNM0rHzQhp6v/merchant_1751452437/pay_4kD0TrueYNM0rHzQhp6v_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\": \"ideal\",\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\": \"customer123\",\r\n \"created_at\": 1751461177,\r\n \"expires\": 1751464777,\r\n \"secret\": \"epk_ab755942f2b445ceba3f86fef3c8ad64\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"int_hkdm4tmd7h8ua5nkrzw\",\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\": {\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\": \"int_hkdm4tmd7h8ua5nkrzw\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_TChYABTbCS5BAOmP7jUi\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_BGDDPtQnF2mblNhQ43R4\",\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-07-02T13:14:37.119Z\",\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 (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-07-02T12:59:39.171Z\",\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\": \"test_ord\",\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}\r\n\r\n```\r\n\r\n
\r\n\r\n## Skrill\r\n\r\n
\r\n\r\n Request \r\n\r\n```\r\n\r\n{\r\n \"amount\": 6540,\r\n \"currency\": \"USD\",\r\n \"amount_to_capture\": 6540,\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"all_keys_required\": true,\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"customer\": {\r\n \"id\": \"customer123\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customer@gmail.com\",\r\n \"phone\": \"9999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"customer_id\": \"customer123\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"skrill\",\r\n \"payment_method_data\": {\r\n \"wallet\": {\r\n \"skrill\": { }\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\": \"AL\",\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\": \"guest@example.com\"\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\": \"AL\",\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\": \"guest@example.com\"\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 6540,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ],\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 \"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 \"customer_acceptance\": {\r\n \"acceptance_type\": \"offline\",\r\n \"accepted_at\": \"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\": \"125.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \"connector_metadata\": {\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n },\r\n \"payment_link\": false,\r\n \"payment_link_config\": {\r\n \"theme\": \"\",\r\n \"logo\": \"\",\r\n \"seller_name\": \"\",\r\n \"sdk_layout\": \"\",\r\n \"display_sdk_only\": false,\r\n \"enabled_saved_payment_method\": false\r\n },\r\n \"payment_type\": \"normal\",\r\n \"request_incremental_authorization\": false,\r\n \"merchant_order_reference_id\": \"test_ord\",\r\n \"session_expiry\": 900\r\n}\r\n\r\n```\r\n\r\n
\r\n\r\n
\r\n Response \r\n\r\n\"Screenshot\r\n\r\n```\r\n\r\n{\r\n \"payment_id\": \"pay_uflgeDx1Fokml4GmnWWq\",\r\n \"merchant_id\": \"merchant_1751452437\",\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\": \"airwallex\",\r\n \"client_secret\": \"pay_uflgeDx1Fokml4GmnWWq_secret_kLkCB504SCrz90gTLcQz\",\r\n \"created\": \"2025-07-02T11:06:39.764Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"customer123\",\r\n \"customer\": {\r\n \"id\": \"customer123\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customer@gmail.com\",\r\n \"phone\": \"9999999999\",\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\": \"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 \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"AL\",\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\": \"guest@example.com\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"AL\",\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\": \"guest@example.com\"\r\n },\r\n \"order_details\": [\r\n {\r\n \"brand\": null,\r\n \"amount\": 6540,\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\": \"customer@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"9999999999\",\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_uflgeDx1Fokml4GmnWWq/merchant_1751452437/pay_uflgeDx1Fokml4GmnWWq_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\": \"skrill\",\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\": \"customer123\",\r\n \"created_at\": 1751454399,\r\n \"expires\": 1751457999,\r\n \"secret\": \"epk_47860a35b02242a2990513ab6313c6f3\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"int_hkdm96s82h8u71ki67b\",\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\": {\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\": \"int_hkdm96s82h8u71ki67b\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_TChYABTbCS5BAOmP7jUi\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_BGDDPtQnF2mblNhQ43R4\",\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-07-02T11:21:39.764Z\",\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 (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-07-02T11:06:41.729Z\",\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\": \"test_ord\",\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}\r\n\r\n```\r\n\r\n
\r\n\r\n---\r\n\r\n
\r\n Cypress test \r\n\r\n\"Screenshot\r\n\r\n
\r\n\r\n## Checklist\r\n\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", + "author": "Vani-1107", + "created_at": "2025-07-02T14:05:15+00:00", + "merged_at": "2025-07-24T08:11:05+00:00", + "base_branch": "main", + "labels": [ + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8535", + "commits": [ + { + "sha": "727973c3d59c4bc6ca5c949e7f88c440f45d1bff", + "message": "added payment methods", + "author": "Vani Gupta", + "date": "2025-06-26T09:33:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/727973c3d59c4bc6ca5c949e7f88c440f45d1bff" + }, + { + "sha": "f7fd608e9db7607f9150f7aed6d1151347d6059a", + "message": "airwallex - add payment methods", + "author": "Vani Gupta", + "date": "2025-06-26T18:39:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f7fd608e9db7607f9150f7aed6d1151347d6059a" + }, + { + "sha": "bdcf55aaa7a5b294ebf9c87d29ae31d42375a176", + "message": "add pm for airwallex", + "author": "Vani Gupta", + "date": "2025-06-26T19:26:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/bdcf55aaa7a5b294ebf9c87d29ae31d42375a176" + }, + { + "sha": "42dbe970587dc244b2527e5e497935f6c2d580b4", + "message": "added skrill and indonesian bank transfer to airwallex", + "author": "Vani Gupta", + "date": "2025-06-30T07:08:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/42dbe970587dc244b2527e5e497935f6c2d580b4" + }, + { + "sha": "af4944267f553c00213855cfff5203ce15bfe2a1", + "message": "added klarna,blik,paypal,atome,trustly pm to airwallex", + "author": "Vani Gupta", + "date": "2025-06-30T21:18:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/af4944267f553c00213855cfff5203ce15bfe2a1" + }, + { + "sha": "1db331159592423f823f99e54d5d649975186f15", + "message": "changes in payments request", + "author": "Vani Gupta", + "date": "2025-07-02T03:25:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1db331159592423f823f99e54d5d649975186f15" + }, + { + "sha": "673448823d367da95c5346687aef278ea205580c", + "message": "indonesian bank transfer disabled", + "author": "Vani Gupta", + "date": "2025-07-02T10:04:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/673448823d367da95c5346687aef278ea205580c" + }, + { + "sha": "9583ca5829454cd5cb92c121acc0b3b6008558aa", + "message": "merged klarna,blik,paypal,atome,trustly pm from add_pm_airwallex", + "author": "Vani Gupta", + "date": "2025-07-02T11:01:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9583ca5829454cd5cb92c121acc0b3b6008558aa" + }, + { + "sha": "f7a9f1daab06071dd28c73f2a8014c83320c7818", + "message": "changes in toml file", + "author": "Vani Gupta", + "date": "2025-07-02T13:33:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f7a9f1daab06071dd28c73f2a8014c83320c7818" + }, + { + "sha": "ae82cecde9703ba472c28e2364ad4add719150db", + "message": "changes in toml file", + "author": "Vani Gupta", + "date": "2025-07-02T13:51:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ae82cecde9703ba472c28e2364ad4add719150db" + }, + { + "sha": "ca6cc161553833b52cf6b9a27700f335678452ba", + "message": "fix openapi_spec_issue", + "author": "Vani Gupta", + "date": "2025-07-02T14:21:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ca6cc161553833b52cf6b9a27700f335678452ba" + }, + { + "sha": "99cd9a13787698148a111b63d84e8d90b034e65d", + "message": "change in openapi file", + "author": "Vani Gupta", + "date": "2025-07-03T07:31:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/99cd9a13787698148a111b63d84e8d90b034e65d" + }, + { + "sha": "5ef15d0a268b6f5adb3358bc872cbb49c6236ebf", + "message": "Merge branch 'main' into add_pm_airwallex", + "author": "Sayak Bhattacharya", + "date": "2025-07-03T09:00:57+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5ef15d0a268b6f5adb3358bc872cbb49c6236ebf" + }, + { + "sha": "a003af3552889f4db45581dfa51302bc4438c156", + "message": "comments resolved", + "author": "Vani Gupta", + "date": "2025-07-03T09:55:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a003af3552889f4db45581dfa51302bc4438c156" + }, + { + "sha": "37f0bd16dde61a69788f1cc29df068df721044df", + "message": "openapi issue addressed", + "author": "Vani Gupta", + "date": "2025-07-03T11:21:24+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/37f0bd16dde61a69788f1cc29df068df721044df" + }, + { + "sha": "76d18d120cbe146812dc6d56b87fac8cdebaa0bc", + "message": "comments resolved", + "author": "Vani Gupta", + "date": "2025-07-03T13:14:39+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/76d18d120cbe146812dc6d56b87fac8cdebaa0bc" + }, + { + "sha": "20216aa88c6364eda7c5c7672f719b2db4c6a2d0", + "message": "toml file and amount conversion changes", + "author": "Vani Gupta", + "date": "2025-07-03T14:42:17+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/20216aa88c6364eda7c5c7672f719b2db4c6a2d0" + }, + { + "sha": "d52dfda35ca1fbf8ea6cfbff364cbadf98ed61ae", + "message": "comments resolved", + "author": "Vani Gupta", + "date": "2025-07-04T11:34:17+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d52dfda35ca1fbf8ea6cfbff364cbadf98ed61ae" + }, + { + "sha": "7938959a01fe6a899a7dd7185a4cb3d72f5c5fc7", + "message": "amount conversion changes added", + "author": "Vani Gupta", + "date": "2025-07-04T11:40:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7938959a01fe6a899a7dd7185a4cb3d72f5c5fc7" + }, + { + "sha": "bd9f8ff92183e4ff56b03f475de146f731726a52", + "message": "fix: added cypress tests", + "author": "Vani Gupta", + "date": "2025-07-14T08:57:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/bd9f8ff92183e4ff56b03f475de146f731726a52" + }, + { + "sha": "653e3d3fa9640af6814cf57ec1e4b7bb93e13c9f", + "message": "fix: resolving conflicts", + "author": "Vani Gupta", + "date": "2025-07-14T09:16:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/653e3d3fa9640af6814cf57ec1e4b7bb93e13c9f" + }, + { + "sha": "6612a05225cfafba3198fe1fc5210d4382ffe544", + "message": "resolved comments", + "author": "Vani Gupta", + "date": "2025-07-14T12:45:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6612a05225cfafba3198fe1fc5210d4382ffe544" + }, + { + "sha": "896e71c7c3a18c66f0a2a67e92390ad1fb75def4", + "message": "resolved comments", + "author": "Vani Gupta", + "date": "2025-07-15T03:54:41+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/896e71c7c3a18c66f0a2a67e92390ad1fb75def4" + }, + { + "sha": "051be0ee9bd7545421da065fc6f38436e3802752", + "message": "refactor", + "author": "Vani Gupta", + "date": "2025-07-20T18:39:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/051be0ee9bd7545421da065fc6f38436e3802752" + }, + { + "sha": "6e7e9187e50e351a0f6b8e6250b26b66f47be5c3", + "message": "resolved merge conflicts", + "author": "Vani Gupta", + "date": "2025-07-21T13:28:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6e7e9187e50e351a0f6b8e6250b26b66f47be5c3" + }, + { + "sha": "1464340bdca4da6cd1ccbe2ae71585ea2922474e", + "message": "chore(cypress): run formatter and address lints", + "author": "hyperswitch-bot[bot]", + "date": "2025-07-21T13:29:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1464340bdca4da6cd1ccbe2ae71585ea2922474e" + }, + { + "sha": "8a6dec73d846d93f2c94e85342fbbb44fa133f3f", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-07-21T13:35:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8a6dec73d846d93f2c94e85342fbbb44fa133f3f" + }, + { + "sha": "82fe3b9232cb26ac506a258b4f9d7086f3ad501e", + "message": "Merge branch 'main' into airwallex_add_pm", + "author": "Vani Gupta", + "date": "2025-07-23T16:45:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/82fe3b9232cb26ac506a258b4f9d7086f3ad501e" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8574.json b/prs/pr_8574.json new file mode 100644 index 0000000000000000000000000000000000000000..bb16919841465b350d798f41c338e012407dae5b --- /dev/null +++ b/prs/pr_8574.json @@ -0,0 +1,547 @@ +{ + "number": 8574, + "title": "feat(connector): [CELERO] Integrate Card Payments (Alpha)", + "description": "## Type of Change\r\n\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\r\nIntegrate celero commerce connector\r\n\r\nDoc : https://sandbox.gotnpgateway.com/docs/api/transactions\r\n[x] Cards\r\n[x] Avs\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\n\r\n\r\nMOCK SERVER results\r\n\r\n\"Screenshot\r\n\"Screenshot\r\n\"Screenshot\r\n![Uploading Screenshot 2025-08-06 at 3.00.16\u202fPM.png\u2026]()\r\n\r\n\r\n## Motivation and Context\r\n\r\nhttps://github.com/juspay/hyperswitch/issues/8575\r\n\r\n## How did you test it?\r\n\r\nNo creds for testing \r\n\r\n## Checklist\r\n\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", + "author": "Nithin1506200", + "created_at": "2025-07-08T05:02:05+00:00", + "merged_at": "2025-08-20T12:33:18+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8574", + "commits": [ + { + "sha": "38ab13c8772f92a01e76c65e76ba604a3b3809cb", + "message": "feature[celero]: celero", + "author": "nihtin", + "date": "2025-06-30T07:54:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/38ab13c8772f92a01e76c65e76ba604a3b3809cb" + }, + { + "sha": "1ddf8eb71554d6d31a5e254cdcad34bc5c7b577f", + "message": "celeroconfig.tom", + "author": "nihtin", + "date": "2025-06-30T08:00:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1ddf8eb71554d6d31a5e254cdcad34bc5c7b577f" + }, + { + "sha": "7fbd3aaa4b24aec316a95704efc71ef78fce0be1", + "message": ".toml", + "author": "nihtin", + "date": "2025-06-30T08:01:03+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7fbd3aaa4b24aec316a95704efc71ef78fce0be1" + }, + { + "sha": "115c1c94a7fefb4e39390074c352035b48929620", + "message": "toml", + "author": "nihtin", + "date": "2025-06-30T08:02:29+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/115c1c94a7fefb4e39390074c352035b48929620" + }, + { + "sha": "2c216f4a21833628c7cf8da0439ec83479f09886", + "message": "toml changes", + "author": "nihtin", + "date": "2025-06-30T08:04:57+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2c216f4a21833628c7cf8da0439ec83479f09886" + }, + { + "sha": "a41fc440a9a8526103280bbf8d72483f2c5bba31", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-06-30T08:12:03+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a41fc440a9a8526103280bbf8d72483f2c5bba31" + }, + { + "sha": "ea4e9d8bc9e62951b8101ae346b554a281680cf8", + "message": "toml", + "author": "nihtin", + "date": "2025-06-30T08:20:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ea4e9d8bc9e62951b8101ae346b554a281680cf8" + }, + { + "sha": "8982e330425d6090ebb524a020401306c9dfe565", + "message": "update", + "author": "nihtin", + "date": "2025-06-30T11:49:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8982e330425d6090ebb524a020401306c9dfe565" + }, + { + "sha": "f65ee5b6a096dcf5d86f2cd2a4f6c0348e0ff6f4", + "message": "celero", + "author": "nihtin", + "date": "2025-06-30T11:54:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f65ee5b6a096dcf5d86f2cd2a4f6c0348e0ff6f4" + }, + { + "sha": "8ae6ef8eeffca411ac13fee2f160573370cc109d", + "message": "remove grace", + "author": "nihtin", + "date": "2025-06-30T12:03:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8ae6ef8eeffca411ac13fee2f160573370cc109d" + }, + { + "sha": "b41f9d0ca9e4565203802742c26b2b0ebf456aca", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into celero", + "author": "nihtin", + "date": "2025-07-02T05:45:17+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b41f9d0ca9e4565203802742c26b2b0ebf456aca" + }, + { + "sha": "28fb9c835b8ec917b96461721f954c09c9bc5357", + "message": "default implementaiton", + "author": "nihtin", + "date": "2025-07-02T05:45:25+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/28fb9c835b8ec917b96461721f954c09c9bc5357" + }, + { + "sha": "a24af0637e1f483f0a56a154b418a2619e6ae02b", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into celero", + "author": "nihtin", + "date": "2025-07-03T05:34:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a24af0637e1f483f0a56a154b418a2619e6ae02b" + }, + { + "sha": "af3c1e9bdb8c9e28dd951be46bcf64d3ac09843b", + "message": "update", + "author": "nihtin", + "date": "2025-07-03T07:20:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/af3c1e9bdb8c9e28dd951be46bcf64d3ac09843b" + }, + { + "sha": "210667c9ce41c74402c041caa6b6277fbe770f39", + "message": "add email", + "author": "nihtin", + "date": "2025-07-03T10:49:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/210667c9ce41c74402c041caa6b6277fbe770f39" + }, + { + "sha": "ff5265c6685e3cf80fc86a2a20a48f2c94aad77a", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into celero", + "author": "nihtin", + "date": "2025-07-04T04:46:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ff5265c6685e3cf80fc86a2a20a48f2c94aad77a" + }, + { + "sha": "f52bb2f0acbf7778e709facc6afd9c6473b04507", + "message": "update", + "author": "nihtin", + "date": "2025-07-05T07:07:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f52bb2f0acbf7778e709facc6afd9c6473b04507" + }, + { + "sha": "f4b95d5f8fd3a66da477625f32422625ba77f2d9", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into celero", + "author": "nihtin", + "date": "2025-07-07T05:19:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f4b95d5f8fd3a66da477625f32422625ba77f2d9" + }, + { + "sha": "8114d20a34ef07c244ca4dcc56401ff980d02f0a", + "message": "Merge branch 'celero' of https://github.com/juspay/hyperswitch into celero_integrations", + "author": "nihtin", + "date": "2025-07-07T05:42:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8114d20a34ef07c244ca4dcc56401ff980d02f0a" + }, + { + "sha": "a8da75f4b0481bc7b3258687de02b2883ffca314", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into celero_integrations", + "author": "nihtin", + "date": "2025-07-08T05:04:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a8da75f4b0481bc7b3258687de02b2883ffca314" + }, + { + "sha": "c9c4798eb8f6f9c7cbd68ebe19a73c8e4bd33ced", + "message": "update clippy", + "author": "nihtin", + "date": "2025-07-08T06:29:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c9c4798eb8f6f9c7cbd68ebe19a73c8e4bd33ced" + }, + { + "sha": "772a60ee88ee825e87b67e34f9811f1a0b144285", + "message": "update", + "author": "nihtin", + "date": "2025-07-08T09:43:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/772a60ee88ee825e87b67e34f9811f1a0b144285" + }, + { + "sha": "98fc500e00a8517969a4bcf3af0647084498b253", + "message": "cards", + "author": "nihtin", + "date": "2025-07-08T09:48:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/98fc500e00a8517969a4bcf3af0647084498b253" + }, + { + "sha": "170baeae5534380df8b2adbfcf9ae0972ab7a7b8", + "message": "cards", + "author": "nihtin", + "date": "2025-07-08T09:53:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/170baeae5534380df8b2adbfcf9ae0972ab7a7b8" + }, + { + "sha": "63f8d98746a533224d80597c0cc6f14400089c73", + "message": "update", + "author": "nihtin", + "date": "2025-07-09T05:26:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/63f8d98746a533224d80597c0cc6f14400089c73" + }, + { + "sha": "97671f9a9d57c107128574e061efb7c8f1865b06", + "message": "update", + "author": "nihtin", + "date": "2025-07-09T05:35:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/97671f9a9d57c107128574e061efb7c8f1865b06" + }, + { + "sha": "900fc56f1b092cd045f915d1619bc4b6255ac006", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into celero_integrations", + "author": "nihtin", + "date": "2025-07-09T07:06:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/900fc56f1b092cd045f915d1619bc4b6255ac006" + }, + { + "sha": "00cedb48e8c0aadd8d0ca9e1802da3808d78348f", + "message": "update", + "author": "nihtin", + "date": "2025-07-09T09:00:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/00cedb48e8c0aadd8d0ca9e1802da3808d78348f" + }, + { + "sha": "2d2a512ee3f4ea1d085148959b5ce3c44b734cd3", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into celero_integrations", + "author": "nihtin", + "date": "2025-08-05T05:00:23+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2d2a512ee3f4ea1d085148959b5ce3c44b734cd3" + }, + { + "sha": "e1e15421c9521558e58c7db091c865bdecd181eb", + "message": "update", + "author": "nihtin", + "date": "2025-08-05T06:31:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e1e15421c9521558e58c7db091c865bdecd181eb" + }, + { + "sha": "8ec2852ad88b62f7ef1c4a4c39803792c25db1d4", + "message": "update", + "author": "nihtin", + "date": "2025-08-05T06:37:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8ec2852ad88b62f7ef1c4a4c39803792c25db1d4" + }, + { + "sha": "4235ee5c137f97d6f31950e942e1109efd5df63b", + "message": "update", + "author": "nihtin", + "date": "2025-08-05T06:51:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4235ee5c137f97d6f31950e942e1109efd5df63b" + }, + { + "sha": "6af33ae573bcae1007d3f76e9d35e1514dfdc76e", + "message": "Update .github/workflows/cypress-tests-runner.yml\n\nCo-authored-by: Pa1NarK <69745008+pixincreate@users.noreply.github.com>", + "author": "Nithin N", + "date": "2025-08-05T07:01:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6af33ae573bcae1007d3f76e9d35e1514dfdc76e" + }, + { + "sha": "2f24547ea7fa1d503df910b16c2a259a5c1d81b7", + "message": "update", + "author": "nihtin", + "date": "2025-08-06T08:06:32+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2f24547ea7fa1d503df910b16c2a259a5c1d81b7" + }, + { + "sha": "3db39b04c9ca5cc268813b911f43c3947a90d044", + "message": "update", + "author": "nihtin", + "date": "2025-08-06T08:15:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3db39b04c9ca5cc268813b911f43c3947a90d044" + }, + { + "sha": "606d9779e1e9b75cbf48b14b2475ef51f8802d37", + "message": "update cypress", + "author": "nihtin", + "date": "2025-08-06T09:24:39+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/606d9779e1e9b75cbf48b14b2475ef51f8802d37" + }, + { + "sha": "e0595630f17d4ef7efdb18deb65f5cd87f67da68", + "message": "ci: add mock creds for alpha connectors", + "author": "PiX", + "date": "2025-08-06T17:22:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e0595630f17d4ef7efdb18deb65f5cd87f67da68" + }, + { + "sha": "aeee8fa18ee4f68747eeab00cc9c2631774f6b0a", + "message": "ci: change celero cred", + "author": "PiX", + "date": "2025-08-06T18:23:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/aeee8fa18ee4f68747eeab00cc9c2631774f6b0a" + }, + { + "sha": "ceaab49fd9bf79a0d261348b964c2af81f05b662", + "message": "Apply suggestion from @pixincreate\n\nCo-authored-by: Pa1NarK <69745008+pixincreate@users.noreply.github.com>", + "author": "Nithin N", + "date": "2025-08-07T05:16:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ceaab49fd9bf79a0d261348b964c2af81f05b662" + }, + { + "sha": "1af017f82debc429dca4afbf7ad9a4d4a8d43b1e", + "message": "update", + "author": "nihtin", + "date": "2025-08-07T06:04:39+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1af017f82debc429dca4afbf7ad9a4d4a8d43b1e" + }, + { + "sha": "0e2298fa2bdd0db98383254d3aab49a6946d30da", + "message": "remove manual multiple as not sure", + "author": "nihtin", + "date": "2025-08-07T06:07:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0e2298fa2bdd0db98383254d3aab49a6946d30da" + }, + { + "sha": "18df7d3393f33aeb1dce0caceff19fd642a89fd5", + "message": "update", + "author": "nihtin", + "date": "2025-08-07T06:16:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/18df7d3393f33aeb1dce0caceff19fd642a89fd5" + }, + { + "sha": "80211d13c59ecb32d60e574c3e36d5d9af735ada", + "message": "update", + "author": "nihtin", + "date": "2025-08-07T11:15:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/80211d13c59ecb32d60e574c3e36d5d9af735ada" + }, + { + "sha": "3d3264205d8233cfab5851b80e47292b3b431824", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into celero_integrations", + "author": "nihtin", + "date": "2025-08-07T12:19:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3d3264205d8233cfab5851b80e47292b3b431824" + }, + { + "sha": "8b99e79033c0eddb4aaa05706f46dc2e9d45e326", + "message": "fix: dynamic port for multiple mock servers", + "author": "PiX", + "date": "2025-08-07T16:27:48+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8b99e79033c0eddb4aaa05706f46dc2e9d45e326" + }, + { + "sha": "19358cfd40691837d001a25fccd8e5fa5b37d88f", + "message": "update payment_method_data_failed", + "author": "nihtin", + "date": "2025-08-08T06:03:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/19358cfd40691837d001a25fccd8e5fa5b37d88f" + }, + { + "sha": "4b7f36b5ebe50afe302b67df39d47700a3218594", + "message": "mock server update", + "author": "nihtin", + "date": "2025-08-08T09:54:01+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4b7f36b5ebe50afe302b67df39d47700a3218594" + }, + { + "sha": "0f8be36a2d79691b221c6bb3418a623c9d12f78d", + "message": "i[date", + "author": "nihtin", + "date": "2025-08-08T10:04:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0f8be36a2d79691b221c6bb3418a623c9d12f78d" + }, + { + "sha": "2e3145a79ec49f5566e026e6ef3200bf350d1402", + "message": "update", + "author": "nihtin", + "date": "2025-08-08T12:21:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2e3145a79ec49f5566e026e6ef3200bf350d1402" + }, + { + "sha": "d5bfc8e63e68693d420d45800f0f343e2321c2a6", + "message": "update eslint", + "author": "nihtin", + "date": "2025-08-11T08:36:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d5bfc8e63e68693d420d45800f0f343e2321c2a6" + }, + { + "sha": "26038027aae40b524015c8ec2c3479143ee60ec4", + "message": "update", + "author": "nihtin", + "date": "2025-08-11T08:45:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/26038027aae40b524015c8ec2c3479143ee60ec4" + }, + { + "sha": "357d14189bd1ed8484412744b2966ac9c45b8d7c", + "message": "update url", + "author": "nihtin", + "date": "2025-08-11T08:48:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/357d14189bd1ed8484412744b2966ac9c45b8d7c" + }, + { + "sha": "7c8d96607cbc3d288170f2451a4cf98a36cf29d8", + "message": "Merge branch 'feat/mockserver-creds' into mockserver", + "author": "Pa1NarK", + "date": "2025-08-11T08:53:48+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7c8d96607cbc3d288170f2451a4cf98a36cf29d8" + }, + { + "sha": "ab4c8df0bbd19309d0ff821b73580dedfa81886f", + "message": "ci: add mock creds for alpha connectors", + "author": "PiX", + "date": "2025-08-11T09:07:18+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ab4c8df0bbd19309d0ff821b73580dedfa81886f" + }, + { + "sha": "632297ea3de10491ecfa1d42713d982088acb0e5", + "message": "Merge branch 'mockserver' of github.com:juspay/hyperswitch into feat/mockserver-creds\n\n* 'mockserver' of github.com:juspay/hyperswitch:\n update url\n update\n update eslint\n update\n i[date\n mock server update\n fix: dynamic port for multiple mock servers\n ci: change celero cred\n ci: add mock creds for alpha connectors", + "author": "PiX", + "date": "2025-08-11T09:10:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/632297ea3de10491ecfa1d42713d982088acb0e5" + }, + { + "sha": "86e2b0ea5eb205e7b47e27cbc28ef65bcc5ffdb0", + "message": "revert: few changes and fix ci", + "author": "PiX", + "date": "2025-08-11T09:30:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/86e2b0ea5eb205e7b47e27cbc28ef65bcc5ffdb0" + }, + { + "sha": "52edea3f3c6501ac4d16b5e78591fe6b9288334b", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into celero_integrations", + "author": "nihtin", + "date": "2025-08-11T10:03:41+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/52edea3f3c6501ac4d16b5e78591fe6b9288334b" + }, + { + "sha": "6c3e81e425a56b99023ba9741bbdd17f421bcb79", + "message": "Merge branch 'feat/mockserver-creds' of https://github.com/juspay/hyperswitch into celero_integrations", + "author": "nihtin", + "date": "2025-08-11T10:04:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6c3e81e425a56b99023ba9741bbdd17f421bcb79" + }, + { + "sha": "993f429b4beb6377a96a270c1dbf3279b3b39ce5", + "message": "update mock server", + "author": "nihtin", + "date": "2025-08-11T10:13:09+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/993f429b4beb6377a96a270c1dbf3279b3b39ce5" + }, + { + "sha": "a02c0e91e2e20949bb16e0023f07e13842c27131", + "message": "chore(cypress): run formatter and address lints", + "author": "hyperswitch-bot[bot]", + "date": "2025-08-11T10:15:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a02c0e91e2e20949bb16e0023f07e13842c27131" + }, + { + "sha": "615263d4422590a73f449e8cb5c175173915d46f", + "message": "fix: starter", + "author": "PiX", + "date": "2025-08-11T11:33:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/615263d4422590a73f449e8cb5c175173915d46f" + }, + { + "sha": "328962eca327866964bb0a6783e44090564fa926", + "message": "fix: loop", + "author": "PiX", + "date": "2025-08-11T13:18:32+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/328962eca327866964bb0a6783e44090564fa926" + }, + { + "sha": "7028d0690b6fede2a6ce9c2188be0295f30bc57f", + "message": "Merge branch 'main' into feat/mockserver-creds", + "author": "Pa1NarK", + "date": "2025-08-11T16:59:24+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7028d0690b6fede2a6ce9c2188be0295f30bc57f" + }, + { + "sha": "548be2e44b20775bea035b00155d1ac06273f0f2", + "message": "Merge branch 'feat/mockserver-creds' of https://github.com/juspay/hyperswitch into celero_integrations", + "author": "nihtin", + "date": "2025-08-12T06:26:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/548be2e44b20775bea035b00155d1ac06273f0f2" + }, + { + "sha": "3f45a07571296066ca0abb065f6424005bd71b17", + "message": "update", + "author": "nihtin", + "date": "2025-08-12T06:27:23+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3f45a07571296066ca0abb065f6424005bd71b17" + }, + { + "sha": "35bae42d0c73ee7f090c468f704467f1387ff45a", + "message": "fix: package.json", + "author": "PiX", + "date": "2025-08-12T07:04:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/35bae42d0c73ee7f090c468f704467f1387ff45a" + }, + { + "sha": "d731a018c37a081e20daaf2e8fbe9767bb5b7ad9", + "message": "Merge branch 'feat/mockserver-creds' of github.com:juspay/hyperswitch into feat/mockserver-creds\n\n* 'feat/mockserver-creds' of github.com:juspay/hyperswitch:\n fix(connector): [NETCETERA] add fixes for authentication response fields (#8907)\n feat(payouts): add payout webhooks for Paypal and Wise (#8888)\n feat(ucs): add gateway system {Direct | UnifiedConnectorSystem} in feature metadata for v1 (#8854)\n feat(router): Add new api for delete tokenization record (#8361)\n feat(connector): add support of passing metadata in adyen payment request (#8871)", + "author": "PiX", + "date": "2025-08-12T07:05:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d731a018c37a081e20daaf2e8fbe9767bb5b7ad9" + }, + { + "sha": "d08c29363b4e4f59e1102ff9af4f54a3c28a3cb4", + "message": "Merge branch 'feat/mockserver-creds' of https://github.com/juspay/hyperswitch into celero_integrations", + "author": "nihtin", + "date": "2025-08-12T07:06:24+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d08c29363b4e4f59e1102ff9af4f54a3c28a3cb4" + }, + { + "sha": "2576cd7c7ae7d535848e765bd1cee87e241c5cab", + "message": "s3file", + "author": "nihtin", + "date": "2025-08-12T07:09:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2576cd7c7ae7d535848e765bd1cee87e241c5cab" + }, + { + "sha": "d40e9d4b27b0e846daca29aa3d083015e5d55a97", + "message": "fix: mock server", + "author": "PiX", + "date": "2025-08-12T09:36:30+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d40e9d4b27b0e846daca29aa3d083015e5d55a97" + }, + { + "sha": "87d310a6d58afe8a38d89098725ac59f44b4eb98", + "message": "chore: bump dependencies", + "author": "PiX", + "date": "2025-08-12T09:38:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/87d310a6d58afe8a38d89098725ac59f44b4eb98" + }, + { + "sha": "7c495e929703477954e94d94911d8b54947ab093", + "message": "chore: bump node to v24", + "author": "PiX", + "date": "2025-08-12T09:40:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7c495e929703477954e94d94911d8b54947ab093" + }, + { + "sha": "47cf0bbe8cbb11811c5d2e4f8e0a6e787102f9e3", + "message": "Merge branch 'feat/mockserver-creds' of https://github.com/juspay/hyperswitch into celero_integrations", + "author": "nihtin", + "date": "2025-08-12T10:40:01+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/47cf0bbe8cbb11811c5d2e4f8e0a6e787102f9e3" + }, + { + "sha": "4e917dc3afd14bcce4c3f7cf95af3fae642fbd64", + "message": "update", + "author": "nihtin", + "date": "2025-08-19T07:12:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4e917dc3afd14bcce4c3f7cf95af3fae642fbd64" + }, + { + "sha": "d238fe1af0572c9b5fcd559635b66b9ae244a292", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into celero_integrations", + "author": "nihtin", + "date": "2025-08-20T10:43:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d238fe1af0572c9b5fcd559635b66b9ae244a292" + }, + { + "sha": "684f11b5fa9871863a9b57c5a31b11457a4dc442", + "message": "update", + "author": "nihtin", + "date": "2025-08-20T10:43:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/684f11b5fa9871863a9b57c5a31b11457a4dc442" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8587.json b/prs/pr_8587.json new file mode 100644 index 0000000000000000000000000000000000000000..3be69ff63efd5b0a11af3d37274bfb32ca0f2f3a --- /dev/null +++ b/prs/pr_8587.json @@ -0,0 +1,58 @@ +{ + "number": 8587, + "title": "feat(external_services): Fixed Url for Unified Connector Service gRPC Client", + "description": "## Type of Change\r\n\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\r\n\r\nChanged the Unified Connector Service gRPC Client config to accept the entire base url instead of host and port. \r\n\r\n## What is Unified Connector Service?\r\n\r\nThe Unified Connector Service is a __gRPC-based microservice__ that acts as an intermediary layer between Hyperswitch and payment connectors. Here are its key characteristics:\r\n\r\n### Core Purpose:\r\n\r\n- __Centralized Payment Processing__: UCS handles payment operations like authorization and payment sync/get operations\r\n- __Protocol Abstraction__: It provides a unified gRPC interface for interacting with various payment connectors\r\n- __Scalability__: Allows Hyperswitch to offload payment processing logic to a dedicated service\r\n\r\n### Supported Operations:\r\n\r\n1. __Payment Authorization__ (`payment_authorize`)\r\n2. __Payment Sync/Get__ (`payment_get`)\r\n\r\n### Technical Architecture:\r\n\r\n- __Protocol__: Uses gRPC with Protocol Buffers for communication\r\n- __Authentication__: Supports multiple connector auth types (HeaderKey, BodyKey, SignatureKey)\r\n- __Configuration__: Configurable host, port, and connection timeout settings\r\n\r\n## How Hyperswitch Routes Traffic to UCS\r\n\r\nThe routing to UCS follows a sophisticated decision-making process:\r\n\r\n### 1. __Decision Logic__ (`should_call_unified_connector_service`)\r\n\r\nHyperswitch determines whether to use UCS based on:\r\n\r\n- __Feature Rollout__: Percentage-based rollout configuration per merchant/connector/payment method/flow\r\n- __Configuration Key Format__: `UCS_ROLLOUT_PERCENT____`\r\n- __Client Availability__: Checks if UCS gRPC client is configured and available\r\n\r\n### 2. __Routing Flow Integration__\r\n\r\nThe UCS routing is integrated at multiple levels:\r\n\r\n#### Payment Operations Core:\r\n\r\n```rust\r\n// In decide_unified_connector_service_call()\r\nif should_call_unified_connector_service(state, merchant_context, &router_data).await? {\r\n router_data.call_unified_connector_service(state, merchant_connector_account, merchant_context).await?;\r\n} else {\r\n // Regular connector service call\r\n call_connector_service(/* parameters */).await\r\n}\r\n```\r\n\r\n#### Both V1 and V2 Flows:\r\n\r\n- __V1__: Integrated in `payments_operation_core` and `decide_unified_connector_service_call`\r\n- __V2__: Integrated in `payments_operation_core`, `internal_payments_operation_core`, and `connector_service_decider`\r\n\r\n### 3. __Request Processing__\r\n\r\nWhen UCS is selected:\r\n\r\n1. __Authentication Setup__:\r\n\r\n - Builds `ConnectorAuthMetadata` with connector credentials\r\n - Handles different auth types (API keys, signatures, etc.)\r\n\r\n2. __gRPC Communication__:\r\n\r\n - Establishes connection using configured host/port\r\n - Injects authentication headers and merchant metadata\r\n - Sends payment requests via gRPC protocol\r\n\r\n3. __Response Handling__:\r\n\r\n - Processes gRPC responses and converts them to Hyperswitch's internal format\r\n - Handles various payment statuses and error scenarios\r\n\r\n### 4. __Configuration Management__\r\n\r\nUCS routing is controlled through:\r\n\r\n- __Rollout Configuration__: Stored in the database/cache with percentage-based feature flags\r\n- __Client Configuration__: Host, port, connection timeout settings\r\n- __Merchant/Connector Specific__: Fine-grained control per merchant and connector combination\r\n\r\n### 5. __Fallback Mechanism__\r\n\r\nIf UCS is not available or the rollout percentage doesn't select it, Hyperswitch falls back to direct connector integration.\r\n\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- [x] This PR modifies application configuration/environment variables\r\n\r\n\r\n\r\n\r\n## Motivation and Context\r\n\r\n\r\nIt was decided to give the entire base URL (inclusive of http/https, domain name, and optional port number) in the config.\r\nThis would allow us to use all sorts of URLs like these:\r\n\r\n- http://localhost:3000/\r\n- http://connector-service-grpc.connector-service.svc.cluster.local/ (cluster local URL, used when both are deployed in same cluster)\r\n- https://connector-service.sandbox.juspay.in/\r\n\r\n\r\n## How did you test it?\r\n\r\n\r\n### Happy Case (Adyen)\r\n\r\n**Payment (Through Hyperswitch)**\r\n\r\n-Request\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_7xsxWdU69lVRQZHPxhX3m4retRElSfYR5UPaVTwoOPvwrAmzLyqVCmmTCIU6bJ2p' \\\r\n--data-raw '{\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"amount_to_capture\": 1000,\r\n \"customer_id\": \"abcdef\",\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 \"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\": \"30\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"737\"\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\": \"9123456789\",\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\": \"9123456789\",\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 \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\n\r\n-Response\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_nYvxwltgwLLkgoofWldv\",\r\n \"merchant_id\": \"postman_merchant_GHAction_be0d276f-8177-4c23-9d78-e2590128391d\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1000,\r\n \"net_amount\": 1000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 1000,\r\n \"connector\": \"adyen\",\r\n \"client_secret\": \"pay_nYvxwltgwLLkgoofWldv_secret_KWeea2KoCzZSKD6k0qow\",\r\n \"created\": \"2025-06-06T12:13:18.720Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"abcdef\",\r\n \"customer\": {\r\n \"id\": \"abcdef\",\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\": \"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\": \"1111\",\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\": \"411111\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\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\": {\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\": \"9123456789\",\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\": \"9123456789\",\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://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\": \"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\": \"abcdef\",\r\n \"created_at\": 1749211998,\r\n \"expires\": 1749215598,\r\n \"secret\": \"epk_4ab0c2e897284f14962fc5f19c424092\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"L8T7XPGBM6XLLR65\",\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\": \"pay_nYvxwltgwLLkgoofWldv_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_PAIDVbsAbyEWQDTK7fHD\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_aL03aMAluMPtmE5JHDEl\",\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-06-06T12:28:18.720Z\",\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-06-06T12:13:20.638Z\",\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}\r\n```\r\n\r\n**Payment (Through Unified Connector Service)**\r\n\r\n-Request\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_7xsxWdU69lVRQZHPxhX3m4retRElSfYR5UPaVTwoOPvwrAmzLyqVCmmTCIU6bJ2p' \\\r\n--data-raw '{\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"amount_to_capture\": 1000,\r\n \"customer_id\": \"abcdef\",\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 \"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\": \"30\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"737\"\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\": \"9123456789\",\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\": \"9123456789\",\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 \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\n\r\n-Response\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_bkVrJMZvIAEiJmz2j5cR\",\r\n \"merchant_id\": \"postman_merchant_GHAction_be0d276f-8177-4c23-9d78-e2590128391d\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1000,\r\n \"net_amount\": 1000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 1000,\r\n \"connector\": \"adyen\",\r\n \"client_secret\": \"pay_bkVrJMZvIAEiJmz2j5cR_secret_JCjopg5BaNBEAJrOWp5I\",\r\n \"created\": \"2025-06-06T12:09:30.018Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"abcdef\",\r\n \"customer\": {\r\n \"id\": \"abcdef\",\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\": \"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\": \"1111\",\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\": \"411111\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\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\": {\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\": \"9123456789\",\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\": \"9123456789\",\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://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\": \"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\": \"abcdef\",\r\n \"created_at\": 1749211769,\r\n \"expires\": 1749215369,\r\n \"secret\": \"epk_3217360d3a924cf991bde23c6155ad75\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"pay_bkVrJMZvIAEiJmz2j5cR_1\",\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\": \"pay_bkVrJMZvIAEiJmz2j5cR_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_PAIDVbsAbyEWQDTK7fHD\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_aL03aMAluMPtmE5JHDEl\",\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-06-06T12:24:30.018Z\",\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-06-06T12:09:32.852Z\",\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}\r\n```\r\n\r\n### Failure Case (Adyen) \r\n\r\n**Payment (Through Hyperswitch)**\r\n\r\n-Request\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_IyPRyeEZQVWdKHz40sZZNdJWhK9VzN2sj1I2pBroIt1nmHWM2O2qvtKo7wXDFjhf' \\\r\n--data-raw '{\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"amount_to_capture\": 1000,\r\n \"customer_id\": \"abcdef\",\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 \"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\": \"30\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"739\"\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\": \"9123456789\",\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\": \"9123456789\",\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 \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\n\r\n-Response\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_XxNJgnR11lsEdsN2dT9r\",\r\n \"merchant_id\": \"postman_merchant_GHAction_43152e6c-e97e-47b9-859e-63f125c146cc\",\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\": \"adyen\",\r\n \"client_secret\": \"pay_XxNJgnR11lsEdsN2dT9r_secret_K1M26AfFNIHLYDpNrG1V\",\r\n \"created\": \"2025-06-09T11:45:57.628Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"abcdef\",\r\n \"customer\": {\r\n \"id\": \"abcdef\",\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\": \"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\": \"1111\",\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\": \"411111\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\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\": {\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\": \"9123456789\",\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\": \"9123456789\",\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://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\": \"24\",\r\n \"error_message\": \"CVC Declined\",\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\": \"abcdef\",\r\n \"created_at\": 1749469557,\r\n \"expires\": 1749473157,\r\n \"secret\": \"epk_d38fe6bfd1874be7beda3f1ce333dec2\"\r\n },\r\n \"manual_retry_allowed\": true,\r\n \"connector_transaction_id\": \"G88K4K5FM6XLLR65\",\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_lJyta4Kl5ASi3ssVgHiB\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_DO0Hlz6fvzvMUFoC7SaT\",\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-06-09T12:00:57.628Z\",\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-06-09T11:46:00.200Z\",\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\": \"DECLINED CVC Incorrect\",\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null\r\n}\r\n```\r\n\r\n**Payment (Through Unified Connector Service)**\r\n\r\n-Request\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_IyPRyeEZQVWdKHz40sZZNdJWhK9VzN2sj1I2pBroIt1nmHWM2O2qvtKo7wXDFjhf' \\\r\n--data-raw '{\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"amount_to_capture\": 1000,\r\n \"customer_id\": \"abcdef\",\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 \"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\": \"30\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"739\"\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\": \"9123456789\",\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\": \"9123456789\",\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 \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\n\r\n-Response\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_qA0AgXeMZeo0eRv7zttj\",\r\n \"merchant_id\": \"postman_merchant_GHAction_43152e6c-e97e-47b9-859e-63f125c146cc\",\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\": \"adyen\",\r\n \"client_secret\": \"pay_qA0AgXeMZeo0eRv7zttj_secret_AvdqzELk9yZfJm603Mkj\",\r\n \"created\": \"2025-06-09T12:20:15.206Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"abcdef\",\r\n \"customer\": {\r\n \"id\": \"abcdef\",\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\": \"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\": \"1111\",\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\": \"411111\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\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\": {\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\": \"9123456789\",\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\": \"9123456789\",\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://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\": \"24\",\r\n \"error_message\": \"CVC Declined\",\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\": \"abcdef\",\r\n \"created_at\": 1749471615,\r\n \"expires\": 1749475215,\r\n \"secret\": \"epk_3e37b132c42a44ec95100ff1ebe10ecc\"\r\n },\r\n \"manual_retry_allowed\": true,\r\n \"connector_transaction_id\": \"QQJHXJ8V8XTGLXT5\",\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_lJyta4Kl5ASi3ssVgHiB\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_DO0Hlz6fvzvMUFoC7SaT\",\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-06-09T12:35:15.206Z\",\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-06-09T12:20:17.622Z\",\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}\r\n```\r\n\r\n\r\n## Checklist\r\n\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", + "author": "Debarshi-Gupta", + "created_at": "2025-07-09T10:43:30+00:00", + "merged_at": "2025-08-05T08:54:50+00:00", + "base_branch": "main", + "labels": [ + "A-framework", + "C-refactor" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8587", + "commits": [ + { + "sha": "34c89ad34e233b2bf2f8456aa440d518dde2820b", + "message": "fix: Fixed Url for Unified Connector Service gRPC Client", + "author": "debarshi.gupta", + "date": "2025-07-09T10:41:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/34c89ad34e233b2bf2f8456aa440d518dde2820b" + }, + { + "sha": "fd7f6a1ce2fc91e2836f2d2f5fcf308882228661", + "message": "Merge branch 'main' into fix_ucs_url", + "author": "Debarshi Gupta", + "date": "2025-07-10T07:48:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fd7f6a1ce2fc91e2836f2d2f5fcf308882228661" + }, + { + "sha": "247f2a85fd6c814c0508fd53ffa82bf98b769fd7", + "message": "Merge branch 'main' into fix_ucs_url", + "author": "Debarshi Gupta", + "date": "2025-07-10T18:43:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/247f2a85fd6c814c0508fd53ffa82bf98b769fd7" + }, + { + "sha": "e06e0f93bb110e65f4bc3fac27b3f61b5918b663", + "message": "Merge branch 'main' into fix_ucs_url", + "author": "Debarshi Gupta", + "date": "2025-07-11T05:37:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e06e0f93bb110e65f4bc3fac27b3f61b5918b663" + }, + { + "sha": "ccea433fd3840ea5a7e0790865f9e190b69d5114", + "message": "Merge branch 'main' into fix_ucs_url", + "author": "Debarshi Gupta", + "date": "2025-07-13T19:48:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ccea433fd3840ea5a7e0790865f9e190b69d5114" + }, + { + "sha": "1db57f4ee3dcf0620957a0ecc324019bcb051b91", + "message": "chore: git merge origin main", + "author": "debarshi.gupta", + "date": "2025-07-31T13:14:13+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1db57f4ee3dcf0620957a0ecc324019bcb051b91" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8597.json b/prs/pr_8597.json new file mode 100644 index 0000000000000000000000000000000000000000..c173234b2e75b9847b3b6bd28a38863c2ccd4ff1 --- /dev/null +++ b/prs/pr_8597.json @@ -0,0 +1,219 @@ +{ + "number": 8597, + "title": "feat(connector): [payload] add recurring payments", + "description": "## Type of Change\r\n\r\n\r\n- [ ] Bugfix\r\n- [x] 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\r\n\r\nThis PR targets Payload connector and has multiple fixes and a new feature introduced:\r\n\r\n- Add support for mandates (PMID and MandateID)\r\n- Add filters\r\n - Enable connector customer\r\n - Enable mandates\r\n - Add currency filter\r\n- Change AuthType from `HeaderKey` to `CurrencyAuthKey`\r\n - Add `CurrencyAuthKey` to connector auth\r\n - Wasm changes (connector configs)\r\n- Add connectorCustomer call\r\n- Change currency from `StringMajorUnit` to `StringMinorUnit`\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\nCloses #8610\r\n\r\n## How did you test it?\r\n\r\n\r\n- Modifications to test_utils does not affect the [postman ci](https://github.com/juspay/hyperswitch/actions/runs/16190276513/job/45704229040?pr=8597)\r\n- Have enabled mandates for Payload in Cypress, it takes a lot of time to run (30 seconds timeout for each call) as the connector marks the transaction as duplicate. So adding it manually\r\n\r\n### PMID\r\n\r\n
\r\n\r\nCIT\r\n\r\n```curl\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_m7DXx6rBjmKrdRDYX9enGDJJdFWAR88Rqd9URbqrN3qHYPH4PdNkG4CS4RCRmtof' \\\r\n--data-raw '{\r\n \"currency\": \"USD\",\r\n \"amount\": 301,\r\n \"confirm\": true,\r\n \"amount_to_capture\": 301,\r\n \"customer_id\": \"payload_connector_test\",\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://www.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 \"payment_method\": \"card\",\r\n \"setup_future_usage\": \"off_session\",\r\n \"payment_method_type\": \"debit\",\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\": \"joseph Doe\",\r\n \"card_cvc\": \"737\"\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\": \"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\": \"CA\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"john\",\r\n \"last_name\": \"Doe\"\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\": \"109.71.40.0\"\r\n },\r\n \"metadata\": {\r\n \"order_category\": \"applepay\"\r\n },\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 300,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ],\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}'\r\n```\r\n```json\r\n{\r\n \"payment_id\": \"pay_cFFeOg8VQh3r1UKHjxQY\",\r\n \"merchant_id\": \"postman_merchant_GHAction_1752169809\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 301,\r\n \"net_amount\": 301,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 301,\r\n \"connector\": \"payload\",\r\n \"client_secret\": \"pay_cFFeOg8VQh3r1UKHjxQY_secret_9vFrK98gjbfWd17w3NGK\",\r\n \"created\": \"2025-07-11T10:03:59.758Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"payload_connector_test\",\r\n \"customer\": {\r\n \"id\": \"payload_connector_test\",\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\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"STRIPE PAYMENTS UK LIMITED\",\r\n \"card_issuing_country\": \"UNITEDKINGDOM\",\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\": \"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\": {\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\": \"john\",\r\n \"last_name\": \"Doe\"\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\": \"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\": [\r\n {\r\n \"brand\": null,\r\n \"amount\": 300,\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://www.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\": \"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\": \"payload_connector_test\",\r\n \"created_at\": 1752228239,\r\n \"expires\": 1752231839,\r\n \"secret\": \"epk_6e270b5bb80e49128fb686e54660baab\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"txn_3eq8JiwRx0zcJClLHNNTG\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"order_category\": \"applepay\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"PL-NUR-ARK-VST\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_U3a7wsuWqn7xeMgksp4V\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_7CKiTQWaqGxdIPppsU0c\",\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-07-11T10:18:59.758Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"109.71.40.0\",\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\": \"pm_K6kfIFL4v3OssBHiGbwP\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-07-11T10:04:01.887Z\",\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\": \"pm_3eq8JiuwUNh4hmG5LM9z8\",\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}\r\n```\r\n\r\n
\r\n\r\n
\r\n\r\nDB\r\n\r\n```sh\r\nselect * from payment_methods where payment_method_id='pm_K6kfIFL4v3OssBHiGbwP';\r\n```\r\n\r\n\"image\"\r\n\r\n
\r\n\r\n
\r\n\r\nLogs\r\n\r\n\"image\"\r\n\r\n
\r\n\r\n
\r\n\r\nMIT\r\n\r\n```curl\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_m7DXx6rBjmKrdRDYX9enGDJJdFWAR88Rqd9URbqrN3qHYPH4PdNkG4CS4RCRmtof' \\\r\n--data-raw '{\r\n \"amount\": 499,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"customer_id\": \"payload_connector_test\",\r\n \"email\": \"guest@example.com\",\r\n \"off_session\": true,\r\n \"recurring_details\": {\r\n \"type\": \"payment_method_id\",\r\n \"data\": \"pm_K6kfIFL4v3OssBHiGbwP\"\r\n },\r\n \r\n \"authentication_type\": \"no_three_ds\"\r\n}'\r\n```\r\n```json\r\n{\r\n \"payment_id\": \"pay_Kh14Ha1Qf2No7vy5uInT\",\r\n \"merchant_id\": \"postman_merchant_GHAction_1752169809\",\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\": \"payload\",\r\n \"client_secret\": \"pay_Kh14Ha1Qf2No7vy5uInT_secret_dZrGrLgAydWM6cohE4n3\",\r\n \"created\": \"2025-07-11T10:08:06.844Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"payload_connector_test\",\r\n \"customer\": {\r\n \"id\": \"payload_connector_test\",\r\n \"name\": \"Joseph 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\": true,\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\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"STRIPE PAYMENTS UK LIMITED\",\r\n \"card_issuing_country\": \"UNITEDKINGDOM\",\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\": \"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\": null,\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\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\": \"payload_connector_test\",\r\n \"created_at\": 1752228486,\r\n \"expires\": 1752232086,\r\n \"secret\": \"epk_a2dac1ad9e95460188359d12e909214e\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"txn_3eq8Kg5mIVLawJ4aV37th\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"PL-B4F-T13-TKQ\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_U3a7wsuWqn7xeMgksp4V\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_7CKiTQWaqGxdIPppsU0c\",\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-07-11T10:23:06.844Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": \"pm_K6kfIFL4v3OssBHiGbwP\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-07-11T10:08:08.244Z\",\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\": \"pm_3eq8JiuwUNh4hmG5LM9z8\",\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}\r\n```\r\n\r\n
\r\n\r\n
\r\n\r\nLogs\r\n\r\n\"image\"\r\n\r\n
\r\n\r\n### Mandate ID\r\n\r\n
\r\n\r\nCIT\r\n\r\n```curl\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_m7DXx6rBjmKrdRDYX9enGDJJdFWAR88Rqd9URbqrN3qHYPH4PdNkG4CS4RCRmtof' \\\r\n--data-raw '{\r\n \"currency\": \"USD\",\r\n \"amount\": 301,\r\n \"confirm\": true,\r\n \"amount_to_capture\": 301,\r\n \"customer_id\": \"payload_connector_test\",\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://www.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 \"payment_method\": \"card\",\r\n \"setup_future_usage\": \"off_session\",\r\n \"payment_method_type\": \"debit\",\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\": \"joseph Doe\",\r\n \"card_cvc\": \"737\"\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\": \"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\": \"CA\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"john\",\r\n \"last_name\": \"Doe\"\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\": \"109.71.40.0\"\r\n },\r\n \"metadata\": {\r\n \"order_category\": \"applepay\"\r\n },\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 300,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ],\r\n \"mandate_data\": {\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\": \"125.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \"mandate_type\": {\r\n \"multi_use\": {\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"start_date\": \"2023-04-21T00:00:00Z\",\r\n \"end_date\": \"2023-05-21T00:00:00Z\",\r\n \"metadata\": {\r\n \"frequency\": \"13\"\r\n }\r\n }\r\n }\r\n }\r\n}'\r\n```\r\n```json\r\n{\r\n \"payment_id\": \"pay_xfMJVkL91e65KhqShOL9\",\r\n \"merchant_id\": \"postman_merchant_GHAction_1752169809\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 301,\r\n \"net_amount\": 301,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 301,\r\n \"connector\": \"payload\",\r\n \"client_secret\": \"pay_xfMJVkL91e65KhqShOL9_secret_FVOhXugml3wRNFaoumg1\",\r\n \"created\": \"2025-07-11T10:15:51.598Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"payload_connector_test\",\r\n \"customer\": {\r\n \"id\": \"payload_connector_test\",\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\": \"man_DOv6UBVXbbPkjZXHBLUE\",\r\n \"mandate_data\": {\r\n \"update_mandate_id\": null,\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\": \"125.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \"mandate_type\": {\r\n \"multi_use\": {\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"start_date\": \"2023-04-21T00:00:00.000Z\",\r\n \"end_date\": \"2023-05-21T00:00:00.000Z\",\r\n \"metadata\": {\r\n \"frequency\": \"13\"\r\n }\r\n }\r\n }\r\n },\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\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"STRIPE PAYMENTS UK LIMITED\",\r\n \"card_issuing_country\": \"UNITEDKINGDOM\",\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\": \"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\": {\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\": \"john\",\r\n \"last_name\": \"Doe\"\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\": \"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\": [\r\n {\r\n \"brand\": null,\r\n \"amount\": 300,\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://www.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\": \"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\": \"payload_connector_test\",\r\n \"created_at\": 1752228951,\r\n \"expires\": 1752232551,\r\n \"secret\": \"epk_c5e3a34b2f784c68bea277551db69f8f\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"txn_3eq8MTfYv50WNQWctbmie\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"order_category\": \"applepay\"\r\n },\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"PL-R93-80L-0LH\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_U3a7wsuWqn7xeMgksp4V\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_7CKiTQWaqGxdIPppsU0c\",\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-07-11T10:30:51.598Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"109.71.40.0\",\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\": \"pm_59J4zT8ruI102Kufe0ba\",\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-07-11T10:15:53.533Z\",\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}\r\n```\r\n\r\n
\r\n\r\n
\r\n\r\nDB\r\n\r\n```sh\r\nselect * from mandate where mandate_id='man_DOv6UBVXbbPkjZXHBLUE';\r\n```\r\n\r\n\"image\"\r\n\r\n
\r\n\r\n
\r\n\r\nLogs\r\n\r\n\"image\"\r\n\r\n
\r\n\r\n
\r\n\r\nMIT\r\n\r\n```curl\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_m7DXx6rBjmKrdRDYX9enGDJJdFWAR88Rqd9URbqrN3qHYPH4PdNkG4CS4RCRmtof' \\\r\n--data-raw '{\r\n \"amount\": 499,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"customer_id\": \"payload_connector_test\",\r\n \"email\": \"guest@example.com\",\r\n \"off_session\": true,\r\n \"recurring_details\": {\r\n \"type\": \"mandate_id\",\r\n \"data\": \"man_DOv6UBVXbbPkjZXHBLUE\"\r\n },\r\n \"authentication_type\": \"no_three_ds\"\r\n}'\r\n```\r\n```json\r\n{\r\n \"payment_id\": \"pay_9PGgJH8pDDvgqehXW5em\",\r\n \"merchant_id\": \"postman_merchant_GHAction_1752169809\",\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\": \"payload\",\r\n \"client_secret\": \"pay_9PGgJH8pDDvgqehXW5em_secret_vH55DU5GTyE2gZCUCC5s\",\r\n \"created\": \"2025-07-11T10:18:56.534Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"payload_connector_test\",\r\n \"customer\": {\r\n \"id\": \"payload_connector_test\",\r\n \"name\": \"Joseph 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\": true,\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\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"STRIPE PAYMENTS UK LIMITED\",\r\n \"card_issuing_country\": \"UNITEDKINGDOM\",\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\": \"joseph Doe\",\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"48d415eb-209f-4172-9c29-19bfc632e07d\",\r\n \"shipping\": null,\r\n \"billing\": null,\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\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\": \"payload_connector_test\",\r\n \"created_at\": 1752229136,\r\n \"expires\": 1752232736,\r\n \"secret\": \"epk_9a4366bde51147aa934745fa0e027bf1\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"txn_3eq8NC1EJ8WDm9T9DDq4w\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"PL-VJO-13E-620\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_U3a7wsuWqn7xeMgksp4V\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_7CKiTQWaqGxdIPppsU0c\",\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-07-11T10:33:56.534Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_method_id\": \"pm_59J4zT8ruI102Kufe0ba\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-07-11T10:18:58.254Z\",\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\": \"pm_3eq8MTeHLzBEtLVBD2g0b\",\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}\r\n```\r\n\r\n
\r\n\r\n
\r\n\r\nLogs\r\n\r\n\"image\"\r\n\r\n
\r\n\r\n### Cypress Test\r\n\r\n
\r\n\r\nCypress\r\n\r\n\"image\"\r\n\r\n
\r\n\r\n## Checklist\r\n\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `just clippy && just clippy_v2`\r\n- [x] I reviewed the submitted code\r\n- [x] I added unit tests for my changes where possible\r\n", + "author": "pixincreate", + "created_at": "2025-07-10T08:37:51+00:00", + "merged_at": "2025-07-31T07:04:50+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "C-feature" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8597", + "commits": [ + { + "sha": "ea986013beb9f0f8696091d81c2c8fb85f6d3cb9", + "message": "fix: throw an error if billing address fields are missing", + "author": "PiX", + "date": "2025-07-04T16:49:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ea986013beb9f0f8696091d81c2c8fb85f6d3cb9" + }, + { + "sha": "3c923c2c10482ebd6484b92389627ad77053ebc9", + "message": "ci(cypress): address comments added in #8545", + "author": "PiX", + "date": "2025-07-06T09:12:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3c923c2c10482ebd6484b92389627ad77053ebc9" + }, + { + "sha": "337981b47d8a8af91bcaec7369c249ea13b00db6", + "message": "feat(webhook): implement response struct for payload webhook", + "author": "PiX", + "date": "2025-07-06T09:32:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/337981b47d8a8af91bcaec7369c249ea13b00db6" + }, + { + "sha": "d7ea690b144bce53167908549bb2a53cca01c680", + "message": "feat(webhook): implement traits and impl for payload webhook", + "author": "PiX", + "date": "2025-07-06T09:34:38+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d7ea690b144bce53167908549bb2a53cca01c680" + }, + { + "sha": "697921bc13278832c572183e0bea0f84742da24a", + "message": "fix(mandate): [payload] throw 501 for setup mandates", + "author": "PiX", + "date": "2025-07-06T09:35:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/697921bc13278832c572183e0bea0f84742da24a" + }, + { + "sha": "4425c9b2ebe3b890dea0959c9d2de490d92b6632", + "message": "chore(env): payload does not support source verification", + "author": "PiX", + "date": "2025-07-06T09:36:03+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4425c9b2ebe3b890dea0959c9d2de490d92b6632" + }, + { + "sha": "fdf166fba55e571d5a3d2be8c7ea2d5589647b5b", + "message": "chore: run formatter", + "author": "PiX", + "date": "2025-07-06T10:37:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fdf166fba55e571d5a3d2be8c7ea2d5589647b5b" + }, + { + "sha": "b14838716d1189497dd74b325e207e04fd3fb0a6", + "message": "fix: webhook comment", + "author": "PiX", + "date": "2025-07-07T11:17:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b14838716d1189497dd74b325e207e04fd3fb0a6" + }, + { + "sha": "2b29029d9f1a73c0c0160b72a0447c42215a95b6", + "message": "refactor: add source verification (false), and fix mapping", + "author": "PiX", + "date": "2025-07-07T11:17:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2b29029d9f1a73c0c0160b72a0447c42215a95b6" + }, + { + "sha": "661fbbe641841ced34531dc16e6dcad7ac999f52", + "message": "Merge branch 'main' of github.com:juspay/hyperswitch into connector/payload-webhooks\n\n* 'main' of github.com:juspay/hyperswitch:\n refactor(connector): Move connector mappings and endpoints to dedicated modules (#8562)\n ci(cypress): fix `hipay` test cases (#8563)\n chore(version): 2025.07.09.0\n fix(payment_method): update entity id used for Vault to global customer id (#8380)\n refactor(routing): add conditional check for invoking DE routing flows (#8559)\n feat(connector): [AUTHIPAY] Integrate cards non 3ds payments (#8266)\n ci(cypress): add payu connector (#8567)\n feat(connector): [silverflow] template code (#8553)\n chore(version): 2025.07.08.0\n feat(cypress): [worldpayvantiv] add cypress test (#8234)\n feat(connectors): [worldpayvantiv] add connector mandate support (#8546)\n feat(connector): [Celero] add Connector Template Code (#8489)\n feat(payment-methods): create payment_token in vault confirm / do payment-confirm with temp token from session (#8525)\n ci(cypress): Add Tsys,Square cypress test (#8543)\n chore(version): 2025.07.07.0", + "author": "PiX", + "date": "2025-07-09T08:44:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/661fbbe641841ced34531dc16e6dcad7ac999f52" + }, + { + "sha": "c83426fc146539e73d79c89ecd3f0d8c539296cf", + "message": "Merge branch 'main' of github.com:juspay/hyperswitch into connector/payload-webhooks\n\n* 'main' of github.com:juspay/hyperswitch:\n feat(payments): propagate additional payment method data for apple pay during MIT (#7170)\n feat(core): Hyperswitch <|> UCS integration v2 (#8439)\n feat(connector): [payload] add webhook support (#8558)\n ci(cypress): Added Dlocal Connector Test (#8362)\n feat(connector): [AIRWALLEX] - Added Paypal, Trustly, Klarna , Atome, Blik Payment Methods (#8475)\n refactor(cypress): update skip logic and test flow for cypress incremental auth tests (#8594)\n chore(version): 2025.07.11.0\n chore: address Rust 1.88.0 clippy lints (#8607)\n chore(version): 2025.07.10.0", + "author": "PiX", + "date": "2025-07-11T16:17:24+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c83426fc146539e73d79c89ecd3f0d8c539296cf" + }, + { + "sha": "18c86ecb13b856e3d3eba77713b07d11271b05ee", + "message": "chore: update configs for payload connector", + "author": "PiX", + "date": "2025-07-09T11:12:03+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/18c86ecb13b856e3d3eba77713b07d11271b05ee" + }, + { + "sha": "a9d88a92df6c5937e02cc28ea1ea804fe41c15ba", + "message": "chore: remove country filters", + "author": "PiX", + "date": "2025-07-09T19:26:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a9d88a92df6c5937e02cc28ea1ea804fe41c15ba" + }, + { + "sha": "b4c9e9d03f4f54cbba129f4b823e76044daf5dfb", + "message": "refactor: update auth key type to `CurrencyAuthKey` instead of `HeaderKey\"", + "author": "PiX", + "date": "2025-07-09T19:29:07+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b4c9e9d03f4f54cbba129f4b823e76044daf5dfb" + }, + { + "sha": "32c0906ab284f76ed1a738cba97d9bd37c71996f", + "message": "fix: issues", + "author": "PiX", + "date": "2025-07-10T08:36:18+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/32c0906ab284f76ed1a738cba97d9bd37c71996f" + }, + { + "sha": "1304e9fe8eeb416e7a05ba3a0383c85093a25ceb", + "message": "chore: enable connector customer and mandate config for payload", + "author": "PiX", + "date": "2025-07-10T19:25:01+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1304e9fe8eeb416e7a05ba3a0383c85093a25ceb" + }, + { + "sha": "486ac82455cd497652c67ee3c7d23a79a45f960a", + "message": "feat: add `connectorCustomer` support, `mandate` support, use `stringMinorUnit`", + "author": "PiX", + "date": "2025-07-10T19:28:29+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/486ac82455cd497652c67ee3c7d23a79a45f960a" + }, + { + "sha": "9e3d42662b8c4cc568c7ee067bd90f1c179b462f", + "message": "chore: lints and format", + "author": "PiX", + "date": "2025-07-10T19:48:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9e3d42662b8c4cc568c7ee067bd90f1c179b462f" + }, + { + "sha": "a01f905d98767b85ec52bf984871b8f785cf1c59", + "message": "fix: pass mandate details in `router_request_types`", + "author": "PiX", + "date": "2025-07-11T09:15:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a01f905d98767b85ec52bf984871b8f785cf1c59" + }, + { + "sha": "770d8bd08be1777a6e60806f9648ff4d46b513f1", + "message": "feat: add manual capture support for mandates", + "author": "PiX", + "date": "2025-07-11T09:50:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/770d8bd08be1777a6e60806f9648ff4d46b513f1" + }, + { + "sha": "a9c093de840a032df56e0bb7670b6ad649023fdc", + "message": "ci: add tests for mandates in cypress", + "author": "PiX", + "date": "2025-07-11T09:51:09+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a9c093de840a032df56e0bb7670b6ad649023fdc" + }, + { + "sha": "813459a360ba42ec654eee9b2e3a035f745d5fc3", + "message": "chore: lints", + "author": "PiX", + "date": "2025-07-11T10:58:00+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/813459a360ba42ec654eee9b2e3a035f745d5fc3" + }, + { + "sha": "cfc91ba4b66d31a797a0e296c812d49a71231422", + "message": "refactor: remove unnecessary fields", + "author": "PiX", + "date": "2025-07-11T12:17:01+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/cfc91ba4b66d31a797a0e296c812d49a71231422" + }, + { + "sha": "6dbff2d6166115517aa038c4a1df1fa47b285c64", + "message": "revert: unit changes", + "author": "PiX", + "date": "2025-07-19T18:13:52+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6dbff2d6166115517aa038c4a1df1fa47b285c64" + }, + { + "sha": "14f321ec92883b5ccbcdf991a7dd28e9f8345da2", + "message": "remove: connector customer support", + "author": "PiX", + "date": "2025-07-19T19:02:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/14f321ec92883b5ccbcdf991a7dd28e9f8345da2" + }, + { + "sha": "704b77e2ba3882d72c043f0ece8da5a063444ffe", + "message": "refactor: directly use `payment_method_id` to do recurring payment instead of relying on customer's `default_payment_method`\n\npayload said that we can directly pass \\`payment_method_id\\` instead of\nrelying on customer's \\`default_payment_method\\` to do recurring\npayments.\ni did some experiments and figured out that we can pass \\`keep_active\\`\nin initial payment within \\`payment_method\\` object like\n\\`payment_method[keep_active]\\` and it won't save the card. so, i added\na check right there instead of having it for \\`default_payment_method\\`.\nthis will only save the payment method at connector if it is mandate\npayment, else, wr will directly be doing one-off payments which is not\nthe default case in payload.", + "author": "PiX", + "date": "2025-07-19T19:03:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/704b77e2ba3882d72c043f0ece8da5a063444ffe" + }, + { + "sha": "1f9c87169db5236f1d2a89e0efacd4da2683f908", + "message": "Merge branch 'main' of github.com:juspay/hyperswitch into connector/payload-recurring\n\n* 'main' of github.com:juspay/hyperswitch: (48 commits)\n fix(connector): Add Trustpay in Authentication Providers Config (#8622)\n refactor(connector): [Adyen] map ssn and session validity for Pix (#8702)\n feat(core): Implement UCS kill switch for emergency fallback (#8651)\n fix(openapi): Added Error Response Schema for Status Code 400 (#8684)\n feat(connector): Add template code for breadpay (#8655)\n chore(version): 2025.07.21.1\n refactor(payments): fetch payment method information in attempts list api v2 and add custom billing connector template (#8681)\n fix(router): Make v2 endpoints follow standard naming conventions (#8630)\n fix(connector): [Cybersource] Add type_selection_indicator as 1 for all cards (#8663)\n feat(routing): Add API key auth for decision engine endpoints (#8640)\n feat(authentication): Added eligibility flow for modular authentication (#8431)\n feat(connector): [BLACKHAWKNETWORK] Add Template Code (#8632)\n fix: remove straight through routing from routing approach (#8695)\n fix(connector): [Access Worldpay] correct enum deserialization for payment responses for (#8689)\n chore(version): 2025.07.21.0\n feat(debit_routing): add debit routing support for apple pay (#8673)\n refactor(router): decrypt the wallet token before the debit routing call (#8598)\n chore: update org retrieve api response to include org type (#8660)\n feat(routing): Add routing evaluation rule endpoint and related flow (#8656)\n fix(connector): [AUTHORIZEDOTNET] Added Invoice Number Fix (#8685)\n ...", + "author": "PiX", + "date": "2025-07-22T12:54:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1f9c87169db5236f1d2a89e0efacd4da2683f908" + }, + { + "sha": "e1fb89bf91b42775595780f3763ae772025ccdf2", + "message": "chore: re-use in cypress", + "author": "PiX", + "date": "2025-07-25T11:47:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e1fb89bf91b42775595780f3763ae772025ccdf2" + }, + { + "sha": "abd569f0e778004a3df27e1d7dc5be09b46411fa", + "message": "refactor: remove `setup_mandate_details` as it does not affect the flow", + "author": "PiX", + "date": "2025-07-29T08:14:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/abd569f0e778004a3df27e1d7dc5be09b46411fa" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8628.json b/prs/pr_8628.json new file mode 100644 index 0000000000000000000000000000000000000000..ab2c81aea902be3136d2450b1a5f4da956895f9f --- /dev/null +++ b/prs/pr_8628.json @@ -0,0 +1,69 @@ +{ + "number": 8628, + "title": "feat(core): [Retry] MIT Retries", + "description": "## Type of Change\r\n\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\r\nAdded action type in ConnectorRoutingData (NT with ntid, Card with ntid, Connector mandate).\r\nWe are storing all the instances of connector routing data with different action types.\r\nDuring retry it will pick the top element in the list and will try to do payment with the mandate_reference_id that will be fetched from action type.\r\n\r\nSolution doc: [link](https://docs.google.com/document/d/1SuIfFOahN8Y5bOUb_O3QUmwmpioJ26q97huAwT9bCR4/edit?usp=sharing)\r\n\r\n```\r\npub struct ConnectorRoutingData {\r\n pub connector_data: ConnectorData,\r\n pub network: Option,\r\n pub action_type: Option,\r\n}\r\n\r\npub enum ActionType {\r\n NetworkTokenWithNetworkTransactionId(NTWithNTIRef),\r\n CardWithNetworkTransactionId(String), // Network Transaction Id\r\n #[cfg(feature = \"v1\")]\r\n ConnectorMandate(Option),\r\n}\r\n\r\nRetryable Connectors = [Adyen, Cybersource, Stripe]\r\n\r\nAdyen - 1. Connector Mandate\r\n 2. CardWithNetworkTransactionId\r\n\r\nCybersource - 1. NetworkTokenWithNetworkTransactionId\r\n 2. CardWithNetworkTransactionId\r\n\r\nStripe - 1. CardWithNetworkTransactionId\r\n\r\nAfter Processing - \r\n\r\nRetryable Connectors = [Adyen(Connector Mandate), Adyen(CardWithNetworkTransactionId), Cybersource(NetworkTokenWithNetworkTransactionId), Cybersource(CardWithNetworkTransactionId), Stripe(CardWithNetworkTransactionId)]\r\n\r\ndo_retry:\r\n let current_connector_routing_data = retryable_connectors.next()\r\n let mandate_reference_id = get_mandate_reference_id(current_connector_routing_data.action_type)\r\n payment_data.set_mandate_id(api_models::payments::MandateIds {\r\n mandate_id: None,\r\n mandate_reference_id, //mandate_ref_id\r\n });\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\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\n1. Connector create Adyen: \r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1753897495/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_BO0MXRwyIFS7jImumSCBpO7VkdFjNZ46uX506zER3sA1rBbnFn3P8OTOS1Zr606h' \\\r\n--data '{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"adyen\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"SignatureKey\",\r\n \"api_secret\": \"abc\",\r\n \"api_key\": \"abc\",\r\n \"key1\": \"\"\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\": \"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\": 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\": \"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 \"AmericanExpress\"\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 \"metadata\": {\r\n \"status_url\": \"https://2753-2401-4900-1cb8-2ff9-24dd-1ccf-ed12-b464.in.ngrok.io/webhooks/merchant_1678699058/globalpay\",\r\n \"account_name\": \"transaction_processing\",\r\n \"pricing_type\": \"fixed_price\",\r\n \"acquirer_bin\": \"438309\",\r\n \"acquirer_merchant_id\": \"00002000000\"\r\n },\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"frm_configs\": null,\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"\"\r\n }\r\n}'\r\n```\r\n\r\n2. Connector Create Cybersource:\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1753897495/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_BO0MXRwyIFS7jImumSCBpO7VkdFjNZ46uX506zER3sA1rBbnFn3P8OTOS1Zr606h' \\\r\n--data '{\r\n \"connector_type\": \"payment_processor\",\r\n \"connector_name\": \"cybersource\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"SignatureKey\",\r\n \"api_secret\": \"abc\",\r\n \"api_key\": \"abc\",\r\n \"key1\": \"\"\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\": \"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\": 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\": \"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 \"AmericanExpress\"\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 \"metadata\": {\r\n \"status_url\": \"https://2753-2401-4900-1cb8-2ff9-24dd-1ccf-ed12-b464.in.ngrok.io/webhooks/merchant_1678699058/globalpay\",\r\n \"account_name\": \"transaction_processing\",\r\n \"pricing_type\": \"fixed_price\",\r\n \"acquirer_bin\": \"438309\",\r\n \"acquirer_merchant_id\": \"00002000000\"\r\n },\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"frm_configs\": null,\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"\"\r\n }\r\n}'\r\n```\r\n\r\n3. Business profile update:\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1754988842/business_profile/pro_0ApGdp5GH660dy5AGft5' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: dev_SIJmEz8xbGVEybdUspVKhl4QVfAyelalMWYp52puDIG4OWzk6ewgVGGHTm7gS1cK' \\\r\n--data '{\r\n \"is_connector_agnostic_mit_enabled\": true,\r\n \"is_auto_retries_enabled\": true,\r\n \"max_auto_retries_enabled\": 5\r\n}'\r\n```\r\n\r\n4. CIT 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_BO0MXRwyIFS7jImumSCBpO7VkdFjNZ46uX506zER3sA1rBbnFn3P8OTOS1Zr606h' \\\r\n--data-raw '{\r\n \"amount\": 10,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"customer_id\": \"cu_1753904658\",\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://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\": \"4111111111111111\",\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": \"name name\",\r\n \"card_cvc\": \"737\"\r\n }\r\n },\r\n \"setup_future_usage\": \"off_session\",\r\n \"payment_type\": \"setup_mandate\",\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 \"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 \"last_name\": \"ss\"\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\": \"John\",\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 \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {},\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 0,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ]\r\n}'\r\n```\r\n\r\n5. Change the value of `connector_mandate_id` to some wrong value in db.\r\n\r\n6. GSM error:\r\n```\r\ncurl --location 'localhost:8080/gsm' \\\r\n--header 'api-key: test_admin' \\\r\n--header 'Content-Type: application/json' \\\r\n--data '{\r\n \"connector\": \"adyen\",\r\n \"flow\": \"Authorize\",\r\n \"sub_flow\": \"sub_flow\",\r\n \"code\": \"803\",\r\n \"message\": \"PaymentDetail not found\",\r\n \"status\": \"failed\",\r\n \"router_error\": \"Something went wrong\",\r\n \"decision\": \"retry\",\r\n \"step_up_possible\": false,\r\n \"clear_pan_possible\": false,\r\n \"unified_code\": \"5xx\",\r\n \"unified_message\": \"Error\",\r\n \"error_category\": \"frm_decline\"\r\n}'\r\n```\r\n\r\n7. MIT 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_BO0MXRwyIFS7jImumSCBpO7VkdFjNZ46uX506zER3sA1rBbnFn3P8OTOS1Zr606h' \\\r\n--data '{\r\n \"amount\": 999,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"profile_id\": \"pro_ZeFGow0L5Y1TzhzffSK7\",\r\n \"customer_id\": \"customer098765\",\r\n \"return_url\": \"https://google.com/\",\r\n \"recurring_details\": {\r\n \"type\": \"payment_method_id\",\r\n \"data\": \"successful CIT payment id\"\r\n },\r\n \"off_session\": true,\r\n \"billing\": {\r\n \"address\": {\r\n \"first_name\":\"John\",\r\n \"last_name\":\"Doe\",\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 \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n } \r\n \r\n}'\r\n```\r\n\r\nResponse (attempt_count = 2):\r\n```\r\n{\r\n \"payment_id\": \"pay_DjvhVKgjBOEDU6nFkalO\",\r\n \"merchant_id\": \"merchant_1754046615\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 999,\r\n \"net_amount\": 999,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 999,\r\n \"connector\": \"adyen\",\r\n \"client_secret\": \"pay_DjvhVKgjBOEDU6nFkalO_secret_682mdlC6mQ2xCf0Wf0A4\",\r\n \"created\": \"2025-08-01T12:42:04.553Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cu_1754050231\",\r\n \"customer\": {\r\n \"id\": \"cu_1754050231\",\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\": true,\r\n \"capture_on\": null,\r\n \"capture_method\": null,\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1111\",\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\": \"411111\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": \"name name\",\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\": \"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\": \"John\",\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\": 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\": \"cu_1754050231\",\r\n \"created_at\": 1754052124,\r\n \"expires\": 1754055724,\r\n \"secret\": \"epk_378607c699c9493ba67d398ba4069d5b\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"J3LV3LZB9JTHNS75\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"pay_DjvhVKgjBOEDU6nFkalO_2\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_wPWBpxTXWAgouZVHOP4P\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 2,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_2MjRpgYbkH8U92tH1huS\",\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-01T12:57:04.553Z\",\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\": \"pm_eslwOh7cYf7sFsNWN1Iq\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-08-01T12:42:08.581Z\",\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\": \"saved_card\",\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\n8. Payments Retrieve:\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_DjvhVKgjBOEDU6nFkalO?force_sync=true&expand_attempts=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_hfUb5b3thW9LuPyco462Eu5KxYbWF9GK0SldV3joK018qcsZhBG7SQbSUMPyl3ZC'\r\n```\r\n\r\nPayments Retrieve Response:\r\n```\r\n{\r\n \"payment_id\": \"pay_DjvhVKgjBOEDU6nFkalO\",\r\n \"merchant_id\": \"merchant_1754046615\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 999,\r\n \"net_amount\": 999,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 999,\r\n \"connector\": \"adyen\",\r\n \"client_secret\": \"pay_DjvhVKgjBOEDU6nFkalO_secret_682mdlC6mQ2xCf0Wf0A4\",\r\n \"created\": \"2025-08-01T12:42:04.553Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cu_1754050231\",\r\n \"customer\": {\r\n \"id\": \"cu_1754050231\",\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 \"attempts\": [\r\n {\r\n \"attempt_id\": \"pay_DjvhVKgjBOEDU6nFkalO_2\",\r\n \"status\": \"charged\",\r\n \"amount\": 999,\r\n \"order_tax_amount\": null,\r\n \"currency\": \"USD\",\r\n \"connector\": \"adyen\",\r\n \"error_message\": null,\r\n \"payment_method\": \"card\",\r\n \"connector_transaction_id\": \"J3LV3LZB9JTHNS75\",\r\n \"capture_method\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"created_at\": \"2025-08-01T12:42:06.553Z\",\r\n \"modified_at\": \"2025-08-01T12:42:08.581Z\",\r\n \"cancellation_reason\": null,\r\n \"mandate_id\": null,\r\n \"error_code\": null,\r\n \"payment_token\": null,\r\n \"connector_metadata\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"reference_id\": \"pay_DjvhVKgjBOEDU6nFkalO_2\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"client_source\": null,\r\n \"client_version\": null\r\n },\r\n {\r\n \"attempt_id\": \"pay_DjvhVKgjBOEDU6nFkalO_1\",\r\n \"status\": \"failure\",\r\n \"amount\": 999,\r\n \"order_tax_amount\": null,\r\n \"currency\": \"USD\",\r\n \"connector\": \"adyen\",\r\n \"error_message\": \"PaymentDetail not found\",\r\n \"payment_method\": \"card\",\r\n \"connector_transaction_id\": \"H5BKWV6FGQ2VJT65\",\r\n \"capture_method\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"created_at\": \"2025-08-01T12:42:04.554Z\",\r\n \"modified_at\": \"2025-08-01T12:42:06.613Z\",\r\n \"cancellation_reason\": null,\r\n \"mandate_id\": null,\r\n \"error_code\": \"803\",\r\n \"payment_token\": null,\r\n \"connector_metadata\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"reference_id\": null,\r\n \"unified_code\": \"5xx\",\r\n \"unified_message\": \"Error\",\r\n \"client_source\": null,\r\n \"client_version\": null\r\n }\r\n ],\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": true,\r\n \"capture_on\": null,\r\n \"capture_method\": null,\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1111\",\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\": \"411111\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2030\",\r\n \"card_holder_name\": \"name name\",\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\": \"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\": \"John\",\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\": 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\": \"J3LV3LZB9JTHNS75\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"pay_DjvhVKgjBOEDU6nFkalO_2\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_wPWBpxTXWAgouZVHOP4P\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 2,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_2MjRpgYbkH8U92tH1huS\",\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-01T12:57:04.553Z\",\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\": \"pm_eslwOh7cYf7sFsNWN1Iq\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-08-01T12:42:08.581Z\",\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\": \"saved_card\",\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\r\n## Checklist\r\n\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", + "author": "ImSagnik007", + "created_at": "2025-07-13T19:43:02+00:00", + "merged_at": "2025-09-10T14:03:30+00:00", + "base_branch": "main", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/8628", + "commits": [ + { + "sha": "781428557c1976964194c131aae222c546ac9302", + "message": "recurring payment retries", + "author": "Sagnik Mitra", + "date": "2025-07-13T19:41:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/781428557c1976964194c131aae222c546ac9302" + }, + { + "sha": "869f2d899db53860469c90e2d8cca5459b5911b6", + "message": "changed connector mandate as top priority for action types", + "author": "Sagnik Mitra", + "date": "2025-08-01T12:48:29+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/869f2d899db53860469c90e2d8cca5459b5911b6" + }, + { + "sha": "06192047cc7d9132bd46776aeca91f40c8a2f7c4", + "message": "Quality fixes", + "author": "Sagnik Mitra", + "date": "2025-08-06T06:50:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/06192047cc7d9132bd46776aeca91f40c8a2f7c4" + }, + { + "sha": "02f5e18ca6d7c228475231f6f8311a0263f7381c", + "message": "added builder patterns for getting action types", + "author": "Sagnik Mitra", + "date": "2025-08-12T09:13:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/02f5e18ca6d7c228475231f6f8311a0263f7381c" + }, + { + "sha": "84b372762dc07da41da3b8198b7daffdd6eff88a", + "message": "error logging in connector mandate", + "author": "Sagnik Mitra", + "date": "2025-08-19T12:58:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/84b372762dc07da41da3b8198b7daffdd6eff88a" + }, + { + "sha": "b8f491cfebf4e9712c9789abf229b89e9bf61b02", + "message": "nitpicks", + "author": "Sagnik Mitra", + "date": "2025-08-29T07:27:38+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b8f491cfebf4e9712c9789abf229b89e9bf61b02" + }, + { + "sha": "08226ea652ea0cd6c4873db95ff6e0c34ee06150", + "message": "NITS", + "author": "Sagnik Mitra", + "date": "2025-09-02T07:10:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/08226ea652ea0cd6c4873db95ff6e0c34ee06150" + }, + { + "sha": "15431c0fddb54e9c255a93f7e83afbd5daf16549", + "message": "minor fixes", + "author": "Sagnik Mitra", + "date": "2025-09-09T13:43:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/15431c0fddb54e9c255a93f7e83afbd5daf16549" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8663.json b/prs/pr_8663.json new file mode 100644 index 0000000000000000000000000000000000000000..186c146cfa82b0db61025f5cfa3b4f181cf4af93 --- /dev/null +++ b/prs/pr_8663.json @@ -0,0 +1,20 @@ +{ + "number": 8663, + "title": "fix(connector): [Cybersource] Add type_selection_indicator as 1 for all cards ", + "description": "## Type of Change\r\n\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\nAdded `type_selection_indicator` as 1 for all cards \r\nReason for this change - Without this field Mastercard card payments are currently failing for a france-based merchant acquirer CMCIC in prod for cybersource, it expects type_selection_indicator as 1. \r\n\r\nPlease note, this change is a fix on top of this [PR](https://github.com/juspay/hyperswitch/pull/7828)\r\nThis change not only makes type_selection_indicator as 1 for co-badged cards, but for all cards in general.\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\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### call /payment for Mastercard via cybersource\r\n\r\n`{\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\": \"5512459816707531\",\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 \"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\"Screenshot\r\n\r\n\r\n### call /payment for Cobadged card via cybersource\r\n\r\n`{\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\": \"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 \"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\"Screenshot\r\n\r\n\r\n### call /payment for Visa card 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_wJkBplfvotDkAw5pv07JsMffdYFmnZTWKf0Rn6fWokE05NNZatQ4V2uEK0y1Re7e' \\\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\": \"4111 1111 1111 1111\",\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 \"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\"Screenshot\r\n\r\n\r\n### call /payment for Mastercard card via cybersource for 3ds external authentication\r\n\r\n\r\n**Step 1:**\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_wJkBplfvotDkAw5pv07JsMffdYFmnZTWKf0Rn6fWokE05NNZatQ4V2uEK0y1Re7e' \\\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 \"connector\": [\"cybersource\"],\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\r\n\"Screenshot\r\n\r\n**Step 2:**\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_TxOCC3qWDM0tsOzBuYgK/3ds/authentication' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: pk_dev_66166a663cb4429c88ab4f6d9990698d' \\\r\n--data '{\r\n \"client_secret\": \"pay_TxOCC3qWDM0tsOzBuYgK_secret_Zop3d4G9eQ2qUh47Z60N\",\r\n \"device_channel\": \"BRW\",\r\n \"threeds_method_comp_ind\": \"Y\"\r\n}\r\n\r\n'\r\n```\r\n\r\n\"Screenshot\r\n\r\n\r\n**Step 3:**\r\n\r\n`curl --location --request POST 'http://localhost:8080/payments/pay_HJ3ZfWWCFSRgMLk3Q0iT/merchant_1752829376/authorize/cybersource'`\r\n\r\n\"Screenshot\r\n\r\n## Checklist\r\n\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", + "author": "dgeee13", + "created_at": "2025-07-16T10:22:11+00:00", + "merged_at": "2025-07-21T14:21:53+00:00", + "base_branch": "main", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/8663", + "commits": [ + { + "sha": "5f4d1d5ed141e055a4acf29f55b4b70293791aa3", + "message": "fix(connector): [Cybersource] Add type_selection_indicator as 1 for payments", + "author": "Debarati Ghatak", + "date": "2025-07-16T10:11:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5f4d1d5ed141e055a4acf29f55b4b70293791aa3" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8681.json b/prs/pr_8681.json new file mode 100644 index 0000000000000000000000000000000000000000..1eb8cd9b8a7e44293164189abdbf3e1a7769c952 --- /dev/null +++ b/prs/pr_8681.json @@ -0,0 +1,135 @@ +{ + "number": 8681, + "title": "refactor(payments): fetch payment method information in attempts list api v2 and add custom billing connector template", + "description": "## Type of Change\r\n\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\nThis pr adds fetches payment method data in payment attempt list v2 api.\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n\r\nRequest: \r\n```\r\ncurl --location 'http://localhost:8080/v2/payments/12345_pay_0198179b2de5751292df2b555eaa3cf2/list_attempts' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'x-profile-id: pro_2Kk2ddRcJttgm6ONh0zm' \\\r\n--header 'api-key: dev_g5HfT4ijuVQs3QLUPf3xAT6M26ebVgHHTivreiSljKPdRvEsqBNSKxHJrhLboLsT' \\\r\n--header 'Authorization: api-key=dev_g5HfT4ijuVQs3QLUPf3xAT6M26ebVgHHTivreiSljKPdRvEsqBNSKxHJrhLboLsT'\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"payment_attempt_list\": [\r\n {\r\n \"id\": \"12345_att_0198179b2e167703a070a6ec12d40213\",\r\n \"status\": \"voided\",\r\n \"amount\": {\r\n \"net_amount\": 10000,\r\n \"amount_to_capture\": null,\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"amount_capturable\": 0,\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null\r\n },\r\n \"connector\": \"stripe\",\r\n \"error\": {\r\n \"code\": \"card_declined\",\r\n \"message\": \"Your card was declined.\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"network_advice_code\": null,\r\n \"network_decline_code\": null,\r\n \"network_error_message\": null\r\n },\r\n \"authentication_type\": \"no_three_ds\",\r\n \"created_at\": \"2025-07-16T12:18:21.000Z\",\r\n \"modified_at\": \"2025-07-17T08:58:23.034Z\",\r\n \"cancellation_reason\": null,\r\n \"payment_token\": null,\r\n \"connector_metadata\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"card\",\r\n \"connector_reference_id\": null,\r\n \"payment_method_subtype\": \"credit\",\r\n \"connector_payment_id\": {\r\n \"TxnId\": \"pi_3RlUHlCZJlEh6syL1TxJJCst\"\r\n },\r\n \"payment_method_id\": null,\r\n \"client_source\": null,\r\n \"client_version\": null,\r\n \"feature_metadata\": {\r\n \"revenue_recovery\": {\r\n \"attempt_triggered_by\": \"external\",\r\n \"charge_id\": \"ch_3RlUHlCZJlEh6syL1gLXCiDC\"\r\n }\r\n },\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"0008\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": \"Chase\",\r\n \"card_issuing_country\": null,\r\n \"card_isin\": null,\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"06\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n }\r\n }\r\n ]\r\n}\r\n```\r\n\r\n## Checklist\r\n\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", + "author": "NISHANTH1221", + "created_at": "2025-07-17T14:01:37+00:00", + "merged_at": "2025-07-21T19:08:33+00:00", + "base_branch": "main", + "labels": [ + "M-api-contract-changes", + "api-v2" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8681", + "commits": [ + { + "sha": "47935dc4a2a1c0d96563bd2cc21829e7ac0f8352", + "message": "fetch payment method information", + "author": "Nishanth Challa", + "date": "2025-07-17T13:27:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/47935dc4a2a1c0d96563bd2cc21829e7ac0f8352" + }, + { + "sha": "38c580fb1b0e125195838a6c5dfe7af0c4692fa4", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-07-17T14:02:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/38c580fb1b0e125195838a6c5dfe7af0c4692fa4" + }, + { + "sha": "93579570d7868dfbe7f8cb3be4b5696185d4d061", + "message": "revert v2 to v1", + "author": "Nishanth Challa", + "date": "2025-07-17T14:06:57+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/93579570d7868dfbe7f8cb3be4b5696185d4d061" + }, + { + "sha": "a22d4766c26acec43ebf43b61e1e5829e6b5eeb1", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-07-17T14:13:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a22d4766c26acec43ebf43b61e1e5829e6b5eeb1" + }, + { + "sha": "abdf01572e9d71957aaa8873346fbbec7341521a", + "message": "resolve clippy error", + "author": "Nishanth Challa", + "date": "2025-07-17T16:07:38+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/abdf01572e9d71957aaa8873346fbbec7341521a" + }, + { + "sha": "a9b95efa57eb4a15d8c8e79d29db121c8576111c", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-07-17T16:13:32+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a9b95efa57eb4a15d8c8e79d29db121c8576111c" + }, + { + "sha": "65d6732fbd26f58af93b42889ff92c2c27abc963", + "message": "add template code for custom billing", + "author": "Nishanth Challa", + "date": "2025-07-18T17:13:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/65d6732fbd26f58af93b42889ff92c2c27abc963" + }, + { + "sha": "a2fdda88edeb7b038ebfb3d12fee12318f1881d5", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-07-18T17:14:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a2fdda88edeb7b038ebfb3d12fee12318f1881d5" + }, + { + "sha": "ea524c5d4c202abed8b405e2e7e8a39cf5ff083c", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-07-18T17:19:52+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ea524c5d4c202abed8b405e2e7e8a39cf5ff083c" + }, + { + "sha": "17a584ab73230544a89e1bffd04b20425a9f4545", + "message": "resolve error causing failed checks", + "author": "Nishanth Challa", + "date": "2025-07-20T00:56:13+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/17a584ab73230544a89e1bffd04b20425a9f4545" + }, + { + "sha": "b742c808e379abd1a74f8cf1b5b94d44f5e59192", + "message": "added a detailed comment about the paymentmehtoddataresponsewithbilling", + "author": "Nishanth Challa", + "date": "2025-07-20T01:02:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b742c808e379abd1a74f8cf1b5b94d44f5e59192" + }, + { + "sha": "3699bd4db548854debbbb685aaa8834c6313b5c7", + "message": "Merge branch 'main' into fetch_payment_method_information_in_attempt_list", + "author": "CHALLA NISHANTH BABU", + "date": "2025-07-20T21:12:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3699bd4db548854debbbb685aaa8834c6313b5c7" + }, + { + "sha": "3cf95df779c396604f3f530024b9a3d66208006f", + "message": "resolve merge conficts", + "author": "Nishanth Challa", + "date": "2025-07-21T11:10:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3cf95df779c396604f3f530024b9a3d66208006f" + }, + { + "sha": "db4f74ada03348fa04d5872b5925d4e5f0dfcc70", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-07-21T12:07:29+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/db4f74ada03348fa04d5872b5925d4e5f0dfcc70" + }, + { + "sha": "31607bfd7d973fa2af792ac4a2f5baaa4aae891d", + "message": "resolve conflicts", + "author": "Nishanth Challa", + "date": "2025-07-21T14:31:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/31607bfd7d973fa2af792ac4a2f5baaa4aae891d" + }, + { + "sha": "e2f3a86062d7b7d986b6f3500e7e63850f1ac214", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-07-21T14:42:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e2f3a86062d7b7d986b6f3500e7e63850f1ac214" + }, + { + "sha": "ee31deea7b0392ab4901641083454e8be2743ab3", + "message": "Merge branch 'main' into fetch_payment_method_information_in_attempt_list", + "author": "CHALLA NISHANTH BABU", + "date": "2025-07-21T18:31:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ee31deea7b0392ab4901641083454e8be2743ab3" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8699.json b/prs/pr_8699.json new file mode 100644 index 0000000000000000000000000000000000000000..c7add913cf944dd1f41c2e3c97dc7239f4201a7d --- /dev/null +++ b/prs/pr_8699.json @@ -0,0 +1,23 @@ +{ + "number": 8699, + "title": "fix(feature_matrix): refunds are supported by jpmorgan", + "description": "## Type of Change\r\n\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\r\n\r\nThis PR marks refunds as supported by JPMorgan connector. Although this does not affect refund flow, the feature matrix marking is wrong. \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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\nI added refunds support 3 weeks ago in #8436 and this was missed.\r\ncloses #8698\r\n\r\n## How did you test it?\r\n\r\n\r\nHit feature matrix endpoint:\r\n\r\n```sh\r\ncurl --location 'http://localhost:8080/feature_matrix' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json'\r\n```\r\n```json\r\n{\r\n...\r\n \"supported_payment_methods\": [\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_type_display_name\": \"Credit Card\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\"\r\n ],\r\n \"three_ds\": \"not_supported\",\r\n \"no_three_ds\": \"supported\",\r\n \"supported_card_networks\": [\r\n \"AmericanExpress\",\r\n \"DinersClub\",\r\n \"Discover\",\r\n \"JCB\",\r\n \"Mastercard\",\r\n...\r\n },\r\n {\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"debit\",\r\n \"payment_method_type_display_name\": \"Debit Card\",\r\n \"mandates\": \"not_supported\",\r\n \"refunds\": \"supported\",\r\n \"supported_capture_methods\": [\r\n \"automatic\",\r\n \"manual\"\r\n ],\r\n \"three_ds\": \"not_supported\",\r\n \"no_three_ds\": \"supported\",\r\n \"supported_card_networks\": [\r\n \"AmericanExpress\",\r\n \"DinersClub\",\r\n \"Discover\",\r\n \"JCB\",\r\n \"Mastercard\",\r\n \"UnionPay\",\r\n \"Visa\"\r\n ],\r\n \"supported_countries\": [\r\n \"FRA\",\r\n \"BEL\",\r\n...\r\n}\r\n```\r\n\r\n## Checklist\r\n\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `just clippy && just clippy_v2`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n", + "author": "pixincreate", + "created_at": "2025-07-19T18:06:43+00:00", + "merged_at": "2025-07-24T13:32:53+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "C-bug" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8699", + "commits": [ + { + "sha": "f2e8b1527462e0ac6bef2f66874f5361ef585f7b", + "message": "fix(connector): refunds are supported by jpmorgan", + "author": "PiX", + "date": "2025-07-19T17:56:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f2e8b1527462e0ac6bef2f66874f5361ef585f7b" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8701.json b/prs/pr_8701.json new file mode 100644 index 0000000000000000000000000000000000000000..bb7b6c57975b66288e6835a95259c9a6c87151e2 --- /dev/null +++ b/prs/pr_8701.json @@ -0,0 +1,71 @@ +{ + "number": 8701, + "title": "feat(connector): [BHN] Add BHN GiftCard Flow( Alpha)", + "description": "## Type of Change\r\n\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\r\nAlpha Integ Added Gift Card Payments Flow \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- [x] This PR modifies application configuration/environment variables\r\n\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\nAlpha Connector : For GIftCards We don't have Cypress\r\n## Checklist\r\n\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", + "author": "awasthi21", + "created_at": "2025-07-21T06:28:12+00:00", + "merged_at": "2025-08-22T16:43:32+00:00", + "base_branch": "main", + "labels": [ + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8701", + "commits": [ + { + "sha": "92122163c71c1a4bb7a3482f3e54e6b812066802", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-08-22T08:21:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/92122163c71c1a4bb7a3482f3e54e6b812066802" + }, + { + "sha": "eb475484a0327d8c5a0dafe2c0ae29b0228e57e0", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-08-22T08:22:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/eb475484a0327d8c5a0dafe2c0ae29b0228e57e0" + }, + { + "sha": "bfbc0ad440278ae2afbe0a8543e8fbcfbc71ee40", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-08-22T13:04:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/bfbc0ad440278ae2afbe0a8543e8fbcfbc71ee40" + }, + { + "sha": "fa7448dbd21b0ec0e51624fc941490638da21f6b", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-08-22T13:05:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fa7448dbd21b0ec0e51624fc941490638da21f6b" + }, + { + "sha": "52e6c45b5b43d16be2dbe44914cf099a4bdc3f03", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-08-22T13:14:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/52e6c45b5b43d16be2dbe44914cf099a4bdc3f03" + }, + { + "sha": "156d86b93edb6102978be9358e40ba4f0d557fb8", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-08-22T13:30:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/156d86b93edb6102978be9358e40ba4f0d557fb8" + }, + { + "sha": "d65cad6214a44118236cb2ea4c807e2f302cb719", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-08-22T13:32:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d65cad6214a44118236cb2ea4c807e2f302cb719" + }, + { + "sha": "aaaa32633c436b6aaa390b06608fb2848061e209", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-08-22T13:54:07+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/aaaa32633c436b6aaa390b06608fb2848061e209" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8768.json b/prs/pr_8768.json new file mode 100644 index 0000000000000000000000000000000000000000..86a1d0119486d2674f6b16a4e0744c7aea4e1e34 --- /dev/null +++ b/prs/pr_8768.json @@ -0,0 +1,20 @@ +{ + "number": 8768, + "title": "feat(connector): [cybersource] add changes for field CybersourceConsumerAuthInformation", + "description": "## Type of Change\r\n\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\nContext - Cybersource payments via Netcetera are failing for a France based acquirer in prod, the PR provides fix for the same by introducing field **_consumerAuthenticationInformation. effectiveAuthenticationType_** and making sure **_consumerAuthenticationInformation.specificationVersion** is sent.\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\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**Testing for field effective_authentication_type and specification_version** \r\n\r\n### Step 1 - Call /payments\r\n\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 'x-feature: integ-custom' \\\r\n--header 'api-key: dev_TSUxfiSwiAelCPTr9xN2ValUdd1fvmeYg0AtMUwdJukRkTlCpHL9p2IWxn6fouYl' \\\r\n--data-raw '{\r\n \"amount\": 2540,\r\n \"currency\": \"USD\",\r\n \"profile_id\": \"pro_aKVBsBqyTIq2T1UIaapY\",\r\n \"confirm\": true,\r\n \"amount_to_capture\": 2540,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"email\": \"abcdef123@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"request_external_three_ds_authentication\": true,\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"three_ds\",\r\n \"return_url\": \"https://google.com\",\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\": \"127.0.0.1\"\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\": \"John\",\r\n \"last_name\": \"Doe\"\r\n }\r\n },\r\n \"routing\": {\r\n \"type\": \"single\",\r\n \"data\": \"nmi\"\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 \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4000000000002370\",\r\n \"card_exp_month\": \"08\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"999\"\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\": \"John\",\r\n \"last_name\": \"Doe\"\r\n }\r\n }\r\n}'`\r\n\r\n\"Screenshot\r\n\r\n\r\n### Step 2- Call /3ds/authentication via Netcetera \r\n\r\n**Curl**\r\n\r\n`curl --location 'http://localhost:8080/payments/pay_1tQlG51BwoiUpLE3YKBV/3ds/authentication' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: pk_dev_8891a001315d40d0a26d1028ad51fe0b' \\\r\n--data '{\r\n \"client_secret\": \"pay_1tQlG51BwoiUpLE3YKBV_secret_EqDy0WeEHEfkkOjUd9R0\",\r\n \"device_channel\": \"BRW\",\r\n \"threeds_method_comp_ind\": \"Y\"\r\n}'`\r\n\"Screenshot\r\n\r\n### Step 3- Call /authorize via Cybersource\r\n\r\n`curl --location --request POST 'http://localhost:8080/payments/pay_1tQlG51BwoiUpLE3YKBV/merchant_1753777600/authorize/cybersource' \\\r\n--header 'api-key: dev_TSUxfiSwiAelCPTr9xN2ValUdd1fvmeYg0AtMUwdJukRkTlCpHL9p2IWxn6fouYl'`\r\n\r\n\"Screenshot\r\n\r\n \r\n**specificationVersion and effectiveAuthenticationType are getting populated, and are sent to Cybersource_**\r\n\"Screenshot\r\n\r\nPlease note - Effective authentication type is FR, since the test flow is Frictionless\r\n\r\n## Checklist\r\n\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", + "author": "dgeee13", + "created_at": "2025-07-28T10:17:00+00:00", + "merged_at": "2025-07-31T09:51:22+00:00", + "base_branch": "main", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/8768", + "commits": [ + { + "sha": "6630711179a580d9e514b24e9a99a55d19f360c7", + "message": "feat(connector): [cybersource] add changes for field CybersourceConsumerAuthInformation", + "author": "Debarati Ghatak", + "date": "2025-07-29T10:39:24+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6630711179a580d9e514b24e9a99a55d19f360c7" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8818.json b/prs/pr_8818.json new file mode 100644 index 0000000000000000000000000000000000000000..345f34691390b78f3aa2f64f6adab0b867b5f401 --- /dev/null +++ b/prs/pr_8818.json @@ -0,0 +1,23 @@ +{ + "number": 8818, + "title": "chore(env): revert wasm changes for payload connector", + "description": "## Type of Change\r\n\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\r\n\r\nthis pr reverts wasm changes for the payload connector that was introduced in https://github.com/juspay/hyperswitch/pull/8597\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- [x] This PR modifies application configuration/environment variables\r\n\r\n\r\n\r\ncrates/connector_configs/toml/*\r\n\r\n## Motivation and Context\r\n\r\n\r\nthis change broke wasm.\r\n\r\n## How did you test it?\r\n\r\n\r\n\"image\"\r\n\r\nthis shouldn't pop-up during the wasm build.\r\n\r\n## Checklist\r\n\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `just clippy && just clippy_v2`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n", + "author": "pixincreate", + "created_at": "2025-08-01T09:30:46+00:00", + "merged_at": "2025-08-01T10:36:57+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "P-high" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8818", + "commits": [ + { + "sha": "0034a9e62406a755dd9206a0e11a432902040159", + "message": "revert: wasm changes for payload connector", + "author": "PiX", + "date": "2025-08-01T09:28:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0034a9e62406a755dd9206a0e11a432902040159" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8862.json b/prs/pr_8862.json new file mode 100644 index 0000000000000000000000000000000000000000..1f236deb1c3215939ebb1db17ea7820e1b96849a --- /dev/null +++ b/prs/pr_8862.json @@ -0,0 +1,58 @@ +{ + "number": 8862, + "title": "fix(router): [worldpayvantiv] dispute validations and statuses", + "description": "## Type of Change\r\n\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\r\n1. Allow Accept Liability/ Submit Evidence during pre-arbitration and when the dispute is in challenge state\r\n2. Remove the list_dispute_supported_connectors flag from prod as vantiv's prod url for the same is unknow\r\n3. Extensively handle the dispute status from vantiv\r\n\r\n\r\n## How did you test it?\r\n\r\nAccept liability for a challenged dispute\r\n\r\n```\r\ncurl --location --request POST 'http://localhost:8080/disputes/accept/dp_VqlX1fzaUZRUmnMhcruo' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_nGgYoHlpzKHfrpHfI9hAX8BOctOASqkCX8RCMglZ5Ro5BhLGmczY0WjoD1udVuDh'\r\n```\r\n\r\nResponse\r\n```\r\n{\"dispute_id\":\"dp_uSGRmdV28ok7AG4CBgm4\",\"payment_id\":\"12345\",\"attempt_id\":\"12345_1\",\"amount\":\"52000\",\"currency\":\"USD\",\"dispute_stage\":\"pre_arbitration\",\"dispute_status\":\"dispute_challenged\",\"connector\":\"worldpayvantiv\",\"connector_status\":\"Pre-Arbitration\",\"connector_dispute_id\":\"10193081007\",\"connector_reason\":\"Collaboration Flow - Processing Error - Duplicate Processing\",\"connector_reason_code\":\"12.6.1\",\"challenge_required_by\":\"2026-07-10T00:00:00.000Z\",\"connector_created_at\":\"2025-07-10T00:00:00.000Z\",\"connector_updated_at\":null,\"created_at\":\"2025-08-06T18:17:47.052Z\",\"profile_id\":\"pro_TBRJM4Wv6IWCco5U7SmU\",\"merchant_connector_id\":\"mca_g7Vm6N4QDsht1Os6gZ7j\"}\r\n```\r\n\r\nDo a Dsync\r\n```\r\n{\"dispute_id\":\"dp_uSGRmdV28ok7AG4CBgm4\",\"payment_id\":\"12345\",\"attempt_id\":\"12345_1\",\"amount\":\"52000\",\"currency\":\"USD\",\"dispute_stage\":\"pre_arbitration\",\"dispute_status\":\"dispute_accepted\",\"connector\":\"worldpayvantiv\",\"connector_status\":\"Pre-Arbitration\",\"connector_dispute_id\":\"10193081007\",\"connector_reason\":\"Collaboration Flow - Processing Error - Duplicate Processing\",\"connector_reason_code\":\"12.6.1\",\"challenge_required_by\":\"2026-07-10T00:00:00.000Z\",\"connector_created_at\":\"2025-07-10T00:00:00.000Z\",\"connector_updated_at\":null,\"created_at\":\"2025-08-06T18:17:47.052Z\",\"profile_id\":\"pro_TBRJM4Wv6IWCco5U7SmU\",\"merchant_connector_id\":\"mca_g7Vm6N4QDsht1Os6gZ7j\"}\r\n```\r\n\r\nCannot create a successful submit evidence call because of the test case unavailablity\r\n\r\nTry submitting evidence to a challenged dispute\r\n\r\n```\r\n{\"dispute_id\":\"dp_uSGRmdV28ok7AG4CBgm4\",\"payment_id\":\"12345\",\"attempt_id\":\"12345_1\",\"amount\":\"52000\",\"currency\":\"USD\",\"dispute_stage\":\"pre_arbitration\",\"dispute_status\":\"dispute_challenged\",\"connector\":\"worldpayvantiv\",\"connector_status\":\"Pre-Arbitration\",\"connector_dispute_id\":\"10193081007\",\"connector_reason\":\"Collaboration Flow - Processing Error - Duplicate Processing\",\"connector_reason_code\":\"12.6.1\",\"challenge_required_by\":\"2026-07-10T00:00:00.000Z\",\"connector_created_at\":\"2025-07-10T00:00:00.000Z\",\"connector_updated_at\":null,\"created_at\":\"2025-08-06T18:17:47.052Z\",\"profile_id\":\"pro_TBRJM4Wv6IWCco5U7SmU\",\"merchant_connector_id\":\"mca_g7Vm6N4QDsht1Os6gZ7j\"}\r\n```\r\nResponse\r\n```\r\n{\"dispute_id\":\"dp_uSGRmdV28ok7AG4CBgm4\",\"payment_id\":\"12345\",\"attempt_id\":\"12345_1\",\"amount\":\"52000\",\"currency\":\"USD\",\"dispute_stage\":\"pre_arbitration\",\"dispute_status\":\"dispute_challenged\",\"connector\":\"worldpayvantiv\",\"connector_status\":\"Pre-Arbitration\",\"connector_dispute_id\":\"10193081007\",\"connector_reason\":\"Collaboration Flow - Processing Error - Duplicate Processing\",\"connector_reason_code\":\"12.6.1\",\"challenge_required_by\":\"2026-07-10T00:00:00.000Z\",\"connector_created_at\":\"2025-07-10T00:00:00.000Z\",\"connector_updated_at\":null,\"created_at\":\"2025-08-06T18:17:47.052Z\",\"profile_id\":\"pro_TBRJM4Wv6IWCco5U7SmU\",\"merchant_connector_id\":\"mca_g7Vm6N4QDsht1Os6gZ7j\"}\r\n```\r\n \r\n\r\n## Checklist\r\n\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", + "author": "AkshayaFoiger", + "created_at": "2025-08-06T18:44:24+00:00", + "merged_at": "2025-08-07T08:13:17+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "A-disputes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8862", + "commits": [ + { + "sha": "116b6e73d75929855b170a14d9ebe66978fabb37", + "message": "add support to accept liability during pre-arbitration", + "author": "AkshayaFoiger", + "date": "2025-08-06T16:24:24+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/116b6e73d75929855b170a14d9ebe66978fabb37" + }, + { + "sha": "432fb5b4e79573a0bfc91090681c06524ef0ce38", + "message": "handle vantiv status", + "author": "AkshayaFoiger", + "date": "2025-08-06T17:50:17+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/432fb5b4e79573a0bfc91090681c06524ef0ce38" + }, + { + "sha": "3080bc8b2045ac334f09000aaa800f3cb02e18eb", + "message": "fix disputes", + "author": "AkshayaFoiger", + "date": "2025-08-06T18:32:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3080bc8b2045ac334f09000aaa800f3cb02e18eb" + }, + { + "sha": "2437970d4480ecb80759f8643f7744eec196eca8", + "message": "Merge branch 'main' into accept-dispute", + "author": "AkshayaFoiger", + "date": "2025-08-06T18:47:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2437970d4480ecb80759f8643f7744eec196eca8" + }, + { + "sha": "e5b11cbd6d20951a31d91a530009ced59d63524d", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-08-06T18:48:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e5b11cbd6d20951a31d91a530009ced59d63524d" + }, + { + "sha": "e919bc7ba5dc4efe2489411b555415e0a26252ad", + "message": "fix clippy", + "author": "AkshayaFoiger", + "date": "2025-08-06T19:40:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e919bc7ba5dc4efe2489411b555415e0a26252ad" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8921.json b/prs/pr_8921.json new file mode 100644 index 0000000000000000000000000000000000000000..00dcf67a46f867f862093eeeeddbdda052ba34e4 --- /dev/null +++ b/prs/pr_8921.json @@ -0,0 +1,23 @@ +{ + "number": 8921, + "title": "chore(fix): [XENDIT] Make CVV Optional and fix Capture flow", + "description": "## Type of Change\r\n\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\r\n\r\n1. CVV should be made an optional field for the connector Xendit.\r\n2. Fix Capture Flow for Xendit\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\n\r\n\r\n## Motivation and Context\r\n\r\nhttps://github.com/juspay/hyperswitch/issues/8920\r\n\r\n## How did you test it?\r\n\r\nTesting CURL's:\r\nPayments Create:\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_43StkeAliDdRysVQ1Bk58TfaGfqvDrRcQDIWNdnr9rx3WGPr7qnKR9ZQzdmf7P07' \\\r\n--data-raw '{\r\n \"amount\": 6540000,\r\n \"currency\": \"IDR\",\r\n \"confirm\": true,\r\n \"capture_method\": \"manual\",\r\n \"email\": \"abc@def.com\",\r\n \"amount_to_capture\": 6540000,\r\n \"billing\": {\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_exp_month\": \"11\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"John Doe\",\r\n \"card_number\": \"4000000000001091\",\r\n \"card_cvc\": \"100\"\r\n }\r\n },\r\n \"payment_method_type\": \"credit\",\r\n \"retry_action\": \"manual_retry\"\r\n}'\r\n```\r\nResponse:\r\n```\r\n{\r\n \"payment_id\": \"pay_iapkM8sQja6Xvfdn9Tje\",\r\n \"merchant_id\": \"merchant_1754983663\",\r\n \"status\": \"processing\",\r\n \"amount\": 6540000,\r\n \"net_amount\": 6540000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 6540000,\r\n \"amount_received\": null,\r\n \"connector\": \"xendit\",\r\n \"client_secret\": \"pay_iapkM8sQja6Xvfdn9Tje_secret_83zsZQ4asN8r6n39cRgb\",\r\n \"created\": \"2025-08-12T09:59:40.385Z\",\r\n \"currency\": \"IDR\",\r\n \"customer_id\": null,\r\n \"customer\": {\r\n \"id\": null,\r\n \"name\": null,\r\n \"email\": \"abc@def.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\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1091\",\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\": \"11\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"John 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\": null,\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\": 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\": 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\": \"pr-d7afb058-5ecb-424b-af1a-60c6ce3f8df0\",\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\": \"2aa664ab-6a91-417d-a9bb-db3f6fd1fc21\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_pRZDis5aB5cSfftyA4Dq\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_mJa8AsZOXYdYmggROjBG\",\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-08-12T10:14:40.385Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\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-08-12T09:59:41.228Z\",\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}\r\n```\r\n\r\nPayments Retrieve:\r\nRequest:\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_iapkM8sQja6Xvfdn9Tje?force_sync=true&expand_captures=true&expand_attempts=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_43StkeAliDdRysVQ1Bk58TfaGfqvDrRcQDIWNdnr9rx3WGPr7qnKR9ZQzdmf7P07'\r\n```\r\nResponse:\r\n```\r\n{\r\n \"payment_id\": \"pay_iapkM8sQja6Xvfdn9Tje\",\r\n \"merchant_id\": \"merchant_1754983663\",\r\n \"status\": \"requires_capture\",\r\n \"amount\": 6540000,\r\n \"net_amount\": 6540000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 6540000,\r\n \"amount_received\": null,\r\n \"connector\": \"xendit\",\r\n \"client_secret\": \"pay_iapkM8sQja6Xvfdn9Tje_secret_83zsZQ4asN8r6n39cRgb\",\r\n \"created\": \"2025-08-12T09:59:40.385Z\",\r\n \"currency\": \"IDR\",\r\n \"customer_id\": null,\r\n \"customer\": {\r\n \"id\": null,\r\n \"name\": null,\r\n \"email\": \"abc@def.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 \"attempts\": [\r\n {\r\n \"attempt_id\": \"pay_iapkM8sQja6Xvfdn9Tje_1\",\r\n \"status\": \"pending\",\r\n \"amount\": 6540000,\r\n \"order_tax_amount\": null,\r\n \"currency\": \"IDR\",\r\n \"connector\": \"xendit\",\r\n \"error_message\": null,\r\n \"payment_method\": \"card\",\r\n \"connector_transaction_id\": \"pr-d7afb058-5ecb-424b-af1a-60c6ce3f8df0\",\r\n \"capture_method\": \"manual\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"created_at\": \"2025-08-12T09:59:40.385Z\",\r\n \"modified_at\": \"2025-08-12T09:59:41.229Z\",\r\n \"cancellation_reason\": null,\r\n \"mandate_id\": null,\r\n \"error_code\": null,\r\n \"payment_token\": null,\r\n \"connector_metadata\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"reference_id\": \"2aa664ab-6a91-417d-a9bb-db3f6fd1fc21\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"client_source\": null,\r\n \"client_version\": null\r\n }\r\n ],\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\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1091\",\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\": \"11\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"John 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\": null,\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\": 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\": 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\": \"pr-d7afb058-5ecb-424b-af1a-60c6ce3f8df0\",\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\": \"2aa664ab-6a91-417d-a9bb-db3f6fd1fc21\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_pRZDis5aB5cSfftyA4Dq\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_mJa8AsZOXYdYmggROjBG\",\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-08-12T10:14:40.385Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\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-08-12T09:59:48.778Z\",\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}\r\n```\r\n\r\nPayments Capture:\r\nRequest:\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_iapkM8sQja6Xvfdn9Tje/capture' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_43StkeAliDdRysVQ1Bk58TfaGfqvDrRcQDIWNdnr9rx3WGPr7qnKR9ZQzdmf7P07' \\\r\n--data '{\r\n \"statement_descriptor_name\": \"Joseph\",\r\n \"statement_descriptor_prefix\" :\"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\"\r\n}'\r\n```\r\nResponse:\r\n```\r\n{\r\n \"payment_id\": \"pay_iapkM8sQja6Xvfdn9Tje\",\r\n \"merchant_id\": \"merchant_1754983663\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 6540000,\r\n \"net_amount\": 6540000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 6540000,\r\n \"connector\": \"xendit\",\r\n \"client_secret\": \"pay_iapkM8sQja6Xvfdn9Tje_secret_83zsZQ4asN8r6n39cRgb\",\r\n \"created\": \"2025-08-12T09:59:40.385Z\",\r\n \"currency\": \"IDR\",\r\n \"customer_id\": null,\r\n \"customer\": {\r\n \"id\": null,\r\n \"name\": null,\r\n \"email\": \"abc@def.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\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1091\",\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\": \"11\",\r\n \"card_exp_year\": \"29\",\r\n \"card_holder_name\": \"John 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\": null,\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\": 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\": 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\": \"pr-d7afb058-5ecb-424b-af1a-60c6ce3f8df0\",\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\": \"1746e4f7-36a7-4058-9301-aac9772f97b7\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_pRZDis5aB5cSfftyA4Dq\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_mJa8AsZOXYdYmggROjBG\",\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-08-12T10:14:40.385Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\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-08-12T09:59:57.719Z\",\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}\r\n```\r\n\r\nNote: Existing CYPRESS not working on main branch for PSP Xendit and hence skipping Cypress tests for this PR\r\n\r\n## Checklist\r\n\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", + "author": "deepanshu-iiitu", + "created_at": "2025-08-12T09:54:21+00:00", + "merged_at": "2025-08-13T11:40:03+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "C-bug" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8921", + "commits": [ + { + "sha": "beafd6abb1388d988cee7e5bd558bdf7e78c1999", + "message": "chore(fix): [XENDIT] Make CVV Optional and fix Capture flow", + "author": "Deepanshu Bansal", + "date": "2025-08-12T09:53:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/beafd6abb1388d988cee7e5bd558bdf7e78c1999" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8948.json b/prs/pr_8948.json new file mode 100644 index 0000000000000000000000000000000000000000..eced4b65b41c76b6ce2773768c78e36e8b0a061e --- /dev/null +++ b/prs/pr_8948.json @@ -0,0 +1,29 @@ +{ + "number": 8948, + "title": "fix(core): Add Default Enum Variant in RequestIncrementalAuthorization", + "description": "## Type of Change\r\n\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\nCloses this [issue](https://github.com/juspay/hyperswitch/issues/8947)\r\n\r\n## Description\r\n\r\n\r\nAdded Default Enum Variant in RequestIncrementalAuthorization\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\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\nPostman Tests\r\n\r\n1. Create a payment with old version confirm with new (old and new application should be able to retrieve)\r\n\r\nPayments - Create (with Confirm: false)\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_nDwiGI0dyLcP8uP4zJj6TPrzetozj6rVGm7o9WV3KZJX4nKVPrB1VaIhnrcUrkXv' \\\r\n--data-raw '{\r\n \"amount\": 6500,\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\": 6500,\r\n \"customer_id\": \"StripeCustomer\",\r\n \"email\": \"abcdef123@gmail.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 \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\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 \"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\": \"joseph Doe\",\r\n \"card_cvc\": \"737\"\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\": \"127.0.0.1\"\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 \r\n \"zip\": \"94122\",\r\n \r\n \"country\": \"US\",\r\n \r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\"\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\": \"2025-07-25T11:46:12Z\"\r\n }\r\n}'\r\n```\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_QpckxK3eCQr65QznPuuN\",\r\n \"merchant_id\": \"merchant_1755160879\",\r\n \"status\": \"requires_confirmation\",\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_QpckxK3eCQr65QznPuuN_secret_qV2I7iHAdO5nQb9g1NiG\",\r\n \"created\": \"2025-08-14T08:41:43.016Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"abcdef123@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\": \"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\": \"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_yMCfQBl7o3zcFKRn1moK\",\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\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": 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\": \"John\",\r\n \"last_name\": \"Doe\",\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\": \"abcdef123@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": \"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\": \"StripeCustomer\",\r\n \"created_at\": 1755160902,\r\n \"expires\": 1755164502,\r\n \"secret\": \"epk_c95c09ba12954fa88c93d7216e216242\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": null,\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2025-07-25T11:46: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_8SHbxLW1M8ueBNJ7tqAf\",\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-14T08:56:43.016Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.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_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-08-14T08:41:43.114Z\",\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}\r\n```\r\n\r\nPayments - Confirm\r\n\r\nRequest:\r\n\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_QpckxK3eCQr65QznPuuN/confirm' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_nDwiGI0dyLcP8uP4zJj6TPrzetozj6rVGm7o9WV3KZJX4nKVPrB1VaIhnrcUrkXv' \\\r\n--data-raw '{\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\": \"127.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\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\": \"4242424242424242\", \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 \"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 \"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 \r\n \"zip\": \"94122\",\r\n \r\n \"country\": \"US\",\r\n \r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\"\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\": \"2025-07-25T11:46:12Z\"\r\n }\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"amount_to_capture\": 6500,\r\n \"customer_id\": \"StripeCustomer\",\r\n \"email\": \"abcdef123@gmail.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 \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\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 \"amount\": 6500,\r\n \"currency\": \"USD\" \r\n}'\r\n```\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_QpckxK3eCQr65QznPuuN\",\r\n \"merchant_id\": \"merchant_1755160879\",\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\": \"stripe\",\r\n \"client_secret\": \"pay_QpckxK3eCQr65QznPuuN_secret_qV2I7iHAdO5nQb9g1NiG\",\r\n \"created\": \"2025-08-14T08:41:43.016Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"abcdef123@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\": \"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\": \"joseph Doe\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": \"pass\"\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_yMCfQBl7o3zcFKRn1moK\",\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\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": 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\": \"John\",\r\n \"last_name\": \"Doe\",\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\": \"abcdef123@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": \"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_3RvwugE9cSvqiivY0X0CxZg6\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2025-07-25T11:46:12Z\",\r\n \"new_customer\": \"true\"\r\n },\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\": \"pi_3RvwugE9cSvqiivY0X0CxZg6\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_8SHbxLW1M8ueBNJ7tqAf\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_E0iaiKWU18mDERnGMckX\",\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-08-14T08:56:43.016Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"os_type\": null,\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.0.0.1\",\r\n \"os_version\": null,\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 \"device_model\": null,\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 \"accept_language\": \"en\",\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-08-14T08:53:35.933Z\",\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}\r\n```\r\n\r\nPayments - sync (with old application):\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_QpckxK3eCQr65QznPuuN\",\r\n \"merchant_id\": \"merchant_1755160879\",\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\": \"stripe\",\r\n \"client_secret\": \"pay_QpckxK3eCQr65QznPuuN_secret_qV2I7iHAdO5nQb9g1NiG\",\r\n \"created\": \"2025-08-14T08:41:43.016Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"abcdef123@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\": [\r\n {\r\n \"refund_id\": \"ref_nzAqQ7BbLsGuCu7K00Gm\",\r\n \"payment_id\": \"pay_QpckxK3eCQr65QznPuuN\",\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"status\": \"succeeded\",\r\n \"reason\": \"Customer returned product\",\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 \"error_message\": null,\r\n \"error_code\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"created_at\": \"2025-08-14T08:55:59.292Z\",\r\n \"updated_at\": \"2025-08-14T08:56:00.603Z\",\r\n \"connector\": \"stripe\",\r\n \"profile_id\": \"pro_8SHbxLW1M8ueBNJ7tqAf\",\r\n \"merchant_connector_id\": \"mca_E0iaiKWU18mDERnGMckX\",\r\n \"split_refunds\": null,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null\r\n },\r\n {\r\n \"refund_id\": \"ref_KehvNBg796Hhj5AnjLIU\",\r\n \"payment_id\": \"pay_QpckxK3eCQr65QznPuuN\",\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"status\": \"succeeded\",\r\n \"reason\": \"Customer returned product\",\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 \"error_message\": null,\r\n \"error_code\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"created_at\": \"2025-08-14T09:04:53.067Z\",\r\n \"updated_at\": \"2025-08-14T09:04:54.257Z\",\r\n \"connector\": \"stripe\",\r\n \"profile_id\": \"pro_8SHbxLW1M8ueBNJ7tqAf\",\r\n \"merchant_connector_id\": \"mca_E0iaiKWU18mDERnGMckX\",\r\n \"split_refunds\": null,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null\r\n }\r\n ],\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\": \"joseph Doe\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": \"pass\"\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_yMCfQBl7o3zcFKRn1moK\",\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\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": 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\": \"John\",\r\n \"last_name\": \"Doe\",\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\": \"abcdef123@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": \"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_3RvwugE9cSvqiivY0X0CxZg6\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2025-07-25T11:46:12Z\",\r\n \"new_customer\": \"true\"\r\n },\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\": \"pi_3RvwugE9cSvqiivY0X0CxZg6\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_8SHbxLW1M8ueBNJ7tqAf\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_E0iaiKWU18mDERnGMckX\",\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-08-14T08:56:43.016Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"os_type\": null,\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.0.0.1\",\r\n \"os_version\": null,\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 \"device_model\": null,\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 \"accept_language\": \"en\",\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_BOcKiwB3ujDSu3H3yheb\",\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-08-14T09:05:00.035Z\",\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\": \"pm_1RvwugE9cSvqiivY5A84TvB3\",\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}\r\n```\r\n\r\nPayments - Sync (New Application)\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_QpckxK3eCQr65QznPuuN\",\r\n \"merchant_id\": \"merchant_1755160879\",\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\": \"stripe\",\r\n \"client_secret\": \"pay_QpckxK3eCQr65QznPuuN_secret_qV2I7iHAdO5nQb9g1NiG\",\r\n \"created\": \"2025-08-14T08:41:43.016Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"abcdef123@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\": [\r\n {\r\n \"refund_id\": \"ref_nzAqQ7BbLsGuCu7K00Gm\",\r\n \"payment_id\": \"pay_QpckxK3eCQr65QznPuuN\",\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"status\": \"succeeded\",\r\n \"reason\": \"Customer returned product\",\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 \"error_message\": null,\r\n \"error_code\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"created_at\": \"2025-08-14T08:55:59.292Z\",\r\n \"updated_at\": \"2025-08-14T08:56:00.603Z\",\r\n \"connector\": \"stripe\",\r\n \"profile_id\": \"pro_8SHbxLW1M8ueBNJ7tqAf\",\r\n \"merchant_connector_id\": \"mca_E0iaiKWU18mDERnGMckX\",\r\n \"split_refunds\": null,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null\r\n },\r\n {\r\n \"refund_id\": \"ref_KehvNBg796Hhj5AnjLIU\",\r\n \"payment_id\": \"pay_QpckxK3eCQr65QznPuuN\",\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"status\": \"succeeded\",\r\n \"reason\": \"Customer returned product\",\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 \"error_message\": null,\r\n \"error_code\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"created_at\": \"2025-08-14T09:04:53.067Z\",\r\n \"updated_at\": \"2025-08-14T09:04:54.257Z\",\r\n \"connector\": \"stripe\",\r\n \"profile_id\": \"pro_8SHbxLW1M8ueBNJ7tqAf\",\r\n \"merchant_connector_id\": \"mca_E0iaiKWU18mDERnGMckX\",\r\n \"split_refunds\": null,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null\r\n }\r\n ],\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\": \"joseph Doe\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": \"pass\"\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_yMCfQBl7o3zcFKRn1moK\",\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\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": 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\": \"John\",\r\n \"last_name\": \"Doe\",\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\": \"abcdef123@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": \"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_3RvwugE9cSvqiivY0X0CxZg6\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2025-07-25T11:46:12Z\",\r\n \"new_customer\": \"true\"\r\n },\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\": \"pi_3RvwugE9cSvqiivY0X0CxZg6\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_8SHbxLW1M8ueBNJ7tqAf\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_E0iaiKWU18mDERnGMckX\",\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-08-14T08:56:43.016Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"os_type\": null,\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.0.0.1\",\r\n \"os_version\": null,\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 \"device_model\": null,\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 \"accept_language\": \"en\",\r\n \"java_script_enabled\": true\r\n },\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_BOcKiwB3ujDSu3H3yheb\",\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-08-14T09:05:00.035Z\",\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\": \"pm_1RvwugE9cSvqiivY5A84TvB3\",\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}\r\n```\r\n\r\n2. Create + confirm on old version (old and new application should be able to retrieve)\r\n\r\nCreate + Confirm: \r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_qDAKyiWXL2BToORLLOed\",\r\n \"merchant_id\": \"merchant_1755163699\",\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\": \"stripe\",\r\n \"client_secret\": \"pay_qDAKyiWXL2BToORLLOed_secret_ApS6p4I8eCgpO7LfReIB\",\r\n \"created\": \"2025-08-14T09:28:48.465Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"abcdef123@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\": \"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\": \"joseph Doe\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": \"pass\"\r\n },\r\n \"authentication_data\": null\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\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": 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\": \"John\",\r\n \"last_name\": \"Doe\",\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\": \"abcdef123@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": \"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\": \"StripeCustomer\",\r\n \"created_at\": 1755163728,\r\n \"expires\": 1755167328,\r\n \"secret\": \"epk_abc7e336d4c840f1a5ccd8067c76f0d5\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"pi_3RvxSoE9cSvqiivY0Q00nWP3\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2025-07-25T11:46:12Z\",\r\n \"new_customer\": \"true\"\r\n },\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\": \"pi_3RvxSoE9cSvqiivY0Q00nWP3\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_mQ5idcJcr37iO0GmRSQU\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_2lED1Q9w5btK5Tgsx6CB\",\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-14T09:43:48.465Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.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_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-08-14T09:28:51.204Z\",\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}\r\n```\r\n\r\nPayments - Sync (on old version)\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_qDAKyiWXL2BToORLLOed\",\r\n \"merchant_id\": \"merchant_1755163699\",\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\": \"stripe\",\r\n \"client_secret\": \"pay_qDAKyiWXL2BToORLLOed_secret_ApS6p4I8eCgpO7LfReIB\",\r\n \"created\": \"2025-08-14T09:28:48.465Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"abcdef123@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\": \"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\": \"joseph Doe\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": \"pass\"\r\n },\r\n \"authentication_data\": null\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\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": 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\": \"John\",\r\n \"last_name\": \"Doe\",\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\": \"abcdef123@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": \"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_3RvxSoE9cSvqiivY0Q00nWP3\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2025-07-25T11:46:12Z\",\r\n \"new_customer\": \"true\"\r\n },\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\": \"pi_3RvxSoE9cSvqiivY0Q00nWP3\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_mQ5idcJcr37iO0GmRSQU\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_2lED1Q9w5btK5Tgsx6CB\",\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-14T09:43:48.465Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.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_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-08-14T09:29:05.152Z\",\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}\r\n```\r\n\r\nPayments - Sync (on this branch):\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_qDAKyiWXL2BToORLLOed\",\r\n \"merchant_id\": \"merchant_1755163699\",\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\": \"stripe\",\r\n \"client_secret\": \"pay_qDAKyiWXL2BToORLLOed_secret_ApS6p4I8eCgpO7LfReIB\",\r\n \"created\": \"2025-08-14T09:28:48.465Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"abcdef123@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\": \"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\": \"joseph Doe\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": \"pass\"\r\n },\r\n \"authentication_data\": null\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\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": 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\": \"John\",\r\n \"last_name\": \"Doe\",\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\": \"abcdef123@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": \"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_3RvxSoE9cSvqiivY0Q00nWP3\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2025-07-25T11:46:12Z\",\r\n \"new_customer\": \"true\"\r\n },\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\": \"pi_3RvxSoE9cSvqiivY0Q00nWP3\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_mQ5idcJcr37iO0GmRSQU\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_2lED1Q9w5btK5Tgsx6CB\",\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-14T09:43:48.465Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.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_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-08-14T09:29:05.152Z\",\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}\r\n```\r\n\r\n3. Manually override the db enum to store Default and see if the new and old application can retrieve it\r\n\r\nPayments - Create\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_RbtTfVKPmNN6AipdXDBy\",\r\n \"merchant_id\": \"merchant_1755163699\",\r\n \"status\": \"requires_capture\",\r\n \"amount\": 6500,\r\n \"net_amount\": 6500,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 6500,\r\n \"amount_received\": 0,\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"pay_RbtTfVKPmNN6AipdXDBy_secret_KgqxaJ94DXsIMOOhWNez\",\r\n \"created\": \"2025-08-14T10:04:50.873Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"abcdef123@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\": \"manual\",\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\": \"joseph Doe\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": \"pass\"\r\n },\r\n \"authentication_data\": null\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\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": 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\": \"John\",\r\n \"last_name\": \"Doe\",\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\": \"abcdef123@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": \"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\": \"StripeCustomer\",\r\n \"created_at\": 1755165890,\r\n \"expires\": 1755169490,\r\n \"secret\": \"epk_c08c26656b7d437e9c2bfc248bc39ab3\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"pi_3Rvy1gE9cSvqiivY1bcNshY0\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2025-07-25T11:46:12Z\",\r\n \"new_customer\": \"true\"\r\n },\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\": \"pi_3Rvy1gE9cSvqiivY1bcNshY0\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_mQ5idcJcr37iO0GmRSQU\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_2lED1Q9w5btK5Tgsx6CB\",\r\n \"incremental_authorization_allowed\": true,\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-14T10:19:50.873Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.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_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-08-14T10:04:52.820Z\",\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}\r\n```\r\n\r\nPayments - Sync (on this branch, after changing the value of request_incremental_authorization to default and incremental_authorization_allowed to true):\r\n\"Screenshot\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_RbtTfVKPmNN6AipdXDBy\",\r\n \"merchant_id\": \"merchant_1755163699\",\r\n \"status\": \"requires_capture\",\r\n \"amount\": 6500,\r\n \"net_amount\": 6500,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 6500,\r\n \"amount_received\": 0,\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"pay_RbtTfVKPmNN6AipdXDBy_secret_KgqxaJ94DXsIMOOhWNez\",\r\n \"created\": \"2025-08-14T10:04:50.873Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"abcdef123@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\": \"manual\",\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\": \"joseph Doe\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": \"pass\"\r\n },\r\n \"authentication_data\": null\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\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": 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\": \"John\",\r\n \"last_name\": \"Doe\",\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\": \"abcdef123@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": \"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_3Rvy1gE9cSvqiivY1bcNshY0\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2025-07-25T11:46:12Z\",\r\n \"new_customer\": \"true\"\r\n },\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\": \"pi_3Rvy1gE9cSvqiivY1bcNshY0\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_mQ5idcJcr37iO0GmRSQU\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_2lED1Q9w5btK5Tgsx6CB\",\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-08-14T10:19:50.873Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.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_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-08-14T10:07:49.655Z\",\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\": \"pm_1Rvy1gE9cSvqiivYCvmNitR6\",\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}\r\n``` \r\n\r\nPayments - Sync (on old version):\r\n\r\nResponse:\r\n\r\n```\r\n{\r\n \"payment_id\": \"pay_yySze0C1AcjjVbTE3ecr\",\r\n \"merchant_id\": \"merchant_1755163699\",\r\n \"status\": \"requires_capture\",\r\n \"amount\": 6500,\r\n \"net_amount\": 6500,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 6500,\r\n \"amount_received\": 0,\r\n \"connector\": \"stripe\",\r\n \"client_secret\": \"pay_yySze0C1AcjjVbTE3ecr_secret_GI3GZQZxrsMa6bdmnSZD\",\r\n \"created\": \"2025-08-14T10:26:23.998Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"abcdef123@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\": \"manual\",\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\": \"joseph Doe\",\r\n \"payment_checks\": {\r\n \"cvc_check\": \"pass\",\r\n \"address_line1_check\": \"pass\",\r\n \"address_postal_code_check\": \"pass\"\r\n },\r\n \"authentication_data\": null\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\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": 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\": \"John\",\r\n \"last_name\": \"Doe\",\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\": \"abcdef123@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": \"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_3RvyMWE9cSvqiivY16aXbZ8T\",\r\n \"frm_message\": null,\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"login_date\": \"2025-07-25T11:46:12Z\",\r\n \"new_customer\": \"true\"\r\n },\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\": \"pi_3RvyMWE9cSvqiivY16aXbZ8T\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_mQ5idcJcr37iO0GmRSQU\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_2lED1Q9w5btK5Tgsx6CB\",\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-08-14T10:41:23.998Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.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_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-08-14T10:29:43.256Z\",\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\": \"pm_1RvyMWE9cSvqiivYxCV2kKOB\",\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}\r\n```\r\n\r\n## Checklist\r\n\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", + "author": "Anurag-05-prog", + "created_at": "2025-08-13T20:34:28+00:00", + "merged_at": "2025-08-18T07:35:59+00:00", + "base_branch": "main", + "labels": [ + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8948", + "commits": [ + { + "sha": "3a3a2e728edfdc36fb6e1edf90412cc91df50418", + "message": "fix(core): add Default enum variant back", + "author": "Anurag Singh", + "date": "2025-08-13T20:28:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3a3a2e728edfdc36fb6e1edf90412cc91df50418" + }, + { + "sha": "077e93fe7535aa7c356ca02a86f383344e8f5573", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-08-13T20:40:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/077e93fe7535aa7c356ca02a86f383344e8f5573" + } + ] +} \ No newline at end of file diff --git a/prs/pr_8985.json b/prs/pr_8985.json new file mode 100644 index 0000000000000000000000000000000000000000..6d6126dedba559afef03c08b23d8ec077d51f80d --- /dev/null +++ b/prs/pr_8985.json @@ -0,0 +1,323 @@ +{ + "number": 8985, + "title": "feat(nuvei): Googlepay , applepay and partial authorization integration for nuvei", + "description": "## Type of Change\r\n\r\n\r\n- [x] 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\r\nAdd the following features in nuvie\r\n1. Google pay decrypt flow S2S\r\n2. Apple pay decrypt flow S2S\r\n3. Google pay encrypt flow\r\n4. Partial Authorization\r\n5. Send shipping address for nuvei (previously not sent)\r\n\r\n## Test attachment\r\n\r\n\r\n\r\n\r\n\r\n
\r\n APPLE PAY DECRYPT FLOW \r\n\r\n# Request\r\n\r\n```json\r\n{\r\n \"amount\": 1,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n // \"order_tax_amount\": 100,\r\n \"setup_future_usage\": \"off_session\",\r\n // \"payment_type\":\"setup_mandate\",\r\n \"customer_id\": \"nithxxinn\",\r\n \"return_url\": \"https://www.google.com\",\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"apple_pay\",\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 \"email\":\"nithingowdan77@gmail.com\"\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 \"wallet\": {\r\n \"apple_pay\": {\r\n \"payment_data\": {\r\n \"application_primary_account_number\": \"4242424242424242\",\r\n \"application_expiration_month\": \"09\",\r\n \"application_expiration_year\": \"30\",\r\n \"application_brand\":\"VISA\",\r\n \"payment_data\": {\r\n \"online_payment_cryptogram\": \"ArSx8**************************\",\r\n \"eci_indicator\": \"7\"\r\n }\r\n },\r\n \"payment_method\": {\r\n \"display_name\": \"Discover 9319\",\r\n \"network\": \"VISA\",\r\n \"type\": \"debit\"\r\n },\r\n \"transaction_identifier\": \"c635c5b3af900d7bd81fecd7028f1262f9d030754ee65ec7afd988a678194751\"\r\n }\r\n }\r\n }\r\n}\r\n\r\n```\r\n\r\n# Response\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_MgXkheRylOHLMUllc1Mw\",\r\n \"merchant_id\": \"merchant_1755589543\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1,\r\n \"net_amount\": 1,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 1,\r\n \"connector\": \"nuvei\",\r\n \"client_secret\": \"pay_MgXkheRylOHLMUllc1Mw_secret_swUebKaDNEsP4Qo5BMxe\",\r\n \"created\": \"2025-08-19T08:05:14.847Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"nithxxinn\",\r\n \"customer\": {\r\n \"id\": \"nithxxinn\",\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\": \"wallet\",\r\n \"payment_method_data\": {\r\n \"wallet\": {\r\n \"apple_pay\": {\r\n \"last4\": \"9319\",\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\": \"nithin*****@gmail.com\"\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\": \"https://www.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\": \"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\": \"nithxxinn\",\r\n \"created_at\": 1755590714,\r\n \"expires\": 1755594314,\r\n \"secret\": \"epk_ad5c941cff3a4404ab38dee084e575d0\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"8110000000012650848\",\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\": \"8027431111\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_o6xLMNfkFwAWH1U1zimF\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_8DFDwR4GryN3qQQOh8bq\",\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-08-19T08:20:14.847Z\",\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-08-19T08:05:17.249Z\",\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}\r\n```\r\n\r\n
\r\n\r\n\r\n\r\n
\r\n\r\n\r\n Google pay Decrypt \r\n\r\n\r\n## Request\r\n\r\n```json\r\n{\r\n \"amount\": 1,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"customer_id\": \"nithxxinn\",\r\n \"return_url\": \"https://www.google.com\",\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"google_pay\",\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\": \"UA\",\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 \"email\":\"test@gmail.com\"\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 \"wallet\": {\r\n \"google_pay\": {\r\n \"type\": \"CARD\",\r\n \"tokenization_data\": {\r\n \"application_primary_account_number\": \"4761344136141390\",\r\n \"card_exp_month\": \"12\",\r\n \"card_exp_year\": \"25\",\r\n \"cryptogram\": \"ejJR********************U=\",\r\n \"eci_indicator\": \"5\"\r\n },\r\n \"info\": {\r\n \"card_details\": \"Discover 9319\",\r\n \"card_network\": \"VISA\"\r\n },\r\n \"description\": \"something\"\r\n }\r\n }\r\n }\r\n}\r\n```\r\nResponse\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_0i5TBkizYCY8JIwAPB1H\",\r\n \"merchant_id\": \"merchant_1755589543\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1,\r\n \"net_amount\": 1,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 1,\r\n \"connector\": \"nuvei\",\r\n \"client_secret\": \"pay_0i5TBkizYCY8JIwAPB1H_secret_7O5zdgMiNJxFdZolSjIJ\",\r\n \"created\": \"2025-08-19T08:07:18.648Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"nithxxinn\",\r\n \"customer\": {\r\n \"id\": \"nithxxinn\",\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\": 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 \"google_pay\": {\r\n \"last4\": \"Discover 9319\",\r\n \"card_network\": \"VISA\",\r\n \"type\": \"CARD\"\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\": \"UA\",\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\": \"test@gmail.com\"\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\": \"https://www.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\": \"google_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\": \"nithxxinn\",\r\n \"created_at\": 1755590838,\r\n \"expires\": 1755594438,\r\n \"secret\": \"epk_8d9994d7f5594c2a8fb10ebf6c3fdc27\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"8110000000012650994\",\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\": \"8027476111\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_o6xLMNfkFwAWH1U1zimF\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_8DFDwR4GryN3qQQOh8bq\",\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-08-19T08:22:18.648Z\",\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-08-19T08:07:21.259Z\",\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}\r\n```\r\n\r\n
\r\n\r\n
\r\n GOOGLE PAY DIRECT \r\n\r\n```js\r\nconst tokenizationSpecification = {\r\n type: \"PAYMENT_GATEWAY\",\r\n parameters: {\r\n \"gateway\": \"nuveidigital\",\r\n \"gatewayMerchantId\": \"googletest\"\r\n }\r\n};\r\n```\r\n## Request\r\n\r\n```json\r\n{\r\n \"amount\": 1,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"customer_id\": \"nithxxinn\",\r\n \"return_url\": \"https://www.google.com\",\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"google_pay\",\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\": \"UA\",\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 \"email\":\"nithin@test.com\"\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 \"wallet\": {\r\n \"google_pay\": {\r\n \"description\": \"SG Visa Success: Visa\u2006\u2022\u2022\u2022\u2022\u20061390\",\r\n \"info\": {\r\n \"assuranceDetails\": {\r\n \"account_verified\": true,\r\n \"card_holder_authenticated\": false\r\n },\r\n \"card_details\": \"1390\",\r\n \"card_network\": \"VISA\"\r\n },\r\n \"tokenization_data\": {\r\n \"token\": \"{\\\"signature\\\":\\\"MEUCIG7saL2k07Szf8ezokemD5jAJTwpcWwpy+ajTJot7u+nAiEAzvcuwAoj47r8oMh3a6eUKeZB2lFyDLEzZt2R2lpezo0\\\\u003d\\\",\\\"intermediateSigningKey\\\":{\\\"signedKey\\\":\\\"{\\\\\\\"keyValue\\\\\\\":\\\\\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE9ByUUgcs6d9rtJA3svCKaGZQjfsbMQAAwWZ6YNIpJkg/NR9HAkMT1sdhkKMRxtcFp1k5y01dr/JpEU2Pj3XyYw\\\\\\\\u003d\\\\\\\\u003d\\\\\\\",\\\\\\\"keyExpiration\\\\\\\":\\\\\\\"1756245691797\\\\\\\"}\\\",\\\"signatures\\\":[\\\"MEQCIFAS8NBh7J4rz00iRDjScYizAfRV+pVnCfsmsFgrehMVAiBpxHFUu6wG3UVNhDMmudb6sZeZHXDJonLkkKOWgzN4TA\\\\u003d\\\\u003d\\\"]},\\\"protocolVersion\\\":\\\"ECv2\\\",\\\"signedMessage\\\":\\\"{\\\\\\\"encryptedMessage\\\\\\\":\\\\\\\"hJxayhOT/y4ekX9Ub14X6nl7Xm0h3b1nu8FKv7WDulloondBA+kk9sYnNomQx+ZPANrGES4CBGbmptqW5gR6TjdvENXbSUrTjzU8k++Klw/AwAJBcID+dL+EgyIvgmqIYesLyKzITkZr9zSxtd0zuB9ewcta8gHgBzlZmJSWmdvanv4xiBQgjriKolnw4IiOXXAzN+X0GGXkPqcQnlLIrUzjn/9oCgwhFDltl1EJjkUH8Ji2Rzx62FUexxY6RHHrkoq3pCoirc+KNRXPu3+gC06iloRTR48gmmayFKH5s3Kyw0j9Oypu7fx/AgSqrFKkFzVUmCV0yLwGQSI2vyVdKOFLgLay8dDbEHKvF5X+ZP7diunVh0QwZUTT7yRmgyQUaZAbQhd+uRHrev6SYXcmWdSu8E+8H6A7jtITaZN2eHI7u9ciW82/AcIx3gPkTocKGyXdYRB07+GaFIqyWwxT+9TwLW49oq7hbj978APK1vy4f8x6v2h1tCj6StH6md7xJpn+U47n8rKmJhQiXqRyzfKFcCekndvs0YpgEVbcoZEKKl0E\\\\\\\",\\\\\\\"ephemeralPublicKey\\\\\\\":\\\\\\\"BKvkUFUZmpa0BgifTbr2ZTNBK7D74Fg8RMsk2Txta+Vf+vX1/BZLUaITfjpgJ5Xqt3rz+AmrkFe+XRvT5E4R7nc\\\\\\\\u003d\\\\\\\",\\\\\\\"tag\\\\\\\":\\\\\\\"cGNVu61W/PvTC89JXVMUcsKaZIOpt92oexc+aztsKqw\\\\\\\\u003d\\\\\\\"}\\\"}\",\r\n \"type\": \"PAYMENT_GATEWAY\"\r\n },\r\n \"type\": \"CARD\"\r\n}\r\n }}\r\n}\r\n\r\n```\r\n\r\n## response\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_UGldGh1QW8CTJJJ22CMJ\",\r\n \"merchant_id\": \"merchant_1755589543\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1,\r\n \"net_amount\": 1,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 1,\r\n \"connector\": \"nuvei\",\r\n \"client_secret\": \"pay_UGldGh1QW8CTJJJ22CMJ_secret_nKqyqNJ02RgcaMsBBz51\",\r\n \"created\": \"2025-08-19T09:08:25.037Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"nithxxinn\",\r\n \"customer\": {\r\n \"id\": \"nithxxinn\",\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\": 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 \"google_pay\": {\r\n \"last4\": \"1390\",\r\n \"card_network\": \"VISA\",\r\n \"type\": \"CARD\"\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\": \"UA\",\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\": \"nithin@test.com\"\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\": \"https://www.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\": \"google_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\": \"nithxxinn\",\r\n \"created_at\": 1755594505,\r\n \"expires\": 1755598105,\r\n \"secret\": \"epk_d3dbd5a8b4c04958b6fb4c959cbc67a1\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"8110000000012655452\",\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\": \"8029357111\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_o6xLMNfkFwAWH1U1zimF\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_8DFDwR4GryN3qQQOh8bq\",\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-08-19T09:23:25.037Z\",\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-08-19T09:08:29.510Z\",\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}\r\n\r\n```\r\n\r\n
\r\n\r\n\r\n
\r\n\r\nPartial auth \r\n\r\n## Request\r\n\r\n```json\r\n{\r\n \"amount\": 300,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"customer_id\": \"nithxxinn\",\r\n \"return_url\": \"https://www.google.com\",\r\n \"capture_method\": \"automatic\",\r\n \"enable_partial_authorization\":true,\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 \"email\":\"nithin@gmail.com\"\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\": \"4531739335817394\",\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}\r\n```\r\n\r\n\r\n## Response\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_hieZ9MkK4v1qbqiXKEor\",\r\n \"merchant_id\": \"merchant_1755589543\",\r\n \"status\": \"partially_captured\",\r\n \"amount\": 300,\r\n \"net_amount\": 300,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 300,\r\n \"amount_received\": 150,\r\n \"connector\": \"nuvei\",\r\n \"client_secret\": \"pay_hieZ9MkK4v1qbqiXKEor_secret_KN9DE1LjGlbxEIDGpzFT\",\r\n \"created\": \"2025-08-19T09:21:17.091Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"nithxxinn\",\r\n \"customer\": {\r\n \"id\": \"nithxxinn\",\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\": 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\": \"7394\",\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\": \"453173\",\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\": \"\",\r\n \"cvv_2_reply_code\": \"\",\r\n \"cvv_2_description\": null,\r\n \"merchant_advice_code\": \"\",\r\n \"merchant_advice_code_description\": null\r\n },\r\n \"authentication_data\": {\r\n \"challengePreferenceReason\": \"12\"\r\n }\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_7PrpuuSVcta1g2qFHYtC\",\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\": \"nithin@gmail.com\"\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\": \"https://www.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\": {\r\n \"customer_id\": \"nithxxinn\",\r\n \"created_at\": 1755595277,\r\n \"expires\": 1755598877,\r\n \"secret\": \"epk_8003507abbdb427788e1fa089e75c59c\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"8110000000012656330\",\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\": \"8029726111\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_o6xLMNfkFwAWH1U1zimF\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_8DFDwR4GryN3qQQOh8bq\",\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-08-19T09:36:17.091Z\",\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-08-19T09:21:19.648Z\",\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\": true\r\n}\r\n```\r\n\r\n## partial-auth manual payment response\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_t82V58k4cohYq87gBvGL\",\r\n \"merchant_id\": \"merchant_1755675958\",\r\n \"status\": \"partially_authorized_and_requires_capture\",\r\n \"amount\": 300,\r\n \"net_amount\": 300,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 150,\r\n \"amount_received\": null,\r\n \"connector\": \"nuvei\",\r\n \"client_secret\": \"pay_t82V58k4cohYq87gBvGL_secret_CHN75ZbLuZWVBKYTITqg\",\r\n \"created\": \"2025-08-21T08:37:13.180Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"nithxxinn\",\r\n \"customer\": {\r\n \"id\": \"nithxxinn\",\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\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"7394\",\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\": \"453173\",\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\": \"\",\r\n \"cvv_2_reply_code\": \"\",\r\n \"cvv_2_description\": null,\r\n \"merchant_advice_code\": \"\",\r\n \"merchant_advice_code_description\": null\r\n },\r\n \"authentication_data\": {\r\n \"challengePreferenceReason\": \"12\"\r\n }\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_yUVtqVsfxyKqmAM4fl1H\",\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\": \"https://www.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\": {\r\n \"customer_id\": \"nithxxinn\",\r\n \"created_at\": 1755765433,\r\n \"expires\": 1755769033,\r\n \"secret\": \"epk_c7ea65af285e4db69a3bd6fbcb553bf4\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"8110000000012833076\",\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\": \"8101170111\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_8OqPL5PekR8mRXU8WZZs\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_48b4pLXImpTC9wJALk91\",\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-08-21T08:52:13.180Z\",\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-08-21T08:37:15.983Z\",\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\": true\r\n}\r\n```\r\n### capture partial \r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_t82V58k4cohYq87gBvGL\",\r\n \"merchant_id\": \"merchant_1755675958\",\r\n \"status\": \"partially_captured\",\r\n \"amount\": 300,\r\n \"net_amount\": 300,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 150,\r\n \"connector\": \"nuvei\",\r\n \"client_secret\": \"pay_t82V58k4cohYq87gBvGL_secret_CHN75ZbLuZWVBKYTITqg\",\r\n \"created\": \"2025-08-21T08:37:13.180Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"nithxxinn\",\r\n \"customer\": {\r\n \"id\": \"nithxxinn\",\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\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"7394\",\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\": \"453173\",\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\": \"\",\r\n \"cvv_2_reply_code\": \"\",\r\n \"cvv_2_description\": null,\r\n \"merchant_advice_code\": \"\",\r\n \"merchant_advice_code_description\": null\r\n },\r\n \"authentication_data\": {\r\n \"challengePreferenceReason\": \"12\"\r\n }\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_yUVtqVsfxyKqmAM4fl1H\",\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\": \"https://www.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\": \"8110000000012833218\",\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\": \"8101170111\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_8OqPL5PekR8mRXU8WZZs\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_48b4pLXImpTC9wJALk91\",\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-08-21T08:52:13.180Z\",\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-08-21T08:37:57.428Z\",\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\": true\r\n}\r\n```\r\n\r\n
\r\n\r\n\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\n\r\n\r\n\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", + "author": "Nithin1506200", + "created_at": "2025-08-19T07:19:30+00:00", + "merged_at": "2025-08-22T12:06:10+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration" + ], + "url": "https://github.com/juspay/hyperswitch/pull/8985", + "commits": [ + { + "sha": "4977b4203e9dd5040b8dcaacca7ef4268ad5885f", + "message": "Nuvie", + "author": "nihtin", + "date": "2025-07-28T08:36:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4977b4203e9dd5040b8dcaacca7ef4268ad5885f" + }, + { + "sha": "730c0ac31f82384c1068c82a6c231381cbdfbb53", + "message": "moto transaction", + "author": "nihtin", + "date": "2025-07-28T09:14:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/730c0ac31f82384c1068c82a6c231381cbdfbb53" + }, + { + "sha": "9d9ac94d040243b3df654b692148c652cc2cf1b0", + "message": "update", + "author": "nihtin", + "date": "2025-07-29T04:56:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9d9ac94d040243b3df654b692148c652cc2cf1b0" + }, + { + "sha": "5f92bbb60166796244b7cc1f96a14bfd185499ac", + "message": "update", + "author": "nihtin", + "date": "2025-08-06T09:33:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5f92bbb60166796244b7cc1f96a14bfd185499ac" + }, + { + "sha": "b4d36c401b7b16fe3d3146859a66e0b5ad396ce6", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into nuvie", + "author": "nihtin", + "date": "2025-08-06T09:33:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b4d36c401b7b16fe3d3146859a66e0b5ad396ce6" + }, + { + "sha": "ca9054b21d194bf0510c88f33332275bc46bbca1", + "message": "update", + "author": "nihtin", + "date": "2025-08-07T05:22:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ca9054b21d194bf0510c88f33332275bc46bbca1" + }, + { + "sha": "f3053c97bc3f8de8f1c830ccef80a0ab4301c30c", + "message": "nuvie changes", + "author": "nihtin", + "date": "2025-08-07T05:24:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f3053c97bc3f8de8f1c830ccef80a0ab4301c30c" + }, + { + "sha": "7987e24ff0a62aa7f5bea8794c02cd0a892b21d5", + "message": "add nuvie", + "author": "nihtin", + "date": "2025-08-07T06:57:42+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7987e24ff0a62aa7f5bea8794c02cd0a892b21d5" + }, + { + "sha": "75bc591102f26652031789811c3e8d0428059145", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into nuvie", + "author": "nihtin", + "date": "2025-08-07T06:59:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/75bc591102f26652031789811c3e8d0428059145" + }, + { + "sha": "69487f357cebd59bad8b8b0245b102de31cbe69a", + "message": "nuvie", + "author": "nihtin", + "date": "2025-08-07T07:29:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/69487f357cebd59bad8b8b0245b102de31cbe69a" + }, + { + "sha": "feee36c4970cb33550eb1f3a6457091e84529b1a", + "message": "Update", + "author": "nihtin", + "date": "2025-08-07T10:32:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/feee36c4970cb33550eb1f3a6457091e84529b1a" + }, + { + "sha": "4343d9885f1d12746dc4bb46f6bd92cceeda5765", + "message": "update", + "author": "nihtin", + "date": "2025-08-07T10:51:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4343d9885f1d12746dc4bb46f6bd92cceeda5765" + }, + { + "sha": "f4cc259ae96a5fd5eff8ecede3ab3b17366bc971", + "message": "update", + "author": "nihtin", + "date": "2025-08-08T08:07:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f4cc259ae96a5fd5eff8ecede3ab3b17366bc971" + }, + { + "sha": "a93ee75376f7037b57c5fa3685da2bb1522e3b68", + "message": "fix cypress", + "author": "nihtin", + "date": "2025-08-08T14:09:32+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a93ee75376f7037b57c5fa3685da2bb1522e3b68" + }, + { + "sha": "eb0be51f7c79ea7889522c219b6dcbe6a36ce531", + "message": "clippy", + "author": "nihtin", + "date": "2025-08-11T07:07:39+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/eb0be51f7c79ea7889522c219b6dcbe6a36ce531" + }, + { + "sha": "a805364fadb699bbf518232c7e4b4d8aeaa7be0e", + "message": "update", + "author": "nihtin", + "date": "2025-08-11T07:08:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a805364fadb699bbf518232c7e4b4d8aeaa7be0e" + }, + { + "sha": "2e9ec16f9220db96512da4594a2f4c86b119126f", + "message": "update", + "author": "nihtin", + "date": "2025-08-11T07:35:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2e9ec16f9220db96512da4594a2f4c86b119126f" + }, + { + "sha": "1d26d7858b45bedac74dd334966559da93be676b", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into nuvie-update", + "author": "nihtin", + "date": "2025-08-11T08:27:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1d26d7858b45bedac74dd334966559da93be676b" + }, + { + "sha": "9766edaaecbf9c85c6e9bed3e754865f25f24b01", + "message": "Update transformers.rs", + "author": "Nithin N", + "date": "2025-08-11T11:43:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9766edaaecbf9c85c6e9bed3e754865f25f24b01" + }, + { + "sha": "312579b9fa32414470bca97bb1571be019ef6310", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-08-11T12:10:17+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/312579b9fa32414470bca97bb1571be019ef6310" + }, + { + "sha": "edc3472c807540aa170787a16359d4d6c6355269", + "message": "Merge branch 'nuvie' of https://github.com/juspay/hyperswitch into nuvie-update", + "author": "nihtin", + "date": "2025-08-12T04:57:24+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/edc3472c807540aa170787a16359d4d6c6355269" + }, + { + "sha": "19304d815451f904fc708d6c00c591a59c46ba67", + "message": "update", + "author": "nihtin", + "date": "2025-08-12T07:31:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/19304d815451f904fc708d6c00c591a59c46ba67" + }, + { + "sha": "ea5ad28ce5f510964559778ab92f4dc341d241d4", + "message": "update nuvie", + "author": "nihtin", + "date": "2025-08-13T10:52:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ea5ad28ce5f510964559778ab92f4dc341d241d4" + }, + { + "sha": "213759ca655d02457f93b836b05f3cf36c2e2fab", + "message": "update", + "author": "nihtin", + "date": "2025-08-19T07:20:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/213759ca655d02457f93b836b05f3cf36c2e2fab" + }, + { + "sha": "3b5ef5a7c5fea0590f70af599632c49d5d56954c", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into nuvie-update", + "author": "nihtin", + "date": "2025-08-19T09:23:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3b5ef5a7c5fea0590f70af599632c49d5d56954c" + }, + { + "sha": "6fed1e8647b6f83ec685f28840d5c07fed517031", + "message": "update", + "author": "nihtin", + "date": "2025-08-19T10:33:52+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6fed1e8647b6f83ec685f28840d5c07fed517031" + }, + { + "sha": "8fb7cc5514d7f2284e21b1e77172aaa91b4e333f", + "message": "update", + "author": "nihtin", + "date": "2025-08-19T10:55:13+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8fb7cc5514d7f2284e21b1e77172aaa91b4e333f" + }, + { + "sha": "561b92f3af69a0eb898c7d79dd2f6ffd73943fc9", + "message": "update", + "author": "nihtin", + "date": "2025-08-19T11:04:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/561b92f3af69a0eb898c7d79dd2f6ffd73943fc9" + }, + { + "sha": "9743ee2577317cf62bb38292e65f5e6cda9e70a4", + "message": "Shipping address change", + "author": "nihtin", + "date": "2025-08-19T13:14:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9743ee2577317cf62bb38292e65f5e6cda9e70a4" + }, + { + "sha": "56b512b6b9422ad1fd891010062cb9f77da6afa8", + "message": "fmt", + "author": "nihtin", + "date": "2025-08-19T13:18:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/56b512b6b9422ad1fd891010062cb9f77da6afa8" + }, + { + "sha": "04e1634fa9af62e13d9838f174f241687ff4dd6f", + "message": "update", + "author": "nihtin", + "date": "2025-08-19T13:19:29+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/04e1634fa9af62e13d9838f174f241687ff4dd6f" + }, + { + "sha": "ffd81d3e45c23c926e550cc598cc1991bc28e124", + "message": "update", + "author": "nihtin", + "date": "2025-08-19T13:31:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ffd81d3e45c23c926e550cc598cc1991bc28e124" + }, + { + "sha": "6b89abd5e706caf2d4f33aaffac6f28d6d680d41", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into nuvie-update", + "author": "nihtin", + "date": "2025-08-19T13:35:25+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6b89abd5e706caf2d4f33aaffac6f28d6d680d41" + }, + { + "sha": "0503888fd45850b42ae60ff936b395ed51de02ce", + "message": "clippy", + "author": "nihtin", + "date": "2025-08-19T14:33:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0503888fd45850b42ae60ff936b395ed51de02ce" + }, + { + "sha": "a0d412b28ee45e4919d7c59f83b4178371546352", + "message": "update", + "author": "nihtin", + "date": "2025-08-20T04:39:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a0d412b28ee45e4919d7c59f83b4178371546352" + }, + { + "sha": "0ffd2475d99096b20b375a83e097fcc3db9a4d77", + "message": "update", + "author": "nihtin", + "date": "2025-08-20T04:41:42+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0ffd2475d99096b20b375a83e097fcc3db9a4d77" + }, + { + "sha": "7ff2ef5a3bccfdc51a330c75ac9be4060e1e8060", + "message": "Update", + "author": "nihtin", + "date": "2025-08-20T04:58:23+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7ff2ef5a3bccfdc51a330c75ac9be4060e1e8060" + }, + { + "sha": "a33a64256c252b7bf73cea6150854cee7b6de58a", + "message": "resolve comments", + "author": "nihtin", + "date": "2025-08-21T08:43:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a33a64256c252b7bf73cea6150854cee7b6de58a" + }, + { + "sha": "e472ae2597e01a8b745e79967db8cad79a935ddd", + "message": "address", + "author": "nihtin", + "date": "2025-08-21T08:45:03+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e472ae2597e01a8b745e79967db8cad79a935ddd" + }, + { + "sha": "bb21ef5f1aa6fd972a6cbef301cb8c76984a474c", + "message": "better error handle", + "author": "nihtin", + "date": "2025-08-21T11:14:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/bb21ef5f1aa6fd972a6cbef301cb8c76984a474c" + }, + { + "sha": "23fe54af7df14f22ad97a1db3987a79e06e22c73", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into nuvie-update", + "author": "nihtin", + "date": "2025-08-21T12:31:03+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/23fe54af7df14f22ad97a1db3987a79e06e22c73" + }, + { + "sha": "3a15ff352bca15a79c53ed60402312f03132c091", + "message": "update", + "author": "nihtin", + "date": "2025-08-21T18:39:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3a15ff352bca15a79c53ed60402312f03132c091" + }, + { + "sha": "f7e5348d5ae5154e763d659fb074ce7fa8ebec6b", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into nuvie-update", + "author": "nihtin", + "date": "2025-08-22T05:29:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f7e5348d5ae5154e763d659fb074ce7fa8ebec6b" + }, + { + "sha": "50c9ea68de31131c4308d8b377745cc70d8a2698", + "message": "feature matrix", + "author": "nihtin", + "date": "2025-08-22T05:29:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/50c9ea68de31131c4308d8b377745cc70d8a2698" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9060.json b/prs/pr_9060.json new file mode 100644 index 0000000000000000000000000000000000000000..12513d3984f0c5842a483e79e6ee1c2acdd8329a --- /dev/null +++ b/prs/pr_9060.json @@ -0,0 +1,29 @@ +{ + "number": 9060, + "title": "fix(connector): [Airwallex] Remove optional fields for Ideal and Klarna pm", + "description": "## Type of Change\r\n\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\r\nRemoved bank_name field from ideal request and language field from klarna request as it is 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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n\r\nKlarna\r\n\r\n```\r\n\r\n{\r\n \"currency\": \"EUR\",\r\n \"amount\": 1210,\r\n \"amount_to_capture\": 1210,\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"all_keys_required\": true,\r\n \"setup_future_usage\": \"on_session\",\r\n \"customer_id\": \"customer123\",\r\n \"description\": \"Its my first payment request\",\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_type\": \"klarna\",\r\n \"payment_method_data\": {\r\n \"pay_later\": {\r\n \"klarna_redirect\": {}\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\": \"DE\",\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\": \"guest@example.com\"\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\": \"DK\",\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\": \"guest@example.com\"\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 6540,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ],\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 \"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\": \"en\",\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 \"customer_acceptance\": {\r\n \"acceptance_type\": \"offline\",\r\n \"accepted_at\": \"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\": \"125.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n //Some connectors like Apple Pay, Airwallex and Noon might require some additional information, find more in the doc.\r\n \"connector_metadata\": {\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n },\r\n \"payment_link\": false,\r\n \"payment_link_config\": {\r\n \"theme\": \"\",\r\n \"logo\": \"\",\r\n \"seller_name\": \"\",\r\n \"sdk_layout\": \"\",\r\n \"display_sdk_only\": false,\r\n \"enabled_saved_payment_method\": false\r\n },\r\n \"payment_type\": \"normal\", //The type of the payment that differentiates between normal and various types of mandate payments. \r\n \"request_incremental_authorization\": false,\r\n \"merchant_order_reference_id\": \"test_ord\",\r\n \"session_expiry\": 900 //Will be used to expire client secret after certain amount of time to be supplied in seconds (900) for 15 mins\r\n}\r\n\r\n```\r\n\r\n```\r\n\r\n{\r\n \"payment_id\": \"pay_Km1BO17vtotyjm9aO5Xu\",\r\n \"merchant_id\": \"merchant_1756184166\",\r\n \"status\": \"requires_customer_action\",\r\n \"amount\": 1210,\r\n \"net_amount\": 1210,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 1210,\r\n \"amount_received\": null,\r\n \"connector\": \"airwallex\",\r\n \"client_secret\": \"pay_Km1BO17vtotyjm9aO5Xu_secret_I30lOlczBM9ak5RXj1gZ\",\r\n \"created\": \"2025-08-26T04:56:27.359Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"customer123\",\r\n \"customer\": {\r\n \"id\": \"customer123\",\r\n \"name\": null,\r\n \"email\": null,\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\": \"on_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"pay_later\",\r\n \"payment_method_data\": {\r\n \"pay_later\": {\r\n \"klarna_sdk\": null\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\": \"DK\",\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\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"DE\",\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\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"order_details\": [\r\n {\r\n \"sku\": null,\r\n \"upc\": null,\r\n \"brand\": null,\r\n \"amount\": 6540,\r\n \"category\": null,\r\n \"quantity\": 1,\r\n \"tax_rate\": null,\r\n \"product_id\": null,\r\n \"description\": null,\r\n \"product_name\": \"Apple iphone 15\",\r\n \"product_type\": null,\r\n \"sub_category\": null,\r\n \"total_amount\": null,\r\n \"commodity_code\": null,\r\n \"unit_of_measure\": 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 \"unit_discount_amount\": null\r\n }\r\n ],\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\": \"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_Km1BO17vtotyjm9aO5Xu/merchant_1756184166/pay_Km1BO17vtotyjm9aO5Xu_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\": \"klarna\",\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\": \"customer123\",\r\n \"created_at\": 1756184187,\r\n \"expires\": 1756187787,\r\n \"secret\": \"epk_a10aa6063e384a0c9beb4c133ee7378b\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"int_hkdmft5dhhaijvmou0z\",\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\": {\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\": {\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\": \"int_hkdmft5dhhaijvmou0z\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_WF8HiGJAYiI57fwZYssF\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_JJPjnito9chYN6qJ3PbB\",\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-08-26T05:11:27.358Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"en\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"128.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_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-08-26T04:56:31.958Z\",\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\": \"test_ord\",\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\": \"{\\\"latest_payment_attempt\\\":{\\\"id\\\":\\\"att_hkdmft5dhhaijvmxn5r_vmou0z\\\",\\\"amount\\\":12.1,\\\"currency\\\":\\\"EUR\\\",\\\"payment_method\\\":{\\\"type\\\":\\\"klarna\\\",\\\"klarna\\\":{\\\"country_code\\\":\\\"DE\\\",\\\"billing\\\":{\\\"first_name\\\":\\\"joseph\\\",\\\"last_name\\\":\\\"Doe\\\",\\\"email\\\":\\\"guest@example.com\\\",\\\"phone_number\\\":\\\"8056594427\\\",\\\"address\\\":{\\\"country_code\\\":\\\"DE\\\",\\\"city\\\":\\\"San Fransico\\\",\\\"street\\\":\\\"1467\\\",\\\"postcode\\\":\\\"94122\\\"}}},\\\"id\\\":\\\"mtd_hkdm7tdw8haijvoixo5\\\",\\\"status\\\":\\\"CREATED\\\",\\\"created_at\\\":\\\"2025-08-26T04:56:29+0000\\\",\\\"updated_at\\\":\\\"2025-08-26T04:56:29+0000\\\"},\\\"merchant_order_id\\\":\\\"pay_Km1BO17vtotyjm9aO5Xu_1\\\",\\\"payment_intent_id\\\":\\\"int_hkdmft5dhhaijvmou0z\\\",\\\"status\\\":\\\"AUTHENTICATION_REDIRECTED\\\",\\\"provider_transaction_id\\\":\\\"hkdmqcg2vhaijvn6hcr\\\",\\\"captured_amount\\\":0,\\\"refunded_amount\\\":0,\\\"created_at\\\":\\\"2025-08-26T04:56:29+0000\\\",\\\"updated_at\\\":\\\"2025-08-26T04:56:31+0000\\\",\\\"settle_via\\\":\\\"airwallex\\\",\\\"authentication_data\\\":{\\\"ds_data\\\":{},\\\"fraud_data\\\":{\\\"action\\\":\\\"ACCEPT\\\",\\\"score\\\":\\\"0\\\",\\\"risk_factors\\\":[]},\\\"avs_result\\\":\\\"U\\\",\\\"cvc_result\\\":\\\"U\\\"},\\\"expires_at\\\":\\\"2025-08-26T05:06:29+0000\\\",\\\"payment_method_options\\\":{\\\"card\\\":{}},\\\"device_data\\\":{\\\"ip_address\\\":\\\"128.0.0.1\\\",\\\"screen_height\\\":723,\\\"screen_width\\\":1536,\\\"screen_color_depth\\\":24,\\\"language\\\":\\\"en\\\",\\\"timezone\\\":\\\"0\\\",\\\"browser\\\":{\\\"java_enabled\\\":true,\\\"javascript_enabled\\\":true,\\\"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\\\"}}},\\\"id\\\":\\\"int_hkdmft5dhhaijvmou0z\\\",\\\"request_id\\\":\\\"c0d2ec1b-0704-479e-b5ec-87bbaf5f8c0e\\\",\\\"amount\\\":12.1,\\\"currency\\\":\\\"EUR\\\",\\\"merchant_order_id\\\":\\\"pay_Km1BO17vtotyjm9aO5Xu_1\\\",\\\"order\\\":{\\\"products\\\":[{\\\"name\\\":\\\"Apple iphone 15\\\",\\\"quantity\\\":1,\\\"unit_price\\\":6540}],\\\"shipping\\\":{\\\"first_name\\\":\\\"joseph\\\",\\\"last_name\\\":\\\"Doe\\\",\\\"phone_number\\\":\\\"+918056594427\\\",\\\"address\\\":{\\\"country_code\\\":\\\"DK\\\",\\\"city\\\":\\\"San Fransico\\\",\\\"street\\\":\\\"1467\\\",\\\"postcode\\\":\\\"94122\\\"}}},\\\"descriptor\\\":\\\"Cathy Testing\\\",\\\"status\\\":\\\"REQUIRES_CUSTOMER_ACTION\\\",\\\"captured_amount\\\":0,\\\"created_at\\\":\\\"2025-08-26T04:56:28+0000\\\",\\\"updated_at\\\":\\\"2025-08-26T04:56:31+0000\\\",\\\"next_action\\\":{\\\"type\\\":\\\"redirect\\\",\\\"method\\\":\\\"GET\\\",\\\"url\\\":\\\"https://api-demo.airwallex.com/pa/redirect/hk/hkdmqj665haijvoh63x_vmou0z?checksum=3ec8afe2cf83\\\"},\\\"base_amount\\\":12.1,\\\"base_currency\\\":\\\"EUR\\\"}\",\r\n \"enable_partial_authorization\": null\r\n}\r\n\r\n```\r\n\r\niDeal \r\n\r\n```\r\n\r\n{\r\n \"amount\": 6540,\r\n \"currency\": \"EUR\",\r\n \"amount_to_capture\": 6540,\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"authentication_type\": \"no_three_ds\", \r\n \"customer\": {\r\n \"id\": \"customer123\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customer@gmail.com\",\r\n \"phone\": \"9999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"customer_id\": \"customer123\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\r\n \"return_url\": \"https://google.com\",\r\n \"payment_method\": \"bank_redirect\",\r\n \"payment_method_type\": \"ideal\",\r\n \"payment_method_data\": {\r\n \"bank_redirect\": {\r\n \"ideal\": {\r\n \"billing_details\": {\r\n \"billing_name\": \"john doe\",\r\n \"email\": \"abc@gmail.com\"\r\n },\r\n \"country\": \"NL\"\r\n }\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\": \"NL\",\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\": \"guest@example.com\"\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\": \"NL\",\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\": \"guest@example.com\"\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 6540,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ],\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 \"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}\r\n\r\n```\r\n\r\n```\r\n\r\n{\r\n \"payment_id\": \"pay_IFydW2Aa7nlUMsKhraZJ\",\r\n \"merchant_id\": \"merchant_1756184166\",\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\": \"airwallex\",\r\n \"client_secret\": \"pay_IFydW2Aa7nlUMsKhraZJ_secret_hR4yz6AdPJ8B7pz1t5Kn\",\r\n \"created\": \"2025-08-26T05:17:03.907Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"customer123\",\r\n \"customer\": {\r\n \"id\": \"customer123\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customer@gmail.com\",\r\n \"phone\": \"9999999999\",\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_redirect\",\r\n \"payment_method_data\": {\r\n \"bank_redirect\": {\r\n \"type\": \"BankRedirectResponse\",\r\n \"bank_name\": null\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\": \"NL\",\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\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"NL\",\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\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"guest@example.com\"\r\n },\r\n \"order_details\": [\r\n {\r\n \"sku\": null,\r\n \"upc\": null,\r\n \"brand\": null,\r\n \"amount\": 6540,\r\n \"category\": null,\r\n \"quantity\": 1,\r\n \"tax_rate\": null,\r\n \"product_id\": null,\r\n \"description\": null,\r\n \"product_name\": \"Apple iphone 15\",\r\n \"product_type\": null,\r\n \"sub_category\": null,\r\n \"total_amount\": null,\r\n \"commodity_code\": null,\r\n \"unit_of_measure\": 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 \"unit_discount_amount\": null\r\n }\r\n ],\r\n \"email\": \"customer@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"9999999999\",\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_IFydW2Aa7nlUMsKhraZJ/merchant_1756184166/pay_IFydW2Aa7nlUMsKhraZJ_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\": \"ideal\",\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\": \"customer123\",\r\n \"created_at\": 1756185423,\r\n \"expires\": 1756189023,\r\n \"secret\": \"epk_417778a9c93c4010b53923cf6c5aba78\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"int_hkdmgpg5khaikg2hy26\",\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\": {\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\": \"int_hkdmgpg5khaikg2hy26\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_WF8HiGJAYiI57fwZYssF\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_JJPjnito9chYN6qJ3PbB\",\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-08-26T05:32:03.907Z\",\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 (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_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-08-26T05:17:07.526Z\",\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}\r\n\r\n```\r\n\r\n## Checklist\r\n\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", + "author": "Vani-1107", + "created_at": "2025-08-26T05:19:11+00:00", + "merged_at": "2025-08-28T11:52:06+00:00", + "base_branch": "main", + "labels": [ + "C-bug" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9060", + "commits": [ + { + "sha": "25b20a98d455803a6b8e32eff2ae92a668a146b5", + "message": "fix", + "author": "Vani Gupta", + "date": "2025-08-26T05:05:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/25b20a98d455803a6b8e32eff2ae92a668a146b5" + }, + { + "sha": "a348f34fe6b836441af67a2a8c7c4b78d6b686bf", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-08-26T05:19:54+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a348f34fe6b836441af67a2a8c7c4b78d6b686bf" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9079.json b/prs/pr_9079.json new file mode 100644 index 0000000000000000000000000000000000000000..c36811be55e2a0bb24207e3937943dc44bfc8730 --- /dev/null +++ b/prs/pr_9079.json @@ -0,0 +1,20 @@ +{ + "number": 9079, + "title": "fix(connector): [AUTHORIZEDOTNET] customer id population fixed in authorize flow", + "description": "## Type of Change\r\n\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\r\nFixed customer ID population in the Authorize flow.\r\n\r\n- Previously, when passing customer details for normal payments, the createConnectorCustomer flow correctly created the customer.\r\n\r\n- However, in the `Authorize` flow, we were passing the payment_id as the customer_id. If the length validation failed, a random string was being passed instead.\r\n\r\n- This resulted in a random string always being sent as the customer_id, which caused a new customer to be created on Authorize.NET\u2019s dashboard for every transaction.\r\n\r\n- As a result, duplicate customers were being created.\r\n\r\nFix:\r\n\r\n- Updated the flow to pass the correct customer_id in the customer details instead of payment_id.\r\n\r\n- This prevents duplicate customer creation on Authorize.NET.\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\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```\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_HcJT7607MkJ2yANWr7PUgr8djox0jNozuRQSSW40guBXj5RQnH0CPKvbtjZ4MKBA' \\\r\n--data-raw '\r\n{\r\n \"amount\": 1,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n // \"customer_id\": \"cus_sweta2\",\r\n // \"email\": \"johndoe@gmail.com\",\r\n \"capture_method\": \"manual\",\r\n \"description\": \"test payment\",\r\n \"customer\": {\r\n \"id\": \"sweta33\",\r\n \"name\": \"Sweta Sharma\",\r\n \"email\": \"sweta33@gmail.com\",\r\n \"phone\": \"1234567890\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"setup_future_usage\": \"off_session\",\r\n \"payment_type\": \"normal\",\r\n \"off_session\": true,\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\": \"07\",\r\n \"card_exp_year\": \"26\",\r\n \"card_holder_name\": \"Joseph Does\",\r\n \"card_cvc\": \"123\"\r\n }\r\n },\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\": \"125.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\": \"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\": \"John\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"email\": \"johndoe@gmail.com\"\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\": \"John\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"email\": \"cus_sweta@gmail.com\"\r\n }\r\n}\r\n'\r\n```\r\n\r\nResponse\r\n```\r\n{\"payment_id\":\"pay_Itc4g0ujKGRW0tWhku2e\",\"merchant_id\":\"merchant_1756373651\",\"status\":\"requires_capture\",\"amount\":1,\"net_amount\":1,\"shipping_cost\":null,\"amount_capturable\":1,\"amount_received\":null,\"connector\":\"authorizedotnet\",\"client_secret\":\"pay_Itc4g0ujKGRW0tWhku2e_secret_7YHCDDZ805TWhxdirnfP\",\"created\":\"2025-08-28T12:33:37.236Z\",\"currency\":\"USD\",\"customer_id\":\"sweta33\",\"customer\":{\"id\":\"sweta33\",\"name\":\"Sweta Sharma\",\"email\":\"sweta33@gmail.com\",\"phone\":\"1234567890\",\"phone_country_code\":\"+1\"},\"description\":\"test payment\",\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"off_session\",\"off_session\":true,\"capture_on\":null,\"capture_method\":\"manual\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"4242\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"424242\",\"card_extended_bin\":null,\"card_exp_month\":\"07\",\"card_exp_year\":\"26\",\"card_holder_name\":\"Joseph Does\",\"payment_checks\":{\"description\":\"The street address and postal code matched.\",\"avs_result_code\":\"Y\"},\"authentication_data\":null},\"billing\":null},\"payment_token\":null,\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"US\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"John\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":null,\"email\":\"cus_sweta@gmail.com\"},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"US\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"John\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":null,\"email\":\"johndoe@gmail.com\"},\"order_details\":null,\"email\":\"sweta33@gmail.com\",\"name\":\"Sweta Sharma\",\"phone\":\"1234567890\",\"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\":\"sweta33\",\"created_at\":1756384417,\"expires\":1756388017,\"secret\":\"epk_5af34f19e9754bd79f97846e3ef3c2c9\"},\"manual_retry_allowed\":false,\"connector_transaction_id\":\"120069967875\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":\"120069967875\",\"payment_link\":null,\"profile_id\":\"pro_uSL0fZR2ECJYAD8I2u1r\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_yyPYHyKpU13WHygZFtpl\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-08-28T12:48:37.235Z\",\"fingerprint\":null,\"browser_info\":null,\"payment_channel\":null,\"payment_method_id\":\"pm_dcrhr0yU9aq5L3qwH90J\",\"network_transaction_id\":\"HWAN991WJ003XPFWKEF1T5E\",\"payment_method_status\":\"active\",\"updated\":\"2025-08-28T12:33:40.138Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"capture_before\":null,\"merchant_order_reference_id\":null,\"order_tax_amount\":null,\"connector_mandate_id\":null,\"card_discovery\":\"manual\",\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null}\r\n```\r\n\r\ncustomer created only once for normal payments\r\n\r\n\"Screenshot\r\n\r\n\r\n## Checklist\r\n\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", + "author": "swetasharma03", + "created_at": "2025-08-28T12:39:48+00:00", + "merged_at": "2025-08-29T10:41:40+00:00", + "base_branch": "main", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/9079", + "commits": [ + { + "sha": "20051084614b82fccb37419c6d7a7b1f2d4cae52", + "message": "customer id population fixed in authorize", + "author": "Sweta-Kumari-Sharma", + "date": "2025-08-28T12:22:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/20051084614b82fccb37419c6d7a7b1f2d4cae52" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9260.json b/prs/pr_9260.json new file mode 100644 index 0000000000000000000000000000000000000000..75209770e7a68ef0f72c5bef970669b48ce548a6 --- /dev/null +++ b/prs/pr_9260.json @@ -0,0 +1,20 @@ +{ + "number": 9260, + "title": "fix(payment-link): decode details before using them in secure links", + "description": "## Type of Change\r\n\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\nThis PR fixes the bug where the encoded payment link details were being read without decoding them first.\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\n\r\n\r\n## Motivation and Context\r\nFixes usage of secure payment links.\r\n\r\n## How did you test it?\r\nLocally by creating secure payment links.\r\n\r\n\r\n
\r\n 1. Update allowed domains in payment link config\r\n\r\ncURL\r\n\r\n curl --location --request POST 'https://sandbox.hyperswitch.io/account/merchant_1681193734270/business_profile/pro_E7pM8kGERopEKEhqwfWQ' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'api-key: dev_001otYWH3kG1v2SYexBXbt7AwbGQx8lK18wdsAmDvxtKVVLbBupRICLt6Styqadq' \\\r\n --data '{\r\n \"payment_link_config\": {\r\n \"theme\": \"#003264\",\r\n \"allowed_domains\": [\r\n \"localhost:5000\",\r\n \"http://localhost:5500\",\r\n \"localhost:5500\",\r\n \"http://localhost:5000\",\r\n \"http://localhost:5501\",\r\n \"localhost:5501\",\r\n \"http://127.0.0.1:5501\",\r\n \"127.0.0.1:5501\"\r\n ],\r\n \"branding_visibility\": false\r\n }\r\n }'\r\n\r\n
\r\n\r\n\r\n
\r\n 2. Create a payment link\r\n\r\ncURL\r\n\r\n curl --location --request POST 'https://sandbox.hyperswitch.io/payments' \\\r\n --header 'Content-Type: application/json' \\\r\n --header 'Accept: application/json' \\\r\n --header 'Accept-Language: de' \\\r\n --header 'api-key: dev_001otYWH3kG1v2SYexBXbt7AwbGQx8lK18wdsAmDvxtKVVLbBupRICLt6Styqadq' \\\r\n --data-raw '{\r\n \"customer_id\": \"cus_CDei4NEhboFFubgAxsy8\",\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 \"setup_future_usage\": \"off_session\",\r\n \"amount\": 100,\r\n \"currency\": \"EUR\",\r\n \"confirm\": false,\r\n \"payment_link\": true,\r\n \"session_expiry\": 7890000,\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"country\": \"IT\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"random@juspay.in\"\r\n },\r\n \"return_url\": \"https://www.example.com\"\r\n }'\r\n\r\nResponse\r\n\r\n {\"payment_id\":\"pay_6tphveQF5TmCQO90G05r\",\"merchant_id\":\"merchant_1756818611\",\"status\":\"requires_payment_method\",\"amount\":100,\"net_amount\":100,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":null,\"connector\":null,\"client_secret\":\"pay_6tphveQF5TmCQO90G05r_secret_VUlaPQSpKYZWGwCpGBI4\",\"created\":\"2025-09-03T10:38:39.889Z\",\"currency\":\"EUR\",\"customer_id\":\"cus_Ey5nUuS0S4R2xds9t51K\",\"customer\":{\"id\":\"cus_Ey5nUuS0S4R2xds9t51K\",\"name\":\"John Doe\",\"email\":\"abc@example.com\",\"phone\":\"999999999\",\"phone_country_code\":\"+65\"},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"off_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":null,\"payment_method\":null,\"payment_method_data\":null,\"payment_token\":null,\"shipping\":null,\"billing\":{\"address\":{\"city\":null,\"country\":\"IT\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":null,\"first_name\":\"John\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"random@juspay.in\"},\"order_details\":null,\"email\":\"abc@example.com\",\"name\":\"John Doe\",\"phone\":\"999999999\",\"return_url\":\"https://www.example.com/\",\"authentication_type\":null,\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":null,\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"cus_Ey5nUuS0S4R2xds9t51K\",\"created_at\":1756895919,\"expires\":1756899519,\"secret\":\"epk_a9551c5842a04d8cbd9eb0213ea5790d\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":null,\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":null,\"reference_id\":null,\"payment_link\":{\"link\":\"http://localhost:8080/payment_link/merchant_1756818611/pay_6tphveQF5TmCQO90G05r?locale=de\",\"secure_link\":\"http://localhost:8080/payment_link/s/merchant_1756818611/pay_6tphveQF5TmCQO90G05r?locale=de\",\"payment_link_id\":\"plink_KZjExI8gP8BP0pRGVaI9\"},\"profile_id\":\"pro_GlXrXUKHbckWzGnidhzV\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":null,\"incremental_authorization_allowed\":null,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-12-03T18:18:39.883Z\",\"fingerprint\":null,\"browser_info\":null,\"payment_channel\":null,\"payment_method_id\":null,\"network_transaction_id\":null,\"payment_method_status\":null,\"updated\":\"2025-09-03T10:38:39.911Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"capture_before\":null,\"merchant_order_reference_id\":null,\"order_tax_amount\":null,\"connector_mandate_id\":null,\"card_discovery\":null,\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null}\r\n\r\n
\r\n\r\n\r\n
\r\n 3. Open in an iframe\r\n\r\nHTML\r\n\r\n \r\n \r\n \r\n \r\n \r\n Document\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\"Screenshot\r\n\r\n
\r\n\r\n\r\n## Checklist\r\n\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", + "author": "kashif-m", + "created_at": "2025-09-03T10:49:24+00:00", + "merged_at": "2025-09-03T13:37:05+00:00", + "base_branch": "main", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/9260", + "commits": [ + { + "sha": "df1fc628ba518d5a24db6cb954d9286163b72856", + "message": "fix(payment-link): decode payment link details before using them", + "author": "Kashif", + "date": "2025-09-03T10:28:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/df1fc628ba518d5a24db6cb954d9286163b72856" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9262.json b/prs/pr_9262.json new file mode 100644 index 0000000000000000000000000000000000000000..c54aa2889ee7553276af78db17116bb1f9089e26 --- /dev/null +++ b/prs/pr_9262.json @@ -0,0 +1,27 @@ +{ + "number": 9262, + "title": "feat(payouts): Mapped Default Values to Unified Error Code and Message", + "description": "## Type of Change\r\n\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\r\nPreviously unified error codes and messages were Optional. Hence if nothing is being returned by the connector, it displays as null. Mapped it with the default ones now. \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\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**For Success Scenarios** - `unified_error_code` and `unified_error_message` should come as null\r\nStep 1 : AdyenPlatform MCA Create - Payouts (correct creds)\r\n\r\ncURL : \r\n\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1756906797/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: HS_API_KEY' \\\r\n--data '{\r\n \"connector_type\": \"payout_processor\",\r\n \"connector_name\": \"adyenplatform\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"HeaderKey\",\r\n \"api_key\": \"ADYEN_API_KEY\"\r\n },\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"WEBHOOK_SECRET\"\r\n },\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\",\r\n \"source_balance_account\": \"SOURCE_BALANCE_ACCOUNT\"\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\": 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\": \"debit\",\r\n \"payment_experience\": null,\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\": \"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 \"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}'\r\n```\r\n\r\nStep 2: Customer Create \r\n\r\ncURL: \r\n\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 'api-key: dev_xgNuugja2IMr7oIyZtxoC956b2z8g5FA3pivJbRxGOVlHucD2Nf5CuERBGGT8w52' \\\r\n--data-raw '{\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\" \r\n}'\r\n```\r\n\r\nResponse: \r\n\r\n```\r\n{\r\n \"customer_id\": \"cus_KmXSoUNSG4hXwZh81iTu\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null,\r\n \"description\": null,\r\n \"address\": null,\r\n \"created_at\": \"2025-09-03T13:40:23.200Z\",\r\n \"metadata\": null,\r\n \"default_payment_method_id\": null,\r\n \"tax_registration_id\": null\r\n}\r\n```\r\n\r\nUse this `customer_id` in the Payouts Create Request\r\n\r\nStep 3: Payouts Create: \r\n\r\ncURL: \r\n\r\n```\r\ncurl --location 'http://localhost:8080/payouts/create' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: dev_xgNuugja2IMr7oIyZtxoC956b2z8g5FA3pivJbRxGOVlHucD2Nf5CuERBGGT8w52' \\\r\n--data '{\r\n \r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cus_KmXSoUNSG4hXwZh81iTu\",\r\n \"connector\": [\r\n \"adyenplatform\"\r\n ],\r\n \"description\": \"Its my first payout request\",\r\n \"payout_type\": \"card\",\r\n \"payout_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4111111111111111\",\r\n \"expiry_month\": \"03\",\r\n \"expiry_year\": \"2031\",\r\n \"card_holder_name\": \"John Doe\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \r\n \"city\": \"San Fransico\",\r\n \r\n \r\n \"country\": \"AT\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\"\r\n }\r\n },\r\n \r\n \"recurring\": true,\r\n \"metadata\": {\r\n \"ref\": \"123\"\r\n },\r\n \"confirm\": true,\r\n \"auto_fulfill\": true\r\n}'\r\n```\r\n\r\nResponse: \r\n\r\n```\r\n{\r\n \"payout_id\": \"payout_G60sugqxS8iNYaeZB6MW\",\r\n \"merchant_id\": \"merchant_1756907439\",\r\n \"merchant_order_reference_id\": null,\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"connector\": \"adyenplatform\",\r\n \"payout_type\": \"card\",\r\n \"payout_method_data\": {\r\n \"card\": {\r\n \"card_issuer\": \"JP Morgan\",\r\n \"card_network\": \"Visa\",\r\n \"card_type\": \"CREDIT\",\r\n \"card_issuing_country\": \"INDIA\",\r\n \"bank_code\": \"JP_JPM\",\r\n \"last4\": \"1111\",\r\n \"card_isin\": \"411111\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2031\",\r\n \"card_holder_name\": \"John Doe\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"AT\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": null,\r\n \"zip\": null,\r\n \"state\": null,\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"auto_fulfill\": true,\r\n \"customer_id\": \"cus_WVab6LEtVX0vdAQnj9OK\",\r\n \"customer\": {\r\n \"id\": \"cus_WVab6LEtVX0vdAQnj9OK\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"client_secret\": \"payout_payout_G60sugqxS8iNYaeZB6MW_secret_4k8nOVj5bkY3xb78u4nv\",\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\": true,\r\n \"metadata\": {\r\n \"ref\": \"123\"\r\n },\r\n \"merchant_connector_id\": \"mca_QSJdkA08eYZeWH5qPgsL\",\r\n \"status\": \"initiated\",\r\n \"error_message\": null,\r\n \"error_code\": null,\r\n \"profile_id\": \"pro_vXCZfiB18BgJptZa8oPV\",\r\n \"created\": \"2025-09-03T13:51:15.708Z\",\r\n \"connector_transaction_id\": \"38E96O6874DHYEWT\",\r\n \"priority\": null,\r\n \"payout_link\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": null,\r\n \"phone_country_code\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payout_method_id\": \"pm_B3PTwRMsmb7kWdFqvxaS\"\r\n}\r\n```\r\n\r\n**For Failure Scenarios** - `unified_error_code` and `unified_error_message` should come as as `Something went wrong` and `UE_9000`\r\nStep 1 : AdyenPlatform MCA Create - Payouts (incorrect creds)\r\n\r\ncURL : \r\n\r\n```\r\ncurl --location 'http://localhost:8080/account/merchant_1756906797/connectors' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: HS_API_KEY' \\\r\n--data '{\r\n \"connector_type\": \"payout_processor\",\r\n \"connector_name\": \"adyenplatform\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"HeaderKey\",\r\n \"api_key\": \"ADYEN_API_KEY\"\r\n },\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"connector_webhook_details\": {\r\n \"merchant_secret\": \"WEBHOOK_SECRET\"\r\n },\r\n \"metadata\": {\r\n \"city\": \"NY\",\r\n \"unit\": \"245\",\r\n \"source_balance_account\": \"SOURCE_BALANCE_ACCOUNT\"\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\": 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\": \"debit\",\r\n \"payment_experience\": null,\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\": \"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 \"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}'\r\n```\r\n\r\nStep 2: Customer Create \r\n\r\ncURL: \r\n\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 'api-key: HS_API_KEY' \\\r\n--data-raw '{\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\" \r\n}'\r\n```\r\n\r\nResponse: \r\n\r\n```\r\n{\r\n \"customer_id\": \"cus_KmXSoUNSG4hXwZh81iTu\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null,\r\n \"description\": null,\r\n \"address\": null,\r\n \"created_at\": \"2025-09-03T13:40:23.200Z\",\r\n \"metadata\": null,\r\n \"default_payment_method_id\": null,\r\n \"tax_registration_id\": null\r\n}\r\n```\r\n\r\nUse this `customer_id` in the Payouts Create Request\r\n\r\nStep 3: Payouts Create: \r\n\r\ncURL: \r\n\r\n```\r\ncurl --location 'http://localhost:8080/payouts/create' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: HS_API_KEY' \\\r\n--data '{\r\n \r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"cus_KmXSoUNSG4hXwZh81iTu\",\r\n \"connector\": [\r\n \"adyenplatform\"\r\n ],\r\n \"description\": \"Its my first payout request\",\r\n \"payout_type\": \"card\",\r\n \"payout_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4111111111111111\",\r\n \"expiry_month\": \"03\",\r\n \"expiry_year\": \"2031\",\r\n \"card_holder_name\": \"John Doe\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \r\n \"city\": \"San Fransico\",\r\n \r\n \r\n \"country\": \"AT\",\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\"\r\n }\r\n },\r\n \r\n \"recurring\": true,\r\n \"metadata\": {\r\n \"ref\": \"123\"\r\n },\r\n \"confirm\": true,\r\n \"auto_fulfill\": true\r\n}'\r\n```\r\n\r\nResponse: \r\n\r\n```\r\n{\r\n \"payout_id\": \"payout_GGTiHgALRVtjqNEnPbx0\",\r\n \"merchant_id\": \"merchant_1756907500\",\r\n \"merchant_order_reference_id\": null,\r\n \"amount\": 100,\r\n \"currency\": \"USD\",\r\n \"connector\": \"adyenplatform\",\r\n \"payout_type\": \"card\",\r\n \"payout_method_data\": {\r\n \"card\": {\r\n \"card_issuer\": \"JP Morgan\",\r\n \"card_network\": \"Visa\",\r\n \"card_type\": \"CREDIT\",\r\n \"card_issuing_country\": \"INDIA\",\r\n \"bank_code\": \"JP_JPM\",\r\n \"last4\": \"1111\",\r\n \"card_isin\": \"411111\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"2031\",\r\n \"card_holder_name\": \"John Doe\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"AT\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": null,\r\n \"zip\": null,\r\n \"state\": null,\r\n \"first_name\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"auto_fulfill\": true,\r\n \"customer_id\": \"cus_qeZLhMUKClclwxfIexLg\",\r\n \"customer\": {\r\n \"id\": \"cus_qeZLhMUKClclwxfIexLg\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": null,\r\n \"phone_country_code\": null\r\n },\r\n \"client_secret\": \"payout_payout_GGTiHgALRVtjqNEnPbx0_secret_qWucgev0p3N0L7sZbulg\",\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\": true,\r\n \"metadata\": {\r\n \"ref\": \"123\"\r\n },\r\n \"merchant_connector_id\": \"mca_z4DU1d4mWEhq3sY4f2md\",\r\n \"status\": \"failed\",\r\n \"error_message\": \"Unauthorized\",\r\n \"error_code\": \"00_401\",\r\n \"profile_id\": \"pro_JmTQPA5YxhJEXTvaqp9U\",\r\n \"created\": \"2025-09-03T13:52:07.309Z\",\r\n \"connector_transaction_id\": null,\r\n \"priority\": null,\r\n \"payout_link\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": null,\r\n \"phone_country_code\": null,\r\n \"unified_code\": \"UE_9000\",\r\n \"unified_message\": \"Something went wrong\",\r\n \"payout_method_id\": null\r\n}\r\n```\r\n\r\nNote: We deliberately passed wrong creds so that we donot get a error message and the default values can be returned.\r\n\r\n## Checklist\r\n\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", + "author": "bsayak03", + "created_at": "2025-09-03T12:02:42+00:00", + "merged_at": "2025-09-03T15:49:59+00:00", + "base_branch": "main", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/9262", + "commits": [ + { + "sha": "c2e0e29db37ad35423856bc51afa3e89edf39dd8", + "message": "feat(payouts): Mapped Default Values to Unified Error Code and Message", + "author": "Sayak Bhattacharya", + "date": "2025-09-03T13:24:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c2e0e29db37ad35423856bc51afa3e89edf39dd8" + }, + { + "sha": "ee7438dfc714bcf7c2db5fad316a0e3ad91f2784", + "message": "feat(payouts): Mapped Default Values to Unified Error Code and Message", + "author": "Sayak Bhattacharya", + "date": "2025-09-03T13:41:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ee7438dfc714bcf7c2db5fad316a0e3ad91f2784" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9272.json b/prs/pr_9272.json new file mode 100644 index 0000000000000000000000000000000000000000..9e95f4882f644a4f4f8c17561d190b6c4933a51d --- /dev/null +++ b/prs/pr_9272.json @@ -0,0 +1,64 @@ +{ + "number": 9272, + "title": "refactor: alter subscription table to update primary key", + "description": "## Type of Change\r\n\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\nThis PR refactors the **`subscription` table schema** to improve key management and alignment with business requirements. \r\nKey updates include:\r\n- Changed the **primary key** from `id` to a **composite key**: `(subscription_id, merchant_id)`.\r\n- Removed the old `id` field as a primary identifier.\r\n- Added a new field: `profile_id` (`VARCHAR(128) NOT NULL`) to support profile-specific subscription handling.\r\n- Renamed `mca_id` \u2192 `merchant_connector_id` for better clarity and consistency across schema and model definitions.\r\n- Updated associated Diesel models (`Subscription`, `SubscriptionNew`, `SubscriptionUpdate`) to reflect the schema changes.\r\n\r\n## Outcomes\r\n- Ensures **subscriptions are uniquely identified** by merchant and subscription ID, preventing conflicts across merchants.\r\n- Introduces **profile-level granularity** for subscriptions, enabling better multi-profile support.\r\n- Aligns field naming (`merchant_connector_id`) with domain terminology for consistency across codebase.\r\n- Strengthens schema constraints to reduce risk of duplicate or inconsistent subscription entries.\r\n\r\n## Diff Hunk Explanation\r\n- **`crates/diesel_models/src/schema.rs` & `schema_v2.rs`**\r\n - Modified `subscription` table definition to use `(subscription_id, merchant_id)` as composite primary key.\r\n - Added new column `profile_id`.\r\n - Renamed column `mca_id` \u2192 `merchant_connector_id`.\r\n\r\n- **`crates/diesel_models/src/subscription.rs`**\r\n - Updated structs (`Subscription`, `SubscriptionNew`) to drop old `id` field and include `profile_id`.\r\n - Renamed field `mca_id` \u2192 `merchant_connector_id`.\r\n - Updated Diesel annotations to reflect composite primary key.\r\n\r\n- **Migrations**\r\n - `up.sql`: drops old PK, removes `id`, adds `profile_id`, sets composite PK, renames column.\r\n - `down.sql`: restores old structure with `id` as PK, removes `profile_id`, renames column back to `mca_id`.\r\n\r\nThis refactor lays the foundation for **robust subscription handling with merchant-profile level uniqueness**.\r\n\r\n\r\n\r\n## How did you test it?\r\nIts just migration PR won't require testing\r\n\r\n\r\n## Checklist\r\n\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", + "author": "prajjwalkumar17", + "created_at": "2025-09-04T07:00:36+00:00", + "merged_at": "2025-09-04T09:48:09+00:00", + "base_branch": "main", + "labels": [ + "M-database-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9272", + "commits": [ + { + "sha": "e8025c51e8c8dd9af96a7dcfa6f40d7ea0a75300", + "message": "refactor: alter subscription table to update primary key", + "author": "Prajjwal kumar", + "date": "2025-09-04T06:59:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e8025c51e8c8dd9af96a7dcfa6f40d7ea0a75300" + }, + { + "sha": "bfe210d61afb67005be4b6618cb9ce6ab01b1315", + "message": "make profile col as 64", + "author": "Prajjwal kumar", + "date": "2025-09-04T07:03:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/bfe210d61afb67005be4b6618cb9ce6ab01b1315" + }, + { + "sha": "26c3a0f6ee12ece5158ba9d1c98053c8e1db6548", + "message": "fix: address comments", + "author": "Prajjwal kumar", + "date": "2025-09-04T07:07:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/26c3a0f6ee12ece5158ba9d1c98053c8e1db6548" + }, + { + "sha": "b21892769d01ccb0c2c769fca7ba892b0e68cbb3", + "message": "address comments", + "author": "Prajjwal kumar", + "date": "2025-09-04T07:12:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b21892769d01ccb0c2c769fca7ba892b0e68cbb3" + }, + { + "sha": "73ae37a95aadf60f166327b4268897758eaba450", + "message": "fix commentws", + "author": "Prajjwal kumar", + "date": "2025-09-04T07:13:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/73ae37a95aadf60f166327b4268897758eaba450" + }, + { + "sha": "3d2bbab173b1bf10bc774e32c212767b2756babf", + "message": "fix: address comments", + "author": "Prajjwal kumar", + "date": "2025-09-04T07:16:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3d2bbab173b1bf10bc774e32c212767b2756babf" + }, + { + "sha": "505a8e55a6e9c8664a668b928e91f7623018c4f4", + "message": "Merge branch 'main' into fix_subscription_table", + "author": "Prajjwal Kumar", + "date": "2025-09-04T07:17:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/505a8e55a6e9c8664a668b928e91f7623018c4f4" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9292.json b/prs/pr_9292.json new file mode 100644 index 0000000000000000000000000000000000000000..b49700ca53214d2a59b18ff7b3018733366870f8 --- /dev/null +++ b/prs/pr_9292.json @@ -0,0 +1,29 @@ +{ + "number": 9292, + "title": "fix(Nuvei): post capture void , proper mapping for nuvei", + "description": "## Type of Change\r\n\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\r\n- previously post capture void in nuvei was resulting in `partially_captured` response in hyperswitch, Ideally it should give `cancelled_post_capture`.\r\n- Cause we were passing `Voided` payment instead of `VoidedPostCharge` . Ideally it should move to \r\n\r\npayment Request\r\n\r\n```json \r\n{\r\n \"amount\": 4324,\r\n \"capture_method\": \"automatic\",\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"setup_future_usage\": \"on_session\",\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\": \"127.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \"connector\":[\"nuvei\"],\r\n \"customer_id\": \"nidthxxinn\",\r\n \"return_url\": \"https://www.google.com\",\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}\r\n```\r\n\r\n## Response\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_BPAMSLv9apKd34AY6cUH\",\r\n \"merchant_id\": \"merchant_1756789409\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 4324,\r\n \"net_amount\": 4324,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 4324,\r\n \"connector\": \"nuvei\",\r\n \"client_secret\": \"pay_BPAMSLv9apKd34AY6cUH_secret_RfhKfM0p2MIkaRpZ5bs3\",\r\n \"created\": \"2025-09-07T05:22:50.859Z\",\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\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"INTL HDQTRS-CENTER OWNED\",\r\n \"card_issuing_country\": \"UNITEDSTATES\",\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\": \"\",\r\n \"cvv_2_reply_code\": \"\",\r\n \"cvv_2_description\": null,\r\n \"merchant_advice_code\": \"\",\r\n \"merchant_advice_code_description\": null\r\n },\r\n \"authentication_data\": {\r\n \"challengePreferenceReason\": \"12\"\r\n }\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_Eap5TljtgSZHikmOYd37\",\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\": \"https://www.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\": {\r\n \"customer_id\": \"nidthxxinn\",\r\n \"created_at\": 1757222570,\r\n \"expires\": 1757226170,\r\n \"secret\": \"epk_0a5ce9afbec14498b36893a4d66ad916\"\r\n },\r\n \"manual_retry_allowed\": false,\r\n \"connector_transaction_id\": \"8110000000013734831\",\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\": \"8566793111\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_EzO6xGQZdE5pd9I5Rdzs\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_i5QVCDvXmBLbZg7n97n2\",\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-07T05:37:50.859Z\",\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-07T05:22:53.495Z\",\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}\r\n```\r\n\r\n## post capture request\r\n\r\n```sh\r\ncurl --location 'localhost:8080/payments/pay_BPAMSLv9apKd34AY6cUH/cancel_post_capture' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_HmswxSLAU3iCrFmcLOha4WYjM9fLTazyr39hYPPbNbRJEeVCVdQq2KwAbzrXZQ8N' \\\r\n--data '{\r\n \"cancellation_reason\": \"requested_by_customer\"\r\n}'\r\n```\r\n\r\n## Post capture response\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_BPAMSLv9apKd34AY6cUH\",\r\n \"merchant_id\": \"merchant_1756789409\",\r\n \"status\": \"cancelled_post_capture\",\r\n \"amount\": 4324,\r\n \"net_amount\": 4324,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 4324,\r\n \"connector\": \"nuvei\",\r\n \"client_secret\": \"pay_BPAMSLv9apKd34AY6cUH_secret_RfhKfM0p2MIkaRpZ5bs3\",\r\n \"created\": \"2025-09-07T05:22:50.859Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": null,\r\n \"customer\": {\r\n \"id\": null,\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\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"INTL HDQTRS-CENTER OWNED\",\r\n \"card_issuing_country\": \"UNITEDSTATES\",\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\": \"\",\r\n \"cvv_2_reply_code\": \"\",\r\n \"cvv_2_description\": null,\r\n \"merchant_advice_code\": \"\",\r\n \"merchant_advice_code_description\": null\r\n },\r\n \"authentication_data\": {\r\n \"challengePreferenceReason\": \"12\"\r\n }\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_Eap5TljtgSZHikmOYd37\",\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\": null,\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": \"https://www.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\": \"8110000000013734833\",\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\": \"8566793111\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_EzO6xGQZdE5pd9I5Rdzs\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_i5QVCDvXmBLbZg7n97n2\",\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-07T05:37:50.859Z\",\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\": \"pm_Aw1IrDbk9NErXLkw6Bvc\",\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-09-07T05:22:57.510Z\",\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}\r\n```\r\n## make a manual request and call void for sanity \r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_o40YH0Mu3Dyv1uHM9qQ1\",\r\n \"merchant_id\": \"merchant_1756789409\",\r\n \"status\": \"cancelled\",\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_o40YH0Mu3Dyv1uHM9qQ1_secret_bkgxvGpkIZGQT8asrsLq\",\r\n \"created\": \"2025-09-07T05:31:32.909Z\",\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\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"9995\",\r\n \"card_type\": \"CREDIT\",\r\n \"card_network\": \"Visa\",\r\n \"card_issuer\": \"INTL HDQTRS-CENTER OWNED\",\r\n \"card_issuing_country\": \"UNITEDSTATES\",\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\": \"\",\r\n \"cvv_2_reply_code\": \"\",\r\n \"cvv_2_description\": null,\r\n \"merchant_advice_code\": \"\",\r\n \"merchant_advice_code_description\": null\r\n },\r\n \"authentication_data\": {\r\n \"challengePreferenceReason\": \"12\"\r\n }\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_pZf0tkyWL08kGOlyPTeL\",\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\": \"https://www.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\": \"requested_by_customer\",\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\": \"8110000000013735128\",\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\": \"8566843111\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_EzO6xGQZdE5pd9I5Rdzs\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_i5QVCDvXmBLbZg7n97n2\",\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-07T05:46:32.908Z\",\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\": \"pm_lJ8QqYSKpiCmkefL59n1\",\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-09-07T05:31:40.915Z\",\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}\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\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\r\n## Checklist\r\n\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", + "author": "Nithin1506200", + "created_at": "2025-09-07T05:24:19+00:00", + "merged_at": "2025-09-08T16:15:31+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9292", + "commits": [ + { + "sha": "58d5ddfd60b055b60a0fcfbd5beacba64dc0bf78", + "message": "post cancel capture void", + "author": "nihtin", + "date": "2025-09-07T05:23:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/58d5ddfd60b055b60a0fcfbd5beacba64dc0bf78" + }, + { + "sha": "3db2a5bd22a1277d4f51c5f5f3319cfe3886a923", + "message": "update", + "author": "nihtin", + "date": "2025-09-07T05:23:27+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3db2a5bd22a1277d4f51c5f5f3319cfe3886a923" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9308.json b/prs/pr_9308.json new file mode 100644 index 0000000000000000000000000000000000000000..82f12a1ce768d269e6559a5ad9fcc503d41c48dd --- /dev/null +++ b/prs/pr_9308.json @@ -0,0 +1,20 @@ +{ + "number": 9308, + "title": "fix(api_locking): add delay between api-locking retries", + "description": "## Type of Change\r\n\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\r\nadded delay between api-locking retries for `HoldMultiple` locking mechanism.\r\nThis was missed during development before. \r\nThis is already available for Single id locking.\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n\r\nTest cases in this pr.\r\nhttps://github.com/juspay/hyperswitch/pull/8887\r\n\r\n\r\n## Checklist\r\n\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", + "author": "hrithikesh026", + "created_at": "2025-09-09T05:59:47+00:00", + "merged_at": "2025-09-09T13:04:26+00:00", + "base_branch": "main", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/9308", + "commits": [ + { + "sha": "1f59090d91872816ff80dc40ba383997fb225cca", + "message": "fix: introduce delay between api-locking retries", + "author": "hrithikesh026", + "date": "2025-09-08T12:06:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1f59090d91872816ff80dc40ba383997fb225cca" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9349.json b/prs/pr_9349.json new file mode 100644 index 0000000000000000000000000000000000000000..d0fd0c8fe85d3eb2762c2b27d16ab3ca3f677541 --- /dev/null +++ b/prs/pr_9349.json @@ -0,0 +1,22 @@ +{ + "number": 9349, + "title": "refactor(connector): [Paysafe] fix wasm", + "description": "## Type of Change\r\n\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 type account_id for ConfigMetadata\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\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\"Screenshot\r\n\r\n\r\n\"Screenshot\r\n\r\n\"Screenshot\r\n\r\n\r\n\r\n## Checklist\r\n\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", + "author": "swangi-kumari", + "created_at": "2025-09-10T10:39:36+00:00", + "merged_at": "2025-09-10T17:22:46+00:00", + "base_branch": "main", + "labels": [ + "C-bug" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9349", + "commits": [ + { + "sha": "a3ac2463749a7cf2713f2383e6c4b8061ef7c6f9", + "message": "refactor: fix wasm", + "author": "Swangi Kumari", + "date": "2025-09-10T10:39:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a3ac2463749a7cf2713f2383e6c4b8061ef7c6f9" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9374.json b/prs/pr_9374.json new file mode 100644 index 0000000000000000000000000000000000000000..ef9b40fc520521b27782731337c417c10022bb97 --- /dev/null +++ b/prs/pr_9374.json @@ -0,0 +1,321 @@ +{ + "number": 9374, + "title": "feat(core): Added two step payment webhooks processing for Hyperswitch <> UCS Integration ", + "description": "## Type of Change\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\r\n\r\n#### 2 step payment webhooks\r\n- Hyperswitch receives the webhook and makes an initial call to UCS.\r\n\r\n- UCS decodes the event type, verifies the webhook source, and determines if the transformation is complete or if it requires more context. It returns a `transformation_status`.\r\n\r\n- If the first call indicates that the transformation was incomplete, a second PSync call is then made to UCS \r\nwith CallConnectorAction`UCSHandleResponse` action, providing both resource object and payment context (including `capture_method`, etc.).\r\n\r\n- Added `CallConnectorAction::UCSConsumeResponse` to handle the 1-step webhook transformation from UCS.\r\n- The existing `CallConnectorAction::UCSHandleResponse` is repurposed for the 2nd call to UCS for 2-step webhook transformation.\r\n- The incoming payment webhook flow now checks a new `webhook_transformation_status` enum returned from the initial UCS call.\r\n- If `Complete`, it triggers the `UCSHandleResponse` action, passing the resource object to initiate the second step.\r\n- If `Incomplete`, it proceeds with the `UCSConsumeResponse` action as the transformation is already complete.\r\n- The `psync` flow, which handles the second call, now passes the `CallConnectorAction` to the gRPC request transformer.\r\n- The `PaymentServiceGetRequest` transformer now populates `handle_response` (the resource object) and `capture_method` from the payment data, providing the full context to UCS.\r\n\r\n#### 1 step payment webhooks\r\n- Moved UCS webhook response handling logic from `api_client.rs` to `psync_flow.rs`. Removed the `handle_ucs_response` function from `api_client.rs`.\r\n\r\n#### Other changes\r\n- Added RouterDataUpdate in `UnifiedConnectorServiceResult` type to return additional captured amount fields to update in router_data.\r\n- Updated Gateway system and Execution path decision logic in fn `should_call_unified_connector_service`.\r\nNow if it is a UCS webhook action it enters UCS path if UCS is enabled or else throws error. If it is a handle response action it always Direct gateway path.\r\n\r\n\r\n\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\n\r\n\r\n## Motivation and Context\r\nWhen processing incoming webhooks, some connectors like Fiuu require additional payment information such as capture_method to correctly process the webhook. Without this information, these connectors cannot properly process webhook responses.\r\n\r\nDoc: https://docs.google.com/document/d/1B96xZhX4zAS2yMncnC6UgPNeFd3LALAR8iB6TkL30NI/edit?tab=t.afifbis3ez4s\r\n\r\n\r\n\r\n## How did you test it?\r\n#### 2 step webhook test (Fiuu)\r\n\r\n1st call to UCS\r\n\"Screenshot\r\n2nd call to UCS\r\n\"Screenshot\r\nPSync after webhook updated payment status\r\n\"Screenshot\r\n\r\n#### 1 step webhook test (Cryptopay)\r\n1st call to UCS\r\n\"Screenshot\r\nPSync after webhook updated payment status\r\n\"Screenshot\r\n\r\n\r\n\r\n\r\nConfig to enable webhook processing via UCS\r\n```\r\ncurl --location 'http://localhost:8080/configs/' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: test_admin' \\\r\n--header 'x-tenant-id: public' \\\r\n--data '{\r\n \"key\": \"ucs_rollout_config__fiuu_Webhooks\",\r\n \"value\": \"1\"\r\n}'\r\n```\r\n\r\n## Checklist\r\n\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", + "author": "Saptak88", + "created_at": "2025-09-15T05:12:23+00:00", + "merged_at": "2025-10-27T06:56:01+00:00", + "base_branch": "main", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/9374", + "commits": [ + { + "sha": "73c2f8823ed311ed3649c09912e199a2a1cc3ead", + "message": "add two step webhook processing through ucs", + "author": "Saptak Dutta", + "date": "2025-09-15T04:58:18+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/73c2f8823ed311ed3649c09912e199a2a1cc3ead" + }, + { + "sha": "ea7a438a70b37012c18483dbd72565ab27fd4b5d", + "message": "change ucs dependency", + "author": "Saptak Dutta", + "date": "2025-09-15T10:48:25+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ea7a438a70b37012c18483dbd72565ab27fd4b5d" + }, + { + "sha": "80b3ecb27d3e7e7142a6ace61cd00fc4ee450ea5", + "message": "fix errors", + "author": "Saptak Dutta", + "date": "2025-09-16T13:10:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/80b3ecb27d3e7e7142a6ace61cd00fc4ee450ea5" + }, + { + "sha": "d6d4499d5c3036ac1e5a808391507e49dfe5d0c7", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-09-16T14:16:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d6d4499d5c3036ac1e5a808391507e49dfe5d0c7" + }, + { + "sha": "df6d97481795c72ad821bf884cffbeeb9a716b30", + "message": "Merge branch 'main' into ucs_payment_webhook", + "author": "Saptak Dutta", + "date": "2025-09-17T11:20:35+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/df6d97481795c72ad821bf884cffbeeb9a716b30" + }, + { + "sha": "7fc477dace61ebb1f09cebc242c2207732164f80", + "message": "update ucs rev", + "author": "Saptak Dutta", + "date": "2025-09-23T09:58:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7fc477dace61ebb1f09cebc242c2207732164f80" + }, + { + "sha": "c7088d817df36b33c1d266ab00095c2985d9fd22", + "message": "Merge remote-tracking branch 'origin/main' into ucs_payment_webhook", + "author": "Saptak Dutta", + "date": "2025-09-25T06:46:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c7088d817df36b33c1d266ab00095c2985d9fd22" + }, + { + "sha": "e45901a00dd30a2a88bd838b973340b245dbd7a3", + "message": "fix 1step payment webhook", + "author": "Saptak Dutta", + "date": "2025-10-09T08:01:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e45901a00dd30a2a88bd838b973340b245dbd7a3" + }, + { + "sha": "7f9d098460db9ca80334266c1343e36eab462b5a", + "message": "Merge remote-tracking branch 'origin/main' into ucs_payment_webhook", + "author": "Saptak Dutta", + "date": "2025-10-09T08:22:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7f9d098460db9ca80334266c1343e36eab462b5a" + }, + { + "sha": "f796cc1b9e93cb824b0d45b402666f4791e7fe29", + "message": "fix formatting", + "author": "Saptak Dutta", + "date": "2025-10-09T08:24:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f796cc1b9e93cb824b0d45b402666f4791e7fe29" + }, + { + "sha": "d82eba349d272fc59593370217d1e0c2ec2299be", + "message": "fix errors", + "author": "Saptak Dutta", + "date": "2025-10-09T09:08:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d82eba349d272fc59593370217d1e0c2ec2299be" + }, + { + "sha": "f35234fc8285a591e129edd053cdf858936277b7", + "message": "Merge remote-tracking branch 'origin/main' into ucs_payment_webhook", + "author": "Saptak Dutta", + "date": "2025-10-15T09:38:58+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f35234fc8285a591e129edd053cdf858936277b7" + }, + { + "sha": "580e20a036db6da924db4a4dd480287894eba7e2", + "message": "fix errors", + "author": "Saptak Dutta", + "date": "2025-10-15T13:12:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/580e20a036db6da924db4a4dd480287894eba7e2" + }, + { + "sha": "6e303146d04eefc46ef226b85498fea4d8e8255a", + "message": "refractor router_data_update position", + "author": "Saptak Dutta", + "date": "2025-10-15T13:28:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6e303146d04eefc46ef226b85498fea4d8e8255a" + }, + { + "sha": "a01f1b0f23d1d5054a5af480b84990e9fcb44228", + "message": "fix ucs decision logic", + "author": "Saptak Dutta", + "date": "2025-10-15T16:55:03+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a01f1b0f23d1d5054a5af480b84990e9fcb44228" + }, + { + "sha": "75e0d14906c986decb641bbcedca6438e312f150", + "message": "Address comments", + "author": "Saptak Dutta", + "date": "2025-10-16T11:49:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/75e0d14906c986decb641bbcedca6438e312f150" + }, + { + "sha": "f3b314fdfd57c32d2db913af4a041c5915f49079", + "message": "address comments", + "author": "Saptak Dutta", + "date": "2025-10-16T12:26:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f3b314fdfd57c32d2db913af4a041c5915f49079" + }, + { + "sha": "445b4aedb791628dc0d98e89709cd2028a454c11", + "message": "address comments", + "author": "Saptak Dutta", + "date": "2025-10-17T06:48:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/445b4aedb791628dc0d98e89709cd2028a454c11" + }, + { + "sha": "e6f8e3d683659c9981ae76b04dc4f82af0da9fe9", + "message": "Merge remote-tracking branch 'origin/main' into ucs_payment_webhook", + "author": "Saptak Dutta", + "date": "2025-10-17T07:36:17+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e6f8e3d683659c9981ae76b04dc4f82af0da9fe9" + }, + { + "sha": "064cc8681ac38aaeac063879160fb84f85d049a9", + "message": "fix errors", + "author": "Saptak Dutta", + "date": "2025-10-17T08:01:48+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/064cc8681ac38aaeac063879160fb84f85d049a9" + }, + { + "sha": "391104d48a90628060a28c7285188a4d1731f012", + "message": "address comments", + "author": "Saptak Dutta", + "date": "2025-10-20T15:04:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/391104d48a90628060a28c7285188a4d1731f012" + }, + { + "sha": "c5a2f33f5ff42feffbf1139c5c88636f183bd772", + "message": "remove router_data_update", + "author": "Saptak Dutta", + "date": "2025-10-20T15:06:07+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c5a2f33f5ff42feffbf1139c5c88636f183bd772" + }, + { + "sha": "ce77b70ca84665cafafd968dba2aaeb39481d7d9", + "message": "fix error message", + "author": "Saptak Dutta", + "date": "2025-10-20T15:22:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ce77b70ca84665cafafd968dba2aaeb39481d7d9" + }, + { + "sha": "265f50e80c08d8928ee7815d875674f5b12778f4", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-10-20T15:24:03+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/265f50e80c08d8928ee7815d875674f5b12778f4" + }, + { + "sha": "1d2c8afe1cd35843d463f16da63c5c85ba803e98", + "message": "Merge branch 'main' into ucs_payment_webhook", + "author": "Saptak Dutta", + "date": "2025-10-20T16:06:52+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1d2c8afe1cd35843d463f16da63c5c85ba803e98" + }, + { + "sha": "e40b977cdffbb9387be6b7972726cbbb1813c107", + "message": "add amount captured", + "author": "Saptak Dutta", + "date": "2025-10-21T06:54:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e40b977cdffbb9387be6b7972726cbbb1813c107" + }, + { + "sha": "e063e30f34ff1e90816efb7e9ed40e0163902a72", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-10-21T06:55:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e063e30f34ff1e90816efb7e9ed40e0163902a72" + }, + { + "sha": "b143f7cce09799a99e4b86672940214728afdf33", + "message": "Merge remote-tracking branch 'origin/main' into ucs_payment_webhook", + "author": "Saptak Dutta", + "date": "2025-10-22T07:24:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b143f7cce09799a99e4b86672940214728afdf33" + }, + { + "sha": "634caeecca77e81f3da405d0cfb948b7b4da70bc", + "message": "adress comments", + "author": "Saptak Dutta", + "date": "2025-10-22T08:37:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/634caeecca77e81f3da405d0cfb948b7b4da70bc" + }, + { + "sha": "a81aeb765f0873e42bac54cc52d86f0687b133f5", + "message": "fix error message", + "author": "Saptak Dutta", + "date": "2025-10-22T08:57:23+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a81aeb765f0873e42bac54cc52d86f0687b133f5" + }, + { + "sha": "532aab3689ff24667a0964e81e3dd73ad0aa8cae", + "message": "Merge remote-tracking branch 'origin/main' into ucs_payment_webhook", + "author": "Saptak Dutta", + "date": "2025-10-23T08:00:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/532aab3689ff24667a0964e81e3dd73ad0aa8cae" + }, + { + "sha": "b88906b8f41bfbac93261464110f8eabc0f1974b", + "message": "fix errors", + "author": "Saptak Dutta", + "date": "2025-10-23T08:14:32+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b88906b8f41bfbac93261464110f8eabc0f1974b" + }, + { + "sha": "481756ede60d62384056348acea8d9e4a7c54c17", + "message": "change field name", + "author": "Saptak Dutta", + "date": "2025-10-23T08:34:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/481756ede60d62384056348acea8d9e4a7c54c17" + }, + { + "sha": "0b4e18d5a40aba893b3d25938cb11f2e8bda3397", + "message": "fix errors", + "author": "Saptak Dutta", + "date": "2025-10-23T09:35:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0b4e18d5a40aba893b3d25938cb11f2e8bda3397" + }, + { + "sha": "7364b982b23f2052d0a47cab1af1f7fd3deae8c0", + "message": "Merge branch 'main' into ucs_payment_webhook", + "author": "Saptak Dutta", + "date": "2025-10-23T09:43:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7364b982b23f2052d0a47cab1af1f7fd3deae8c0" + }, + { + "sha": "481bb412eccf0ba4b573bb4973d5a078883ac9c0", + "message": "resolve comments", + "author": "Saptak Dutta", + "date": "2025-10-23T13:02:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/481bb412eccf0ba4b573bb4973d5a078883ac9c0" + }, + { + "sha": "f26259144bf4e78bdd80cdd4ce415fee61063c3e", + "message": "Merge branch 'main' into ucs_payment_webhook", + "author": "Saptak Dutta", + "date": "2025-10-23T13:21:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f26259144bf4e78bdd80cdd4ce415fee61063c3e" + }, + { + "sha": "64c94a5f3e8bbef47406946687743673f48fc6d4", + "message": "fix error message", + "author": "Saptak Dutta", + "date": "2025-10-24T05:39:42+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/64c94a5f3e8bbef47406946687743673f48fc6d4" + }, + { + "sha": "c5e577b1833b15af510f8371ddd12bdf1c7df97d", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-10-24T05:44:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c5e577b1833b15af510f8371ddd12bdf1c7df97d" + }, + { + "sha": "07b38b7f7f544c3d75a11976647e802deef43342", + "message": "fix clippy errors", + "author": "Saptak Dutta", + "date": "2025-10-24T07:00:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/07b38b7f7f544c3d75a11976647e802deef43342" + }, + { + "sha": "75a7258468103b327eaaa612831bbe544a347a35", + "message": "Merge branch 'main' into ucs_payment_webhook", + "author": "Saptak Dutta", + "date": "2025-10-24T07:47:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/75a7258468103b327eaaa612831bbe544a347a35" + }, + { + "sha": "8c070a63d0aa9b2c87cf848276f204dde7a5334d", + "message": "Merge remote-tracking branch 'origin/main' into ucs_payment_webhook", + "author": "Saptak Dutta", + "date": "2025-10-24T08:54:32+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8c070a63d0aa9b2c87cf848276f204dde7a5334d" + }, + { + "sha": "18d0a076cf6cc045bc9872362e1f6664493701bc", + "message": "chore: fix compilation errors", + "author": "Saptak Dutta", + "date": "2025-10-24T09:14:52+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/18d0a076cf6cc045bc9872362e1f6664493701bc" + }, + { + "sha": "fa7928b07cd64d62135a5ab090787117c26f91e2", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-10-24T09:23:21+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fa7928b07cd64d62135a5ab090787117c26f91e2" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9395.json b/prs/pr_9395.json new file mode 100644 index 0000000000000000000000000000000000000000..6ef780e92cc4ac4fa9880518ffad3848809678c8 --- /dev/null +++ b/prs/pr_9395.json @@ -0,0 +1,22 @@ +{ + "number": 9395, + "title": "fix(connectors): [Nexixpay] send recurrence obj in non cit payments", + "description": "## Type of Change\r\n\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\r\n As requested by connector we need to send recurrence object in connector requests of init and payments call for non cit payment with action as NoRecurring.\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\n\r\n\r\n## Motivation and Context\r\n\r\nOne off payments are getting rejected from nexixpay as they have changed their api contract.\r\n\r\n## How did you test it?\r\n\r\nPayments 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_****' \\\r\n--data-raw '{\r\n \"amount\": 3545,\r\n \"currency\": \"EUR\",\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\": \"4349 9401 9900 4549\",\r\n \"card_exp_month\": \"05\",\r\n \"card_exp_year\": \"26\",\r\n \"card_cvc\": \"396\"\r\n }\r\n },\r\n\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"three_ds\",\r\n \"setup_future_usage\": \"on_session\", \r\n \"customer\": {\r\n \"id\": \"customer123\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customer@gmail.com\",\r\n \"phone\": \"9999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"customer_id\": \"customer123\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\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 \"country\": \"BR\",\r\n \"zip\": \"94122\",\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\": \"guest@example.com\"\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\": \"BR\",\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\": \"guest@example.com\"\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 3545,\r\n \"account_name\": \"transaction_processing\"\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\": \"128.0.0.1\"\r\n },\r\n \"connector_metadata\": {\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n },\r\n \"payment_link\": false,\r\n \"payment_link_config\": { \r\n \"theme\": \"\",\r\n \"logo\": \"\",\r\n \"seller_name\": \"\",\r\n \"sdk_layout\": \"\",\r\n \"display_sdk_only\": false,\r\n \"enabled_saved_payment_method\": false\r\n },\r\n \r\n \"payment_type\": \"normal\", \r\n \"request_incremental_authorization\": false,\r\n \"merchant_order_reference_id\": \"test_ord\",\r\n \"session_expiry\": 900 \r\n}'\r\n```\r\n\r\nresponse:\r\n```\r\n{\"payment_id\":\"pay_enzsqwG32eOsB0HzGN4C\",\"merchant_id\":\"merchant_1757963735\",\"status\":\"requires_customer_action\",\"amount\":3545,\"net_amount\":3545,\"shipping_cost\":null,\"amount_capturable\":3545,\"amount_received\":null,\"connector\":\"nexixpay\",\"client_secret\":\"pay_enzsqwG32eOsB0HzGN4C_secret_BdiC32A0XqFsV2xbrq5D\",\"created\":\"2025-09-15T19:19:49.306Z\",\"currency\":\"EUR\",\"customer_id\":\"customer123\",\"customer\":{\"id\":\"customer123\",\"name\":\"John Doe\",\"email\":\"customer@gmail.com\",\"phone\":\"9999999999\",\"phone_country_code\":\"+1\"},\"description\":\"Its my first payment request\",\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"4549\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"434994\",\"card_extended_bin\":null,\"card_exp_month\":\"05\",\"card_exp_year\":\"26\",\"card_holder_name\":null,\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_4Mtt2rFkwhP1VFwnqqG1\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"BR\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"BR\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"order_details\":[{\"sku\":null,\"upc\":null,\"brand\":null,\"amount\":3545,\"category\":null,\"quantity\":1,\"tax_rate\":null,\"product_id\":null,\"description\":null,\"product_name\":\"Apple iphone 15\",\"product_type\":null,\"sub_category\":null,\"total_amount\":null,\"commodity_code\":null,\"unit_of_measure\":null,\"product_img_link\":null,\"product_tax_code\":null,\"total_tax_amount\":null,\"requires_shipping\":null,\"unit_discount_amount\":null}],\"email\":\"customer@gmail.com\",\"name\":\"John Doe\",\"phone\":\"9999999999\",\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"next_action\":{\"type\":\"redirect_to_url\",\"redirect_to_url\":\"http://localhost:8080/payments/redirect/pay_enzsqwG32eOsB0HzGN4C/merchant_1757963735/pay_enzsqwG32eOsB0HzGN4C_1\"},\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"customer123\",\"created_at\":1757963989,\"expires\":1757967589,\"secret\":\"epk_\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":\"F0Rxb8C1nzubCnlfKf\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":{\"apple_pay\":null,\"airwallex\":null,\"noon\":{\"order_category\":\"pay\"},\"braintree\":null,\"adyen\":null},\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":\"F0Rxb8C1nzubCnlfKf\",\"payment_link\":null,\"profile_id\":\"pro_pNYfKwzcccCUBOwarvVW\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_QmMn98hDhgKxgBDFp64p\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-09-15T19:34:49.306Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"128.0.0.1\",\"user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\"color_depth\":24,\"java_enabled\":true,\"screen_width\":1536,\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"screen_height\":723,\"java_script_enabled\":true},\"payment_channel\":null,\"payment_method_id\":null,\"network_transaction_id\":null,\"payment_method_status\":null,\"updated\":\"2025-09-15T19:19:51.320Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"capture_before\":null,\"merchant_order_reference_id\":\"test_ord\",\"order_tax_amount\":null,\"connector_mandate_id\":null,\"card_discovery\":\"manual\",\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null,\"enable_overcapture\":null,\"is_overcapture_enabled\":null,\"network_details\":null}\r\n```\r\n\r\nPayments retrieve request:\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_enzsqwG32eOsB0HzGN4C?force_sync=true&expand_captures=true&expand_attempts=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_iQghjDyB2zimkX6J60unvxRuNIFuAFTjqwixKZX7CD70YiNg2seWOx5S1QobFeH6'\r\n```\r\n\r\nPayment retrieve Response:\r\n```\r\n{\"payment_id\":\"pay_enzsqwG32eOsB0HzGN4C\",\"merchant_id\":\"merchant_1757963735\",\"status\":\"succeeded\",\"amount\":3545,\"net_amount\":3545,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":3545,\"connector\":\"nexixpay\",\"client_secret\":\"pay_enzsqwG32eOsB0HzGN4C_secret_BdiC32A0XqFsV2xbrq5D\",\"created\":\"2025-09-15T19:19:49.306Z\",\"currency\":\"EUR\",\"customer_id\":\"customer123\",\"customer\":{\"id\":\"customer123\",\"name\":\"John Doe\",\"email\":\"customer@gmail.com\",\"phone\":\"9999999999\",\"phone_country_code\":\"+1\"},\"description\":\"Its my first payment request\",\"refunds\":null,\"disputes\":null,\"attempts\":[{\"attempt_id\":\"pay_enzsqwG32eOsB0HzGN4C_1\",\"status\":\"charged\",\"amount\":3545,\"order_tax_amount\":null,\"currency\":\"EUR\",\"connector\":\"nexixpay\",\"error_message\":null,\"payment_method\":\"card\",\"connector_transaction_id\":\"F0Rxb8C1nzubCnlfKf\",\"capture_method\":\"automatic\",\"authentication_type\":\"three_ds\",\"created_at\":\"2025-09-15T19:19:49.306Z\",\"modified_at\":\"2025-09-15T19:20:21.314Z\",\"cancellation_reason\":null,\"mandate_id\":null,\"error_code\":null,\"payment_token\":\"token_4Mtt2rFkwhP1VFwnqqG1\",\"connector_metadata\":{\"psyncFlow\":\"Authorize\",\"cancelOperationId\":null,\"threeDSAuthResult\":{\"authenticationValue\":\"AAcAAThkaAAAAA3Zl4JYdQAAAAA=\"},\"captureOperationId\":\"887416293836952589\",\"threeDSAuthResponse\":\"notneeded\",\"authorizationOperationId\":\"887416293836952589\"},\"payment_experience\":null,\"payment_method_type\":\"credit\",\"reference_id\":\"F0Rxb8C1nzubCnlfKf\",\"unified_code\":null,\"unified_message\":null,\"client_source\":null,\"client_version\":null}],\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"on_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"4549\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"434994\",\"card_extended_bin\":null,\"card_exp_month\":\"05\",\"card_exp_year\":\"26\",\"card_holder_name\":null,\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_4Mtt2rFkwhP1VFwnqqG1\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"BR\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"BR\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"order_details\":[{\"sku\":null,\"upc\":null,\"brand\":null,\"amount\":3545,\"category\":null,\"quantity\":1,\"tax_rate\":null,\"product_id\":null,\"description\":null,\"product_name\":\"Apple iphone 15\",\"product_type\":null,\"sub_category\":null,\"total_amount\":null,\"commodity_code\":null,\"unit_of_measure\":null,\"product_img_link\":null,\"product_tax_code\":null,\"total_tax_amount\":null,\"requires_shipping\":null,\"unit_discount_amount\":null}],\"email\":\"customer@gmail.com\",\"name\":\"John Doe\",\"phone\":\"9999999999\",\"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\":\"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\":\"F0Rxb8C1nzubCnlfKf\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":{\"apple_pay\":null,\"airwallex\":null,\"noon\":{\"order_category\":\"pay\"},\"braintree\":null,\"adyen\":null},\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":\"F0Rxb8C1nzubCnlfKf\",\"payment_link\":null,\"profile_id\":\"pro_pNYfKwzcccCUBOwarvVW\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_QmMn98hDhgKxgBDFp64p\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-09-15T19:34:49.306Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"128.0.0.1\",\"user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\"color_depth\":24,\"java_enabled\":true,\"screen_width\":1536,\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"screen_height\":723,\"java_script_enabled\":true},\"payment_channel\":null,\"payment_method_id\":null,\"network_transaction_id\":null,\"payment_method_status\":null,\"updated\":\"2025-09-15T19:20:21.314Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"capture_before\":null,\"merchant_order_reference_id\":\"test_ord\",\"order_tax_amount\":null,\"connector_mandate_id\":null,\"card_discovery\":\"manual\",\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null,\"enable_overcapture\":null,\"is_overcapture_enabled\":null,\"network_details\":null}\r\n```\r\n\"image\"\r\n\r\n\"image\"\r\n\r\n## Checklist\r\n\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", + "author": "mrudulvajpayee4935", + "created_at": "2025-09-15T19:46:38+00:00", + "merged_at": "2025-09-16T09:30:48+00:00", + "base_branch": "main", + "labels": [ + "A-connector-compatibility" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9395", + "commits": [ + { + "sha": "47d386ca8d06622f485c4392d1268e317c48cb3a", + "message": "send recurrence obj in non cit payments", + "author": "Mrudul Vajpayee", + "date": "2025-09-15T19:25:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/47d386ca8d06622f485c4392d1268e317c48cb3a" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9396.json b/prs/pr_9396.json new file mode 100644 index 0000000000000000000000000000000000000000..7cc399afc7dcf9cdd316346e8053975036699115 --- /dev/null +++ b/prs/pr_9396.json @@ -0,0 +1,79 @@ +{ + "number": 9396, + "title": "feat(connector): [Paysafe] implement Skrill, interac and paysafecard Payment Method", + "description": "## Type of Change\r\n\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\nimplement Skrill, interac and paysafecard Payment Method\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n1. Create a Skrill Payment\r\n```\r\n{\r\n \"amount\": 1500,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"customer_id\": \"aaaa\",\r\n \"profile_id\": \"pro_4qL65B30WQmHX25pXKmG\",\r\n \"authentication_type\": \"three_ds\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"skrill\",\r\n \"payment_method_data\": {\r\n \"wallet\": {\r\n \"skrill\": {}\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"Singapore Changi Airport. 2nd flr\",\r\n \"line2\": \"\",\r\n \"line3\": \"\",\r\n \"city\": \"Downtown Core\",\r\n \"state\": \"Central Indiana America\",\r\n \"zip\": \"039393\",\r\n \"country\": \"SG\",\r\n \"first_name\": \"\ubc15\uc131\uc900\",\r\n \"last_name\": \"\ubc15\uc131\uc900\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"swangi.kumari@juspay.in\"\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\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_5xoMCjQvR0AnUF37kl6v\",\r\n \"merchant_id\": \"merchant_1757942854\",\r\n \"status\": \"requires_customer_action\",\r\n \"amount\": 1500,\r\n \"net_amount\": 1500,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 1500,\r\n \"amount_received\": null,\r\n \"connector\": \"paysafe\",\r\n \"client_secret\": \"pay_5xoMCjQvR0AnUF37kl6v_secret_Co7z6eH0h93pHyicLKJp\",\r\n \"created\": \"2025-09-16T06:09:53.680Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"aaaa\",\r\n \"customer\": {\r\n \"id\": \"aaaa\",\r\n \"name\": null,\r\n \"email\": null,\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 \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"Downtown Core\",\r\n \"country\": \"SG\",\r\n \"line1\": \"Singapore Changi Airport. 2nd flr\",\r\n \"line2\": \"\",\r\n \"line3\": \"\",\r\n \"zip\": \"039393\",\r\n \"state\": \"Central Indiana America\",\r\n \"first_name\": \"\ubc15\uc131\uc900\",\r\n \"last_name\": \"\ubc15\uc131\uc900\",\r\n \"origin_zip\": null\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\": \"Downtown Core\",\r\n \"country\": \"SG\",\r\n \"line1\": \"Singapore Changi Airport. 2nd flr\",\r\n \"line2\": \"\",\r\n \"line3\": \"\",\r\n \"zip\": \"039393\",\r\n \"state\": \"Central Indiana America\",\r\n \"first_name\": \"\ubc15\uc131\uc900\",\r\n \"last_name\": \"\ubc15\uc131\uc900\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"swangi.kumari@juspay.in\"\r\n },\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\": \"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_5xoMCjQvR0AnUF37kl6v/merchant_1757942854/pay_5xoMCjQvR0AnUF37kl6v_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\": \"skrill\",\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\": \"aaaa\",\r\n \"created_at\": 1758002993,\r\n \"expires\": 1758006593,\r\n \"secret\": \"epk_6eec4bbcf95a434a8b65171dca1d86da\"\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\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_4qL65B30WQmHX25pXKmG\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_2zxP3MvnLEpDi16Ay49j\",\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-16T06:24:53.680Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.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_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-16T06:09:56.298Z\",\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\nComplete Payment using redirection\r\n\r\n2. Do psync \r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_biJy45vN8GAgHdotUaAm?force_sync=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_XE1bY6wAFDqmx67zzp7ywkodIuZnJ1bnzq7BmJ6jcULVA5z454A0vA5D9jR2uaFL'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_biJy45vN8GAgHdotUaAm\",\r\n \"merchant_id\": \"merchant_1757942854\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1500,\r\n \"net_amount\": 1500,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 1500,\r\n \"connector\": \"paysafe\",\r\n \"client_secret\": \"pay_biJy45vN8GAgHdotUaAm_secret_wzBdMh7jy1lQLteolVik\",\r\n \"created\": \"2025-09-16T06:11:55.151Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"aaaa\",\r\n \"customer\": {\r\n \"id\": \"aaaa\",\r\n \"name\": null,\r\n \"email\": null,\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\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1091\",\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\": \"10\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"Joseph\",\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\": {\r\n \"address\": {\r\n \"city\": \"Downtown Core\",\r\n \"country\": \"SG\",\r\n \"line1\": \"Singapore Changi Airport. 2nd flr\",\r\n \"line2\": \"\",\r\n \"line3\": \"\",\r\n \"zip\": \"039393\",\r\n \"state\": \"Central Indiana America\",\r\n \"first_name\": \"\ubc15\uc131\uc900\",\r\n \"last_name\": \"\ubc15\uc131\uc900\",\r\n \"origin_zip\": null\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\": \"Downtown Core\",\r\n \"country\": \"SG\",\r\n \"line1\": \"Singapore Changi Airport. 2nd flr\",\r\n \"line2\": \"\",\r\n \"line3\": \"\",\r\n \"zip\": \"039393\",\r\n \"state\": \"Central Indiana America\",\r\n \"first_name\": \"\ubc15\uc131\uc900\",\r\n \"last_name\": \"\ubc15\uc131\uc900\",\r\n \"origin_zip\": null\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\": null,\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": null,\r\n \"authentication_type\": \"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\": null,\r\n \"connector_transaction_id\": \"f7b13a78-971f-484f-bf2e-b7696cae27e4\",\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_4qL65B30WQmHX25pXKmG\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_2zxP3MvnLEpDi16Ay49j\",\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-16T06:26:55.151Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.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_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-16T06:12:52.541Z\",\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 \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null\r\n}\r\n```\r\n\r\n_________________________________________\r\n1. Create a Interac Payment\r\n```\r\n{\r\n \"amount\": 1500,\r\n \"currency\": \"CAD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"customer_id\": \"aaaa\",\r\n \"profile_id\": \"pro_ZOeeFgbR94MvAzeqRgCP\",\r\n \"authentication_type\": \"three_ds\",\r\n \"payment_method\": \"bank_redirect\",\r\n \"payment_method_type\": \"interac\",\r\n \"payment_method_data\": {\r\n \"bank_redirect\": {\r\n \"interac\": {}\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"Singapore Changi Airport. 2nd flr\",\r\n \"line2\": \"\",\r\n \"line3\": \"\",\r\n \"city\": \"Downtown Core\",\r\n \"state\": \"Central Indiana America\",\r\n \"zip\": \"039393\",\r\n \"country\": \"SG\",\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\"\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\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_z7YQYcZmsvJqgvaULlib\",\r\n \"merchant_id\": \"merchant_1758109811\",\r\n \"status\": \"requires_customer_action\",\r\n \"amount\": 1500,\r\n \"net_amount\": 1500,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 1500,\r\n \"amount_received\": null,\r\n \"connector\": \"paysafe\",\r\n \"client_secret\": \"pay_z7YQYcZmsvJqgvaULlib_secret_pP5mHo1dYDNdpTaEvzJM\",\r\n \"created\": \"2025-09-17T12:14:15.417Z\",\r\n \"currency\": \"CAD\",\r\n \"customer_id\": \"aaaa\",\r\n \"customer\": {\r\n \"id\": \"aaaa\",\r\n \"name\": null,\r\n \"email\": null,\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\": \"bank_redirect\",\r\n \"payment_method_data\": {\r\n \"bank_redirect\": {\r\n \"type\": \"BankRedirectResponse\",\r\n \"bank_name\": 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\": \"Downtown Core\",\r\n \"country\": \"SG\",\r\n \"line1\": \"Singapore Changi Airport. 2nd flr\",\r\n \"line2\": \"\",\r\n \"line3\": \"\",\r\n \"zip\": \"039393\",\r\n \"state\": \"Central Indiana America\",\r\n \"first_name\": \"Swangi\",\r\n \"last_name\": \"Kumari\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"swangi.kumari@juspay.in\"\r\n },\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\": \"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_z7YQYcZmsvJqgvaULlib/merchant_1758109811/pay_z7YQYcZmsvJqgvaULlib_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\": \"interac\",\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\": \"aaaa\",\r\n \"created_at\": 1758111255,\r\n \"expires\": 1758114855,\r\n \"secret\": \"epk_a1d811edc6eb473e91d84edd854bc78f\"\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\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_ZOeeFgbR94MvAzeqRgCP\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_RgaQGT7EpJ4ktWrgTjiW\",\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-17T12:29:15.417Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.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_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-17T12:14:16.388Z\",\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\nComplete the payment using redirection \r\n\r\n2. Do psync \r\nWe will get `succeeded` status \r\n\r\n____________________________________\r\n\r\n1. Create Paysafe gift card payment\r\n```\r\n{\r\n \"amount\": 1500,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"customer_id\": \"aaaa\",\r\n \"profile_id\": \"pro_ZOeeFgbR94MvAzeqRgCP\",\r\n \"authentication_type\": \"three_ds\",\r\n \"payment_method\": \"gift_card\",\r\n \"payment_method_type\": \"pay_safe_card\",\r\n \"payment_method_data\": {\r\n \"gift_card\": {\r\n \"pay_safe_card\": {}\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"Singapore Changi Airport. 2nd flr\",\r\n \"line2\": \"\",\r\n \"line3\": \"\",\r\n \"city\": \"Downtown Core\",\r\n \"state\": \"Central Indiana America\",\r\n \"zip\": \"039393\",\r\n \"country\": \"SG\",\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\"\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\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_e1mvzY3QHPNkUoq95Y3r\",\r\n \"merchant_id\": \"merchant_1758109811\",\r\n \"status\": \"requires_customer_action\",\r\n \"amount\": 1500,\r\n \"net_amount\": 1500,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 1500,\r\n \"amount_received\": null,\r\n \"connector\": \"paysafe\",\r\n \"client_secret\": \"pay_e1mvzY3QHPNkUoq95Y3r_secret_GeqxmczpZ6Rl3WAa2qye\",\r\n \"created\": \"2025-09-17T12:15:54.727Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"aaaa\",\r\n \"customer\": {\r\n \"id\": \"aaaa\",\r\n \"name\": null,\r\n \"email\": null,\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\": \"gift_card\",\r\n \"payment_method_data\": {\r\n \"gift_card\": {\r\n \"pay_safe_card\": {}\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\": \"Downtown Core\",\r\n \"country\": \"SG\",\r\n \"line1\": \"Singapore Changi Airport. 2nd flr\",\r\n \"line2\": \"\",\r\n \"line3\": \"\",\r\n \"zip\": \"039393\",\r\n \"state\": \"Central Indiana America\",\r\n \"first_name\": \"Swangi\",\r\n \"last_name\": \"Kumari\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"swangi.kumari@juspay.in\"\r\n },\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\": \"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_e1mvzY3QHPNkUoq95Y3r/merchant_1758109811/pay_e1mvzY3QHPNkUoq95Y3r_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\": \"pay_safe_card\",\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\": \"aaaa\",\r\n \"created_at\": 1758111354,\r\n \"expires\": 1758114954,\r\n \"secret\": \"epk_f8d75c19c2af479ebc9f5466bea7156b\"\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\": null,\r\n \"gateway_system\": \"direct\"\r\n },\r\n \"reference_id\": null,\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_ZOeeFgbR94MvAzeqRgCP\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_RgaQGT7EpJ4ktWrgTjiW\",\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-17T12:30:54.726Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.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_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-17T12:15:56.032Z\",\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\nComplete payment using redirection\r\n\r\n2. Do psync , \r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_e1mvzY3QHPNkUoq95Y3r\",\r\n \"merchant_id\": \"merchant_1758109811\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1500,\r\n \"net_amount\": 1500,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 1500,\r\n \"connector\": \"paysafe\",\r\n \"client_secret\": \"pay_e1mvzY3QHPNkUoq95Y3r_secret_GeqxmczpZ6Rl3WAa2qye\",\r\n \"created\": \"2025-09-17T12:15:54.727Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"aaaa\",\r\n \"customer\": {\r\n \"id\": \"aaaa\",\r\n \"name\": null,\r\n \"email\": null,\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\": \"gift_card\",\r\n \"payment_method_data\": {\r\n \"gift_card\": {\r\n \"pay_safe_card\": {}\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\": \"Downtown Core\",\r\n \"country\": \"SG\",\r\n \"line1\": \"Singapore Changi Airport. 2nd flr\",\r\n \"line2\": \"\",\r\n \"line3\": \"\",\r\n \"zip\": \"039393\",\r\n \"state\": \"Central Indiana America\",\r\n \"first_name\": \"Swangi\",\r\n \"last_name\": \"Kumari\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": \"swangi.kumari@juspay.in\"\r\n },\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\": \"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\": \"pay_safe_card\",\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\": \"16591c55-a1d0-48b3-bd5f-0b86fe514be8\",\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_ZOeeFgbR94MvAzeqRgCP\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_RgaQGT7EpJ4ktWrgTjiW\",\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-17T12:30:54.726Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.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_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-17T12:16:06.859Z\",\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## Checklist\r\n\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", + "author": "swangi-kumari", + "created_at": "2025-09-16T06:28:53+00:00", + "merged_at": "2025-09-18T08:54:42+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "C-feature" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9396", + "commits": [ + { + "sha": "bd43e7c6b97b97f15767208da1bd38db34a40d51", + "message": "feat: impl paysafe interac", + "author": "Swangi Kumari", + "date": "2025-09-16T06:27:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/bd43e7c6b97b97f15767208da1bd38db34a40d51" + }, + { + "sha": "130acdeee7a2110b9595c6789347ca9be31949d0", + "message": "feat: impl interac", + "author": "Swangi Kumari", + "date": "2025-09-17T10:45:01+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/130acdeee7a2110b9595c6789347ca9be31949d0" + }, + { + "sha": "a2ae99a70f281f2511ac607e0620d63ee08c58ca", + "message": "feat: impl paysafe card", + "author": "Swangi Kumari", + "date": "2025-09-17T12:20:45+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a2ae99a70f281f2511ac607e0620d63ee08c58ca" + }, + { + "sha": "44b0fe70b84930d4f4281767731917f68e27c0e9", + "message": "Merge remote-tracking branch 'origin' into paysafe-interac", + "author": "Swangi Kumari", + "date": "2025-09-17T12:21:13+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/44b0fe70b84930d4f4281767731917f68e27c0e9" + }, + { + "sha": "cc409ac75a62a9e8233c492c84974e6bce696fb1", + "message": "feat: wasm changes", + "author": "Swangi Kumari", + "date": "2025-09-17T12:35:07+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/cc409ac75a62a9e8233c492c84974e6bce696fb1" + }, + { + "sha": "35a19fa640a300a61a8e3a4a82413a8b708167fc", + "message": "feat: wasm changes", + "author": "Swangi Kumari", + "date": "2025-09-17T13:59:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/35a19fa640a300a61a8e3a4a82413a8b708167fc" + }, + { + "sha": "019b5329d1cdcc14e2add35c5c60828012b15a55", + "message": "chore: update Cargo.lock", + "author": "hyperswitch-bot[bot]", + "date": "2025-09-17T15:20:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/019b5329d1cdcc14e2add35c5c60828012b15a55" + }, + { + "sha": "2e4b515ebc49e72484c249a5700aeac571848683", + "message": "refactor: resolve comments", + "author": "Swangi Kumari", + "date": "2025-09-18T06:55:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2e4b515ebc49e72484c249a5700aeac571848683" + }, + { + "sha": "54daaad03f09230f8b873151be4076955f62314f", + "message": "Merge branch 'paysafe-interac' of https://github.com/juspay/hyperswitch into paysafe-interac", + "author": "Swangi Kumari", + "date": "2025-09-18T06:55:25+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/54daaad03f09230f8b873151be4076955f62314f" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9411.json b/prs/pr_9411.json new file mode 100644 index 0000000000000000000000000000000000000000..e99a849b740f6020b2bd3f765d8d6ba19b812ceb --- /dev/null +++ b/prs/pr_9411.json @@ -0,0 +1,27 @@ +{ + "number": 9411, + "title": "chore(git): add code owner for payout modules", + "description": "## Type of Change\r\n\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\nThis PR assigns the code owner to relevant modules for `hyperswitch-payouts`.\r\n\r\n## Motivation and Context\r\n- Helps offload PR review tasks for payout related modules to the respective team.\r\n\r\n## How did you test it?\r\nNot needed\r\n", + "author": "kashif-m", + "created_at": "2025-09-17T04:10:13+00:00", + "merged_at": "2025-09-17T17:59:19+00:00", + "base_branch": "main", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/9411", + "commits": [ + { + "sha": "a31d350c6199a22e838b605ebd3d87a50034dee4", + "message": "chore(git): add code owner for payout modules", + "author": "Kashif", + "date": "2025-09-17T04:07:38+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a31d350c6199a22e838b605ebd3d87a50034dee4" + }, + { + "sha": "c8fba3a1102ab29c9083433e1580b4422f958c95", + "message": "chore: remove id_type module from payouts team", + "author": "Kashif", + "date": "2025-09-17T10:16:34+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c8fba3a1102ab29c9083433e1580b4422f958c95" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9459.json b/prs/pr_9459.json new file mode 100644 index 0000000000000000000000000000000000000000..dd4b5abd5cc47e75f8ffc70989bc38f94cac15ac --- /dev/null +++ b/prs/pr_9459.json @@ -0,0 +1,22 @@ +{ + "number": 9459, + "title": "fix(connectors): [Nexixpay] send cvv in nexixpay requests", + "description": "## Type of Change\r\n\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\r\nMandatorily send cvv to nexixpay card payments.\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\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\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\": 3545,\r\n \"currency\": \"EUR\",\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\": \"4349 9401 9900 4549\",\r\n \"card_exp_month\": \"05\",\r\n \"card_exp_year\": \"26\",\r\n \"card_cvc\": \"396\"\r\n }\r\n },\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"three_ds\",\r\n \"setup_future_usage\": \"on_session\", \r\n \"customer\": {\r\n \"id\": \"customer123\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customer@gmail.com\",\r\n \"phone\": \"9999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"customer_id\": \"customer123\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\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 \"country\": \"BR\",\r\n \"zip\": \"94122\",\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\": \"guest@example.com\"\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\": \"BR\",\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\": \"guest@example.com\"\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 3545,\r\n \"account_name\": \"transaction_processing\"\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\": \"128.0.0.1\"\r\n },\r\n \"connector_metadata\": {\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n },\r\n \"payment_link\": false,\r\n \"payment_link_config\": { \r\n \"theme\": \"\",\r\n \"logo\": \"\",\r\n \"seller_name\": \"\",\r\n \"sdk_layout\": \"\",\r\n \"display_sdk_only\": false,\r\n \"enabled_saved_payment_method\": false\r\n },\r\n \"payment_type\": \"normal\", \r\n \"request_incremental_authorization\": false,\r\n \"merchant_order_reference_id\": \"test_ord\",\r\n \"session_expiry\": 900 \r\n}'\r\n```\r\n\r\n## Checklist\r\n\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", + "author": "mrudulvajpayee4935", + "created_at": "2025-09-19T15:44:15+00:00", + "merged_at": "2025-09-21T17:12:17+00:00", + "base_branch": "main", + "labels": [ + "C-bug" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9459", + "commits": [ + { + "sha": "5e233db91e16f3298a600d39c6d6fd8bf4e5094d", + "message": "send cvv in nexi requests", + "author": "Mrudul Vajpayee", + "date": "2025-09-19T15:36:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5e233db91e16f3298a600d39c6d6fd8bf4e5094d" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9469.json b/prs/pr_9469.json new file mode 100644 index 0000000000000000000000000000000000000000..769ebff747649ac76fc58118a37c51aedddae67b --- /dev/null +++ b/prs/pr_9469.json @@ -0,0 +1,38 @@ +{ + "number": 9469, + "title": "feat(router): Add Confirm-Intent API contract changes for split payments (v2)", + "description": "## Type of Change\r\n\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\r\n- Added `split_payment_method_data` field to `confirm-intent` call to accept a `Vec` of payment methods\r\n\r\n\"image\"\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\n\r\n\r\n## Motivation and Context\r\n\r\nCloses #9467 \r\n\r\n## How did you test it?\r\n\r\n\r\nNote: Currently the `split_payment_method_data` field is not used. This PR just adds it to the API contract. There are no behaviour changes. The field will be used in a future PR.\r\n\r\nRequest:\r\n```\r\ncurl --location 'http://localhost:8080/v2/payments/12345_pay_019975b06d2d77b0beff1a83df9a3377/confirm-intent' \\\r\n--header 'x-profile-id: pro_JSAAWLeyardnZ5iQDB4o' \\\r\n--header 'x-client-secret: cs_019975b06d407b738bb37971ce338246' \\\r\n--header 'Authorization: publishable-key=pk_dev_e098d9545be8466a9e52bfd7db41ec77,client-secret=cs_019975b06d407b738bb37971ce338246' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: pk_dev_e098d9545be8466a9e52bfd7db41ec77' \\\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 \"id\": \"12345_pay_019975b06d2d77b0beff1a83df9a3377\",\r\n \"status\": \"succeeded\",\r\n \"amount\": {\r\n \"order_amount\": 1000,\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\": 1000,\r\n \"amount_to_capture\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_captured\": 1000\r\n },\r\n \"customer_id\": \"12345_cus_019975b064727f82a64abdb387d8fd72\",\r\n \"connector\": \"adyen\",\r\n \"created\": \"2025-09-23T08:28:40.634Z\",\r\n \"modified_at\": \"2025-09-23T08:29:32.736Z\",\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\": \"GRFLWGK5NVTV7VV5\",\r\n \"connector_reference_id\": \"12345_att_019975b12e2176c2bfa32a42a67b8891\",\r\n \"merchant_connector_id\": \"mca_yON0ejlCVv7kJuPN8wRs\",\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\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", + "author": "AnuthaDev", + "created_at": "2025-09-22T07:31:00+00:00", + "merged_at": "2025-09-25T17:56:40+00:00", + "base_branch": "main", + "labels": [ + "C-feature", + "M-api-contract-changes", + "api-v2" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9469", + "commits": [ + { + "sha": "d55d8175867044bb37018ac0384c319741832749", + "message": "feat(router): Add Confirm-Intent API contract changes for split payments (v2)", + "author": "Anurag Thakur", + "date": "2025-09-22T07:06:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d55d8175867044bb37018ac0384c319741832749" + }, + { + "sha": "b0e33c4805fedf66b40dc8edf59718ede0f888d0", + "message": "Improve struct", + "author": "Anurag Thakur", + "date": "2025-09-23T07:50:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b0e33c4805fedf66b40dc8edf59718ede0f888d0" + }, + { + "sha": "71ec4dc71ef3bd650d211688421199c0763c8251", + "message": "Improve naming", + "author": "Anurag Thakur", + "date": "2025-09-23T08:35:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/71ec4dc71ef3bd650d211688421199c0763c8251" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9475.json b/prs/pr_9475.json new file mode 100644 index 0000000000000000000000000000000000000000..59b86522c79a379e40b47c538f9b04a1beb04fe1 --- /dev/null +++ b/prs/pr_9475.json @@ -0,0 +1,31 @@ +{ + "number": 9475, + "title": "feat(core): add client_auth auth type for list_blocked_payment_methods", + "description": "## Type of Change\r\n\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\nadd client_secret auth auth type for list_blocked_payment_methods\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n1. create a blocklist\r\n```\r\ncurl --location 'http://localhost:8080/blocklist' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: ______' \\\r\n--data '{\r\n \"type\": \"card_bin\",\r\n \"data\": \"424242\"\r\n}'\r\n```\r\nResponse\r\n```\r\n{\r\n \"fingerprint_id\": \"424242\",\r\n \"data_kind\": \"card_bin\",\r\n \"created_at\": \"2025-09-22T11:25:25.775Z\"\r\n}\r\n```\r\n\r\n\r\n2. List using client secret\r\n```\r\ncurl --location 'http://localhost:8080/blocklist?data_kind=card_bin&client_secret=______' \\\r\n--header 'api-key: ____'\r\n```\r\n\r\nResponse\r\n```\r\n[\r\n {\r\n \"fingerprint_id\": \"424242\",\r\n \"data_kind\": \"card_bin\",\r\n \"created_at\": \"2025-09-22T11:25:25.775Z\"\r\n }\r\n]\r\n```\r\n\r\n\r\n## Checklist\r\n\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", + "author": "swangi-kumari", + "created_at": "2025-09-22T10:16:56+00:00", + "merged_at": "2025-09-22T18:44:08+00:00", + "base_branch": "main", + "labels": [ + "A-core", + "C-feature", + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9475", + "commits": [ + { + "sha": "03ea1bc24d564c50c810aa63459765ddc0e0f911", + "message": "feat: add client_auth auth type for list_blocked_payment_methods", + "author": "Swangi Kumari", + "date": "2025-09-22T10:16:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/03ea1bc24d564c50c810aa63459765ddc0e0f911" + }, + { + "sha": "4f4c74c034302d31c61883032ca60b2a8f07e30b", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-09-22T11:02:30+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4f4c74c034302d31c61883032ca60b2a8f07e30b" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9566.json b/prs/pr_9566.json new file mode 100644 index 0000000000000000000000000000000000000000..24dfdfe904631ea772955bfe87deeca569899125 --- /dev/null +++ b/prs/pr_9566.json @@ -0,0 +1,88 @@ +{ + "number": 9566, + "title": "feat(connector): [Gigadat] Implement interac payouts", + "description": "## Type of Change\r\n\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 Implement Interac payouts\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\nNot tested as we don't have creds\r\n\r\n\r\n## Checklis\r\n\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", + "author": "swangi-kumari", + "created_at": "2025-09-25T13:39:34+00:00", + "merged_at": "2025-10-01T09:32:28+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "C-feature", + "M-api-contract-changes", + "Alpha" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9566", + "commits": [ + { + "sha": "046cc9ff45f0a4feb30268cf9342b41bc2ea6d0b", + "message": "feat: impl interac payouts", + "author": "Swangi Kumari", + "date": "2025-09-25T13:38:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/046cc9ff45f0a4feb30268cf9342b41bc2ea6d0b" + }, + { + "sha": "268d95ef2fa59ac8351770735df2999693c5fb2a", + "message": "feat: remove comments", + "author": "Swangi Kumari", + "date": "2025-09-25T14:07:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/268d95ef2fa59ac8351770735df2999693c5fb2a" + }, + { + "sha": "f25639bcbd46713bee56854083fec58a5202da43", + "message": "refactor: refactor", + "author": "Swangi Kumari", + "date": "2025-09-25T14:22:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f25639bcbd46713bee56854083fec58a5202da43" + }, + { + "sha": "2c3da28001555b10429f02c0f9492b3b60765717", + "message": "Merge remote-tracking branch 'origin' into gigadat-payout", + "author": "Swangi Kumari", + "date": "2025-09-26T06:54:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2c3da28001555b10429f02c0f9492b3b60765717" + }, + { + "sha": "40f8eb2d824503f6754b36c040c35413911f9888", + "message": "refactor: refactor", + "author": "Swangi Kumari", + "date": "2025-09-26T07:53:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/40f8eb2d824503f6754b36c040c35413911f9888" + }, + { + "sha": "085dddaf3a45cd9f31904a3d3b188e765429b311", + "message": "refactor: resolve comments", + "author": "Swangi Kumari", + "date": "2025-09-26T10:55:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/085dddaf3a45cd9f31904a3d3b188e765429b311" + }, + { + "sha": "3dbf26fdf98b4cb43a704f00c3d1550302de6091", + "message": "refactor: resolve conflicts", + "author": "Swangi Kumari", + "date": "2025-09-28T18:19:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3dbf26fdf98b4cb43a704f00c3d1550302de6091" + }, + { + "sha": "3d9fb677780ef7441a4c30febecc1895ebba3c56", + "message": "git", + "author": "Swangi Kumari", + "date": "2025-09-30T11:21:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3d9fb677780ef7441a4c30febecc1895ebba3c56" + }, + { + "sha": "0fa46398b598a98a563b3f64d5001c1e64c61238", + "message": "Merge remote-tracking branch 'origin' into gigadat-payout", + "author": "Swangi Kumari", + "date": "2025-10-01T06:19:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0fa46398b598a98a563b3f64d5001c1e64c61238" + }, + { + "sha": "6903c630cf536805ded4ecac83309fe41cc5108c", + "message": "refactor: conflicts", + "author": "Swangi Kumari", + "date": "2025-10-01T06:28:39+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6903c630cf536805ded4ecac83309fe41cc5108c" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9571.json b/prs/pr_9571.json new file mode 100644 index 0000000000000000000000000000000000000000..6f1df98d921375741abb1f2d89a167fd0c64f1ef --- /dev/null +++ b/prs/pr_9571.json @@ -0,0 +1,74 @@ +{ + "number": 9571, + "title": "refactor(core): introduce new field `cardFundingSource` to `GooglePayPaymentMethodData`", + "description": "## Type of Change\r\n\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\r\n\r\ngoogle recently [introduced](https://developers.google.com/pay/api/web/reference/response-objects#CardInfo) new field called `cardFundingSource`. It is an upcoming gpay api change\r\n\r\nit takes an enum:\r\n\r\n- `UNKNOWN`\r\n- `CREDIT`\r\n- `DEBIT`\r\n- `PREPAID`\r\n\r\ngoogle has mentioned it on their api reference that this info will be `none` on production until q4 of 2025.\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\nthis new information will enable us to implement more sophisticated business logic such as routing, analytics, fraud management etc, tailored to different card types.\r\n\r\ncloses https://github.com/juspay/hyperswitch/issues/9570\r\n\r\n## How did you test it?\r\n\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/payments/pay_P9LfwQUR2raIVIvvY1pb/confirm' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_uDP0kqyLTXnlN5jYassJphQYXWAJEywH4BSkKQXtJoOYLCs71FGNCifuORqq9w2q' \\\r\n--data '{\r\n\t\"confirm\": true,\r\n\t\"payment_method\": \"wallet\",\r\n\t\"payment_method_type\": \"google_pay\",\r\n\t\"payment_method_data\": {\r\n\t \"wallet\": {\r\n\t \"google_pay\": {\r\n\t \"description\": \"Visa \u2022\u2022\u2022\u2022 1111\",\r\n\t \"tokenization_data\": {\r\n\t \"type\": \"PAYMENT_GATEWAY\",\r\n\t \"token\": \"{\\\"signature\\\":\\\"MEUCIAT1vH7oE0bc1FR...\"\r\n\t },\r\n\t \"type\": \"CARD\",\r\n\t \"info\": {\r\n\t \"card_network\": \"VISA\",\r\n\t \"card_details\": \"1111\"\r\n\t }\r\n\t }\r\n\t }\r\n\t},\r\n\t\"browser_info\": {\r\n\t\t\"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\t\t\"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n\t\t\"language\": \"nl-NL\",\r\n\t\t\"color_depth\": 24,\r\n\t\t\"screen_height\": 723,\r\n\t\t\"screen_width\": 1536,\r\n\t\t\"time_zone\": 0,\r\n\t\t\"java_enabled\": true,\r\n\t\t\"java_script_enabled\": true,\r\n\t\t\"ip_address\": \"127.0.0.1\"\r\n\t},\r\n\t\"billing\": {\r\n\t\t\"address\": {\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\"\r\n\t\t}\r\n\t},\r\n\t\"shipping\": {\r\n\t\t\"address\": {\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\"\r\n\t\t}\r\n\t}\r\n}'\r\n```\r\n```json\r\n{\r\n\t\"payment_id\": \"pay_P9LfwQUR2raIVIvvY1pb\",\r\n\t\"merchant_id\": \"postman_merchant_GHAction_1758879946\",\r\n\t\"status\": \"succeeded\",\r\n\t\"amount\": 1000,\r\n\t\"net_amount\": 1000,\r\n\t\"shipping_cost\": null,\r\n\t\"amount_capturable\": 0,\r\n\t\"amount_received\": 1000,\r\n\t\"connector\": \"cybersource\",\r\n\t\"client_secret\": \"pay_P9LfwQUR2raIVIvvY1pb_secret_NWAWTxJGdQ0z1OAj5wAZ\",\r\n\t\"created\": \"2025-09-26T09:45:52.604Z\",\r\n\t\"currency\": \"USD\",\r\n\t\"customer_id\": \"StripeCustomer\",\r\n\t\"customer\": {\r\n\t\t\"id\": \"StripeCustomer\",\r\n\t\t\"name\": \"John Doe\",\r\n\t\t\"email\": \"likhin.bopanna@gmail.com\",\r\n\t\t\"phone\": \"999999999\",\r\n\t\t\"phone_country_code\": \"+65\"\r\n\t},\r\n\t\"description\": \"Its my first payment request\",\r\n\t\"refunds\": null,\r\n\t\"disputes\": null,\r\n\t\"mandate_id\": null,\r\n\t\"mandate_data\": null,\r\n\t\"setup_future_usage\": null,\r\n\t\"off_session\": null,\r\n\t\"capture_on\": null,\r\n\t\"capture_method\": \"automatic\",\r\n\t\"payment_method\": \"wallet\",\r\n\t\"payment_method_data\": {\r\n\t\t\"wallet\": {\r\n\t\t\t\"google_pay\": {\r\n\t\t\t\t\"last4\": \"1111\",\r\n\t\t\t\t\"card_network\": \"VISA\",\r\n\t\t\t\t\"type\": \"CARD\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"billing\": null\r\n\t},\r\n\t\"payment_token\": null,\r\n\t\"shipping\": {\r\n\t\t\"address\": {\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\",\r\n\t\t\t\"origin_zip\": null\r\n\t\t},\r\n\t\t\"phone\": null,\r\n\t\t\"email\": null\r\n\t},\r\n\t\"billing\": {\r\n\t\t\"address\": {\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\",\r\n\t\t\t\"origin_zip\": null\r\n\t\t},\r\n\t\t\"phone\": null,\r\n\t\t\"email\": null\r\n\t},\r\n\t\"order_details\": null,\r\n\t\"email\": \"likhin.bopanna@gmail.com\",\r\n\t\"name\": \"John Doe\",\r\n\t\"phone\": \"999999999\",\r\n\t\"return_url\": \"https://google.com/\",\r\n\t\"authentication_type\": \"no_three_ds\",\r\n\t\"statement_descriptor_name\": \"joseph\",\r\n\t\"statement_descriptor_suffix\": \"JS\",\r\n\t\"next_action\": null,\r\n\t\"cancellation_reason\": null,\r\n\t\"error_code\": null,\r\n\t\"error_message\": null,\r\n\t\"unified_code\": null,\r\n\t\"unified_message\": null,\r\n\t\"payment_experience\": null,\r\n\t\"payment_method_type\": \"google_pay\",\r\n\t\"connector_label\": \"cybersource_US_default_default\",\r\n\t\"business_country\": \"US\",\r\n\t\"business_label\": \"default\",\r\n\t\"business_sub_label\": null,\r\n\t\"allowed_payment_method_types\": null,\r\n\t\"ephemeral_key\": null,\r\n\t\"manual_retry_allowed\": null,\r\n\t\"connector_transaction_id\": \"7588799552276876103812\",\r\n\t\"frm_message\": null,\r\n\t\"metadata\": {\r\n\t\t\"udf1\": \"value1\",\r\n\t\t\"login_date\": \"2019-09-10T10:11:12Z\",\r\n\t\t\"new_customer\": \"true\"\r\n\t},\r\n\t\"connector_metadata\": null,\r\n\t\"feature_metadata\": {\r\n\t\t\"redirect_response\": null,\r\n\t\t\"search_tags\": null,\r\n\t\t\"apple_pay_recurring_details\": null,\r\n\t\t\"gateway_system\": \"direct\"\r\n\t},\r\n\t\"reference_id\": \"pay_P9LfwQUR2raIVIvvY1pb_1\",\r\n\t\"payment_link\": null,\r\n\t\"profile_id\": \"pro_QHOqYvAjzpmM3wQpjd2E\",\r\n\t\"surcharge_details\": null,\r\n\t\"attempt_count\": 1,\r\n\t\"merchant_decision\": null,\r\n\t\"merchant_connector_id\": \"mca_N8JtdITxcIuQ0D1tM1Uh\",\r\n\t\"incremental_authorization_allowed\": false,\r\n\t\"authorization_count\": null,\r\n\t\"incremental_authorizations\": null,\r\n\t\"external_authentication_details\": null,\r\n\t\"external_3ds_authentication_attempted\": false,\r\n\t\"expires_on\": \"2025-09-26T10:00:52.604Z\",\r\n\t\"fingerprint\": null,\r\n\t\"browser_info\": {\r\n\t\t\"os_type\": null,\r\n\t\t\"referer\": null,\r\n\t\t\"language\": \"nl-NL\",\r\n\t\t\"time_zone\": 0,\r\n\t\t\"ip_address\": \"127.0.0.1\",\r\n\t\t\"os_version\": null,\r\n\t\t\"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\t\t\"color_depth\": 24,\r\n\t\t\"device_model\": null,\r\n\t\t\"java_enabled\": true,\r\n\t\t\"screen_width\": 1536,\r\n\t\t\"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n\t\t\"screen_height\": 723,\r\n\t\t\"accept_language\": \"en\",\r\n\t\t\"java_script_enabled\": true\r\n\t},\r\n\t\"payment_channel\": null,\r\n\t\"payment_method_id\": null,\r\n\t\"network_transaction_id\": \"016153570198200\",\r\n\t\"payment_method_status\": null,\r\n\t\"updated\": \"2025-09-26T09:45:56.234Z\",\r\n\t\"split_payments\": null,\r\n\t\"frm_metadata\": null,\r\n\t\"extended_authorization_applied\": null,\r\n\t\"capture_before\": null,\r\n\t\"merchant_order_reference_id\": null,\r\n\t\"order_tax_amount\": null,\r\n\t\"connector_mandate_id\": null,\r\n\t\"card_discovery\": null,\r\n\t\"force_3ds_challenge\": false,\r\n\t\"force_3ds_challenge_trigger\": false,\r\n\t\"issuer_error_code\": null,\r\n\t\"issuer_error_message\": null,\r\n\t\"is_iframe_redirection_enabled\": null,\r\n\t\"whole_connector_response\": null,\r\n\t\"enable_partial_authorization\": null,\r\n\t\"enable_overcapture\": null,\r\n\t\"is_overcapture_enabled\": null,\r\n\t\"network_details\": null\r\n}\r\n```\r\n\r\nnuvei:\r\n\r\n```bash\r\n{\r\n \"amount\": 1,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"customer_id\": \"nithxxinn\",\r\n \"return_url\": \"https://www.google.com\",\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"wallet\",\r\n \"payment_method_type\": \"google_pay\",\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\": \"UA\",\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 \"email\": \"nithin@test.com\"\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 \"wallet\": {\r\n \"google_pay\": {\r\n \"description\": \"SG Visa Success: Visa\u2006\u2022\u2022\u2022\u2022\u20061390\",\r\n \"info\": {\r\n \"assurance_details\": {\r\n \"account_verified\": true,\r\n \"card_holder_authenticated\": false\r\n },\r\n \"card_details\": \"1390\",\r\n \"card_funding_source\": \"CREDIT\",\r\n \"card_network\": \"VISA\"\r\n },\r\n \"tokenization_data\": {\r\n \"token\": \"{...}\",\r\n \"type\": \"PAYMENT_GATEWAY\"\r\n },\r\n \"type\": \"CARD\"\r\n }\r\n }\r\n }\r\n\t}\r\n\r\n```\r\n```json\r\n{\r\n \"payment_id\": \"pay_BHX5HsGxx8GWTqhtxv55\",\r\n \"merchant_id\": \"merchant_1758885759\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1,\r\n \"net_amount\": 1,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 1,\r\n \"connector\": \"nuvei\",\r\n \"client_secret\": \"pay_BHX5HsGxx8GWTqhtxv55_secret_9ZgxOEN1NokJgukDDUKe\",\r\n \"created\": \"2025-09-26T11:24:42.509Z\",\r\n \"currency\": \"EUR\",\r\n \"customer_id\": \"nithxxinn\",\r\n \"customer\": {\r\n \"id\": \"nithxxinn\",\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\": 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 \"google_pay\": {\r\n \"last4\": \"1390\",\r\n \"card_network\": \"VISA\",\r\n \"type\": \"CARD\"\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\": \"UA\",\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\": \"nithin@test.com\"\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\": \"https://www.google.com/\",\r\n \"authentication_type\": \"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\": \"google_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\": \"nithxxinn\",\r\n \"created_at\": 1758885882,\r\n \"expires\": 1758889482,\r\n \"secret\": \"epk_31a09b5d224f4aea8bf6a114c6b7acd9\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"7110000000017459005\",\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\": \"9201058111\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_IOIVxznj4AqQbMy44z1p\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_MDGr4n22wQXL1OQXay79\",\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-26T11:39:42.509Z\",\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\": \"483297487231504\",\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-09-26T11:24:44.551Z\",\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\r\n\"image\"\r\n\r\nafter unmasking, this data is being sent to the connector:\r\n\r\n\"image\"\r\n\r\n\r\n## Checklist\r\n\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `just clippy && just clippy_v2`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n\r\n", + "author": "pixincreate", + "created_at": "2025-09-25T18:48:22+00:00", + "merged_at": "2025-10-01T09:57:43+00:00", + "base_branch": "main", + "labels": [ + "A-core", + "C-refactor", + "M-api-contract-changes", + "A-payments" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9571", + "commits": [ + { + "sha": "88aa1be901d3e8deca61c7603ea119dbc6b38ef2", + "message": "refactor(googlepay): introduce new field `cardFundingSource` to `GooglePayPaymentMethodData`", + "author": "PiX", + "date": "2025-09-25T18:22:13+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/88aa1be901d3e8deca61c7603ea119dbc6b38ef2" + }, + { + "sha": "6b36ec0647d1ffc74aa9b96b123a3b380dae5650", + "message": "chore: openapi spec", + "author": "PiX", + "date": "2025-09-25T18:47:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6b36ec0647d1ffc74aa9b96b123a3b380dae5650" + }, + { + "sha": "731584b930e1f74715d0a53e547a8c22d5025736", + "message": "refactor: pass `card_funding_source` for nuvei as they're known to expect all data", + "author": "PiX", + "date": "2025-09-26T11:41:42+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/731584b930e1f74715d0a53e547a8c22d5025736" + }, + { + "sha": "e0555e7fbec18d71d4244cfd456700324b141108", + "message": "refactor: move the enum to common_enums crate for implicity", + "author": "PiX", + "date": "2025-09-26T16:46:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e0555e7fbec18d71d4244cfd456700324b141108" + }, + { + "sha": "c4ccf69c8df77002df909862523e491bda593027", + "message": "fix: handle unknown variants gracefully by defaulting to `Unknown`", + "author": "PiX", + "date": "2025-09-29T07:43:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c4ccf69c8df77002df909862523e491bda593027" + }, + { + "sha": "4247b8e05e9de2ecc06ec11b29079d7a86ab4ea0", + "message": "chore: fix openapi", + "author": "PiX", + "date": "2025-09-29T10:19:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4247b8e05e9de2ecc06ec11b29079d7a86ab4ea0" + }, + { + "sha": "dec003251dc8435c998355d60b7dcdee71780110", + "message": "chore: fix openapi", + "author": "PiX", + "date": "2025-09-29T11:56:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/dec003251dc8435c998355d60b7dcdee71780110" + }, + { + "sha": "0916c06b4c6925cab669b456f110dd5996aa8a07", + "message": "Merge branch 'main' of github.com:juspay/hyperswitch into core/googlepay-new-field\n\n* 'main' of github.com:juspay/hyperswitch: (21 commits)\n feat(payments): add tokenization action handling to payment flow for braintree (#9506)\n feat(connector): [Loonio] Add template code (#9586)\n fix(connector): [paysafe] make `eci_indicator` field optional (#9591)\n fix(core): add should_call_connector_customer function to connector specification (#9569)\n feat(ucs): Add profile ID to lineage tracking in Unified Connector Service (#9559)\n feat(core): Add support for partial auth in proxy payments [V2] (#9503)\n chore(version): 2025.09.30.0\n fix(authorizedotnet): refund via ucs missing connector_metadata (#9581)\n feat(auth): add new authentication to communicate between microservices (#9547)\n Fix: Ideal Giropay Country Currency Config (#9552)\n feat(connector): [ACI] cypress added (#9502)\n feat(connector): Add Peachpayments Cypress (#9573)\n chore(version): 2025.09.29.0\n feat(finix): template code (#9557)\n feat(cypress): add cypress test-cases for manual retry (#9505)\n feat(core): update additional payment method data in psync response (#9519)\n feat(connector): [Checkout] Add Google Pay Predecrypt Flow (#9130)\n feat(framework): Added smithy, smithy-core and smithy-generator crates (#9249)\n fix(core): add request_extended_authorization in the payment attempt and populate it in the payment response (#9492)\n chore(version): 2025.09.26.0\n ...", + "author": "PiX", + "date": "2025-09-30T08:19:18+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0916c06b4c6925cab669b456f110dd5996aa8a07" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9648.json b/prs/pr_9648.json new file mode 100644 index 0000000000000000000000000000000000000000..c8e7f5c0ca5366a287a1ca22fe696c83b42657ea --- /dev/null +++ b/prs/pr_9648.json @@ -0,0 +1,44 @@ +{ + "number": 9648, + "title": "feat(connector): [tesouro] apple pay", + "description": "## Type of Change\r\n\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\r\n\r\nthis pr introduces apple pay hyperswitch decryption flow (simplified and manual) and predecrypt flow to tesouro connector.\r\nconnector does not support connector decryption flow. so, we throw an error in that case stating decrypted data is missing.\r\ntesouro does not have any required fields. neither do they have mentioned the supported countries and currencies on their website.\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\napple pay implementation for tesouro.\r\n\r\n## How did you test it?\r\n\r\n\r\n
\r\n\r\nPayment Initiate\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'Accept-Language: ja' \\\r\n--header 'api-key: dev_hKUjE6W7xfZ67kfdf8AWPhxxcwvfnjE4i44ZlWKg99tN8cgLZKEmH2B3kjiSfC86' \\\r\n--data-raw '{\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"confirm\": false,\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"email\": \"likhin.bopanna@gmail.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 \"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```json\r\n{\r\n\t\"payment_id\": \"pay_8U1u9AScGkdqId2cw90j\",\r\n\t\"merchant_id\": \"postman_merchant_GHAction_1759343566\",\r\n\t\"status\": \"requires_payment_method\",\r\n\t\"amount\": 1000,\r\n\t\"net_amount\": 1000,\r\n\t\"shipping_cost\": null,\r\n\t\"amount_capturable\": 0,\r\n\t\"amount_received\": null,\r\n\t\"connector\": null,\r\n\t\"client_secret\": \"pay_8U1u9AScGkdqId2cw90j_secret_RJ0E2vpWdVEFOw8qCG75\",\r\n\t\"created\": \"2025-10-01T18:41:45.936Z\",\r\n\t\"currency\": \"USD\",\r\n\t\"customer_id\": \"StripeCustomer\",\r\n\t\"customer\": {\r\n\t\t\"id\": \"StripeCustomer\",\r\n\t\t\"name\": \"John Doe\",\r\n\t\t\"email\": \"likhin.bopanna@gmail.com\",\r\n\t\t\"phone\": \"999999999\",\r\n\t\t\"phone_country_code\": \"+65\"\r\n\t},\r\n\t\"description\": \"Its my first payment request\",\r\n\t\"refunds\": null,\r\n\t\"disputes\": null,\r\n\t\"mandate_id\": null,\r\n\t\"mandate_data\": null,\r\n\t\"setup_future_usage\": null,\r\n\t\"off_session\": null,\r\n\t\"capture_on\": null,\r\n\t\"capture_method\": \"automatic\",\r\n\t\"payment_method\": null,\r\n\t\"payment_method_data\": null,\r\n\t\"payment_token\": null,\r\n\t\"shipping\": null,\r\n\t\"billing\": null,\r\n\t\"order_details\": null,\r\n\t\"email\": \"likhin.bopanna@gmail.com\",\r\n\t\"name\": \"John Doe\",\r\n\t\"phone\": \"999999999\",\r\n\t\"return_url\": \"https://duck.com/\",\r\n\t\"authentication_type\": \"no_three_ds\",\r\n\t\"statement_descriptor_name\": \"joseph\",\r\n\t\"statement_descriptor_suffix\": \"JS\",\r\n\t\"next_action\": null,\r\n\t\"cancellation_reason\": null,\r\n\t\"error_code\": null,\r\n\t\"error_message\": null,\r\n\t\"unified_code\": null,\r\n\t\"unified_message\": null,\r\n\t\"payment_experience\": null,\r\n\t\"payment_method_type\": null,\r\n\t\"connector_label\": null,\r\n\t\"business_country\": \"US\",\r\n\t\"business_label\": \"default\",\r\n\t\"business_sub_label\": null,\r\n\t\"allowed_payment_method_types\": null,\r\n\t\"ephemeral_key\": {\r\n\t\t\"customer_id\": \"StripeCustomer\",\r\n\t\t\"created_at\": 1759344105,\r\n\t\t\"expires\": 1759347705,\r\n\t\t\"secret\": \"epk_2c9e687b5cb04ed9a24331dba7ea46e4\"\r\n\t},\r\n\t\"manual_retry_allowed\": null,\r\n\t\"connector_transaction_id\": null,\r\n\t\"frm_message\": null,\r\n\t\"metadata\": {\r\n\t\t\"udf1\": \"value1\",\r\n\t\t\"login_date\": \"2019-09-10T10:11:12Z\",\r\n\t\t\"new_customer\": \"true\"\r\n\t},\r\n\t\"connector_metadata\": null,\r\n\t\"feature_metadata\": null,\r\n\t\"reference_id\": null,\r\n\t\"payment_link\": null,\r\n\t\"profile_id\": \"pro_ygYiPJT37sDESMdrJARc\",\r\n\t\"surcharge_details\": null,\r\n\t\"attempt_count\": 1,\r\n\t\"merchant_decision\": null,\r\n\t\"merchant_connector_id\": null,\r\n\t\"incremental_authorization_allowed\": null,\r\n\t\"authorization_count\": null,\r\n\t\"incremental_authorizations\": null,\r\n\t\"external_authentication_details\": null,\r\n\t\"external_3ds_authentication_attempted\": false,\r\n\t\"expires_on\": \"2025-10-01T18:56:45.936Z\",\r\n\t\"fingerprint\": null,\r\n\t\"browser_info\": null,\r\n\t\"payment_channel\": null,\r\n\t\"payment_method_id\": null,\r\n\t\"network_transaction_id\": null,\r\n\t\"payment_method_status\": null,\r\n\t\"updated\": \"2025-10-01T18:41:45.966Z\",\r\n\t\"split_payments\": null,\r\n\t\"frm_metadata\": null,\r\n\t\"extended_authorization_applied\": null,\r\n\t\"request_extended_authorization\": null,\r\n\t\"capture_before\": null,\r\n\t\"merchant_order_reference_id\": null,\r\n\t\"order_tax_amount\": null,\r\n\t\"connector_mandate_id\": null,\r\n\t\"card_discovery\": null,\r\n\t\"force_3ds_challenge\": false,\r\n\t\"force_3ds_challenge_trigger\": false,\r\n\t\"issuer_error_code\": null,\r\n\t\"issuer_error_message\": null,\r\n\t\"is_iframe_redirection_enabled\": null,\r\n\t\"whole_connector_response\": null,\r\n\t\"enable_partial_authorization\": null,\r\n\t\"enable_overcapture\": null,\r\n\t\"is_overcapture_enabled\": null,\r\n\t\"network_details\": null,\r\n\t\"is_stored_credential\": null,\r\n\t\"mit_category\": null\r\n}\r\n```\r\n\r\n
\r\n\r\n
\r\n\r\nSession Call\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/payments/session_tokens' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: pk_dev_ab34d6e61c124a7c90553f1a03895e7f' \\\r\n--data '{\r\n \"payment_id\": \"pay_8U1u9AScGkdqId2cw90j\",\r\n \"wallets\": [],\r\n \"client_secret\": \"pay_8U1u9AScGkdqId2cw90j_secret_RJ0E2vpWdVEFOw8qCG75\"\r\n}'\r\n```\r\n```json\r\n{\r\n\t\"payment_id\": \"pay_8U1u9AScGkdqId2cw90j\",\r\n\t\"client_secret\": \"pay_8U1u9AScGkdqId2cw90j_secret_RJ0E2vpWdVEFOw8qCG75\",\r\n\t\"session_token\": [\r\n\t\t{\r\n\t\t\t\"wallet_name\": \"apple_pay\",\r\n\t\t\t\"session_token_data\": {\r\n\t\t\t\t\"epoch_timestamp\": 1759344108289,\r\n\t\t\t\t\"expires_at\": 1759347708289,\r\n\t\t\t\t\"merchant_session_identifier\": \"SS...F9\",\r\n\t\t\t\t\"nonce\": \"11fd4a9e\",\r\n\t\t\t\t\"merchant_identifier\": \"8C...1C4\",\r\n\t\t\t\t\"domain_name\": \"hyperswitch.app\",\r\n\t\t\t\t\"display_name\": \"apple pay\",\r\n\t\t\t\t\"signature\": \"30...00\",\r\n\t\t\t\t\"operational_analytics_identifier\": \"apple pay:8C...C4\",\r\n\t\t\t\t\"retries\": 0,\r\n\t\t\t\t\"psp_id\": \"8C...C4\"\r\n\t\t\t},\r\n\t\t\t\"payment_request_data\": {\r\n\t\t\t\t\"country_code\": \"US\",\r\n\t\t\t\t\"currency_code\": \"USD\",\r\n\t\t\t\t\"total\": {\r\n\t\t\t\t\t\"label\": \"applepay\",\r\n\t\t\t\t\t\"type\": \"final\",\r\n\t\t\t\t\t\"amount\": \"10.00\"\r\n\t\t\t\t},\r\n\t\t\t\t\"merchant_capabilities\": [\r\n\t\t\t\t\t\"supports3DS\"\r\n\t\t\t\t],\r\n\t\t\t\t\"supported_networks\": [\r\n\t\t\t\t\t\"visa\",\r\n\t\t\t\t\t\"masterCard\",\r\n\t\t\t\t\t\"amex\",\r\n\t\t\t\t\t\"discover\"\r\n\t\t\t\t],\r\n\t\t\t\t\"merchant_identifier\": \"merchant.lol\"\r\n\t\t\t},\r\n\t\t\t\"connector\": \"tesouro\",\r\n\t\t\t\"delayed_session_token\": false,\r\n\t\t\t\"sdk_next_action\": {\r\n\t\t\t\t\"next_action\": \"confirm\"\r\n\t\t\t},\r\n\t\t\t\"connector_reference_id\": null,\r\n\t\t\t\"connector_sdk_public_key\": null,\r\n\t\t\t\"connector_merchant_id\": null\r\n\t\t}\r\n\t]\r\n}\r\n```\r\n\r\n
\r\n\r\n
\r\n\r\nConfirm (encrypted)\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/payments/pay_8U1u9AScGkdqId2cw90j/confirm' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_hKUjE6W7xfZ67kfdf8AWPhxxcwvfnjE4i44ZlWKg99tN8cgLZKEmH2B3kjiSfC86' \\\r\n--data '{\r\n\t\"confirm\": true,\r\n\t\"payment_method\": \"wallet\",\r\n\t\"payment_method_type\": \"apple_pay\",\r\n\t\"payment_method_data\": {\r\n\t\t\"wallet\": {\r\n\t\t\t\"apple_pay\": {\r\n\t\t\t\t\"payment_data\": \"eyJ...0=\",\r\n\t\t\t\t\"payment_method\": {\r\n\t\t\t\t\t\"display_name\": \"Visa 4228\",\r\n\t\t\t\t\t\"network\": \"Visa\",\r\n\t\t\t\t\t\"type\": \"debit\"\r\n\t\t\t\t},\r\n\t\t\t\t\"transaction_identifier\": \"a0...4a\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"billing\": null\r\n\t},\r\n\t\"browser_info\": {\r\n\t\t\"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\t\t\"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n\t\t\"language\": \"nl-NL\",\r\n\t\t\"color_depth\": 24,\r\n\t\t\"screen_height\": 723,\r\n\t\t\"screen_width\": 1536,\r\n\t\t\"time_zone\": 0,\r\n\t\t\"java_enabled\": true,\r\n\t\t\"java_script_enabled\": true,\r\n\t\t\"ip_address\": \"127.0.0.1\"\r\n\t},\r\n\t\"billing\": {\r\n\t\t\"address\": {\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\"\r\n\t\t}\r\n\t},\r\n\t\"shipping\": {\r\n\t\t\"address\": {\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\"\r\n\t\t}\r\n\t}\r\n}'\r\n```\r\n```json\r\n{\r\n\t\"payment_id\": \"pay_8U1u9AScGkdqId2cw90j\",\r\n\t\"merchant_id\": \"postman_merchant_GHAction_1759343566\",\r\n\t\"status\": \"succeeded\",\r\n\t\"amount\": 1000,\r\n\t\"net_amount\": 1000,\r\n\t\"shipping_cost\": null,\r\n\t\"amount_capturable\": 0,\r\n\t\"amount_received\": 1000,\r\n\t\"connector\": \"tesouro\",\r\n\t\"client_secret\": \"pay_8U1u9AScGkdqId2cw90j_secret_RJ0E2vpWdVEFOw8qCG75\",\r\n\t\"created\": \"2025-10-01T18:41:45.936Z\",\r\n\t\"currency\": \"USD\",\r\n\t\"customer_id\": \"StripeCustomer\",\r\n\t\"customer\": {\r\n\t\t\"id\": \"StripeCustomer\",\r\n\t\t\"name\": \"John Doe\",\r\n\t\t\"email\": \"likhin.bopanna@gmail.com\",\r\n\t\t\"phone\": \"999999999\",\r\n\t\t\"phone_country_code\": \"+65\"\r\n\t},\r\n\t\"description\": \"Its my first payment request\",\r\n\t\"refunds\": null,\r\n\t\"disputes\": null,\r\n\t\"mandate_id\": null,\r\n\t\"mandate_data\": null,\r\n\t\"setup_future_usage\": null,\r\n\t\"off_session\": null,\r\n\t\"capture_on\": null,\r\n\t\"capture_method\": \"automatic\",\r\n\t\"payment_method\": \"wallet\",\r\n\t\"payment_method_data\": {\r\n\t\t\"wallet\": {\r\n\t\t\t\"apple_pay\": {\r\n\t\t\t\t\"last4\": \"4228\",\r\n\t\t\t\t\"card_network\": \"Visa\",\r\n\t\t\t\t\"type\": \"debit\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"billing\": null\r\n\t},\r\n\t\"payment_token\": null,\r\n\t\"shipping\": {\r\n\t\t\"address\": {\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\",\r\n\t\t\t\"origin_zip\": null\r\n\t\t},\r\n\t\t\"phone\": null,\r\n\t\t\"email\": null\r\n\t},\r\n\t\"billing\": {\r\n\t\t\"address\": {\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\",\r\n\t\t\t\"origin_zip\": null\r\n\t\t},\r\n\t\t\"phone\": null,\r\n\t\t\"email\": null\r\n\t},\r\n\t\"order_details\": null,\r\n\t\"email\": \"likhin.bopanna@gmail.com\",\r\n\t\"name\": \"John Doe\",\r\n\t\"phone\": \"999999999\",\r\n\t\"return_url\": \"https://duck.com/\",\r\n\t\"authentication_type\": \"no_three_ds\",\r\n\t\"statement_descriptor_name\": \"joseph\",\r\n\t\"statement_descriptor_suffix\": \"JS\",\r\n\t\"next_action\": null,\r\n\t\"cancellation_reason\": null,\r\n\t\"error_code\": null,\r\n\t\"error_message\": null,\r\n\t\"unified_code\": null,\r\n\t\"unified_message\": null,\r\n\t\"payment_experience\": null,\r\n\t\"payment_method_type\": \"apple_pay\",\r\n\t\"connector_label\": \"tesouro_US_default\",\r\n\t\"business_country\": \"US\",\r\n\t\"business_label\": \"default\",\r\n\t\"business_sub_label\": null,\r\n\t\"allowed_payment_method_types\": null,\r\n\t\"ephemeral_key\": null,\r\n\t\"manual_retry_allowed\": null,\r\n\t\"connector_transaction_id\": \"51f7dc0d-9ef6-11f0-9688-dcdaa6fb1c39\",\r\n\t\"frm_message\": null,\r\n\t\"metadata\": {\r\n\t\t\"udf1\": \"value1\",\r\n\t\t\"login_date\": \"2019-09-10T10:11:12Z\",\r\n\t\t\"new_customer\": \"true\"\r\n\t},\r\n\t\"connector_metadata\": null,\r\n\t\"feature_metadata\": {\r\n\t\t\"redirect_response\": null,\r\n\t\t\"search_tags\": null,\r\n\t\t\"apple_pay_recurring_details\": null,\r\n\t\t\"gateway_system\": \"direct\"\r\n\t},\r\n\t\"reference_id\": null,\r\n\t\"payment_link\": null,\r\n\t\"profile_id\": \"pro_ygYiPJT37sDESMdrJARc\",\r\n\t\"surcharge_details\": null,\r\n\t\"attempt_count\": 1,\r\n\t\"merchant_decision\": null,\r\n\t\"merchant_connector_id\": \"mca_k7pfQpgEkVycrW3tJENd\",\r\n\t\"incremental_authorization_allowed\": false,\r\n\t\"authorization_count\": null,\r\n\t\"incremental_authorizations\": null,\r\n\t\"external_authentication_details\": null,\r\n\t\"external_3ds_authentication_attempted\": false,\r\n\t\"expires_on\": \"2025-10-01T18:56:45.936Z\",\r\n\t\"fingerprint\": null,\r\n\t\"browser_info\": {\r\n\t\t\"os_type\": null,\r\n\t\t\"referer\": null,\r\n\t\t\"language\": \"nl-NL\",\r\n\t\t\"time_zone\": 0,\r\n\t\t\"ip_address\": \"127.0.0.1\",\r\n\t\t\"os_version\": null,\r\n\t\t\"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\t\t\"color_depth\": 24,\r\n\t\t\"device_model\": null,\r\n\t\t\"java_enabled\": true,\r\n\t\t\"screen_width\": 1536,\r\n\t\t\"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n\t\t\"screen_height\": 723,\r\n\t\t\"accept_language\": \"en\",\r\n\t\t\"java_script_enabled\": true\r\n\t},\r\n\t\"payment_channel\": null,\r\n\t\"payment_method_id\": null,\r\n\t\"network_transaction_id\": null,\r\n\t\"payment_method_status\": null,\r\n\t\"updated\": \"2025-10-01T18:42:02.385Z\",\r\n\t\"split_payments\": null,\r\n\t\"frm_metadata\": null,\r\n\t\"extended_authorization_applied\": null,\r\n\t\"request_extended_authorization\": null,\r\n\t\"capture_before\": null,\r\n\t\"merchant_order_reference_id\": null,\r\n\t\"order_tax_amount\": null,\r\n\t\"connector_mandate_id\": null,\r\n\t\"card_discovery\": null,\r\n\t\"force_3ds_challenge\": false,\r\n\t\"force_3ds_challenge_trigger\": false,\r\n\t\"issuer_error_code\": null,\r\n\t\"issuer_error_message\": null,\r\n\t\"is_iframe_redirection_enabled\": null,\r\n\t\"whole_connector_response\": null,\r\n\t\"enable_partial_authorization\": null,\r\n\t\"enable_overcapture\": null,\r\n\t\"is_overcapture_enabled\": null,\r\n\t\"network_details\": null,\r\n\t\"is_stored_credential\": null,\r\n\t\"mit_category\": null\r\n}\r\n```\r\n\r\n
\r\n\r\n
\r\n\r\nConfirm (decrypted)\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/payments/pay_HFpibksuPOgO38jcnbBo/confirm' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_hKUjE6W7xfZ67kfdf8AWPhxxcwvfnjE4i44ZlWKg99tN8cgLZKEmH2B3kjiSfC86' \\\r\n--data '{\r\n\t\"confirm\": true,\r\n\t\"payment_method\": \"wallet\",\r\n\t\"payment_method_type\": \"apple_pay\",\r\n\t\"payment_method_data\": {\r\n\t\t\"wallet\": {\r\n\t\t\t\"apple_pay\": {\r\n\t\t\t\t\"payment_data\": {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\"application_primary_account_number\": \"5204245253050839\",\r\n\t\t\t\t\t\"application_expiration_month\": \"01\",\r\n\t\t\t\t\t\r\n\t\t\t\t\t\"application_expiration_year\": \"2030\",\r\n\t\t\t\t\t\"payment_data\": {\r\n\t\t\t\t\t\t\"online_payment_cryptogram\": \"A...A=\",\r\n\t\t\t\t\t\t\"eci_indicator\": \"1\"\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\"payment_method\": {\r\n\t\t\t\t\t\"display_name\": \"Visa 4228\",\r\n\t\t\t\t\t\r\n\t\t\t\t\t\"network\": \"Mastercard\",\r\n\t\t\t\t\t\"type\": \"debit\"\r\n\t\t\t\t},\r\n\t\t\t\t\"transaction_identifier\": \"a0...4a\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"billing\": null\r\n\t},\r\n\t\"browser_info\": {\r\n\t\t\"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\t\t\"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n\t\t\"language\": \"nl-NL\",\r\n\t\t\"color_depth\": 24,\r\n\t\t\"screen_height\": 723,\r\n\t\t\"screen_width\": 1536,\r\n\t\t\"time_zone\": 0,\r\n\t\t\"java_enabled\": true,\r\n\t\t\"java_script_enabled\": true,\r\n\t\t\"ip_address\": \"127.0.0.1\"\r\n\t},\r\n\t\"billing\": {\r\n\t\t\"address\": {\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\"\r\n\t\t}\r\n\t},\r\n\t\"shipping\": {\r\n\t\t\"address\": {\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\"\r\n\t\t}\r\n\t}\r\n}'\r\n```\r\n```json\r\n{\r\n\t\"payment_id\": \"pay_HFpibksuPOgO38jcnbBo\",\r\n\t\"merchant_id\": \"postman_merchant_GHAction_1759343566\",\r\n\t\"status\": \"succeeded\",\r\n\t\"amount\": 1000,\r\n\t\"net_amount\": 1000,\r\n\t\"shipping_cost\": null,\r\n\t\"amount_capturable\": 0,\r\n\t\"amount_received\": 1000,\r\n\t\"connector\": \"tesouro\",\r\n\t\"client_secret\": \"pay_HFpibksuPOgO38jcnbBo_secret_pMGALR8i7bktY13BeCTk\",\r\n\t\"created\": \"2025-10-01T19:20:30.669Z\",\r\n\t\"currency\": \"USD\",\r\n\t\"customer_id\": \"StripeCustomer\",\r\n\t\"customer\": {\r\n\t\t\"id\": \"StripeCustomer\",\r\n\t\t\"name\": \"John Doe\",\r\n\t\t\"email\": \"likhin.bopanna@gmail.com\",\r\n\t\t\"phone\": \"999999999\",\r\n\t\t\"phone_country_code\": \"+65\"\r\n\t},\r\n\t\"description\": \"Its my first payment request\",\r\n\t\"refunds\": null,\r\n\t\"disputes\": null,\r\n\t\"mandate_id\": null,\r\n\t\"mandate_data\": null,\r\n\t\"setup_future_usage\": null,\r\n\t\"off_session\": null,\r\n\t\"capture_on\": null,\r\n\t\"capture_method\": \"automatic\",\r\n\t\"payment_method\": \"wallet\",\r\n\t\"payment_method_data\": {\r\n\t\t\"wallet\": {\r\n\t\t\t\"apple_pay\": {\r\n\t\t\t\t\"last4\": \"4228\",\r\n\t\t\t\t\"card_network\": \"Mastercard\",\r\n\t\t\t\t\"type\": \"debit\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"billing\": null\r\n\t},\r\n\t\"payment_token\": null,\r\n\t\"shipping\": {\r\n\t\t\"address\": {\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\",\r\n\t\t\t\"origin_zip\": null\r\n\t\t},\r\n\t\t\"phone\": null,\r\n\t\t\"email\": null\r\n\t},\r\n\t\"billing\": {\r\n\t\t\"address\": {\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\",\r\n\t\t\t\"origin_zip\": null\r\n\t\t},\r\n\t\t\"phone\": null,\r\n\t\t\"email\": null\r\n\t},\r\n\t\"order_details\": null,\r\n\t\"email\": \"likhin.bopanna@gmail.com\",\r\n\t\"name\": \"John Doe\",\r\n\t\"phone\": \"999999999\",\r\n\t\"return_url\": \"https://duck.com/\",\r\n\t\"authentication_type\": \"no_three_ds\",\r\n\t\"statement_descriptor_name\": \"joseph\",\r\n\t\"statement_descriptor_suffix\": \"JS\",\r\n\t\"next_action\": null,\r\n\t\"cancellation_reason\": null,\r\n\t\"error_code\": null,\r\n\t\"error_message\": null,\r\n\t\"unified_code\": null,\r\n\t\"unified_message\": null,\r\n\t\"payment_experience\": null,\r\n\t\"payment_method_type\": \"apple_pay\",\r\n\t\"connector_label\": \"tesouro_US_default\",\r\n\t\"business_country\": \"US\",\r\n\t\"business_label\": \"default\",\r\n\t\"business_sub_label\": null,\r\n\t\"allowed_payment_method_types\": null,\r\n\t\"ephemeral_key\": null,\r\n\t\"manual_retry_allowed\": null,\r\n\t\"connector_transaction_id\": \"b42f1ccf-9efb-11f0-a1f6-231a9dfdbf4e\",\r\n\t\"frm_message\": null,\r\n\t\"metadata\": {\r\n\t\t\"udf1\": \"value1\",\r\n\t\t\"login_date\": \"2019-09-10T10:11:12Z\",\r\n\t\t\"new_customer\": \"true\"\r\n\t},\r\n\t\"connector_metadata\": null,\r\n\t\"feature_metadata\": {\r\n\t\t\"redirect_response\": null,\r\n\t\t\"search_tags\": null,\r\n\t\t\"apple_pay_recurring_details\": null,\r\n\t\t\"gateway_system\": \"direct\"\r\n\t},\r\n\t\"reference_id\": null,\r\n\t\"payment_link\": null,\r\n\t\"profile_id\": \"pro_ygYiPJT37sDESMdrJARc\",\r\n\t\"surcharge_details\": null,\r\n\t\"attempt_count\": 1,\r\n\t\"merchant_decision\": null,\r\n\t\"merchant_connector_id\": \"mca_k7pfQpgEkVycrW3tJENd\",\r\n\t\"incremental_authorization_allowed\": false,\r\n\t\"authorization_count\": null,\r\n\t\"incremental_authorizations\": null,\r\n\t\"external_authentication_details\": null,\r\n\t\"external_3ds_authentication_attempted\": false,\r\n\t\"expires_on\": \"2025-10-01T19:35:30.669Z\",\r\n\t\"fingerprint\": null,\r\n\t\"browser_info\": {\r\n\t\t\"os_type\": null,\r\n\t\t\"referer\": null,\r\n\t\t\"language\": \"nl-NL\",\r\n\t\t\"time_zone\": 0,\r\n\t\t\"ip_address\": \"127.0.0.1\",\r\n\t\t\"os_version\": null,\r\n\t\t\"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\t\t\"color_depth\": 24,\r\n\t\t\"device_model\": null,\r\n\t\t\"java_enabled\": true,\r\n\t\t\"screen_width\": 1536,\r\n\t\t\"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n\t\t\"screen_height\": 723,\r\n\t\t\"accept_language\": \"en\",\r\n\t\t\"java_script_enabled\": true\r\n\t},\r\n\t\"payment_channel\": null,\r\n\t\"payment_method_id\": null,\r\n\t\"network_transaction_id\": null,\r\n\t\"payment_method_status\": null,\r\n\t\"updated\": \"2025-10-01T19:20:34.613Z\",\r\n\t\"split_payments\": null,\r\n\t\"frm_metadata\": null,\r\n\t\"extended_authorization_applied\": null,\r\n\t\"request_extended_authorization\": null,\r\n\t\"capture_before\": null,\r\n\t\"merchant_order_reference_id\": null,\r\n\t\"order_tax_amount\": null,\r\n\t\"connector_mandate_id\": null,\r\n\t\"card_discovery\": null,\r\n\t\"force_3ds_challenge\": false,\r\n\t\"force_3ds_challenge_trigger\": false,\r\n\t\"issuer_error_code\": null,\r\n\t\"issuer_error_message\": null,\r\n\t\"is_iframe_redirection_enabled\": null,\r\n\t\"whole_connector_response\": null,\r\n\t\"enable_partial_authorization\": null,\r\n\t\"enable_overcapture\": null,\r\n\t\"is_overcapture_enabled\": null,\r\n\t\"network_details\": null,\r\n\t\"is_stored_credential\": null,\r\n\t\"mit_category\": null\r\n}\r\n```\r\n\r\n
\r\n\r\n
\r\n\r\nRefunds\r\n\r\n```bash\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_hKUjE6W7xfZ67kfdf8AWPhxxcwvfnjE4i44ZlWKg99tN8cgLZKEmH2B3kjiSfC86' \\\r\n--data '{\r\n \"payment_id\": \"pay_HFpibksuPOgO38jcnbBo\",\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\n```json\r\n{\r\n\t\"refund_id\": \"ref_IV3ODttiHN4xLH4uc42T\",\r\n\t\"payment_id\": \"pay_HFpibksuPOgO38jcnbBo\",\r\n\t\"amount\": 600,\r\n\t\"currency\": \"USD\",\r\n\t\"status\": \"succeeded\",\r\n\t\"reason\": \"Customer returned product\",\r\n\t\"metadata\": {\r\n\t\t\"udf1\": \"value1\",\r\n\t\t\"new_customer\": \"true\",\r\n\t\t\"login_date\": \"2019-09-10T10:11:12Z\"\r\n\t},\r\n\t\"error_message\": null,\r\n\t\"error_code\": null,\r\n\t\"unified_code\": null,\r\n\t\"unified_message\": null,\r\n\t\"created_at\": \"2025-10-01T19:21:30.966Z\",\r\n\t\"updated_at\": \"2025-10-01T19:21:31.446Z\",\r\n\t\"connector\": \"tesouro\",\r\n\t\"profile_id\": \"pro_ygYiPJT37sDESMdrJARc\",\r\n\t\"merchant_connector_id\": \"mca_k7pfQpgEkVycrW3tJENd\",\r\n\t\"split_refunds\": null,\r\n\t\"issuer_error_code\": null,\r\n\t\"issuer_error_message\": null\r\n}\r\n```\r\n\r\n
\r\n\r\n\r\n
\r\n\r\nWasm and Dashboard\r\n\r\nwasm:\r\n\r\n\"image\"\r\n\r\ndashboard\r\n\r\ndashboard changes yet to be made from frontend guys. post that it should work\r\n\r\n\"image\"\r\n\r\n
\r\n\r\n\r\n## Checklist\r\n\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `just clippy && just clippy_v2`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n", + "author": "pixincreate", + "created_at": "2025-10-01T19:24:42+00:00", + "merged_at": "2025-10-07T08:22:58+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "C-feature" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9648", + "commits": [ + { + "sha": "8531077bdaef9f1827fb215c4c98844ae2952062", + "message": "feat(connector): [tesouro] apple pay", + "author": "PiX", + "date": "2025-10-01T19:04:30+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8531077bdaef9f1827fb215c4c98844ae2952062" + }, + { + "sha": "493c2179b12b9ec052007b2a59dc9082e8f7a287", + "message": "fix: make expiry year 4 letter", + "author": "PiX", + "date": "2025-10-01T19:23:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/493c2179b12b9ec052007b2a59dc9082e8f7a287" + }, + { + "sha": "4a110571b9990b576a742ecbc9a422a0eed0d7d8", + "message": "chore: wasm changes for tesouro apple pay", + "author": "PiX", + "date": "2025-10-02T07:31:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4a110571b9990b576a742ecbc9a422a0eed0d7d8" + }, + { + "sha": "3d2bbe31cfc880fd23f90acd8cd5bceb9cb832b8", + "message": "chore: config", + "author": "PiX", + "date": "2025-10-03T05:48:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3d2bbe31cfc880fd23f90acd8cd5bceb9cb832b8" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9680.json b/prs/pr_9680.json new file mode 100644 index 0000000000000000000000000000000000000000..faa4dd7098a51ebc1dc53b4d8556351b9bb4de14 --- /dev/null +++ b/prs/pr_9680.json @@ -0,0 +1,233 @@ +{ + "number": 9680, + "title": "feat(connector): Card non3ds | FINIX", + "description": "## Type of Change\r\n\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\r\nImplementation of \r\nPayment,Refund,void , customer create , tokenization for non3ds cards for finix\r\n\r\n\r\n## Test cases\r\n\r\n
\r\n Payment : Automatic \r\n\r\n## Request \r\n\r\n```json\r\n{\r\n \"amount\": 689,\r\n \"customer_id\":\"hello_world\",\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\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 // \"connector\":[\"paypal_test\",\"stripe_test\"],\r\n \"billing\": {\r\n \"address\": {\r\n \"zip\": \"560095\",\r\n \"country\": \"IN\",\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 \"card\": {\r\n \"card_number\": \"5200828282828210\",\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 }\r\n}\r\n\r\n```\r\n\r\n## Response \r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_pVWtQXnwq32dc3OdqqQo\",\r\n \"merchant_id\": \"merchant_1759477997\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 689,\r\n \"net_amount\": 689,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 689,\r\n \"connector\": \"finix\",\r\n \"client_secret\": \"pay_pVWtQXnwq32dc3OdqqQo_secret_oYqnSGx6ktsh1jv0HF3Y\",\r\n \"created\": \"2025-10-06T10:17:24.054Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"hello_world\",\r\n \"customer\": {\r\n \"id\": \"hello_world\",\r\n \"name\": null,\r\n \"email\": \"hyperswitch_sdk_demo_id@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\": 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\": \"8210\",\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\": \"520082\",\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\": 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\": \"Fasdf\",\r\n \"country\": \"IN\",\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\": \"hyperswitch_sdk_demo_id@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\": 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\": \"hello_world\",\r\n \"created_at\": 1759745843,\r\n \"expires\": 1759749443,\r\n \"secret\": \"epk_6f24c6ad6c29447e8e6cb37f9431a152\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"TRmJxabrSYTSjGxnqthW8nkK\",\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_GjR7afeLzCXVYhe62xl8\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_bSuyBQOAy40vpxbsiOCR\",\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-10-06T10:32:24.054Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\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-10-06T10:17:26.710Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": 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 \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null\r\n}\r\n```\r\n\r\n
\r\n\r\n
\r\n Payment : Manual \r\n\r\n```json\r\n{\r\n \"amount\": 689,\r\n \"customer_id\":\"hello_world\",\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"manual\",\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 // \"connector\":[\"paypal_test\",\"stripe_test\"],\r\n \"billing\": {\r\n \"address\": {\r\n \"zip\": \"560095\",\r\n \"country\": \"IN\",\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 \"card\": {\r\n \"card_number\": \"5200828282828210\",\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 }\r\n}\r\n\r\n```\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_A8v0P3KgtB5w7mZaWO3t\",\r\n \"merchant_id\": \"merchant_1759477997\",\r\n \"status\": \"requires_capture\",\r\n \"amount\": 689,\r\n \"net_amount\": 689,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 689,\r\n \"amount_received\": null,\r\n \"connector\": \"finix\",\r\n \"client_secret\": \"pay_A8v0P3KgtB5w7mZaWO3t_secret_jjLo36Con9BduAYRKTUP\",\r\n \"created\": \"2025-10-06T10:18:12.998Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"hello_world\",\r\n \"customer\": {\r\n \"id\": \"hello_world\",\r\n \"name\": null,\r\n \"email\": \"hyperswitch_sdk_demo_id@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\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"8210\",\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\": \"520082\",\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\": 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\": \"Fasdf\",\r\n \"country\": \"IN\",\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\": \"hyperswitch_sdk_demo_id@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\": 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\": \"hello_world\",\r\n \"created_at\": 1759745892,\r\n \"expires\": 1759749492,\r\n \"secret\": \"epk_5946337c7bf3422db4549d97b25c6c30\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"AUaokdvtqphbiksg4FAxfZf9\",\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_GjR7afeLzCXVYhe62xl8\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_bSuyBQOAy40vpxbsiOCR\",\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-10-06T10:33:12.998Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\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-10-06T10:18:14.166Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": 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 \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null\r\n}\r\n```\r\n\r\n## Capture \r\n\r\n```sh\r\ncurl --location 'localhost:8080/payments/pay_A8v0P3KgtB5w7mZaWO3t/capture' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_3cGokW5MFJmBnLTLmcS2EKAODQblXknbM6XCjDHLipq0CmLrUu3LNsIyFCDwgOwH' \\\r\n--data '{\r\n \"amount\": 689\r\n}'\r\n```\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_A8v0P3KgtB5w7mZaWO3t\",\r\n \"merchant_id\": \"merchant_1759477997\",\r\n \"status\": \"processing\",\r\n \"amount\": 689,\r\n \"net_amount\": 689,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 689,\r\n \"connector\": \"finix\",\r\n \"client_secret\": \"pay_A8v0P3KgtB5w7mZaWO3t_secret_jjLo36Con9BduAYRKTUP\",\r\n \"created\": \"2025-10-06T10:18:12.998Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"hello_world\",\r\n \"customer\": {\r\n \"id\": \"hello_world\",\r\n \"name\": null,\r\n \"email\": \"hyperswitch_sdk_demo_id@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\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"8210\",\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\": \"520082\",\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\": 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\": \"Fasdf\",\r\n \"country\": \"IN\",\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\": \"hyperswitch_sdk_demo_id@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\": 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\": null,\r\n \"connector_transaction_id\": \"AUaokdvtqphbiksg4FAxfZf9\",\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_GjR7afeLzCXVYhe62xl8\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_bSuyBQOAy40vpxbsiOCR\",\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-10-06T10:33:12.998Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\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-10-06T10:18:48.481Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": 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 \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null\r\n}\r\n```\r\n\r\n## make psync after few min to get this as captured status\r\n\r\n
\r\n\r\n
\r\n Void \r\nMake Auth call\r\n\r\n```json\r\ncurl --location 'localhost:8080/payments/pay_InDxLEmz9xZ9AF6xfgYc/cancel' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_3cGokW5MFJmBnLTLmcS2EKAODQblXknbM6XCjDHLipq0CmLrUu3LNsIyFCDwgOwH' \\\r\n--data '{\r\n \"cancellation_reason\": \"requested_by_customer\"\r\n}'\r\n```\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_InDxLEmz9xZ9AF6xfgYc\",\r\n \"merchant_id\": \"merchant_1759477997\",\r\n \"status\": \"cancelled\",\r\n \"amount\": 689,\r\n \"net_amount\": 689,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": \"finix\",\r\n \"client_secret\": \"pay_InDxLEmz9xZ9AF6xfgYc_secret_CSRpGCjsWQu3t6q1SZbM\",\r\n \"created\": \"2025-10-06T10:20:46.718Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"hello_world\",\r\n \"customer\": {\r\n \"id\": \"hello_world\",\r\n \"name\": null,\r\n \"email\": \"hyperswitch_sdk_demo_id@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\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"manual\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"8210\",\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\": \"520082\",\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\": 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\": \"Fasdf\",\r\n \"country\": \"IN\",\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\": \"hyperswitch_sdk_demo_id@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\": \"requested_by_customer\",\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\": null,\r\n \"connector_transaction_id\": \"AU5zeQMv2WYgNKyo8fNh2or5\",\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_GjR7afeLzCXVYhe62xl8\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_bSuyBQOAy40vpxbsiOCR\",\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-10-06T10:35:46.718Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\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-10-06T10:20:52.789Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": 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 \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null\r\n}\r\n```\r\n
\r\n\r\n
\r\n Refund\r\n\r\nmake a payment capture\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_K7EmavhAOgxV3pOMGHGL\",\r\n \"merchant_id\": \"merchant_1759477997\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 400,\r\n \"net_amount\": 400,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 400,\r\n \"connector\": \"finix\",\r\n \"client_secret\": \"pay_K7EmavhAOgxV3pOMGHGL_secret_vOfMeE36wQUhik3cS5Nu\",\r\n \"created\": \"2025-10-06T10:22:02.926Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"hello_world\",\r\n \"customer\": {\r\n \"id\": \"hello_world\",\r\n \"name\": null,\r\n \"email\": \"hyperswitch_sdk_demo_id@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\": 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\": \"8210\",\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\": \"520082\",\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\": 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\": \"Fasdf\",\r\n \"country\": \"IN\",\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\": \"hyperswitch_sdk_demo_id@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\": 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\": \"hello_world\",\r\n \"created_at\": 1759746122,\r\n \"expires\": 1759749722,\r\n \"secret\": \"epk_47435b2e06634545a0d2d0c534e0a881\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"TRaB2ZZji4QoFwuKCC4mwfi9\",\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_GjR7afeLzCXVYhe62xl8\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_bSuyBQOAy40vpxbsiOCR\",\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-10-06T10:37:02.926Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\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-10-06T10:22:05.203Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": 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 \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null\r\n}\r\n```\r\n## Refund\r\n\r\n```sh\r\ncurl --location 'localhost:8080/refunds' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_3cGokW5MFJmBnLTLmcS2EKAODQblXknbM6XCjDHLipq0CmLrUu3LNsIyFCDwgOwH' \\\r\n--data '{\r\n \"payment_id\": \"pay_K7EmavhAOgxV3pOMGHGL\",\r\n \"amount\":389\r\n}'\r\n```\r\n\r\n```json\r\n{\r\n \"refund_id\": \"ref_OL9OI4S00JxqZZk0l9j1\",\r\n \"payment_id\": \"pay_K7EmavhAOgxV3pOMGHGL\",\r\n \"amount\": 389,\r\n \"currency\": \"USD\",\r\n \"status\": \"pending\",\r\n \"reason\": null,\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-10-06T10:22:49.992Z\",\r\n \"updated_at\": \"2025-10-06T10:22:50.684Z\",\r\n \"connector\": \"finix\",\r\n \"profile_id\": \"pro_GjR7afeLzCXVYhe62xl8\",\r\n \"merchant_connector_id\": \"mca_bSuyBQOAy40vpxbsiOCR\",\r\n \"split_refunds\": null,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null\r\n}\r\n```\r\n\r\nMake Rsync\r\n\r\n```sh\r\ncurl --location 'localhost:8080/refunds/ref_OL9OI4S00JxqZZk0l9j1?force_sync=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_3cGokW5MFJmBnLTLmcS2EKAODQblXknbM6XCjDHLipq0CmLrUu3LNsIyFCDwgOwH'\r\n```\r\n\r\n```json\r\n{\r\n \"refund_id\": \"ref_OL9OI4S00JxqZZk0l9j1\",\r\n \"payment_id\": \"pay_K7EmavhAOgxV3pOMGHGL\",\r\n \"amount\": 389,\r\n \"currency\": \"USD\",\r\n \"status\": \"succeeded\",\r\n \"reason\": null,\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-10-06T10:22:49.992Z\",\r\n \"updated_at\": \"2025-10-06T10:23:20.589Z\",\r\n \"connector\": \"finix\",\r\n \"profile_id\": \"pro_GjR7afeLzCXVYhe62xl8\",\r\n \"merchant_connector_id\": \"mca_bSuyBQOAy40vpxbsiOCR\",\r\n \"split_refunds\": 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\"Screenshot\r\n\"Screenshot\r\n\"Screenshot\r\n\"Screenshot\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\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\"Screenshot\r\n\r\n\r\n- Mandates ,CIT and NIT, 3ds not implemented\r\n\r\n- Refunds will be pending first and then success after a min do rsync as attached in example. \r\n\r\n## Checklist\r\n\r\n\r\n- [x] 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", + "author": "Nithin1506200", + "created_at": "2025-10-06T07:49:56+00:00", + "merged_at": "2025-10-09T13:19:07+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9680", + "commits": [ + { + "sha": "28cb7c93366cd025565eee571925dfd14d6b4890", + "message": "feat(finix): template code", + "author": "nihtin", + "date": "2025-09-25T07:39:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/28cb7c93366cd025565eee571925dfd14d6b4890" + }, + { + "sha": "9601ce72795c6e6a77488e8cd14e69ff061e69d4", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into finix", + "author": "nihtin", + "date": "2025-09-25T10:35:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9601ce72795c6e6a77488e8cd14e69ff061e69d4" + }, + { + "sha": "0ad88dbca45a04bcddf896506c204375da020efd", + "message": "Update", + "author": "nihtin", + "date": "2025-09-25T10:44:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0ad88dbca45a04bcddf896506c204375da020efd" + }, + { + "sha": "b6b2b19246abea48eeeee3e192eec3b11bbb99f4", + "message": "update", + "author": "nihtin", + "date": "2025-09-25T10:52:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b6b2b19246abea48eeeee3e192eec3b11bbb99f4" + }, + { + "sha": "2f39976913fd75c5d637633d82e32068b7655542", + "message": "Clippy fix", + "author": "nihtin", + "date": "2025-09-25T11:21:18+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2f39976913fd75c5d637633d82e32068b7655542" + }, + { + "sha": "77536952f35565056c61c1aa4ce5aeb7d9a18044", + "message": "update", + "author": "nihtin", + "date": "2025-09-30T07:47:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/77536952f35565056c61c1aa4ce5aeb7d9a18044" + }, + { + "sha": "00c57aa434d9e86294530e0aa5b5b96f680e8cf5", + "message": "update", + "author": "nihtin", + "date": "2025-09-30T11:35:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/00c57aa434d9e86294530e0aa5b5b96f680e8cf5" + }, + { + "sha": "0c8d20b55a122d08e48895ab97e9a5a12259317e", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into finix_impl", + "author": "nihtin", + "date": "2025-09-30T11:40:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0c8d20b55a122d08e48895ab97e9a5a12259317e" + }, + { + "sha": "a481618feeecdc42f089811122d5f06894fcc2ce", + "message": "Authorize + capture", + "author": "nihtin", + "date": "2025-10-03T10:05:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a481618feeecdc42f089811122d5f06894fcc2ce" + }, + { + "sha": "19d5df974d0ffbc9021acd250a323afcbe376ed6", + "message": "Update", + "author": "nihtin", + "date": "2025-10-06T06:35:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/19d5df974d0ffbc9021acd250a323afcbe376ed6" + }, + { + "sha": "b6a210f11e6253d3b982891d3a4aaeb6a25b02c0", + "message": "update", + "author": "nihtin", + "date": "2025-10-06T07:27:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b6a210f11e6253d3b982891d3a4aaeb6a25b02c0" + }, + { + "sha": "2589c046b63d2d4535d6665fe32d1e82bbd228b6", + "message": "update", + "author": "nihtin", + "date": "2025-10-06T07:44:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2589c046b63d2d4535d6665fe32d1e82bbd228b6" + }, + { + "sha": "b48b57fa45e43496dd3e0e5592f9e3dbefa65265", + "message": "Update", + "author": "nihtin", + "date": "2025-10-06T07:53:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b48b57fa45e43496dd3e0e5592f9e3dbefa65265" + }, + { + "sha": "7b321bb37f96f75afa6abdfe743ca59ea20ba4d4", + "message": "update", + "author": "nihtin", + "date": "2025-10-06T07:54:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7b321bb37f96f75afa6abdfe743ca59ea20ba4d4" + }, + { + "sha": "e66e38ebf5d77656f748aef4b4b1c120b1b07772", + "message": "update", + "author": "nihtin", + "date": "2025-10-06T08:22:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e66e38ebf5d77656f748aef4b4b1c120b1b07772" + }, + { + "sha": "a2f0d014d59a8b15d7d5762dea2d125c1bb5fcda", + "message": "update", + "author": "nihtin", + "date": "2025-10-06T09:27:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a2f0d014d59a8b15d7d5762dea2d125c1bb5fcda" + }, + { + "sha": "2a864a8099273b008aee7069ad41ce33b0eefcc5", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into finix_impl", + "author": "nihtin", + "date": "2025-10-06T10:39:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2a864a8099273b008aee7069ad41ce33b0eefcc5" + }, + { + "sha": "0847a492acc1f055965fd810cb3c8692d1186b52", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-10-06T10:40:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0847a492acc1f055965fd810cb3c8692d1186b52" + }, + { + "sha": "b764730bdcaa94938622313ac0709cd08f8642d2", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-10-06T10:48:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b764730bdcaa94938622313ac0709cd08f8642d2" + }, + { + "sha": "8a0ecbf49518a5fcf3f1d92efd2a5d14d329385e", + "message": "uddds", + "author": "nihtin", + "date": "2025-10-06T10:50:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8a0ecbf49518a5fcf3f1d92efd2a5d14d329385e" + }, + { + "sha": "435ca4258150d5d8e0f2af87fb4f6cf9ca5bb29d", + "message": "update", + "author": "nihtin", + "date": "2025-10-06T11:04:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/435ca4258150d5d8e0f2af87fb4f6cf9ca5bb29d" + }, + { + "sha": "3becd04a92a2bcb35d921c0c7b0c732a57f77348", + "message": "Update", + "author": "nihtin", + "date": "2025-10-06T11:29:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3becd04a92a2bcb35d921c0c7b0c732a57f77348" + }, + { + "sha": "12438a94afee20ec19a94828e8b60bd6c8c20ba3", + "message": "fix", + "author": "nihtin", + "date": "2025-10-07T04:30:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/12438a94afee20ec19a94828e8b60bd6c8c20ba3" + }, + { + "sha": "56a7288c154b55e5b56fd6d262e0bebdc6bcc5b1", + "message": "update", + "author": "nihtin", + "date": "2025-10-07T04:44:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/56a7288c154b55e5b56fd6d262e0bebdc6bcc5b1" + }, + { + "sha": "21d9f179ca84b16a0f2710f50ff619e50e4c7bfd", + "message": "update: comments", + "author": "nihtin", + "date": "2025-10-08T04:31:41+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/21d9f179ca84b16a0f2710f50ff619e50e4c7bfd" + }, + { + "sha": "fdfd8d2d4ba2f4fd2356079e21a70b0c4d9d59fc", + "message": "update", + "author": "nihtin", + "date": "2025-10-08T05:37:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fdfd8d2d4ba2f4fd2356079e21a70b0c4d9d59fc" + }, + { + "sha": "2d276e341b88603e9c25d47fb429d68e6c2ca114", + "message": "Update", + "author": "nihtin", + "date": "2025-10-08T09:26:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2d276e341b88603e9c25d47fb429d68e6c2ca114" + }, + { + "sha": "352b005f22ebb4d8ba57be5c92196adfe721b636", + "message": "Capture flow.", + "author": "nihtin", + "date": "2025-10-09T08:39:00+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/352b005f22ebb4d8ba57be5c92196adfe721b636" + }, + { + "sha": "6e3fdfe028efe1ff4576ea7ed0d61e8f5a59620f", + "message": "Manual capture changes", + "author": "nihtin", + "date": "2025-10-09T10:29:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6e3fdfe028efe1ff4576ea7ed0d61e8f5a59620f" + }, + { + "sha": "2975783041d7a57e51b6187ac8e8120ef40d8cf4", + "message": "Finix mit manual capture", + "author": "nihtin", + "date": "2025-10-09T10:35:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2975783041d7a57e51b6187ac8e8120ef40d8cf4" + }, + { + "sha": "7bec1b0ee3d03cdc8288c5e9554ed0def4eb62c3", + "message": "update comments", + "author": "nihtin", + "date": "2025-10-09T11:01:39+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7bec1b0ee3d03cdc8288c5e9554ed0def4eb62c3" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9683.json b/prs/pr_9683.json new file mode 100644 index 0000000000000000000000000000000000000000..9b688493029dcc2d5566ee14c6179b923ac892c9 --- /dev/null +++ b/prs/pr_9683.json @@ -0,0 +1,142 @@ +{ + "number": 9683, + "title": "feat(core): Add profile-level configuration for L2/L3 data enablement", + "description": "## Type of Change\r\n\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\r\nThis PR introduces profile-level configuration for enabling/disabling L2/L3 transaction data, providing merchants with granular control over enhanced payment data collection at the business profile level.\r\n# \ud83e\udde9 Additional Changes\r\n\r\n## \ud83d\uddc4\ufe0f Database & Schema\r\n\r\n- Added new column `is_l2_l3_enabled` to the `business_profile` table. \r\n - **Type:** `BOOLEAN` \r\n - **Nullable:** Yes (`NULLABLE BOOLEAN`) \r\n\r\n- Updated L2/L3 data construction logic to check **both**:\r\n 1. **Global config flag:** `state.conf.l2_l3_data_config.enabled` \r\n 2. **Profile-level flag:** `payment_data.is_l2_l3_enabled == Some(true)`\r\n\r\n- **New behavior:** \r\n L2/L3 data is now included **only when both** flags are enabled.\r\n\r\n---\r\n\r\n## \u2699\ufe0f Behavior Changes\r\n\r\n**Previously:** \r\nL2/L3 data inclusion was controlled **only** by the global configuration flag:\r\n```text\r\nl2_l3_data_config.enabled = true\r\n\r\n**Now **\r\nL2/L3 data inclusion requires both conditions to be true:\r\n\r\nGlobal config enabled \u2192 l2_l3_data_config.enabled = true\r\n\r\nProfile-level enabled \u2192 is_l2_l3_enabled = true\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n\r\nFlag False\r\n```\r\ncurl --location 'http://localhost:8080/account/postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204/business_profile/pro_VRw87wcMS3AfvczM2ROe' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: dev_2Lukl788r5RWxkuO15MlUgGWKB17w8CQgU6Jiov5jEUhKIDyR8xJ9BqP1x6uT6Bh' \\\r\n--data '{\r\n \"is_l2_l3_enabled\":false\r\n}'\r\n```\r\nResponse\r\n```\r\n{\r\n \"merchant_id\": \"postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204\",\r\n \"profile_id\": \"pro_VRw87wcMS3AfvczM2ROe\",\r\n \"profile_name\": \"Update\",\r\n \"return_url\": \"https://google.com/success\",\r\n \"enable_payment_response_hash\": true,\r\n \"payment_response_hash_key\": \"cVla9zUpUCNm8lPgzW9zNWi9Le5utHWR3nFruLNhtjbwRdXGtL4PU2g7fGyb9WY6\",\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\": \"https://webhook.site\",\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\": null,\r\n \"is_l2_l3_enabled\": false\r\n}\r\n```\r\nPayments 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_2Lukl788r5RWxkuO15MlUgGWKB17w8CQgU6Jiov5jEUhKIDyR8xJ9BqP1x6uT6Bh' \\\r\n--data-raw '{\r\n \"amount\": 10000,\r\n \"currency\": \"USD\",\r\n \"tax_status\": \"exempt\",\r\n \"duty_amount\": 400,\r\n \"shipping_cost\": 431,\r\n \"discount_amount\": 500,\r\n \"shipping_amount_tax\": 50,\r\n \"order_date\": \"2024-01-15T10:30:00Z\",\r\n \"confirm\": true,\r\n \"customer\": {\r\n \"id\":\"2343\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"john@example.com\",\r\n \"tax_registration_id\": \"TAX123456789\"\r\n },\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4457030000000007\",\r\n \"card_exp_month\": \"09\",\r\n \"card_exp_year\": \"30\",\r\n \"card_holder_name\": \"John Doe\",\r\n \"card_cvc\": \"123\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"123 Main St\",\r\n \"city\": \"New York\",\r\n \"state\": \"NY\",\r\n \"zip\": \"10001\",\r\n \"country\": \"US\",\r\n \"origin_zip\": \"90210\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"123 Main St\",\r\n \"city\": \"New York\",\r\n \"state\": \"NY\",\r\n \"zip\": \"10001\",\r\n \"country\": \"US\",\r\n \"origin_zip\": \"90210\"\r\n }\r\n },\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Laptop\",\r\n \"quantity\": 1,\r\n \"amount\": 8000,\r\n \"description\": \"Business laptop 23214324\",\r\n \"sku\": \"LAP-001\",\r\n \"upc\": \"123456789012\",\r\n \"commodity_code\": \"8471\",\r\n \"unit_of_measure\": \"EA\",\r\n \"unit_price\": 8000,\r\n \"unit_discount_amount\": 200,\r\n \"tax_rate\": 0.08,\r\n \"total_tax_amount\": 640\r\n },\r\n {\r\n \"product_name\": \"Mouse\",\r\n \"quantity\": 2,\r\n \"amount\": 2000,\r\n \"description\": \"Wireless office mouse\",\r\n \"sku\": \"MOU-001\",\r\n \"upc\": \"123456789013\",\r\n \"commodity_code\": \"8471\",\r\n \"unit_of_measure\": \"EA\",\r\n \"unit_price\": 1000,\r\n \"unit_discount_amount\": 50,\r\n \"tax_rate\": 0.08,\r\n \"total_tax_amount\": 160\r\n }\r\n ]\r\n}'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_k5Bpv5PtEJybJqMpAxgh\",\r\n \"merchant_id\": \"postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204\",\r\n \"status\": \"processing\",\r\n \"amount\": 10000,\r\n \"net_amount\": 10431,\r\n \"shipping_cost\": 431,\r\n \"amount_capturable\": 10431,\r\n \"amount_received\": null,\r\n \"connector\": \"worldpayvantiv\",\r\n \"client_secret\": \"pay_k5Bpv5PtEJybJqMpAxgh_secret_gIdSB9ymBpqxF67m2YuI\",\r\n \"created\": \"2025-10-06T10:20:03.012Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"2343\",\r\n \"customer\": {\r\n \"id\": \"2343\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"john@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\": null,\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"0007\",\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\": \"445703\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"09\",\r\n \"card_exp_year\": \"30\",\r\n \"card_holder_name\": \"John Doe\",\r\n \"payment_checks\": {\r\n \"avs_result\": \"00\",\r\n \"advanced_a_v_s_result\": null,\r\n \"authentication_result\": null,\r\n \"card_validation_result\": \"M\"\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"New York\",\r\n \"country\": \"US\",\r\n \"line1\": \"123 Main St\",\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": \"10001\",\r\n \"state\": \"NY\",\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"origin_zip\": \"90210\"\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"New York\",\r\n \"country\": \"US\",\r\n \"line1\": \"123 Main St\",\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": \"10001\",\r\n \"state\": \"NY\",\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"origin_zip\": \"90210\"\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": [\r\n {\r\n \"sku\": \"LAP-001\",\r\n \"upc\": \"123456789012\",\r\n \"brand\": null,\r\n \"amount\": 8000,\r\n \"category\": null,\r\n \"quantity\": 1,\r\n \"tax_rate\": 0.08,\r\n \"product_id\": null,\r\n \"description\": \"Business laptop 23214324\",\r\n \"product_name\": \"Laptop\",\r\n \"product_type\": null,\r\n \"sub_category\": null,\r\n \"total_amount\": null,\r\n \"commodity_code\": \"8471\",\r\n \"unit_of_measure\": \"EA\",\r\n \"product_img_link\": null,\r\n \"product_tax_code\": null,\r\n \"total_tax_amount\": 640,\r\n \"requires_shipping\": null,\r\n \"unit_discount_amount\": 200\r\n },\r\n {\r\n \"sku\": \"MOU-001\",\r\n \"upc\": \"123456789013\",\r\n \"brand\": null,\r\n \"amount\": 2000,\r\n \"category\": null,\r\n \"quantity\": 2,\r\n \"tax_rate\": 0.08,\r\n \"product_id\": null,\r\n \"description\": \"Wireless office mouse\",\r\n \"product_name\": \"Mouse\",\r\n \"product_type\": null,\r\n \"sub_category\": null,\r\n \"total_amount\": null,\r\n \"commodity_code\": \"8471\",\r\n \"unit_of_measure\": \"EA\",\r\n \"product_img_link\": null,\r\n \"product_tax_code\": null,\r\n \"total_tax_amount\": 160,\r\n \"requires_shipping\": null,\r\n \"unit_discount_amount\": 50\r\n }\r\n ],\r\n \"email\": \"john@example.com\",\r\n \"name\": \"John Doe\",\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\": 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\": \"2343\",\r\n \"created_at\": 1759746002,\r\n \"expires\": 1759749602,\r\n \"secret\": \"epk_b1c2dbc4c6974e5ba52bc4febad559c0\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"83997805908936712\",\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\": \"yu3m15HUiA8RH7xlVbxYNbb_GXBH\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_VRw87wcMS3AfvczM2ROe\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_Xy151X2xCrZUxa679A2r\",\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-10-06T10:35:03.012Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": \"500144570300000\",\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-10-06T10:20:06.451Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": 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 \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\nenhanced_data : None (In vantive we pass the l2_l3_data in enchanced_data field )\r\n\"Screenshot\r\n-----------------------------------------------------------------------------------------------------------------------\r\n\r\nPrifle flag as true\r\n```\r\ncurl --location 'http://localhost:8080/account/postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204/business_profile/pro_VRw87wcMS3AfvczM2ROe' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: dev_2Lukl788r5RWxkuO15MlUgGWKB17w8CQgU6Jiov5jEUhKIDyR8xJ9BqP1x6uT6Bh' \\\r\n--data '{\r\n \"is_l2_l3_enabled\":true\r\n}'\r\n```\r\nResponse\r\n```\r\n{\r\n \"merchant_id\": \"postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204\",\r\n \"profile_id\": \"pro_VRw87wcMS3AfvczM2ROe\",\r\n \"profile_name\": \"Update\",\r\n \"return_url\": \"https://google.com/success\",\r\n \"enable_payment_response_hash\": true,\r\n \"payment_response_hash_key\": \"cVla9zUpUCNm8lPgzW9zNWi9Le5utHWR3nFruLNhtjbwRdXGtL4PU2g7fGyb9WY6\",\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\": \"https://webhook.site\",\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\": null,\r\n \"is_l2_l3_enabled\": true\r\n}\r\n```\r\nPqyments 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_2Lukl788r5RWxkuO15MlUgGWKB17w8CQgU6Jiov5jEUhKIDyR8xJ9BqP1x6uT6Bh' \\\r\n--data-raw '{\r\n \"amount\": 10000,\r\n \"currency\": \"USD\",\r\n \"tax_status\": \"exempt\",\r\n \"duty_amount\": 400,\r\n \"shipping_cost\": 431,\r\n \"discount_amount\": 500,\r\n \"shipping_amount_tax\": 50,\r\n \"order_date\": \"2024-01-15T10:30:00Z\",\r\n \"confirm\": true,\r\n \"customer\": {\r\n \"id\":\"2343\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"john@example.com\",\r\n \"tax_registration_id\": \"TAX123456789\"\r\n },\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4457030000000007\",\r\n \"card_exp_month\": \"09\",\r\n \"card_exp_year\": \"30\",\r\n \"card_holder_name\": \"John Doe\",\r\n \"card_cvc\": \"123\"\r\n }\r\n },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"123 Main St\",\r\n \"city\": \"New York\",\r\n \"state\": \"NY\",\r\n \"zip\": \"10001\",\r\n \"country\": \"US\",\r\n \"origin_zip\": \"90210\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"123 Main St\",\r\n \"city\": \"New York\",\r\n \"state\": \"NY\",\r\n \"zip\": \"10001\",\r\n \"country\": \"US\",\r\n \"origin_zip\": \"90210\"\r\n }\r\n },\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Laptop\",\r\n \"quantity\": 1,\r\n \"amount\": 8000,\r\n \"description\": \"Business laptop 23214324\",\r\n \"sku\": \"LAP-001\",\r\n \"upc\": \"123456789012\",\r\n \"commodity_code\": \"8471\",\r\n \"unit_of_measure\": \"EA\",\r\n \"unit_price\": 8000,\r\n \"unit_discount_amount\": 200,\r\n \"tax_rate\": 0.08,\r\n \"total_tax_amount\": 640\r\n },\r\n {\r\n \"product_name\": \"Mouse\",\r\n \"quantity\": 2,\r\n \"amount\": 2000,\r\n \"description\": \"Wireless office mouse\",\r\n \"sku\": \"MOU-001\",\r\n \"upc\": \"123456789013\",\r\n \"commodity_code\": \"8471\",\r\n \"unit_of_measure\": \"EA\",\r\n \"unit_price\": 1000,\r\n \"unit_discount_amount\": 50,\r\n \"tax_rate\": 0.08,\r\n \"total_tax_amount\": 160\r\n }\r\n ]\r\n}'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_G9uVSa1XhuipIytubifJ\",\r\n \"merchant_id\": \"postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204\",\r\n \"status\": \"processing\",\r\n \"amount\": 10000,\r\n \"net_amount\": 10431,\r\n \"shipping_cost\": 431,\r\n \"amount_capturable\": 10431,\r\n \"amount_received\": null,\r\n \"connector\": \"worldpayvantiv\",\r\n \"client_secret\": \"pay_G9uVSa1XhuipIytubifJ_secret_lCs00yR6IDj1mQiv6CR3\",\r\n \"created\": \"2025-10-06T10:22:46.946Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"2343\",\r\n \"customer\": {\r\n \"id\": \"2343\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"john@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\": null,\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"0007\",\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\": \"445703\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"09\",\r\n \"card_exp_year\": \"30\",\r\n \"card_holder_name\": \"John Doe\",\r\n \"payment_checks\": {\r\n \"avs_result\": \"00\",\r\n \"advanced_a_v_s_result\": null,\r\n \"authentication_result\": null,\r\n \"card_validation_result\": \"M\"\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": null,\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"New York\",\r\n \"country\": \"US\",\r\n \"line1\": \"123 Main St\",\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": \"10001\",\r\n \"state\": \"NY\",\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"origin_zip\": \"90210\"\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"New York\",\r\n \"country\": \"US\",\r\n \"line1\": \"123 Main St\",\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": \"10001\",\r\n \"state\": \"NY\",\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"origin_zip\": \"90210\"\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"order_details\": [\r\n {\r\n \"sku\": \"LAP-001\",\r\n \"upc\": \"123456789012\",\r\n \"brand\": null,\r\n \"amount\": 8000,\r\n \"category\": null,\r\n \"quantity\": 1,\r\n \"tax_rate\": 0.08,\r\n \"product_id\": null,\r\n \"description\": \"Business laptop 23214324\",\r\n \"product_name\": \"Laptop\",\r\n \"product_type\": null,\r\n \"sub_category\": null,\r\n \"total_amount\": null,\r\n \"commodity_code\": \"8471\",\r\n \"unit_of_measure\": \"EA\",\r\n \"product_img_link\": null,\r\n \"product_tax_code\": null,\r\n \"total_tax_amount\": 640,\r\n \"requires_shipping\": null,\r\n \"unit_discount_amount\": 200\r\n },\r\n {\r\n \"sku\": \"MOU-001\",\r\n \"upc\": \"123456789013\",\r\n \"brand\": null,\r\n \"amount\": 2000,\r\n \"category\": null,\r\n \"quantity\": 2,\r\n \"tax_rate\": 0.08,\r\n \"product_id\": null,\r\n \"description\": \"Wireless office mouse\",\r\n \"product_name\": \"Mouse\",\r\n \"product_type\": null,\r\n \"sub_category\": null,\r\n \"total_amount\": null,\r\n \"commodity_code\": \"8471\",\r\n \"unit_of_measure\": \"EA\",\r\n \"product_img_link\": null,\r\n \"product_tax_code\": null,\r\n \"total_tax_amount\": 160,\r\n \"requires_shipping\": null,\r\n \"unit_discount_amount\": 50\r\n }\r\n ],\r\n \"email\": \"john@example.com\",\r\n \"name\": \"John Doe\",\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\": 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\": \"2343\",\r\n \"created_at\": 1759746166,\r\n \"expires\": 1759749766,\r\n \"secret\": \"epk_2e4eaf2fa2084f55adfbda7dd29be585\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"84085766858464538\",\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\": \"i4q0Jo5exObW4PQfss0jq4uQ619b\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_VRw87wcMS3AfvczM2ROe\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_Xy151X2xCrZUxa679A2r\",\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-10-06T10:37:46.946Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": \"500144570300000\",\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-10-06T10:22:49.462Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": 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 \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n```\r\n\"Screenshot\r\n-----------------------------------------------------------------------------------------------------------------------\r\nProfile flag as None\r\n```\r\n\r\n```\r\n## Checklist\r\n\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", + "author": "awasthi21", + "created_at": "2025-10-06T10:14:28+00:00", + "merged_at": "2025-10-16T08:22:12+00:00", + "base_branch": "main", + "labels": [ + "M-database-changes", + "M-api-contract-changes" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9683", + "commits": [ + { + "sha": "b4db2c9739ed307f73eddcedd7c4727d1f248653", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-10-07T05:58:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b4db2c9739ed307f73eddcedd7c4727d1f248653" + }, + { + "sha": "55c2b906e19443c4578fbf28ee820240854ba192", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-10-08T08:43:48+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/55c2b906e19443c4578fbf28ee820240854ba192" + }, + { + "sha": "643f662f924085105f1ce2b80364ab10edab8545", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-10-08T08:45:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/643f662f924085105f1ce2b80364ab10edab8545" + }, + { + "sha": "40eac45ca72d4a23fcb4249c3d6e2f763d1c3424", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-10-08T09:54:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/40eac45ca72d4a23fcb4249c3d6e2f763d1c3424" + }, + { + "sha": "5dacf133f9030bba33e29ae7b75098d9e6844863", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-10-08T13:09:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5dacf133f9030bba33e29ae7b75098d9e6844863" + }, + { + "sha": "d99a81736a8a3d043e790059cc9e430ec9dbd6b5", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-10-08T13:14:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d99a81736a8a3d043e790059cc9e430ec9dbd6b5" + }, + { + "sha": "a0c88ab7ec5b34487c6a3810702bb067414f728a", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-10-08T15:33:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a0c88ab7ec5b34487c6a3810702bb067414f728a" + }, + { + "sha": "af3bee65e371483d673d727ac2e966d16db19d04", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-10-09T06:34:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/af3bee65e371483d673d727ac2e966d16db19d04" + }, + { + "sha": "394f9f07b09e2dcc0760da226d3593c9d2edf3e6", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-10-13T04:39:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/394f9f07b09e2dcc0760da226d3593c9d2edf3e6" + }, + { + "sha": "21d79782ecb60211e173ef8d2fa24a84a26fa52a", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-10-13T04:44:50+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/21d79782ecb60211e173ef8d2fa24a84a26fa52a" + }, + { + "sha": "740f1074892a10f316df88dab57d34b1d0427b20", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-10-13T04:45:57+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/740f1074892a10f316df88dab57d34b1d0427b20" + }, + { + "sha": "5b4e15ce6b423604747aea605cac69af8c654cf3", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-10-13T04:52:42+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5b4e15ce6b423604747aea605cac69af8c654cf3" + }, + { + "sha": "216667de5b90fd65820d3dab41a502423bca4f01", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-10-13T05:12:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/216667de5b90fd65820d3dab41a502423bca4f01" + }, + { + "sha": "92a3efcf61a614f0a7fd4d2dc3e0995d4021ad6a", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-10-14T04:24:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/92a3efcf61a614f0a7fd4d2dc3e0995d4021ad6a" + }, + { + "sha": "ecd2a5227c781babff8ce47239934a44dc6ac5ef", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-10-14T04:25:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ecd2a5227c781babff8ce47239934a44dc6ac5ef" + }, + { + "sha": "471d53a143073fb30dbbb57c3b0026c1c09f8be5", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-10-14T04:31:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/471d53a143073fb30dbbb57c3b0026c1c09f8be5" + }, + { + "sha": "d38d813bdef698afcdfd96f36441206051973459", + "message": "Initial commit", + "author": "Malay Awasthi", + "date": "2025-10-14T04:44:54+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d38d813bdef698afcdfd96f36441206051973459" + }, + { + "sha": "6d197396e5b7c29556cd635be6fa3ca4840485b8", + "message": "Merge branch 'main' into add-profile-level-config-for-l2l3", + "author": "likhinbopanna", + "date": "2025-10-16T06:49:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6d197396e5b7c29556cd635be6fa3ca4840485b8" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9709.json b/prs/pr_9709.json new file mode 100644 index 0000000000000000000000000000000000000000..55c531a6b14c0ed59fcef6833e126c530d3a2d3a --- /dev/null +++ b/prs/pr_9709.json @@ -0,0 +1,20 @@ +{ + "number": 9709, + "title": "fix(connectors): [Nexixpay] MIT & order_id fix", + "description": "## Type of Change\r\n\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\r\nHotfix for https://github.com/juspay/hyperswitch/pull/9644\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\n\r\n## How did you test it?\r\n\r\nCurls for testing with response:\r\n\r\nPayments 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_n5vnntb0V5gRjNMdwTnPXweumExJV6vYon3lVNzW2BoA3F4S4V0PXDHK3lW7gWHh' \\\r\n--data-raw '{\r\n \"amount\": 3545,\r\n \"currency\": \"EUR\",\r\n \r\n \"profile_id\":\"pro_QEwjCvFhpcLC2azRNZEf\",\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\": \"4111 1111 1111 1111\",\r\n \"card_exp_month\": \"03\",\r\n \"card_exp_year\": \"30\",\r\n \"card_cvc\": \"737\"\r\n }\r\n },\r\n\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"three_ds\",\r\n \"setup_future_usage\": \"off_session\", \r\n \"customer\": {\r\n \"id\": \"customerssh\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customerssh@gmail.com\",\r\n \"phone\": \"9999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\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 \"country\": \"BR\",\r\n \"zip\": \"94122\",\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\": \"guest@example.com\"\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\": \"BR\",\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\": \"guest@example.com\"\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 3545,\r\n \"account_name\": \"transaction_processing\"\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\": \"128.0.0.1\"\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 \"connector_metadata\": {\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n },\r\n \"payment_link\": false,\r\n \"payment_link_config\": { \r\n \"theme\": \"\",\r\n \"logo\": \"\",\r\n \"seller_name\": \"\",\r\n \"sdk_layout\": \"\",\r\n \"display_sdk_only\": false,\r\n \"enabled_saved_payment_method\": false\r\n }, \r\n \"payment_type\": \"normal\", \r\n \"request_incremental_authorization\": false,\r\n \"merchant_order_reference_id\": \"test_ord\",\r\n \"session_expiry\": 900 \r\n}'\r\n```\r\n\r\nResponse:\r\n```\r\n{\"payment_id\":\"pay_cfn9IZqdJU58r5Hc5A8T\",\"merchant_id\":\"merchant_1759144749\",\"status\":\"requires_customer_action\",\"amount\":3545,\"net_amount\":3545,\"shipping_cost\":null,\"amount_capturable\":3545,\"amount_received\":null,\"connector\":\"nexixpay\",\"client_secret\":\"pay_cfn9IZqdJU58r5Hc5A8T_secret_SXeMcpBgyEL2zoVijZ9E\",\"created\":\"2025-10-01T12:45:53.600Z\",\"currency\":\"EUR\",\"customer_id\":\"customerssh\",\"customer\":{\"id\":\"customerssh\",\"name\":\"John Doe\",\"email\":\"customerssh@gmail.com\",\"phone\":\"9999999999\",\"phone_country_code\":\"+1\"},\"description\":\"Its my first payment request\",\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"off_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"1111\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"411111\",\"card_extended_bin\":null,\"card_exp_month\":\"03\",\"card_exp_year\":\"30\",\"card_holder_name\":null,\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_nVp5RBRCLCFnQQH82Y5F\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"BR\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"BR\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"order_details\":[{\"sku\":null,\"upc\":null,\"brand\":null,\"amount\":3545,\"category\":null,\"quantity\":1,\"tax_rate\":null,\"product_id\":null,\"description\":null,\"product_name\":\"Apple iphone 15\",\"product_type\":null,\"sub_category\":null,\"total_amount\":null,\"commodity_code\":null,\"unit_of_measure\":null,\"product_img_link\":null,\"product_tax_code\":null,\"total_tax_amount\":null,\"requires_shipping\":null,\"unit_discount_amount\":null}],\"email\":\"customerssh@gmail.com\",\"name\":\"John Doe\",\"phone\":\"9999999999\",\"return_url\":\"https://google.com/\",\"authentication_type\":\"three_ds\",\"statement_descriptor_name\":\"joseph\",\"statement_descriptor_suffix\":\"JS\",\"next_action\":{\"type\":\"redirect_to_url\",\"redirect_to_url\":\"http://localhost:8080/payments/redirect/pay_cfn9IZqdJU58r5Hc5A8T/merchant_1759144749/pay_cfn9IZqdJU58r5Hc5A8T_1\"},\"cancellation_reason\":null,\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":{\"customer_id\":\"customerssh\",\"created_at\":1759322753,\"expires\":1759326353,\"secret\":\"epk_dfc71e93bf654eaabccbfcbcf83fa3e0\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":\"pay_cfn9IZqdJU58r5\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":{\"apple_pay\":null,\"airwallex\":null,\"noon\":{\"order_category\":\"pay\"},\"braintree\":null,\"adyen\":null},\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":\"pay_cfn9IZqdJU58r5\",\"payment_link\":null,\"profile_id\":\"pro_QEwjCvFhpcLC2azRNZEf\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_lJPT4aN2CbXmgSAFDmCT\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-10-01T13:00:53.600Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"128.0.0.1\",\"user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\"color_depth\":24,\"java_enabled\":true,\"screen_width\":1536,\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"screen_height\":723,\"java_script_enabled\":true},\"payment_channel\":null,\"payment_method_id\":\"pm_AHMtQP8Qp9y1L8wy2hNi\",\"network_transaction_id\":null,\"payment_method_status\":\"inactive\",\"updated\":\"2025-10-01T12:45:56.426Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"request_extended_authorization\":null,\"capture_before\":null,\"merchant_order_reference_id\":\"test_ord\",\"order_tax_amount\":null,\"connector_mandate_id\":\"qAhdJaa3HvEeMxexwg\",\"card_discovery\":\"manual\",\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null,\"enable_overcapture\":null,\"is_overcapture_enabled\":null,\"network_details\":null}\r\n```\r\nPayments retrieve Response:\r\n```\r\n{\"payment_id\":\"pay_cfn9IZqdJU58r5Hc5A8T\",\"merchant_id\":\"merchant_1759144749\",\"status\":\"succeeded\",\"amount\":3545,\"net_amount\":3545,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":3545,\"connector\":\"nexixpay\",\"client_secret\":\"pay_cfn9IZqdJU58r5Hc5A8T_secret_SXeMcpBgyEL2zoVijZ9E\",\"created\":\"2025-10-01T12:45:53.600Z\",\"currency\":\"EUR\",\"customer_id\":\"customerssh\",\"customer\":{\"id\":\"customerssh\",\"name\":\"John Doe\",\"email\":\"customerssh@gmail.com\",\"phone\":\"9999999999\",\"phone_country_code\":\"+1\"},\"description\":\"Its my first payment request\",\"refunds\":null,\"disputes\":null,\"attempts\":[{\"attempt_id\":\"pay_cfn9IZqdJU58r5Hc5A8T_1\",\"status\":\"charged\",\"amount\":3545,\"order_tax_amount\":null,\"currency\":\"EUR\",\"connector\":\"nexixpay\",\"error_message\":null,\"payment_method\":\"card\",\"connector_transaction_id\":\"pay_cfn9IZqdJU58r5\",\"capture_method\":\"automatic\",\"authentication_type\":\"three_ds\",\"created_at\":\"2025-10-01T12:45:53.601Z\",\"modified_at\":\"2025-10-01T12:46:51.867Z\",\"cancellation_reason\":null,\"mandate_id\":null,\"error_code\":null,\"payment_token\":\"token_nVp5RBRCLCFnQQH82Y5F\",\"connector_metadata\":{\"psyncFlow\":\"Authorize\",\"cancelOperationId\":null,\"threeDSAuthResult\":{\"authenticationValue\":\"AAkBBzglVwAAAA3Zl4J0dQAAAAA=\"},\"captureOperationId\":\"804610282286352749\",\"threeDSAuthResponse\":\"notneeded\",\"authorizationOperationId\":\"804610282286352749\"},\"payment_experience\":null,\"payment_method_type\":\"credit\",\"reference_id\":\"pay_cfn9IZqdJU58r5\",\"unified_code\":null,\"unified_message\":null,\"client_source\":null,\"client_version\":null}],\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":\"off_session\",\"off_session\":null,\"capture_on\":null,\"capture_method\":\"automatic\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"1111\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"411111\",\"card_extended_bin\":null,\"card_exp_month\":\"03\",\"card_exp_year\":\"30\",\"card_holder_name\":null,\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":\"token_nVp5RBRCLCFnQQH82Y5F\",\"shipping\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"BR\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"BR\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"},\"order_details\":[{\"sku\":null,\"upc\":null,\"brand\":null,\"amount\":3545,\"category\":null,\"quantity\":1,\"tax_rate\":null,\"product_id\":null,\"description\":null,\"product_name\":\"Apple iphone 15\",\"product_type\":null,\"sub_category\":null,\"total_amount\":null,\"commodity_code\":null,\"unit_of_measure\":null,\"product_img_link\":null,\"product_tax_code\":null,\"total_tax_amount\":null,\"requires_shipping\":null,\"unit_discount_amount\":null}],\"email\":\"customerssh@gmail.com\",\"name\":\"John Doe\",\"phone\":\"9999999999\",\"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\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":null,\"manual_retry_allowed\":null,\"connector_transaction_id\":\"pay_cfn9IZqdJU58r5\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":{\"apple_pay\":null,\"airwallex\":null,\"noon\":{\"order_category\":\"pay\"},\"braintree\":null,\"adyen\":null},\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":\"pay_cfn9IZqdJU58r5\",\"payment_link\":null,\"profile_id\":\"pro_QEwjCvFhpcLC2azRNZEf\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_lJPT4aN2CbXmgSAFDmCT\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-10-01T13:00:53.600Z\",\"fingerprint\":null,\"browser_info\":{\"language\":\"nl-NL\",\"time_zone\":0,\"ip_address\":\"128.0.0.1\",\"user_agent\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\"color_depth\":24,\"java_enabled\":true,\"screen_width\":1536,\"accept_header\":\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\"screen_height\":723,\"java_script_enabled\":true},\"payment_channel\":null,\"payment_method_id\":\"pm_AHMtQP8Qp9y1L8wy2hNi\",\"network_transaction_id\":null,\"payment_method_status\":\"active\",\"updated\":\"2025-10-01T12:46:51.868Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"request_extended_authorization\":null,\"capture_before\":null,\"merchant_order_reference_id\":\"test_ord\",\"order_tax_amount\":null,\"connector_mandate_id\":null,\"card_discovery\":\"manual\",\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null,\"enable_overcapture\":null,\"is_overcapture_enabled\":null,\"network_details\":null}\r\n```\r\nMIT 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_n5vnntb0V5gRjNMdwTnPXweumExJV6vYon3lVNzW2BoA3F4S4V0PXDHK3lW7gWHh' \\\r\n--data '{\r\n \"amount\": 3545,\r\n \"currency\": \"EUR\",\r\n \"confirm\": true,\r\n \"customer_id\": \"customerssh\",\r\n \"capture_method\": \"manual\",\r\n \"recurring_details\": {\r\n \"type\": \"payment_method_id\",\r\n \"data\": \"pm_AHMtQP8Qp9y1L8wy2hNi\"\r\n },\r\n \"off_session\": true\r\n}'\r\n```\r\n\r\nResponse:\r\n```\r\n{\"payment_id\":\"pay_qBDBW4zQXKiwHnhTRX0Q\",\"merchant_id\":\"merchant_1759144749\",\"status\":\"requires_capture\",\"amount\":3545,\"net_amount\":3545,\"shipping_cost\":null,\"amount_capturable\":3545,\"amount_received\":null,\"connector\":\"nexixpay\",\"client_secret\":\"pay_qBDBW4zQXKiwHnhTRX0Q_secret_yvNWTrkL2gCyNEJGNa29\",\"created\":\"2025-10-01T12:49:57.717Z\",\"currency\":\"EUR\",\"customer_id\":\"customerssh\",\"customer\":{\"id\":\"customerssh\",\"name\":\"John Doe\",\"email\":\"customerssh@gmail.com\",\"phone\":\"9999999999\",\"phone_country_code\":\"+1\"},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":null,\"off_session\":true,\"capture_on\":null,\"capture_method\":\"manual\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"1111\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"411111\",\"card_extended_bin\":null,\"card_exp_month\":\"03\",\"card_exp_year\":\"30\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":null},\"payment_token\":null,\"shipping\":null,\"billing\":null,\"order_details\":null,\"email\":\"customerssh@gmail.com\",\"name\":\"John Doe\",\"phone\":\"9999999999\",\"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\":\"customerssh\",\"created_at\":1759322997,\"expires\":1759326597,\"secret\":\"epk_f372c1555499482683008ee1d2de5fe9\"},\"manual_retry_allowed\":null,\"connector_transaction_id\":\"pay_qBDBW4zQXKiwHn\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":\"pay_qBDBW4zQXKiwHn\",\"payment_link\":null,\"profile_id\":\"pro_QEwjCvFhpcLC2azRNZEf\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_lJPT4aN2CbXmgSAFDmCT\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-10-01T13:04:57.717Z\",\"fingerprint\":null,\"browser_info\":null,\"payment_channel\":null,\"payment_method_id\":\"pm_AHMtQP8Qp9y1L8wy2hNi\",\"network_transaction_id\":null,\"payment_method_status\":\"active\",\"updated\":\"2025-10-01T12:49:59.679Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"request_extended_authorization\":null,\"capture_before\":null,\"merchant_order_reference_id\":null,\"order_tax_amount\":null,\"connector_mandate_id\":\"qAhdJaa3HvEeMxexwg\",\"card_discovery\":\"manual\",\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null,\"enable_overcapture\":null,\"is_overcapture_enabled\":null,\"network_details\":null}\r\n```\r\nCancel Call:\r\n```\r\ncurl --location 'http://localhost:8080/payments/pay_qBDBW4zQXKiwHnhTRX0Q/cancel' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_n5vnntb0V5gRjNMdwTnPXweumExJV6vYon3lVNzW2BoA3F4S4V0PXDHK3lW7gWHh' \\\r\n--data '{\r\n \"cancellation_reason\": \"requested_by_customer\"\r\n}'\r\n```\r\nResponse:\r\n```\r\n{\"payment_id\":\"pay_qBDBW4zQXKiwHnhTRX0Q\",\"merchant_id\":\"merchant_1759144749\",\"status\":\"processing\",\"amount\":3545,\"net_amount\":3545,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":null,\"connector\":\"nexixpay\",\"client_secret\":\"pay_qBDBW4zQXKiwHnhTRX0Q_secret_yvNWTrkL2gCyNEJGNa29\",\"created\":\"2025-10-01T12:49:57.717Z\",\"currency\":\"EUR\",\"customer_id\":\"customerssh\",\"customer\":{\"id\":\"customerssh\",\"name\":\"John Doe\",\"email\":\"customerssh@gmail.com\",\"phone\":\"9999999999\",\"phone_country_code\":\"+1\"},\"description\":null,\"refunds\":null,\"disputes\":null,\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":null,\"off_session\":true,\"capture_on\":null,\"capture_method\":\"manual\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"1111\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"411111\",\"card_extended_bin\":null,\"card_exp_month\":\"03\",\"card_exp_year\":\"30\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"BR\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"}},\"payment_token\":null,\"shipping\":null,\"billing\":null,\"order_details\":null,\"email\":\"customerssh@gmail.com\",\"name\":\"John Doe\",\"phone\":\"9999999999\",\"return_url\":null,\"authentication_type\":\"no_three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":\"requested_by_customer\",\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":null,\"manual_retry_allowed\":null,\"connector_transaction_id\":\"pay_qBDBW4zQXKiwHn\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":\"pay_qBDBW4zQXKiwHn\",\"payment_link\":null,\"profile_id\":\"pro_QEwjCvFhpcLC2azRNZEf\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_lJPT4aN2CbXmgSAFDmCT\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-10-01T13:04:57.717Z\",\"fingerprint\":null,\"browser_info\":null,\"payment_channel\":null,\"payment_method_id\":\"pm_AHMtQP8Qp9y1L8wy2hNi\",\"network_transaction_id\":null,\"payment_method_status\":null,\"updated\":\"2025-10-01T12:51:38.055Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"request_extended_authorization\":null,\"capture_before\":null,\"merchant_order_reference_id\":null,\"order_tax_amount\":null,\"connector_mandate_id\":null,\"card_discovery\":\"manual\",\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null,\"enable_overcapture\":null,\"is_overcapture_enabled\":null,\"network_details\":null}\r\n```\r\nPayments retrieve Response:\r\n```\r\n{\"payment_id\":\"pay_qBDBW4zQXKiwHnhTRX0Q\",\"merchant_id\":\"merchant_1759144749\",\"status\":\"cancelled\",\"amount\":3545,\"net_amount\":3545,\"shipping_cost\":null,\"amount_capturable\":0,\"amount_received\":null,\"connector\":\"nexixpay\",\"client_secret\":\"pay_qBDBW4zQXKiwHnhTRX0Q_secret_yvNWTrkL2gCyNEJGNa29\",\"created\":\"2025-10-01T12:49:57.717Z\",\"currency\":\"EUR\",\"customer_id\":\"customerssh\",\"customer\":{\"id\":\"customerssh\",\"name\":\"John Doe\",\"email\":\"customerssh@gmail.com\",\"phone\":\"9999999999\",\"phone_country_code\":\"+1\"},\"description\":null,\"refunds\":null,\"disputes\":null,\"attempts\":[{\"attempt_id\":\"pay_qBDBW4zQXKiwHnhTRX0Q_1\",\"status\":\"pending\",\"amount\":3545,\"order_tax_amount\":null,\"currency\":\"EUR\",\"connector\":\"nexixpay\",\"error_message\":null,\"payment_method\":\"card\",\"connector_transaction_id\":\"pay_qBDBW4zQXKiwHn\",\"capture_method\":\"manual\",\"authentication_type\":\"no_three_ds\",\"created_at\":\"2025-10-01T12:49:57.717Z\",\"modified_at\":\"2025-10-01T12:51:38.055Z\",\"cancellation_reason\":\"requested_by_customer\",\"mandate_id\":null,\"error_code\":null,\"payment_token\":null,\"connector_metadata\":{\"psyncFlow\":\"Cancel\",\"cancelOperationId\":\"6dc6af6b-37b9-4aa6-8bf1-0d52ae064e8d\",\"threeDSAuthResult\":null,\"captureOperationId\":null,\"threeDSAuthResponse\":null,\"authorizationOperationId\":\"486536903848752749\"},\"payment_experience\":null,\"payment_method_type\":\"credit\",\"reference_id\":\"pay_qBDBW4zQXKiwHn\",\"unified_code\":null,\"unified_message\":null,\"client_source\":null,\"client_version\":null}],\"mandate_id\":null,\"mandate_data\":null,\"setup_future_usage\":null,\"off_session\":true,\"capture_on\":null,\"capture_method\":\"manual\",\"payment_method\":\"card\",\"payment_method_data\":{\"card\":{\"last4\":\"1111\",\"card_type\":null,\"card_network\":null,\"card_issuer\":null,\"card_issuing_country\":null,\"card_isin\":\"411111\",\"card_extended_bin\":null,\"card_exp_month\":\"03\",\"card_exp_year\":\"30\",\"card_holder_name\":\"joseph Doe\",\"payment_checks\":null,\"authentication_data\":null},\"billing\":{\"address\":{\"city\":\"San Fransico\",\"country\":\"BR\",\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"zip\":\"94122\",\"state\":\"California\",\"first_name\":\"joseph\",\"last_name\":\"Doe\",\"origin_zip\":null},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"},\"email\":\"guest@example.com\"}},\"payment_token\":null,\"shipping\":null,\"billing\":null,\"order_details\":null,\"email\":\"customerssh@gmail.com\",\"name\":\"John Doe\",\"phone\":\"9999999999\",\"return_url\":null,\"authentication_type\":\"no_three_ds\",\"statement_descriptor_name\":null,\"statement_descriptor_suffix\":null,\"next_action\":null,\"cancellation_reason\":\"requested_by_customer\",\"error_code\":null,\"error_message\":null,\"unified_code\":null,\"unified_message\":null,\"payment_experience\":null,\"payment_method_type\":\"credit\",\"connector_label\":null,\"business_country\":null,\"business_label\":\"default\",\"business_sub_label\":null,\"allowed_payment_method_types\":null,\"ephemeral_key\":null,\"manual_retry_allowed\":null,\"connector_transaction_id\":\"pay_qBDBW4zQXKiwHn\",\"frm_message\":null,\"metadata\":null,\"connector_metadata\":null,\"feature_metadata\":{\"redirect_response\":null,\"search_tags\":null,\"apple_pay_recurring_details\":null,\"gateway_system\":\"direct\"},\"reference_id\":\"pay_qBDBW4zQXKiwHn\",\"payment_link\":null,\"profile_id\":\"pro_QEwjCvFhpcLC2azRNZEf\",\"surcharge_details\":null,\"attempt_count\":1,\"merchant_decision\":null,\"merchant_connector_id\":\"mca_lJPT4aN2CbXmgSAFDmCT\",\"incremental_authorization_allowed\":false,\"authorization_count\":null,\"incremental_authorizations\":null,\"external_authentication_details\":null,\"external_3ds_authentication_attempted\":false,\"expires_on\":\"2025-10-01T13:04:57.717Z\",\"fingerprint\":null,\"browser_info\":null,\"payment_channel\":null,\"payment_method_id\":\"pm_AHMtQP8Qp9y1L8wy2hNi\",\"network_transaction_id\":null,\"payment_method_status\":\"active\",\"updated\":\"2025-10-01T12:52:35.250Z\",\"split_payments\":null,\"frm_metadata\":null,\"extended_authorization_applied\":null,\"request_extended_authorization\":null,\"capture_before\":null,\"merchant_order_reference_id\":null,\"order_tax_amount\":null,\"connector_mandate_id\":\"CEivq9z9Q2r87ktZQG\",\"card_discovery\":\"manual\",\"force_3ds_challenge\":false,\"force_3ds_challenge_trigger\":false,\"issuer_error_code\":null,\"issuer_error_message\":null,\"is_iframe_redirection_enabled\":null,\"whole_connector_response\":null,\"enable_partial_authorization\":null,\"enable_overcapture\":null,\"is_overcapture_enabled\":null,\"network_details\":null}\r\n```\r\n\r\n\r\nAuthorize call\r\n\"image\"\r\nComplete authorize call:\r\n\"image\"\r\n\r\n\r\n## Checklist\r\n\r\n\r\n- [x] 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", + "author": "mrudulvajpayee4935", + "created_at": "2025-10-07T10:04:55+00:00", + "merged_at": "2025-10-07T10:51:08+00:00", + "base_branch": "hotfix-2025.10.01.0", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/9709", + "commits": [ + { + "sha": "2a97d1d70b38b9c38304a49040ab6253c068edf3", + "message": "use same order_ids for merchant order", + "author": "Mrudul Vajpayee", + "date": "2025-10-07T09:52:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2a97d1d70b38b9c38304a49040ab6253c068edf3" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9810.json b/prs/pr_9810.json new file mode 100644 index 0000000000000000000000000000000000000000..e7309f20cabdac4f034ab6feb75f30840238dc6e --- /dev/null +++ b/prs/pr_9810.json @@ -0,0 +1,254 @@ +{ + "number": 9810, + "title": "feat(connector): [Finix] Add support for Apple Pay", + "description": "## Type of Change\r\n\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\r\nAdd support for Apple Pay - connector decryption flow\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\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\nConfirm:\r\n\r\n```\r\n\r\n{\r\n\t\"confirm\": true,\r\n\t\"payment_method\": \"wallet\",\r\n\t\"payment_method_type\": \"apple_pay\",\r\n \"payment_method_data\": {\r\n \"wallet\": {\r\n \"apple_pay\": {\r\n \"payment_data\": \"*****************************\",\r\n \"payment_method\": {\r\n \"display_name\": \"MasterCard 0049\",\r\n \"network\": \"MasterCard\",\r\n \"type\": \"credit\"\r\n },\r\n \"transaction_identifier\": \"a8eb77a21a0f756c250bd54798ba\"\r\n }\r\n }\r\n },\r\n\t\"browser_info\": {\r\n\t\t\"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\t\t\"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n\t\t\"language\": \"nl-NL\",\r\n\t\t\"color_depth\": 24,\r\n\t\t\"screen_height\": 723,\r\n\t\t\"screen_width\": 1536,\r\n\t\t\"time_zone\": 0,\r\n\t\t\"java_enabled\": true,\r\n\t\t\"java_script_enabled\": true,\r\n\t\t\"ip_address\": \"127.0.0.1\"\r\n\t},\r\n\t\"billing\": {\r\n\t\t\"address\": {\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\"\r\n\t\t}\r\n\t},\r\n\t\"shipping\": {\r\n\t\t\"address\": {\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\"\r\n\t\t}\r\n\t}\r\n}\r\n\r\n```\r\n\r\n\r\nRespose:\r\n\r\n```\r\n\r\n{\r\n \"payment_id\": \"pay_IvgFO1ATXqkyT9Jz0WoH\",\r\n \"merchant_id\": \"merchant_1760438691\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1000,\r\n \"net_amount\": 1000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 1000,\r\n \"connector\": \"finix\",\r\n \"client_secret\": \"pay_IvgFO1ATXqkyT9Jz0WoH_secret_VTXNamyenlcYCUedOyxl\",\r\n \"created\": \"2025-10-14T10:44:59.978Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"customer\": {\r\n \"id\": \"StripeCustomer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"likhin.bopanna@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\": \"wallet\",\r\n \"payment_method_data\": {\r\n \"wallet\": {\r\n \"apple_pay\": {\r\n \"last4\": \"0049\",\r\n \"card_network\": \"MasterCard\",\r\n \"type\": \"credit\"\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\": \"John\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": 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\": \"John\",\r\n \"last_name\": \"Doe\",\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\": \"likhin.bopanna@gmail.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\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\": \"apple_pay\",\r\n \"connector_label\": \"finix_US_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\": null,\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"TRwEH1QURtwwKFB8G1JWUV4A\",\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\": {\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_Flwjsspg08pCqBIORMdb\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_w9OnAUj5VKe68kric9i1\",\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-10-14T10:59:59.978Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": {\r\n \"os_type\": null,\r\n \"referer\": null,\r\n \"language\": \"nl-NL\",\r\n \"time_zone\": 0,\r\n \"ip_address\": \"127.0.0.1\",\r\n \"os_version\": null,\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 \"device_model\": null,\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 \"accept_language\": \"en\",\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-10-14T10:45:59.882Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": 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 \"is_stored_credential\": null,\r\n \"mit_category\": null\r\n}\r\n\r\n```\r\n\r\n\r\n## Checklist\r\n\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", + "author": "Vani-1107", + "created_at": "2025-10-13T09:41:32+00:00", + "merged_at": "2025-10-16T08:13:01+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "C-feature" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9810", + "commits": [ + { + "sha": "28cb7c93366cd025565eee571925dfd14d6b4890", + "message": "feat(finix): template code", + "author": "nihtin", + "date": "2025-09-25T07:39:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/28cb7c93366cd025565eee571925dfd14d6b4890" + }, + { + "sha": "9601ce72795c6e6a77488e8cd14e69ff061e69d4", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into finix", + "author": "nihtin", + "date": "2025-09-25T10:35:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9601ce72795c6e6a77488e8cd14e69ff061e69d4" + }, + { + "sha": "0ad88dbca45a04bcddf896506c204375da020efd", + "message": "Update", + "author": "nihtin", + "date": "2025-09-25T10:44:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0ad88dbca45a04bcddf896506c204375da020efd" + }, + { + "sha": "b6b2b19246abea48eeeee3e192eec3b11bbb99f4", + "message": "update", + "author": "nihtin", + "date": "2025-09-25T10:52:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b6b2b19246abea48eeeee3e192eec3b11bbb99f4" + }, + { + "sha": "2f39976913fd75c5d637633d82e32068b7655542", + "message": "Clippy fix", + "author": "nihtin", + "date": "2025-09-25T11:21:18+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2f39976913fd75c5d637633d82e32068b7655542" + }, + { + "sha": "77536952f35565056c61c1aa4ce5aeb7d9a18044", + "message": "update", + "author": "nihtin", + "date": "2025-09-30T07:47:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/77536952f35565056c61c1aa4ce5aeb7d9a18044" + }, + { + "sha": "00c57aa434d9e86294530e0aa5b5b96f680e8cf5", + "message": "update", + "author": "nihtin", + "date": "2025-09-30T11:35:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/00c57aa434d9e86294530e0aa5b5b96f680e8cf5" + }, + { + "sha": "0c8d20b55a122d08e48895ab97e9a5a12259317e", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into finix_impl", + "author": "nihtin", + "date": "2025-09-30T11:40:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0c8d20b55a122d08e48895ab97e9a5a12259317e" + }, + { + "sha": "a481618feeecdc42f089811122d5f06894fcc2ce", + "message": "Authorize + capture", + "author": "nihtin", + "date": "2025-10-03T10:05:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a481618feeecdc42f089811122d5f06894fcc2ce" + }, + { + "sha": "19d5df974d0ffbc9021acd250a323afcbe376ed6", + "message": "Update", + "author": "nihtin", + "date": "2025-10-06T06:35:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/19d5df974d0ffbc9021acd250a323afcbe376ed6" + }, + { + "sha": "b6a210f11e6253d3b982891d3a4aaeb6a25b02c0", + "message": "update", + "author": "nihtin", + "date": "2025-10-06T07:27:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b6a210f11e6253d3b982891d3a4aaeb6a25b02c0" + }, + { + "sha": "2589c046b63d2d4535d6665fe32d1e82bbd228b6", + "message": "update", + "author": "nihtin", + "date": "2025-10-06T07:44:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2589c046b63d2d4535d6665fe32d1e82bbd228b6" + }, + { + "sha": "b48b57fa45e43496dd3e0e5592f9e3dbefa65265", + "message": "Update", + "author": "nihtin", + "date": "2025-10-06T07:53:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b48b57fa45e43496dd3e0e5592f9e3dbefa65265" + }, + { + "sha": "7b321bb37f96f75afa6abdfe743ca59ea20ba4d4", + "message": "update", + "author": "nihtin", + "date": "2025-10-06T07:54:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7b321bb37f96f75afa6abdfe743ca59ea20ba4d4" + }, + { + "sha": "e66e38ebf5d77656f748aef4b4b1c120b1b07772", + "message": "update", + "author": "nihtin", + "date": "2025-10-06T08:22:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e66e38ebf5d77656f748aef4b4b1c120b1b07772" + }, + { + "sha": "a2f0d014d59a8b15d7d5762dea2d125c1bb5fcda", + "message": "update", + "author": "nihtin", + "date": "2025-10-06T09:27:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a2f0d014d59a8b15d7d5762dea2d125c1bb5fcda" + }, + { + "sha": "2a864a8099273b008aee7069ad41ce33b0eefcc5", + "message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into finix_impl", + "author": "nihtin", + "date": "2025-10-06T10:39:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2a864a8099273b008aee7069ad41ce33b0eefcc5" + }, + { + "sha": "0847a492acc1f055965fd810cb3c8692d1186b52", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-10-06T10:40:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0847a492acc1f055965fd810cb3c8692d1186b52" + }, + { + "sha": "b764730bdcaa94938622313ac0709cd08f8642d2", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-10-06T10:48:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b764730bdcaa94938622313ac0709cd08f8642d2" + }, + { + "sha": "8a0ecbf49518a5fcf3f1d92efd2a5d14d329385e", + "message": "uddds", + "author": "nihtin", + "date": "2025-10-06T10:50:20+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/8a0ecbf49518a5fcf3f1d92efd2a5d14d329385e" + }, + { + "sha": "435ca4258150d5d8e0f2af87fb4f6cf9ca5bb29d", + "message": "update", + "author": "nihtin", + "date": "2025-10-06T11:04:22+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/435ca4258150d5d8e0f2af87fb4f6cf9ca5bb29d" + }, + { + "sha": "3becd04a92a2bcb35d921c0c7b0c732a57f77348", + "message": "Update", + "author": "nihtin", + "date": "2025-10-06T11:29:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3becd04a92a2bcb35d921c0c7b0c732a57f77348" + }, + { + "sha": "12438a94afee20ec19a94828e8b60bd6c8c20ba3", + "message": "fix", + "author": "nihtin", + "date": "2025-10-07T04:30:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/12438a94afee20ec19a94828e8b60bd6c8c20ba3" + }, + { + "sha": "56a7288c154b55e5b56fd6d262e0bebdc6bcc5b1", + "message": "update", + "author": "nihtin", + "date": "2025-10-07T04:44:05+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/56a7288c154b55e5b56fd6d262e0bebdc6bcc5b1" + }, + { + "sha": "21d9f179ca84b16a0f2710f50ff619e50e4c7bfd", + "message": "update: comments", + "author": "nihtin", + "date": "2025-10-08T04:31:41+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/21d9f179ca84b16a0f2710f50ff619e50e4c7bfd" + }, + { + "sha": "fdfd8d2d4ba2f4fd2356079e21a70b0c4d9d59fc", + "message": "update", + "author": "nihtin", + "date": "2025-10-08T05:37:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fdfd8d2d4ba2f4fd2356079e21a70b0c4d9d59fc" + }, + { + "sha": "2d276e341b88603e9c25d47fb429d68e6c2ca114", + "message": "Update", + "author": "nihtin", + "date": "2025-10-08T09:26:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2d276e341b88603e9c25d47fb429d68e6c2ca114" + }, + { + "sha": "f2a5456449edc5ea1baa922c4a61abb08a4a83de", + "message": "Merge branch 'main' into finix-apple-pay", + "author": "Vani Gupta", + "date": "2025-10-08T09:52:17+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f2a5456449edc5ea1baa922c4a61abb08a4a83de" + }, + { + "sha": "7a43e8fee7516a7e9186262db3931e350b57ea85", + "message": "Merge branch 'main' into finix-apple-pay", + "author": "Vani Gupta", + "date": "2025-10-13T07:43:11+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7a43e8fee7516a7e9186262db3931e350b57ea85" + }, + { + "sha": "5919c38c054ab11ea1eea2fd1c72d67edfcb86ce", + "message": "finix apple pay", + "author": "Vani Gupta", + "date": "2025-10-13T09:36:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5919c38c054ab11ea1eea2fd1c72d67edfcb86ce" + }, + { + "sha": "4c84bdcf4be24a383b9d6661338b42e7eebfa67a", + "message": "fix", + "author": "Vani Gupta", + "date": "2025-10-13T09:47:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4c84bdcf4be24a383b9d6661338b42e7eebfa67a" + }, + { + "sha": "752d136292c25504cf20543bde3da64f7c832f7c", + "message": "resolve comments", + "author": "Vani Gupta", + "date": "2025-10-14T12:30:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/752d136292c25504cf20543bde3da64f7c832f7c" + }, + { + "sha": "b42ad8a4b0e8e283d5f42539b608027c50c1624e", + "message": "resolve comments", + "author": "Vani Gupta", + "date": "2025-10-14T13:28:59+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b42ad8a4b0e8e283d5f42539b608027c50c1624e" + }, + { + "sha": "5d5b806624f612c32e0730d1f17a731876f63eeb", + "message": "resolve merge conflicts", + "author": "Vani Gupta", + "date": "2025-10-16T03:55:26+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5d5b806624f612c32e0730d1f17a731876f63eeb" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9818.json b/prs/pr_9818.json new file mode 100644 index 0000000000000000000000000000000000000000..9bd161cf6ddc2745a53766d4ae7eca604cc6171b --- /dev/null +++ b/prs/pr_9818.json @@ -0,0 +1,338 @@ +{ + "number": 9818, + "title": "feat(revenue_recovery): Enable multiple retries for partial charged payments", + "description": "## Type of Change\r\n\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\r\n

Current Implementation


The current Partial Authorization mechanism involves:

  • Enabling a partial authz flag in the payment intent sent to the connector during the authorize request.

  • Updating the payment intent and payment status to partially_charged and partial_captured if the amount_captured is less than the actual amount, based on the connector's response.

  • Treating PartialCharged as a terminal status in revenue recovery.

Proposed Functionality


The goal is to change the behavior of PartialCharged status:

  • PartialCharged should no longer be a terminal status.

  • The system needs to continuously retry the invoice for the remaining amount.

Solution Overview: Adopting an Intent and Multiple Attempts Model


To achieve the desired retrial functionality, we will adopt a structure similar to split payments, utilizing intents and multiple attempts:

  1. Invoice and Payment Intent Association: An invoice will be linked to a single payment_intent.

  2. Multiple Attempts: The payment intent will manage multiple attempts.

  3. Active Attempts Group: A single active_attempts_group_id will be attached to the payment_intent.

    • Example: If the payment intent has active_group_id = 12345_atg_019a72bb833b7352a4e82674ae53a176, every subsequent attempt will use this attempt_group_id.

Tracking Amount Captured


To track the partial amount captured across multiple retries, a new field, amount_captured, will be introduced in the attempt table, in addition to the existing one in the intent table.

  • The intent's amount_captured tracks the total amount captured from the intent's net amount.

  • The new attempt-level amount_captured will track how much was captured in that specific attempt.

Example Flow

\r\nintent_id | attempt_id | intent.amount | intent.amount_captured | attempt.net_amount | attempt.amount_captured\r\n-- | -- | -- | -- | -- | --\r\nid_1 | at_1 | 1000 | 500 | 1000 | 500\r\nid_1 | at_2 | 1000 | 750 | 500 | 250\r\nid_1 | at_3 | 1000 | 900 | 250 | 150\r\nid_1 | at_4 | 1000 | 1000 | 100 | 100\r\n\r\n- Payment update api will handle migrations, Currently we have this combination of payment intent and its active attempt status in production DB \r\n

combination of attempt and intent status 


\r\nIntent Statu | Attempt Status\r\n -- | --\r\nsucceeded | charged\r\nfailed | failure\r\nprocessing | started\r\nprocessing | pending\r\npartially_captured | partial_charged\r\n\r\n
\r\n\r\nFor succeeded and failure, it is not required to back fill the group id's. For Partial captured payments we will update the group id, active group id, for future partial charges the above process will continue. \r\n\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\n\r\n\r\n## Motivation and Context\r\n\r\nHow the flow look like \r\n**Consumer flow** \r\nThis should create external attempt and create calculate workflow and schedule it. Once the calculate selects the token, we schedule the execute workflow. \r\n

Status Change for Payment Intent and Attempt 

event means Recovery -> payments


 


Payment Intent and Attempt Status Transitions(Recovery to payments service)

\r\nEvent | Payment Intent Status | Payment Attempt Status\r\n-- | -- | --\r\nIntent created | Requires payment method | -\r\nAttempt recorded (External) | Failed | Failed (external)\r\nAttempt created (Internal) | Processing | started\r\nProxyCallConnector update | Failed | Failed\r\nAttempt created (Internal) | Processing | started\r\nProxyCallConnector update | Partially_captured | Partial_charged\r\nAttempt created (Internal) | PartiallCapturedAndProcessing | started\r\nProxyCallConnector update | PartiallyCapturedAndProcessing | Pending\r\nForceSyncConnector update | PartiallyCharged | PartialCharged\r\nAttempt created (Internal) | PartiallCapturedAndProcessing | started\r\nProxyCallConnector update | PartiallyCaptured | Failed\r\nAttempt created (Internal) | PartiallCapturedAndProcessing | started\r\nProxyCallConnector update | PartiallyCapturedAndProcessing | Pending\r\nForceSyncConnector update | succeeded | charged\r\n\r\n
\r\n\r\n\r\n## How did you test it?\r\n\r\nSet up custom revenue recovery setup\r\n\r\n\r\n
\r\n\r\n hit /recovery api : \r\n\r\n```\r\n\r\ncurl --location 'http://localhost:8080/v2/payments/recovery' \\\r\n--header 'Authorization: api-key=' \\\r\n--header 'x-profile-id: pro_AhHSTtP9nNj4FCI7jpk5' \\\r\n--header 'x-merchant-id: cloth_seller_6v00OPjhY68gyO96OUdQ' \\\r\n--header 'Content-Type: application/json' \\\r\n--data '{\r\n \"amount_details\": {\r\n \"order_amount\": 50000,\r\n \"currency\": \"USD\"\r\n },\r\n \"merchant_reference_id\": \"refId\",\r\n \"connector_transaction_id\": \"trans672\",\r\n \"connector_customer_id\": \"custf672\",\r\n \"error\": {\r\n \"code\": \"148\",\r\n \"message\": \"Invalid or expired card\"\r\n },\r\n \"enable_partial_authorization\" : true,\r\n \"billing\": {\r\n \"address\": {\r\n \"state\": \"CA\",\r\n \"country\": \"US\"\r\n }\r\n },\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_sub_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"primary_processor_payment_method_token\": \"271349160840009\",\r\n \"additional_payment_method_info\": {\r\n \"card_exp_month\": \"04\",\r\n \"card_exp_year\": \"50\",\r\n \"last_four_digits\": \"0009\",\r\n \"card_network\": \"AMEX\",\r\n \"card_issuer\": \"Wells Fargo\",\r\n \"card_type\": \"debit\"\r\n }\r\n },\r\n \"billing_started_at\": \"2024-05-29T08:10:58Z\",\r\n \"transaction_created_at\": \"2024-05-29T08:10:58Z\",\r\n \"attempt_status\": \"failure\",\r\n \"action\": \"schedule_failed_payment\",\r\n \"billing_merchant_connector_id\": \"mca_pDzcI4qZ7gSJLeneY9AR\",\r\n \"payment_merchant_connector_id\": \"mca_kB617102ErfUAhvkMn8a\",\r\n \"metadata\": {\r\n \"BudgetPayId\": \"TEST_1234\"\r\n }\r\n}'\r\n\r\n```\r\n\r\n
\r\n\r\n\r\nTest case 2 : Direct success after first internal attempt\r\n
\r\n\r\nresponse : \r\n\r\n```\r\n\r\n{\r\n \"id\": \"12345_pay_019a9b7828d07ef2a95e4a4e045337d0\",\r\n \"status\": \"succeeded\",\r\n \"amount\": {\r\n \"order_amount\": 50000,\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\": 50000,\r\n \"amount_to_capture\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_captured\": 50000\r\n },\r\n \"customer_id\": null,\r\n \"connector\": \"worldpayvantiv\",\r\n \"created\": \"2025-11-19T09:35:34.617Z\",\r\n \"modified_at\": \"2025-11-19T09:37:36.460Z\",\r\n \"payment_method_data\": {\r\n \"billing\": null\r\n },\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_subtype\": \"credit\",\r\n \"connector_transaction_id\": \"83998108593080725\",\r\n \"connector_reference_id\": \"246523904728\",\r\n \"merchant_connector_id\": \"mca_EiMFMqn812jI0yRlBmSe\",\r\n \"browser_info\": null,\r\n \"error\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": null,\r\n \"country\": \"US\",\r\n \"line1\": null,\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": null,\r\n \"state\": \"CA\",\r\n \"first_name\": null,\r\n \"last_name\": null,\r\n \"origin_zip\": null\r\n },\r\n \"phone\": null,\r\n \"email\": null\r\n },\r\n \"attempts\": null,\r\n \"connector_token_details\": {\r\n \"token\": \"5454540204265454\",\r\n \"connector_token_request_reference_id\": null\r\n },\r\n \"payment_method_id\": null,\r\n \"next_action\": null,\r\n \"return_url\": \"https://google.com/success\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"authentication_type_applied\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"merchant_reference_id\": \"demo_payment_3\",\r\n \"raw_connector_response\": null,\r\n \"feature_metadata\": {\r\n \"redirect_response\": null,\r\n \"search_tags\": null,\r\n \"apple_pay_recurring_details\": null,\r\n \"revenue_recovery\": {\r\n \"total_retry_count\": 2,\r\n \"payment_connector_transmission\": \"ConnectorCallSucceeded\",\r\n \"billing_connector_id\": \"mca_3E02o5YJtEbvB96uq3fs\",\r\n \"active_attempt_payment_connector_id\": \"mca_EiMFMqn812jI0yRlBmSe\",\r\n \"billing_connector_payment_details\": {\r\n \"payment_processor_token\": \"5454540204265454\",\r\n \"connector_customer_id\": \"custf672\"\r\n },\r\n \"payment_method_type\": \"card\",\r\n \"payment_method_subtype\": \"credit\",\r\n \"connector\": \"worldpayvantiv\",\r\n \"billing_connector_payment_method_details\": {\r\n \"type\": \"card\",\r\n \"value\": {\r\n \"card_network\": \"AmericanExpress\",\r\n \"card_issuer\": \"Wells Fargo\"\r\n }\r\n },\r\n \"invoice_next_billing_time\": null,\r\n \"invoice_billing_started_at_time\": null,\r\n \"first_payment_attempt_pg_error_code\": \"500\",\r\n \"first_payment_attempt_network_decline_code\": null,\r\n \"first_payment_attempt_network_advice_code\": null\r\n }\r\n },\r\n \"metadata\": {\r\n \"BudgetPayId\": \"TEST_1234\"\r\n }\r\n}\r\n\r\n\r\n```\r\n
\r\n\r\n\"Screenshot\r\n\r\nTest case3 : \r\nfailed test card , multiple internal attempts failure \r\n\r\nBin - 0008\r\nmandate id - 2541911049890008\r\nexp month - 06\r\nexp year - 50\r\ncustomer_id = cus_0001\r\n\r\n
\r\nattempt list response : \r\n\r\n```\r\n{\r\n \"payment_attempt_list\": [\r\n {\r\n \"id\": \"12345_att_019a9b7f178870e3b52eff75dc5daefd\",\r\n \"status\": \"failure\",\r\n \"amount\": {\r\n \"net_amount\": 50000,\r\n \"amount_to_capture\": null,\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"amount_capturable\": 0,\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"amount_captured\": null\r\n },\r\n \"connector\": \"worldpayvantiv\",\r\n \"error\": {\r\n \"code\": \"500\",\r\n \"message\": \"internal_server_error\",\r\n \"reason\": \"{\\\"errorMessages\\\":[\\\"Internal Error. This Error has already been escalated to Vantiv for resolution. Please contact support with questions.\\\"]}\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"network_advice_code\": null,\r\n \"network_decline_code\": null,\r\n \"network_error_message\": null\r\n },\r\n \"authentication_type\": \"no_three_ds\",\r\n \"created_at\": \"2024-05-29T08:10:58.000Z\",\r\n \"modified_at\": \"2025-11-19T09:43:10.064Z\",\r\n \"cancellation_reason\": null,\r\n \"payment_token\": \"2541911049890008\",\r\n \"connector_metadata\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"card\",\r\n \"connector_reference_id\": null,\r\n \"payment_method_subtype\": \"credit\",\r\n \"connector_payment_id\": {\r\n \"TxnId\": \"trans672294\"\r\n },\r\n \"payment_method_id\": null,\r\n \"client_source\": null,\r\n \"client_version\": null,\r\n \"feature_metadata\": {\r\n \"revenue_recovery\": {\r\n \"attempt_triggered_by\": \"external\",\r\n \"charge_id\": null\r\n }\r\n },\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": null,\r\n \"card_type\": \"debit\",\r\n \"card_network\": \"AmericanExpress\",\r\n \"card_issuer\": \"Wells Fargo\",\r\n \"card_issuing_country\": null,\r\n \"card_isin\": null,\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"06\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n }\r\n },\r\n {\r\n \"id\": \"12345_att_019a9b800a3e70d2b46bce683ed779d3\",\r\n \"status\": \"failure\",\r\n \"amount\": {\r\n \"net_amount\": 50000,\r\n \"amount_to_capture\": null,\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"amount_capturable\": 0,\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"amount_captured\": null\r\n },\r\n \"connector\": \"worldpayvantiv\",\r\n \"error\": {\r\n \"code\": \"110\",\r\n \"message\": \"Insufficient Funds\",\r\n \"reason\": \"Insufficient Funds\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"network_advice_code\": null,\r\n \"network_decline_code\": \"51\",\r\n \"network_error_message\": \"Insufficient Funds\"\r\n },\r\n \"authentication_type\": \"no_three_ds\",\r\n \"created_at\": \"2025-11-19T09:44:11.070Z\",\r\n \"modified_at\": \"2025-11-19T09:44:12.490Z\",\r\n \"cancellation_reason\": null,\r\n \"payment_token\": \"2541911049890008\",\r\n \"connector_metadata\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"card\",\r\n \"connector_reference_id\": null,\r\n \"payment_method_subtype\": \"credit\",\r\n \"connector_payment_id\": {\r\n \"TxnId\": \"83998108593101562\"\r\n },\r\n \"payment_method_id\": null,\r\n \"client_source\": null,\r\n \"client_version\": null,\r\n \"feature_metadata\": {\r\n \"revenue_recovery\": {\r\n \"attempt_triggered_by\": \"internal\",\r\n \"charge_id\": null\r\n }\r\n },\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": null,\r\n \"card_type\": \"debit\",\r\n \"card_network\": \"AmericanExpress\",\r\n \"card_issuer\": \"Wells Fargo\",\r\n \"card_issuing_country\": null,\r\n \"card_isin\": null,\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"06\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n }\r\n },\r\n {\r\n \"id\": \"12345_att_019a9b80cd757141a55bdfb638d09a4a\",\r\n \"status\": \"failure\",\r\n \"amount\": {\r\n \"net_amount\": 50000,\r\n \"amount_to_capture\": null,\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"amount_capturable\": 0,\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"amount_captured\": null\r\n },\r\n \"connector\": \"worldpayvantiv\",\r\n \"error\": {\r\n \"code\": \"110\",\r\n \"message\": \"Insufficient Funds\",\r\n \"reason\": \"Insufficient Funds\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"network_advice_code\": null,\r\n \"network_decline_code\": \"51\",\r\n \"network_error_message\": \"Insufficient Funds\"\r\n },\r\n \"authentication_type\": \"no_three_ds\",\r\n \"created_at\": \"2025-11-19T09:45:01.045Z\",\r\n \"modified_at\": \"2025-11-19T09:45:02.203Z\",\r\n \"cancellation_reason\": null,\r\n \"payment_token\": \"2541911049890008\",\r\n \"connector_metadata\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"card\",\r\n \"connector_reference_id\": null,\r\n \"payment_method_subtype\": \"credit\",\r\n \"connector_payment_id\": {\r\n \"TxnId\": \"83998108593102529\"\r\n },\r\n \"payment_method_id\": null,\r\n \"client_source\": null,\r\n \"client_version\": null,\r\n \"feature_metadata\": {\r\n \"revenue_recovery\": {\r\n \"attempt_triggered_by\": \"internal\",\r\n \"charge_id\": null\r\n }\r\n },\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": null,\r\n \"card_type\": \"debit\",\r\n \"card_network\": \"AmericanExpress\",\r\n \"card_issuer\": \"Wells Fargo\",\r\n \"card_issuing_country\": null,\r\n \"card_isin\": null,\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"06\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n }\r\n },\r\n {\r\n \"id\": \"12345_att_019a9b81b7f770a180ea3e40c2b1a490\",\r\n \"status\": \"failure\",\r\n \"amount\": {\r\n \"net_amount\": 50000,\r\n \"amount_to_capture\": null,\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"amount_capturable\": 0,\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"amount_captured\": null\r\n },\r\n \"connector\": \"worldpayvantiv\",\r\n \"error\": {\r\n \"code\": \"110\",\r\n \"message\": \"Insufficient Funds\",\r\n \"reason\": \"Insufficient Funds\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"network_advice_code\": null,\r\n \"network_decline_code\": \"51\",\r\n \"network_error_message\": \"Insufficient Funds\"\r\n },\r\n \"authentication_type\": \"no_three_ds\",\r\n \"created_at\": \"2025-11-19T09:46:01.080Z\",\r\n \"modified_at\": \"2025-11-19T09:46:02.272Z\",\r\n \"cancellation_reason\": null,\r\n \"payment_token\": \"2541911049890008\",\r\n \"connector_metadata\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"card\",\r\n \"connector_reference_id\": null,\r\n \"payment_method_subtype\": \"credit\",\r\n \"connector_payment_id\": {\r\n \"TxnId\": \"84086067783047475\"\r\n },\r\n \"payment_method_id\": null,\r\n \"client_source\": null,\r\n \"client_version\": null,\r\n \"feature_metadata\": {\r\n \"revenue_recovery\": {\r\n \"attempt_triggered_by\": \"internal\",\r\n \"charge_id\": null\r\n }\r\n },\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": null,\r\n \"card_type\": \"debit\",\r\n \"card_network\": \"AmericanExpress\",\r\n \"card_issuer\": \"Wells Fargo\",\r\n \"card_issuing_country\": null,\r\n \"card_isin\": null,\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"06\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n }\r\n }\r\n ]\r\n}\r\n\r\n```\r\n
\r\n\r\nTest case 4 : \r\n1 external attempt , 2 failed internal attempt, 1 partial charged attempt, 1 succeded attempt \r\n
\r\n\r\nattempt list response : \r\n```\r\n\r\n{\r\n \"payment_attempt_list\": [\r\n {\r\n \"id\": \"12345_att_019a9b7f178870e3b52eff75dc5daefd\",\r\n \"status\": \"failure\",\r\n \"amount\": {\r\n \"net_amount\": 50000,\r\n \"amount_to_capture\": null,\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"amount_capturable\": 0,\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"amount_captured\": null\r\n },\r\n \"connector\": \"worldpayvantiv\",\r\n \"error\": {\r\n \"code\": \"500\",\r\n \"message\": \"internal_server_error\",\r\n \"reason\": \"{\\\"errorMessages\\\":[\\\"Internal Error. This Error has already been escalated to Vantiv for resolution. Please contact support with questions.\\\"]}\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"network_advice_code\": null,\r\n \"network_decline_code\": null,\r\n \"network_error_message\": null\r\n },\r\n \"authentication_type\": \"no_three_ds\",\r\n \"created_at\": \"2024-05-29T08:10:58.000Z\",\r\n \"modified_at\": \"2025-11-19T09:43:10.064Z\",\r\n \"cancellation_reason\": null,\r\n \"payment_token\": \"2541911049890008\",\r\n \"connector_metadata\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"card\",\r\n \"connector_reference_id\": null,\r\n \"payment_method_subtype\": \"credit\",\r\n \"connector_payment_id\": {\r\n \"TxnId\": \"trans672294\"\r\n },\r\n \"payment_method_id\": null,\r\n \"client_source\": null,\r\n \"client_version\": null,\r\n \"feature_metadata\": {\r\n \"revenue_recovery\": {\r\n \"attempt_triggered_by\": \"external\",\r\n \"charge_id\": null\r\n }\r\n },\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": null,\r\n \"card_type\": \"debit\",\r\n \"card_network\": \"AmericanExpress\",\r\n \"card_issuer\": \"Wells Fargo\",\r\n \"card_issuing_country\": null,\r\n \"card_isin\": null,\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"06\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n }\r\n },\r\n {\r\n \"id\": \"12345_att_019a9b800a3e70d2b46bce683ed779d3\",\r\n \"status\": \"failure\",\r\n \"amount\": {\r\n \"net_amount\": 50000,\r\n \"amount_to_capture\": null,\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"amount_capturable\": 0,\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"amount_captured\": null\r\n },\r\n \"connector\": \"worldpayvantiv\",\r\n \"error\": {\r\n \"code\": \"110\",\r\n \"message\": \"Insufficient Funds\",\r\n \"reason\": \"Insufficient Funds\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"network_advice_code\": null,\r\n \"network_decline_code\": \"51\",\r\n \"network_error_message\": \"Insufficient Funds\"\r\n },\r\n \"authentication_type\": \"no_three_ds\",\r\n \"created_at\": \"2025-11-19T09:44:11.070Z\",\r\n \"modified_at\": \"2025-11-19T09:44:12.490Z\",\r\n \"cancellation_reason\": null,\r\n \"payment_token\": \"2541911049890008\",\r\n \"connector_metadata\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"card\",\r\n \"connector_reference_id\": null,\r\n \"payment_method_subtype\": \"credit\",\r\n \"connector_payment_id\": {\r\n \"TxnId\": \"83998108593101562\"\r\n },\r\n \"payment_method_id\": null,\r\n \"client_source\": null,\r\n \"client_version\": null,\r\n \"feature_metadata\": {\r\n \"revenue_recovery\": {\r\n \"attempt_triggered_by\": \"internal\",\r\n \"charge_id\": null\r\n }\r\n },\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": null,\r\n \"card_type\": \"debit\",\r\n \"card_network\": \"AmericanExpress\",\r\n \"card_issuer\": \"Wells Fargo\",\r\n \"card_issuing_country\": null,\r\n \"card_isin\": null,\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"06\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n }\r\n },\r\n {\r\n \"id\": \"12345_att_019a9b80cd757141a55bdfb638d09a4a\",\r\n \"status\": \"failure\",\r\n \"amount\": {\r\n \"net_amount\": 50000,\r\n \"amount_to_capture\": null,\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"amount_capturable\": 0,\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"amount_captured\": null\r\n },\r\n \"connector\": \"worldpayvantiv\",\r\n \"error\": {\r\n \"code\": \"110\",\r\n \"message\": \"Insufficient Funds\",\r\n \"reason\": \"Insufficient Funds\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"network_advice_code\": null,\r\n \"network_decline_code\": \"51\",\r\n \"network_error_message\": \"Insufficient Funds\"\r\n },\r\n \"authentication_type\": \"no_three_ds\",\r\n \"created_at\": \"2025-11-19T09:45:01.045Z\",\r\n \"modified_at\": \"2025-11-19T09:45:02.203Z\",\r\n \"cancellation_reason\": null,\r\n \"payment_token\": \"2541911049890008\",\r\n \"connector_metadata\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"card\",\r\n \"connector_reference_id\": null,\r\n \"payment_method_subtype\": \"credit\",\r\n \"connector_payment_id\": {\r\n \"TxnId\": \"83998108593102529\"\r\n },\r\n \"payment_method_id\": null,\r\n \"client_source\": null,\r\n \"client_version\": null,\r\n \"feature_metadata\": {\r\n \"revenue_recovery\": {\r\n \"attempt_triggered_by\": \"internal\",\r\n \"charge_id\": null\r\n }\r\n },\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": null,\r\n \"card_type\": \"debit\",\r\n \"card_network\": \"AmericanExpress\",\r\n \"card_issuer\": \"Wells Fargo\",\r\n \"card_issuing_country\": null,\r\n \"card_isin\": null,\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"06\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n }\r\n },\r\n {\r\n \"id\": \"12345_att_019a9b81b7f770a180ea3e40c2b1a490\",\r\n \"status\": \"failure\",\r\n \"amount\": {\r\n \"net_amount\": 50000,\r\n \"amount_to_capture\": null,\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"amount_capturable\": 0,\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"amount_captured\": null\r\n },\r\n \"connector\": \"worldpayvantiv\",\r\n \"error\": {\r\n \"code\": \"110\",\r\n \"message\": \"Insufficient Funds\",\r\n \"reason\": \"Insufficient Funds\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"network_advice_code\": null,\r\n \"network_decline_code\": \"51\",\r\n \"network_error_message\": \"Insufficient Funds\"\r\n },\r\n \"authentication_type\": \"no_three_ds\",\r\n \"created_at\": \"2025-11-19T09:46:01.080Z\",\r\n \"modified_at\": \"2025-11-19T09:46:02.272Z\",\r\n \"cancellation_reason\": null,\r\n \"payment_token\": \"2541911049890008\",\r\n \"connector_metadata\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"card\",\r\n \"connector_reference_id\": null,\r\n \"payment_method_subtype\": \"credit\",\r\n \"connector_payment_id\": {\r\n \"TxnId\": \"84086067783047475\"\r\n },\r\n \"payment_method_id\": null,\r\n \"client_source\": null,\r\n \"client_version\": null,\r\n \"feature_metadata\": {\r\n \"revenue_recovery\": {\r\n \"attempt_triggered_by\": \"internal\",\r\n \"charge_id\": null\r\n }\r\n },\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": null,\r\n \"card_type\": \"debit\",\r\n \"card_network\": \"AmericanExpress\",\r\n \"card_issuer\": \"Wells Fargo\",\r\n \"card_issuing_country\": null,\r\n \"card_isin\": null,\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"06\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n }\r\n },\r\n {\r\n \"id\": \"12345_att_019a9b9085217dd2bac336150c09c55a\",\r\n \"status\": \"partial_charged\",\r\n \"amount\": {\r\n \"net_amount\": 50000,\r\n \"amount_to_capture\": null,\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"amount_capturable\": 0,\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"amount_captured\": 40000\r\n },\r\n \"connector\": \"worldpayvantiv\",\r\n \"error\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"created_at\": \"2025-11-19T10:02:11.105Z\",\r\n \"modified_at\": \"2025-11-19T10:02:22.441Z\",\r\n \"cancellation_reason\": null,\r\n \"payment_token\": \"271349160840009\",\r\n \"connector_metadata\": {\r\n \"report_group\": \"Hello\",\r\n \"fraud_filter_override\": null\r\n },\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"card\",\r\n \"connector_reference_id\": \"314523616715\",\r\n \"payment_method_subtype\": \"credit\",\r\n \"connector_payment_id\": {\r\n \"TxnId\": \"83998108602648090\"\r\n },\r\n \"payment_method_id\": null,\r\n \"client_source\": null,\r\n \"client_version\": null,\r\n \"feature_metadata\": {\r\n \"revenue_recovery\": {\r\n \"attempt_triggered_by\": \"internal\",\r\n \"charge_id\": null\r\n }\r\n },\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": null,\r\n \"card_type\": \"debit\",\r\n \"card_network\": \"AmericanExpress\",\r\n \"card_issuer\": \"Wells Fargo\",\r\n \"card_issuing_country\": null,\r\n \"card_isin\": null,\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"06\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n }\r\n },\r\n {\r\n \"id\": \"12345_att_019a9b95b5187122bb0c74b2ed90bb4d\",\r\n \"status\": \"charged\",\r\n \"amount\": {\r\n \"net_amount\": 10000,\r\n \"amount_to_capture\": null,\r\n \"surcharge_amount\": null,\r\n \"tax_on_surcharge\": null,\r\n \"amount_capturable\": 0,\r\n \"shipping_cost\": null,\r\n \"order_tax_amount\": null,\r\n \"amount_captured\": 10000\r\n },\r\n \"connector\": \"worldpayvantiv\",\r\n \"error\": null,\r\n \"authentication_type\": \"no_three_ds\",\r\n \"created_at\": \"2025-11-19T10:07:51.064Z\",\r\n \"modified_at\": \"2025-11-19T10:08:02.009Z\",\r\n \"cancellation_reason\": null,\r\n \"payment_token\": \"5454540204265454\",\r\n \"connector_metadata\": {\r\n \"report_group\": \"Hello\",\r\n \"fraud_filter_override\": null\r\n },\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"card\",\r\n \"connector_reference_id\": \"678423917080\",\r\n \"payment_method_subtype\": \"credit\",\r\n \"connector_payment_id\": {\r\n \"TxnId\": \"84086067900014556\"\r\n },\r\n \"payment_method_id\": null,\r\n \"client_source\": null,\r\n \"client_version\": null,\r\n \"feature_metadata\": {\r\n \"revenue_recovery\": {\r\n \"attempt_triggered_by\": \"internal\",\r\n \"charge_id\": null\r\n }\r\n },\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": null,\r\n \"card_type\": \"debit\",\r\n \"card_network\": \"AmericanExpress\",\r\n \"card_issuer\": \"Wells Fargo\",\r\n \"card_issuing_country\": null,\r\n \"card_isin\": null,\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": null,\r\n \"payment_checks\": null,\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n }\r\n }\r\n ]\r\n}\r\n\r\n\r\n```\r\n
\r\n\r\n\r\n\r\n\r\n## Checklist\r\n\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", + "author": "srujanchikke", + "created_at": "2025-10-14T04:58:12+00:00", + "merged_at": "2025-12-08T08:18:22+00:00", + "base_branch": "main", + "labels": [ + "A-core", + "A-payments" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9818", + "commits": [ + { + "sha": "58f80f2ba92408b494dfe35b17c4fe6f2af18145", + "message": "partial_auth_retry", + "author": "Chikke Srujan", + "date": "2025-10-14T04:57:47+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/58f80f2ba92408b494dfe35b17c4fe6f2af18145" + }, + { + "sha": "c9cb69699c0f2a71c58abaefbc9912ad3868ab44", + "message": "Merge branch 'main' into partial_auth_retry", + "author": "chikke srujan", + "date": "2025-10-28T07:38:00+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c9cb69699c0f2a71c58abaefbc9912ad3868ab44" + }, + { + "sha": "6c44a6c458bcad827ca9d7bf587b999f4a030831", + "message": "recovery changes", + "author": "Chikke Srujan", + "date": "2025-11-04T07:14:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6c44a6c458bcad827ca9d7bf587b999f4a030831" + }, + { + "sha": "c5445b24696678ad8fae6e1b8a7d23f4eec57ce4", + "message": "Merge branch 'main' into partial_auth_retry", + "author": "Chikke Srujan", + "date": "2025-11-04T07:28:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c5445b24696678ad8fae6e1b8a7d23f4eec57ce4" + }, + { + "sha": "6160c80a123d59f50f5248bcf8ec8c5e78d744e1", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-11-04T07:32:07+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6160c80a123d59f50f5248bcf8ec8c5e78d744e1" + }, + { + "sha": "a4ff3cc70731a1a3d9cd6f65db85b474ff93161d", + "message": "minor fix", + "author": "Chikke Srujan", + "date": "2025-11-11T11:56:42+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a4ff3cc70731a1a3d9cd6f65db85b474ff93161d" + }, + { + "sha": "b476a15c81d7d0eb6ca5e196f257c11ed2a01505", + "message": "Merge branch 'main' into partial_auth_retry", + "author": "Chikke Srujan", + "date": "2025-11-11T12:00:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b476a15c81d7d0eb6ca5e196f257c11ed2a01505" + }, + { + "sha": "35c50ebf6755dc38bdc3c66b996825e905516f1a", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-11-11T12:03:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/35c50ebf6755dc38bdc3c66b996825e905516f1a" + }, + { + "sha": "1a79896e5a5feca4cb8a50da9701f15b777f4d80", + "message": "clippy fix", + "author": "Chikke Srujan", + "date": "2025-11-11T12:38:28+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1a79896e5a5feca4cb8a50da9701f15b777f4d80" + }, + { + "sha": "a764c828e786bf1eeee0ba81b4e993bf0010e217", + "message": "add amount_captured to payment_attempt", + "author": "Chikke Srujan", + "date": "2025-11-17T04:35:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a764c828e786bf1eeee0ba81b4e993bf0010e217" + }, + { + "sha": "7a0d92b47980092321883d10bc625f17cd4c6222", + "message": "Merge branch 'main' into partial_auth_retry", + "author": "Chikke Srujan", + "date": "2025-11-17T04:51:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7a0d92b47980092321883d10bc625f17cd4c6222" + }, + { + "sha": "cd4efedd39c8c225b05e90fcdc08dd828392de3b", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-11-17T04:53:09+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/cd4efedd39c8c225b05e90fcdc08dd828392de3b" + }, + { + "sha": "fa53e82737ed379e3714a8ef6da693a84adf252d", + "message": "remove current_working attempt id", + "author": "Chikke Srujan", + "date": "2025-11-17T06:38:14+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fa53e82737ed379e3714a8ef6da693a84adf252d" + }, + { + "sha": "abf3700108951b2ecf23ae7592be4875b1e45cf6", + "message": "docs(openapi): re-generate OpenAPI specification", + "author": "hyperswitch-bot[bot]", + "date": "2025-11-17T06:46:18+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/abf3700108951b2ecf23ae7592be4875b1e45cf6" + }, + { + "sha": "fb2cec9e472c67b3c3b6f37f723eb96db233ddec", + "message": "fix v1 clippy", + "author": "Chikke Srujan", + "date": "2025-11-17T07:09:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fb2cec9e472c67b3c3b6f37f723eb96db233ddec" + }, + { + "sha": "0dc955dc8be6627ab37641a996dc726ae25a16c9", + "message": "fix fmt", + "author": "Chikke Srujan", + "date": "2025-11-17T07:17:38+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0dc955dc8be6627ab37641a996dc726ae25a16c9" + }, + { + "sha": "54dcebf6baabf4484ca52eafda86aa1b0dab7053", + "message": "minor fix", + "author": "Chikke Srujan", + "date": "2025-11-17T11:52:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/54dcebf6baabf4484ca52eafda86aa1b0dab7053" + }, + { + "sha": "ba577ca1b8ba8357c5cfb2fac35c8104f90048df", + "message": "Merge branch 'main' into partial_auth_retry", + "author": "Chikke Srujan", + "date": "2025-11-17T11:55:02+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ba577ca1b8ba8357c5cfb2fac35c8104f90048df" + }, + { + "sha": "ea2b57d7656edb671139d05803661e31ca4aaf85", + "message": "clippy fix", + "author": "Chikke Srujan", + "date": "2025-11-17T12:42:25+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ea2b57d7656edb671139d05803661e31ca4aaf85" + }, + { + "sha": "5fe83a06fa8d9410bb07cdd42560606cf9893db5", + "message": "update post update trackers", + "author": "Chikke Srujan", + "date": "2025-11-19T06:29:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5fe83a06fa8d9410bb07cdd42560606cf9893db5" + }, + { + "sha": "fe5a3dfc47feb40bfbd96222ad194a88d3066de4", + "message": "Merge branch 'main' into partial_auth_retry", + "author": "Chikke Srujan", + "date": "2025-11-19T06:31:09+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fe5a3dfc47feb40bfbd96222ad194a88d3066de4" + }, + { + "sha": "6ffbc3f83966b6839b6d3d119199d4364613dcce", + "message": "move migrations from v2 compatible to migrations folder", + "author": "Chikke Srujan", + "date": "2025-11-19T06:46:46+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6ffbc3f83966b6839b6d3d119199d4364613dcce" + }, + { + "sha": "59fb57a5af4b24268bbfc83a475c8ff6d23b94ae", + "message": "migration fix", + "author": "Chikke Srujan", + "date": "2025-11-19T07:09:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/59fb57a5af4b24268bbfc83a475c8ff6d23b94ae" + }, + { + "sha": "d1378bd228a97ccdaa565f096280f3c8f81c0490", + "message": "clippy fix", + "author": "Chikke Srujan", + "date": "2025-11-19T07:33:44+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d1378bd228a97ccdaa565f096280f3c8f81c0490" + }, + { + "sha": "0b2ec7fac282930cacbb4136b63d7fbc90e6511a", + "message": "resolve comments", + "author": "Chikke Srujan", + "date": "2025-11-20T10:17:48+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0b2ec7fac282930cacbb4136b63d7fbc90e6511a" + }, + { + "sha": "0b47c2b730acc7b5cac8a75fca141315f5fa62ed", + "message": "resolve comments", + "author": "Chikke Srujan", + "date": "2025-11-20T14:36:03+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/0b47c2b730acc7b5cac8a75fca141315f5fa62ed" + }, + { + "sha": "4277feb9c8b1b4854e604ac52fd41e3125268631", + "message": "Merge branch 'main' into partial_auth_retry", + "author": "Chikke Srujan", + "date": "2025-11-20T14:38:16+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4277feb9c8b1b4854e604ac52fd41e3125268631" + }, + { + "sha": "f4939496956dd4d5826d208063794ca3df82b50e", + "message": "clippy fix", + "author": "Chikke Srujan", + "date": "2025-11-21T06:32:53+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/f4939496956dd4d5826d208063794ca3df82b50e" + }, + { + "sha": "d8ab9990e319980b9ed86f79fd9bbbbfbb1dcd53", + "message": "minor fix", + "author": "Chikke Srujan", + "date": "2025-11-21T06:33:19+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/d8ab9990e319980b9ed86f79fd9bbbbfbb1dcd53" + }, + { + "sha": "a630f0bf1a8dcac3cae2e4302f76579d7ba46187", + "message": "Merge branch 'main' into partial_auth_retry", + "author": "Chikke Srujan", + "date": "2025-11-21T06:33:33+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a630f0bf1a8dcac3cae2e4302f76579d7ba46187" + }, + { + "sha": "10c1db9e81ba94e5ef144d1805b01d31dbc51a89", + "message": "Merge branch 'main' into partial_auth_retry", + "author": "chikke srujan", + "date": "2025-11-21T07:12:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/10c1db9e81ba94e5ef144d1805b01d31dbc51a89" + }, + { + "sha": "21fe7b4d48651515dc0d2e9a1438bb22ab3de91e", + "message": "resolve comments", + "author": "Chikke Srujan", + "date": "2025-11-21T11:05:10+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/21fe7b4d48651515dc0d2e9a1438bb22ab3de91e" + }, + { + "sha": "30444be72f20a1d97a21c1da646c906d2a72df5c", + "message": "resolve comments", + "author": "Chikke Srujan", + "date": "2025-11-24T12:14:42+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/30444be72f20a1d97a21c1da646c906d2a72df5c" + }, + { + "sha": "a63ecd753fa0d1f41fdfb4436a7d669bd5918ec5", + "message": "Merge branch 'main' into partial_auth_retry", + "author": "Chikke Srujan", + "date": "2025-11-24T12:16:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/a63ecd753fa0d1f41fdfb4436a7d669bd5918ec5" + }, + { + "sha": "2e08d2f6b345447e370ca2b17a98dde6dfcce536", + "message": "clippy fix", + "author": "Chikke Srujan", + "date": "2025-11-24T12:49:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/2e08d2f6b345447e370ca2b17a98dde6dfcce536" + }, + { + "sha": "5715f6fc5252a873816523c7e11358b1f3d0182f", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-11-24T12:50:04+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/5715f6fc5252a873816523c7e11358b1f3d0182f" + }, + { + "sha": "9fa330802fa340ab5e9ebebbc04b687eeeabc937", + "message": "Merge branch 'main' into partial_auth_retry", + "author": "chikke srujan", + "date": "2025-11-25T14:03:31+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/9fa330802fa340ab5e9ebebbc04b687eeeabc937" + }, + { + "sha": "e6639ac57b5bf4d09f60c70335276ff119d44fd2", + "message": "resolve comments", + "author": "Chikke Srujan", + "date": "2025-11-26T10:50:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e6639ac57b5bf4d09f60c70335276ff119d44fd2" + }, + { + "sha": "e464d352df11126bcc4101d99b23814bac72ed6c", + "message": "resolve comments", + "author": "Chikke Srujan", + "date": "2025-11-27T06:34:49+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e464d352df11126bcc4101d99b23814bac72ed6c" + }, + { + "sha": "fa753e7071c4ca94816b14f65e42005c6ddb737f", + "message": "fix call connector flag", + "author": "Chikke Srujan", + "date": "2025-11-27T08:47:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/fa753e7071c4ca94816b14f65e42005c6ddb737f" + }, + { + "sha": "7865901c8ebd6faa2f2b83dfbbbc0a8e073dfaf4", + "message": "consume intent status instead of attempt", + "author": "Chikke Srujan", + "date": "2025-12-01T14:59:15+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7865901c8ebd6faa2f2b83dfbbbc0a8e073dfaf4" + }, + { + "sha": "3eac034c1b9b702a0f7576b782986584d36f0145", + "message": "minor fix", + "author": "Chikke Srujan", + "date": "2025-12-02T07:36:40+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/3eac034c1b9b702a0f7576b782986584d36f0145" + }, + { + "sha": "327283282eea0c7b69990aba112005223ef2f3ef", + "message": "Merge branch 'main' into partial_auth_retry", + "author": "Chikke Srujan", + "date": "2025-12-02T07:38:12+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/327283282eea0c7b69990aba112005223ef2f3ef" + }, + { + "sha": "08bd61f1ad09ec83ebd66a6867845a44e7f43e52", + "message": "Merge branch 'main' into partial_auth_retry", + "author": "Chikke Srujan", + "date": "2025-12-03T05:09:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/08bd61f1ad09ec83ebd66a6867845a44e7f43e52" + }, + { + "sha": "ab5c11aac30763ebfc442383eec14eb0b34cced0", + "message": "remove sql files", + "author": "Chikke Srujan", + "date": "2025-12-03T05:14:42+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/ab5c11aac30763ebfc442383eec14eb0b34cced0" + }, + { + "sha": "b769a08d4b96b7d74430d02002d60a7b8922f64a", + "message": "clippy fix", + "author": "Chikke Srujan", + "date": "2025-12-03T05:45:08+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b769a08d4b96b7d74430d02002d60a7b8922f64a" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9819.json b/prs/pr_9819.json new file mode 100644 index 0000000000000000000000000000000000000000..dc7849c09b2f0528966c2286561617852295d883 --- /dev/null +++ b/prs/pr_9819.json @@ -0,0 +1,29 @@ +{ + "number": 9819, + "title": "ci: remove cargo check", + "description": "## Type of Change\r\n\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\r\n\r\nthis pr cleans up the ci-pr check. ci hack consumes a lot of time to execute hogging up runners. ci check should be more than enough.\r\nalso, this pr removes the commented out code since its been the same since like last 2+ years.\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\n\r\n\r\n## Motivation and Context\r\n\r\n\r\nthis is being done as a part of ci optimization to reduce time consumption and usage of runners\r\n\r\n## How did you test it?\r\n\r\n\r\nci in this pr should not run `just ci_hack`\r\n\r\n## Checklist\r\n\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", + "author": "pixincreate", + "created_at": "2025-10-14T05:41:48+00:00", + "merged_at": "2025-10-15T16:19:48+00:00", + "base_branch": "main", + "labels": [ + "A-CI-CD" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9819", + "commits": [ + { + "sha": "bde106e1fa8aa5b6cd0eaeac388e4013540a39c3", + "message": "ci: remove cargo check", + "author": "PiX", + "date": "2025-10-14T05:28:06+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/bde106e1fa8aa5b6cd0eaeac388e4013540a39c3" + }, + { + "sha": "b0fef00726ea8a22cea18860d8b957ce4c0cccaa", + "message": "fix: remove dead merge_group condition from CI-pr workflow", + "author": "PiX", + "date": "2025-10-14T06:13:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/b0fef00726ea8a22cea18860d8b957ce4c0cccaa" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9862.json b/prs/pr_9862.json new file mode 100644 index 0000000000000000000000000000000000000000..bff4d0b0620e01d76ec826674ca18dd32a52cf81 --- /dev/null +++ b/prs/pr_9862.json @@ -0,0 +1,90 @@ +{ + "number": 9862, + "title": "feat(core): Added Refund flow support for Hyperswitch <> UCS Integration", + "description": "## Type of Change\r\n\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\nThis PR implements UCS(Unified Connector Service) Integration for Refund flow, along with shadow mode for diff checker.\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\n\r\n\r\n## Motivation and Context\r\nCurrently refund flow only uses direct connector call.\r\nNeed a divergence to ucs call based on rollout config.\r\n\r\n## How did you test it?\r\n\r\n
\r\nCreate Payment Stripe\r\n\r\n```bash\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\": 6540,\r\n \"currency\": \"USD\",\r\n \"amount_to_capture\": 6540,\r\n \"confirm\": true,\r\n \"profile_id\": \"pro_EWeGPdvuPa9PFh3S5NKL\",\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"setup_future_usage\": \"on_session\", \r\n \"customer\": {\r\n \"id\": \"customer123\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"customer@gmail.com\",\r\n \"phone\": \"9999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"customer_id\": \"customer123\",\r\n \"phone_country_code\": \"+1\",\r\n \"routing\": { \r\n \"type\": \"single\",\r\n \"data\": \"stripe\"\r\n },\r\n \"description\": \"Its my first payment request\",\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\": \"4242424242424242\",\r\n \"card_exp_month\": \"10\",\r\n \"card_exp_year\": \"25\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"card_cvc\": \"123\"\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 \"email\": \"guest@example.com\"\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 \"email\": \"guest@example.com\"\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"order_details\": [\r\n {\r\n \"product_name\": \"Apple iphone 15\",\r\n \"quantity\": 1,\r\n \"amount\": 6540,\r\n \"account_name\": \"transaction_processing\"\r\n }\r\n ],\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 \"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 \"customer_acceptance\": {\r\n \"acceptance_type\": \"offline\",\r\n \"accepted_at\": \"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\": \"125.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n },\r\n \"connector_metadata\": {\r\n \"noon\": {\r\n \"order_category\": \"pay\"\r\n }\r\n },\r\n \"payment_link\": false,\r\n \"payment_link_config\": {\r\n \"theme\": \"\",\r\n \"logo\": \"\",\r\n \"seller_name\": \"\",\r\n \"sdk_layout\": \"\",\r\n \"display_sdk_only\": false,\r\n \"enabled_saved_payment_method\": false\r\n },\r\n \"payment_type\": \"normal\", \r\n \"request_incremental_authorization\": false,\r\n \"merchant_order_reference_id\": \"test_ord\",\r\n \"session_expiry\": 900 \r\n}'\r\n```\r\n\r\n
\r\n\r\n
\r\nRefund Stripe\r\n\r\n```bash\r\n{\r\n \"payment_id\": \"{{payment_id}}\",\r\n \"amount\": 100,\r\n \"reason\": \"OTHER\",\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\n\r\n
\r\n\r\n\r\n
\r\nValidation Service Router data comparison\r\n\r\n\"image\"\r\n
\r\n\r\n
\r\nValidation Service Refund Execute Connector Request data comparison\r\n\r\n\"image\"\r\n\r\nmetadata is actually same in both request. its just validation service parsing issue.\r\nFor eg.,\r\n**ucs actual request to connector (mitm):**\r\n\r\n\"image\"\r\n\r\n**hyperswitch actual request to connector:**\r\n\r\n\"image\"\r\n
\r\n\r\n\r\n
\r\nStripe RSync Request \r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/refunds/ref_83ruweUDFqeCH5jqFlSQ?force_sync=true' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: API_KEY' \\\r\n```\r\n
\r\n\r\n
\r\n Validation Service Refund Sync Router data comparison \r\n\r\n\"image\"\r\nNote: integrity check is done in ucs, so integrity object is not set.\r\n
\r\n\r\n
\r\n Validation Service Refund Sync Connector Request data comparison \r\n\r\n\"image\"\r\nNote: ucs uses GET method, hs uses POST method.. But both are correct. \r\n
\r\n\r\n\r\n## Checklist\r\n\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", + "author": "gopikrishna000", + "created_at": "2025-10-15T13:26:13+00:00", + "merged_at": "2025-10-29T15:29:06+00:00", + "base_branch": "main", + "labels": [], + "url": "https://github.com/juspay/hyperswitch/pull/9862", + "commits": [ + { + "sha": "6e93407d8cb631030af442d9c099e4f0d0062f7b", + "message": "chore: refund related changes", + "author": "Amitsingh Tanwar", + "date": "2025-09-30T09:48:51+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6e93407d8cb631030af442d9c099e4f0d0062f7b" + }, + { + "sha": "c152a3c7150eb2a0368198010697daa4deeadaab", + "message": "chore: refund code change", + "author": "Amitsingh Tanwar", + "date": "2025-09-30T12:09:52+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c152a3c7150eb2a0368198010697daa4deeadaab" + }, + { + "sha": "97b573eea2f73bbbf541b24fde6e690ce2ef3a1a", + "message": "feat: diff checker for ucs-refund and shadow mode", + "author": "gopikrishna.c", + "date": "2025-10-24T15:26:56+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/97b573eea2f73bbbf541b24fde6e690ce2ef3a1a" + }, + { + "sha": "6fedd1c5449498a1f7c8378ca64bde8d217a7bf3", + "message": "refactor: use existing build_unified_connector_service_auth_metadata for ucs-refunds", + "author": "gopikrishna.c", + "date": "2025-10-27T17:52:37+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/6fedd1c5449498a1f7c8378ca64bde8d217a7bf3" + }, + { + "sha": "1b8b4ee91a9e654aa1851e3087b820ac1abe1cee", + "message": "chore: run formatter", + "author": "hyperswitch-bot[bot]", + "date": "2025-10-27T17:53:36+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1b8b4ee91a9e654aa1851e3087b820ac1abe1cee" + }, + { + "sha": "1b85e4e3fbf587b7ef036286efaae3e8d082e52e", + "message": "refactor: use existing build_unified_connector_service_auth_metadata for ucs-refunds", + "author": "gopikrishna.c", + "date": "2025-10-27T18:07:43+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/1b85e4e3fbf587b7ef036286efaae3e8d082e52e" + }, + { + "sha": "c9de5fa2a50eefbf41089f0b3f0ba5bc8b6def2e", + "message": "fix: added access token check to rsync flow", + "author": "gopikrishna.c", + "date": "2025-10-28T10:47:03+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/c9de5fa2a50eefbf41089f0b3f0ba5bc8b6def2e" + }, + { + "sha": "122d2e3346fba72d3f2b92797841c007ae88fbef", + "message": "fix conflict", + "author": "gopikrishna.c", + "date": "2025-10-29T10:20:30+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/122d2e3346fba72d3f2b92797841c007ae88fbef" + }, + { + "sha": "73e628e5ee19893b386ba029af7662ffbf8dad0e", + "message": "fix conflict", + "author": "gopikrishna.c", + "date": "2025-10-29T11:26:48+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/73e628e5ee19893b386ba029af7662ffbf8dad0e" + }, + { + "sha": "e2cce8f1bbf9f2e8713b9c4f7923ac4ed0e7334c", + "message": "Merge branch 'main' into ucs-refund-integration", + "author": "gopikrishna000", + "date": "2025-10-29T12:54:01+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/e2cce8f1bbf9f2e8713b9c4f7923ac4ed0e7334c" + }, + { + "sha": "4e0b94b2d0a1313ce0f4c0976ac13f61e5d9afd5", + "message": "clippy: unused import", + "author": "gopikrishna.c", + "date": "2025-10-29T13:34:39+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/4e0b94b2d0a1313ce0f4c0976ac13f61e5d9afd5" + } + ] +} \ No newline at end of file diff --git a/prs/pr_9970.json b/prs/pr_9970.json new file mode 100644 index 0000000000000000000000000000000000000000..e93424c74b79ca5c422eea06bf9dc7a9a1347aec --- /dev/null +++ b/prs/pr_9970.json @@ -0,0 +1,30 @@ +{ + "number": 9970, + "title": "chore(connector): [tesouro] enable hyperswitch decrypted flow for google pay", + "description": "## Type of Change\r\n\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [x] Enhancement\r\n- [x] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n\r\n\r\nthis pr enables hyperswitch decrypted flow for tesouro connector.\r\nplease do note that this connector supports only `cryptogram_3ds` based authentication. meaning, can only be tested on an android device / google chrome that has a card tokenized in it. the reason being, tesouro expects `cryptogram` to not be `null` or empty (`pan_only` does this).\r\n\r\nrelevant frontend changes are done in this pr: https://github.com/juspay/hyperswitch-control-center/pull/3752\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\n\r\ncrates/connector_configs/toml/development.toml\r\ncrates/connector_configs/toml/production.toml\r\ncrates/connector_configs/toml/sandbox.toml\r\n\r\n## Motivation and Context\r\n\r\n\r\nthis was an overlook which is addressed in this pr.\r\ncloses https://github.com/juspay/hyperswitch/issues/9969\r\n\r\n## How did you test it?\r\n\r\n\r\ni tested it manually by hardcoding the `cryptogram` in `pan_only` mode:\r\n\r\n
\r\n\r\npayment - create\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'Accept-Language: ja' \\\r\n--header 'api-key: dev_Q9Tz5gmn0h8OOJSPUC3mc2f4f80feZ6pgdw3v03aMjwlNNPCkZ4PkkRVGiRcyANY' \\\r\n--data-raw '{\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"confirm\": false,\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"customer_id\": \"StripeCustomer\",\r\n \"email\": \"likhin.bopanna@gmail.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://google.com\",\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```json\r\n{\r\n\t\"payment_id\": \"pay_a3OQsNRCP3UrxqSxqhOZ\",\r\n\t\"merchant_id\": \"postman_merchant_GHAction_1761236528\",\r\n\t\"status\": \"requires_payment_method\",\r\n\t\"amount\": 1000,\r\n\t\"net_amount\": 1000,\r\n\t\"shipping_cost\": null,\r\n\t\"amount_capturable\": 0,\r\n\t\"amount_received\": null,\r\n\t\"connector\": null,\r\n\t\"client_secret\": \"pay_a3OQsNRCP3UrxqSxqhOZ_secret_4PdGBdRO8H8EwmwRh6oc\",\r\n\t\"created\": \"2025-10-23T16:22:12.677Z\",\r\n\t\"currency\": \"USD\",\r\n\t\"customer_id\": \"StripeCustomer\",\r\n\t\"customer\": {\r\n\t\t\"id\": \"StripeCustomer\",\r\n\t\t\"name\": \"John Doe\",\r\n\t\t\"email\": \"likhin.bopanna@gmail.com\",\r\n\t\t\"phone\": \"999999999\",\r\n\t\t\"phone_country_code\": \"+65\"\r\n\t},\r\n\t\"description\": \"Its my first payment request\",\r\n\t\"refunds\": null,\r\n\t\"disputes\": null,\r\n\t\"mandate_id\": null,\r\n\t\"mandate_data\": null,\r\n\t\"setup_future_usage\": null,\r\n\t\"off_session\": null,\r\n\t\"capture_on\": null,\r\n\t\"capture_method\": \"automatic\",\r\n\t\"payment_method\": null,\r\n\t\"payment_method_data\": null,\r\n\t\"payment_token\": null,\r\n\t\"shipping\": null,\r\n\t\"billing\": null,\r\n\t\"order_details\": null,\r\n\t\"email\": \"likhin.bopanna@gmail.com\",\r\n\t\"name\": \"John Doe\",\r\n\t\"phone\": \"999999999\",\r\n\t\"return_url\": \"https://google.com/\",\r\n\t\"authentication_type\": \"no_three_ds\",\r\n\t\"statement_descriptor_name\": \"joseph\",\r\n\t\"statement_descriptor_suffix\": \"JS\",\r\n\t\"next_action\": null,\r\n\t\"cancellation_reason\": null,\r\n\t\"error_code\": null,\r\n\t\"error_message\": null,\r\n\t\"unified_code\": null,\r\n\t\"unified_message\": null,\r\n\t\"payment_experience\": null,\r\n\t\"payment_method_type\": null,\r\n\t\"connector_label\": null,\r\n\t\"business_country\": \"US\",\r\n\t\"business_label\": \"default\",\r\n\t\"business_sub_label\": null,\r\n\t\"allowed_payment_method_types\": null,\r\n\t\"ephemeral_key\": {\r\n\t\t\"customer_id\": \"StripeCustomer\",\r\n\t\t\"created_at\": 1761236532,\r\n\t\t\"expires\": 1761240132,\r\n\t\t\"secret\": \"epk_325258a2a0f94e8892a5aa976bbd78e8\"\r\n\t},\r\n\t\"manual_retry_allowed\": null,\r\n\t\"connector_transaction_id\": null,\r\n\t\"frm_message\": null,\r\n\t\"metadata\": {\r\n\t\t\"udf1\": \"value1\",\r\n\t\t\"login_date\": \"2019-09-10T10:11:12Z\",\r\n\t\t\"new_customer\": \"true\"\r\n\t},\r\n\t\"connector_metadata\": null,\r\n\t\"feature_metadata\": null,\r\n\t\"reference_id\": null,\r\n\t\"payment_link\": null,\r\n\t\"profile_id\": \"pro_G1sI5apZ9EMCJwMPE4uh\",\r\n\t\"surcharge_details\": null,\r\n\t\"attempt_count\": 1,\r\n\t\"merchant_decision\": null,\r\n\t\"merchant_connector_id\": null,\r\n\t\"incremental_authorization_allowed\": null,\r\n\t\"authorization_count\": null,\r\n\t\"incremental_authorizations\": null,\r\n\t\"external_authentication_details\": null,\r\n\t\"external_3ds_authentication_attempted\": false,\r\n\t\"expires_on\": \"2025-10-23T16:37:12.677Z\",\r\n\t\"fingerprint\": null,\r\n\t\"browser_info\": null,\r\n\t\"payment_channel\": null,\r\n\t\"payment_method_id\": null,\r\n\t\"network_transaction_id\": null,\r\n\t\"payment_method_status\": null,\r\n\t\"updated\": \"2025-10-23T16:22:12.705Z\",\r\n\t\"split_payments\": null,\r\n\t\"frm_metadata\": null,\r\n\t\"extended_authorization_applied\": null,\r\n\t\"request_extended_authorization\": null,\r\n\t\"capture_before\": null,\r\n\t\"merchant_order_reference_id\": null,\r\n\t\"order_tax_amount\": null,\r\n\t\"connector_mandate_id\": null,\r\n\t\"card_discovery\": null,\r\n\t\"force_3ds_challenge\": false,\r\n\t\"force_3ds_challenge_trigger\": false,\r\n\t\"issuer_error_code\": null,\r\n\t\"issuer_error_message\": null,\r\n\t\"is_iframe_redirection_enabled\": null,\r\n\t\"whole_connector_response\": null,\r\n\t\"enable_partial_authorization\": null,\r\n\t\"enable_overcapture\": null,\r\n\t\"is_overcapture_enabled\": null,\r\n\t\"network_details\": null,\r\n\t\"is_stored_credential\": null,\r\n\t\"mit_category\": null\r\n}\r\n```\r\n\r\n
\r\n\r\n
\r\n\r\npayment - confirm\r\n\r\n```bash\r\ncurl --location 'http://localhost:8080/payments/pay_a3OQsNRCP3UrxqSxqhOZ/confirm' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_Q9Tz5gmn0h8OOJSPUC3mc2f4f80feZ6pgdw3v03aMjwlNNPCkZ4PkkRVGiRcyANY' \\\r\n--data '{\r\n\t\"confirm\": true,\r\n\t\"payment_method\": \"wallet\",\r\n\t\"payment_method_type\": \"google_pay\",\r\n\t\"payment_method_data\": {\r\n\t \"wallet\": {\r\n\t \"google_pay\": {\r\n\t \"description\": \"Visa \u2022\u2022\u2022\u2022 1111\",\r\n\t \"tokenization_data\": {\r\n\t \"type\": \"PAYMENT_GATEWAY\",\r\n\t \"token\": \"{\\\"signature\\\":\\\"MEUCIAHV/IzUalgwdbVbKrwbBHn9YFkKrDobHGG8zBwr7gOTAiEAsmUseL/eNkuRtwgf7cfDToFeZgCOeaxZyC/x/zg1Sqw\\\\u003d\\\",\\\"intermediateSigningKey\\\":{\\\"signedKey\\\":\\\"{\\\\\\\"keyValue\\\\\\\":\\\\\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEFMa9hUMsItUofL7keIfVPOf1xFpgeKQiPv7gTOJGtWE7qmQDI9mYKzTj0Mnfk/igIXK9OH/rkMsPZHc1LTQDRA\\\\\\\\u003d\\\\\\\\u003d\\\\\\\",\\\\\\\"keyExpiration\\\\\\\":\\\\\\\"1761911303794\\\\\\\"}\\\",\\\"signatures\\\":[\\\"MEUCIQC/sE+wn58nBgzipNM6vGcGkwLr97rCa86YFlKbMH2LbgIgTzuOgrfQPdnd/bNs8rY9tPjwZpec0/NgPA6J4REY+HA\\\\u003d\\\"]},\\\"protocolVersion\\\":\\\"ECv2\\\",\\\"signedMessage\\\":\\\"{\\\\\\\"encryptedMessage\\\\\\\":\\\\\\\"hwvBScnDwqefto2bgbBjV8C8PqyNZihJKw9Na8KXqeTqprjy4+H71r1bHG7kL5VOgYJDVQDtuaMe3WWLoTtDJAZtJpRsNeWwLsl3Gzw5EOmeMVzMAkCJXwvLyb+AAwQ8TNJS5WkNSaYlNFFQB4fGHm7pmj91FKviScx9IrHg8so/KojnaHDPRRE86ny5IhakvntRBxB0XaEdJUd3lvA+0riRTYVkvCt5CRvAJzDJ9+4kJHVH0iB3NikipnBnNWteKtygi8UkYiGpHbTU89Qn+kA9zK3VcYetjUHix1uMdzlYIB4ANvSBySf8PKikx7IE9L6kiIJfR/6GBaQIH8mU6dfLePX78yqxocbvDGdWOVktxMrWxRamWVsd26AN5PwT2mas0Ie1zVgvGTov0D0r2L6OfvLPEKopUp5rjuyvqlK2VFICrkjFrP45heEUiF9buaHO9g\\\\\\\\u003d\\\\\\\\u003d\\\\\\\",\\\\\\\"ephemeralPublicKey\\\\\\\":\\\\\\\"BCxta2wn9wiTTKddPs+KEOlEaZnnN5ZOWuz0fTI/giywkqXnKpobXmLzjhqz+X1O+l9RtN4lWwDD1uCUJ3xNuc4\\\\\\\\u003d\\\\\\\",\\\\\\\"tag\\\\\\\":\\\\\\\"7E5Y3iWVYedBKf/q7BoCvJ5xaK3P8X9PkWIqyW0U+to\\\\\\\\u003d\\\\\\\"}\\\"}\"\r\n\t },\r\n\t \"type\": \"CARD\",\r\n\t \"info\": {\r\n\t \"card_network\": \"VISA\",\r\n\t \"card_details\": \"1111\",\r\n\t\t\t\t\t\"card_funding_source\": \"UNKNOWN\"\r\n\t }\r\n\t }\r\n\t }\r\n\t},\r\n\t\"browser_info\": {\r\n\t\t\"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\t\t\"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n\t\t\"language\": \"nl-NL\",\r\n\t\t\"color_depth\": 24,\r\n\t\t\"screen_height\": 723,\r\n\t\t\"screen_width\": 1536,\r\n\t\t\"time_zone\": 0,\r\n\t\t\"java_enabled\": true,\r\n\t\t\"java_script_enabled\": true,\r\n\t\t\"ip_address\": \"127.0.0.1\"\r\n\t},\r\n\t\"billing\": {\r\n\t\t\"address\": {\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\"\r\n\t\t}\r\n\t},\r\n\t\"shipping\": {\r\n\t\t\"address\": {\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\"\r\n\t\t}\r\n\t}\r\n}'\r\n```\r\n```json\r\n{\r\n\t\"payment_id\": \"pay_a3OQsNRCP3UrxqSxqhOZ\",\r\n\t\"merchant_id\": \"postman_merchant_GHAction_1761236528\",\r\n\t\"status\": \"failed\",\r\n\t\"amount\": 1000,\r\n\t\"net_amount\": 1000,\r\n\t\"shipping_cost\": null,\r\n\t\"amount_capturable\": 0,\r\n\t\"amount_received\": null,\r\n\t\"connector\": \"tesouro\",\r\n\t\"client_secret\": \"pay_a3OQsNRCP3UrxqSxqhOZ_secret_4PdGBdRO8H8EwmwRh6oc\",\r\n\t\"created\": \"2025-10-23T16:22:12.677Z\",\r\n\t\"currency\": \"USD\",\r\n\t\"customer_id\": \"StripeCustomer\",\r\n\t\"customer\": {\r\n\t\t\"id\": \"StripeCustomer\",\r\n\t\t\"name\": \"John Doe\",\r\n\t\t\"email\": \"likhin.bopanna@gmail.com\",\r\n\t\t\"phone\": \"999999999\",\r\n\t\t\"phone_country_code\": \"+65\"\r\n\t},\r\n\t\"description\": \"Its my first payment request\",\r\n\t\"refunds\": null,\r\n\t\"disputes\": null,\r\n\t\"mandate_id\": null,\r\n\t\"mandate_data\": null,\r\n\t\"setup_future_usage\": null,\r\n\t\"off_session\": null,\r\n\t\"capture_on\": null,\r\n\t\"capture_method\": \"automatic\",\r\n\t\"payment_method\": \"wallet\",\r\n\t\"payment_method_data\": {\r\n\t\t\"wallet\": {\r\n\t\t\t\"google_pay\": {\r\n\t\t\t\t\"last4\": \"1111\",\r\n\t\t\t\t\"card_network\": \"VISA\",\r\n\t\t\t\t\"type\": \"CARD\"\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"billing\": null\r\n\t},\r\n\t\"payment_token\": null,\r\n\t\"shipping\": {\r\n\t\t\"address\": {\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\",\r\n\t\t\t\"origin_zip\": null\r\n\t\t},\r\n\t\t\"phone\": null,\r\n\t\t\"email\": null\r\n\t},\r\n\t\"billing\": {\r\n\t\t\"address\": {\r\n\t\t\t\"city\": \"San Fransico\",\r\n\t\t\t\"country\": \"US\",\r\n\t\t\t\"line1\": \"1467\",\r\n\t\t\t\"line2\": \"Harrison Street\",\r\n\t\t\t\"line3\": \"Harrison Street\",\r\n\t\t\t\"zip\": \"94122\",\r\n\t\t\t\"state\": \"California\",\r\n\t\t\t\"first_name\": \"John\",\r\n\t\t\t\"last_name\": \"Doe\",\r\n\t\t\t\"origin_zip\": null\r\n\t\t},\r\n\t\t\"phone\": null,\r\n\t\t\"email\": null\r\n\t},\r\n\t\"order_details\": null,\r\n\t\"email\": \"likhin.bopanna@gmail.com\",\r\n\t\"name\": \"John Doe\",\r\n\t\"phone\": \"999999999\",\r\n\t\"return_url\": \"https://google.com/\",\r\n\t\"authentication_type\": \"no_three_ds\",\r\n\t\"statement_descriptor_name\": \"joseph\",\r\n\t\"statement_descriptor_suffix\": \"JS\",\r\n\t\"next_action\": null,\r\n\t\"cancellation_reason\": null,\r\n\t\"error_code\": null,\r\n\t\"error_message\": \"Variable \\\"$authorizeCustomerInitiatedTransactionInput\\\" got invalid value {\\\"acceptorId\\\":\\\"a82c239a-54a7-403f-9c03-eb774d351ed3\\\",\\\"transactionReference\\\":\\\"s7YDhBaU6O6Km9HH4JAF4yGKeev4\\\",\\\"paymentMethodDetails\\\":{\\\"networkTokenPassThroughDetails\\\":{\\\"cryptogram\\\":null,\\\"expirationMonth\\\":\\\"12\\\",\\\"expirationYear\\\":\\\"2027\\\",\\\"tokenValue\\\":\\\"4111111111111111\\\",\\\"walletType\\\":\\\"GOOGLE_PAY\\\",\\\"ecommerceIndicator\\\":null}},\\\"transactionAmountDetails\\\":{\\\"totalAmount\\\":10.0,\\\"currency\\\":\\\"USD\\\"},\\\"automaticCapture\\\":\\\"ON_APPROVAL\\\",\\\"authorizationIntent\\\":\\\"FINAL_AUTHORIZATION\\\",\\\"billToAddress\\\":{\\\"address1\\\":\\\"1467\\\",\\\"address2\\\":\\\"Harrison Street\\\",\\\"address3\\\":\\\"Harrison Street\\\",\\\"city\\\":\\\"San Fransico\\\",\\\"countryCode\\\":\\\"USA\\\",\\\"firstName\\\":\\\"John\\\",\\\"lastName\\\":\\\"Doe\\\",\\\"postalCode\\\":\\\"94122\\\",\\\"state\\\":\\\"California\\\"}}; Field \\\"cryptogram\\\" of required type \\\"String!\\\" was not provided.\",\r\n\t\"unified_code\": \"UE_9000\",\r\n\t\"unified_message\": \"Something went wrong\",\r\n\t\"payment_experience\": null,\r\n\t\"payment_method_type\": \"google_pay\",\r\n\t\"connector_label\": \"tesouro_US_default\",\r\n\t\"business_country\": \"US\",\r\n\t\"business_label\": \"default\",\r\n\t\"business_sub_label\": null,\r\n\t\"allowed_payment_method_types\": null,\r\n\t\"ephemeral_key\": null,\r\n\t\"manual_retry_allowed\": null,\r\n\t\"connector_transaction_id\": null,\r\n\t\"frm_message\": null,\r\n\t\"metadata\": {\r\n\t\t\"udf1\": \"value1\",\r\n\t\t\"login_date\": \"2019-09-10T10:11:12Z\",\r\n\t\t\"new_customer\": \"true\"\r\n\t},\r\n\t\"connector_metadata\": null,\r\n\t\"feature_metadata\": {\r\n\t\t\"redirect_response\": null,\r\n\t\t\"search_tags\": null,\r\n\t\t\"apple_pay_recurring_details\": null,\r\n\t\t\"gateway_system\": \"direct\"\r\n\t},\r\n\t\"reference_id\": null,\r\n\t\"payment_link\": null,\r\n\t\"profile_id\": \"pro_G1sI5apZ9EMCJwMPE4uh\",\r\n\t\"surcharge_details\": null,\r\n\t\"attempt_count\": 1,\r\n\t\"merchant_decision\": null,\r\n\t\"merchant_connector_id\": \"mca_EtqVkfTcgV4mzLXITuCg\",\r\n\t\"incremental_authorization_allowed\": false,\r\n\t\"authorization_count\": null,\r\n\t\"incremental_authorizations\": null,\r\n\t\"external_authentication_details\": null,\r\n\t\"external_3ds_authentication_attempted\": false,\r\n\t\"expires_on\": \"2025-10-23T16:37:12.677Z\",\r\n\t\"fingerprint\": null,\r\n\t\"browser_info\": {\r\n\t\t\"os_type\": null,\r\n\t\t\"referer\": null,\r\n\t\t\"language\": \"nl-NL\",\r\n\t\t\"time_zone\": 0,\r\n\t\t\"ip_address\": \"127.0.0.1\",\r\n\t\t\"os_version\": null,\r\n\t\t\"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\t\t\"color_depth\": 24,\r\n\t\t\"device_model\": null,\r\n\t\t\"java_enabled\": true,\r\n\t\t\"screen_width\": 1536,\r\n\t\t\"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n\t\t\"screen_height\": 723,\r\n\t\t\"accept_language\": \"en\",\r\n\t\t\"java_script_enabled\": true\r\n\t},\r\n\t\"payment_channel\": null,\r\n\t\"payment_method_id\": null,\r\n\t\"network_transaction_id\": null,\r\n\t\"payment_method_status\": null,\r\n\t\"updated\": \"2025-10-23T16:22:25.948Z\",\r\n\t\"split_payments\": null,\r\n\t\"frm_metadata\": null,\r\n\t\"extended_authorization_applied\": null,\r\n\t\"request_extended_authorization\": null,\r\n\t\"capture_before\": null,\r\n\t\"merchant_order_reference_id\": null,\r\n\t\"order_tax_amount\": null,\r\n\t\"connector_mandate_id\": null,\r\n\t\"card_discovery\": null,\r\n\t\"force_3ds_challenge\": false,\r\n\t\"force_3ds_challenge_trigger\": false,\r\n\t\"issuer_error_code\": null,\r\n\t\"issuer_error_message\": null,\r\n\t\"is_iframe_redirection_enabled\": null,\r\n\t\"whole_connector_response\": null,\r\n\t\"enable_partial_authorization\": null,\r\n\t\"enable_overcapture\": null,\r\n\t\"is_overcapture_enabled\": null,\r\n\t\"network_details\": {\r\n\t\t\"network_advice_code\": null\r\n\t},\r\n\t\"is_stored_credential\": null,\r\n\t\"mit_category\": null\r\n}\r\n```\r\n\r\n
\r\n\r\n
\r\n\r\nkey genetation and mca\r\n\r\nurl: https://developers.google.com/pay/api/android/guides/resources/payment-data-cryptography\r\n\r\nfollow this documentation to generate keys.\r\n\r\n```bash\r\n#!/bin/bash\r\nopenssl ecparam -name prime256v1 -genkey -noout -out .env/googlepay_private_key.pem\r\nopenssl ec -in .env/googlepay_private_key.pem -pubout -text -noout\r\nopenssl ec -in .env/googlepay_private_key.pem -pubout -text -noout 2> /dev/null | grep \"pub:\" -A5 | sed 1d | xxd -r -p | base64 | paste -sd \"\\0\" - | tr -d '\\n\\r ' > .env/googlepay_public_key.txt\r\nod -bc .env/googlepay_public_key.txt\r\nopenssl pkcs8 -topk8 -inform PEM -outform DER -in .env/googlepay_private_key.pem -nocrypt | base64 | paste -sd \"\\0\" - > .env/googlepay_private_key.txt\r\n```\r\n\r\nbase64 encoded root signing key generated from [here](https://payments.developers.google.com/paymentmethodtoken/test/keys.json). this is not needed to be passed in the mca since it is already present in the hyperswitch envs.\r\n\r\n`recipient_id` can be anything in the mca\r\n\r\nso, mca `connector_wallet_details` will be:\r\n\r\n```json\r\n{\r\n\t\"connector_wallet_details\" : {\r\n\t\t\"google_pay\": {\r\n\t\t\t\"provider_details\": {\r\n\t\t\t\t\"merchant_info\": {\r\n\t\t\t\t\t\"merchant_name\": \"tesouro\",\r\n\t\t\t\t\t\"tokenization_specification\": {\r\n\t\t\t\t\t\t\"type\": \"DIRECT\",\r\n\t\t\t\t\t\t\"parameters\": {\r\n\t\t\t\t\t\t\t\"public_key\": \"public\",\r\n \"private_key\": \"extracted base64 encoded private key\",\r\n\t\t\t\t\t\t\t\"recipient_id\": \"recipient_id_can_be_anything\"\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"cards\": {\r\n\t\t\t\t\"allowed_auth_methods\": [\r\n\t\t\t\t\t\"CRYPTOGRAM_3DS\"\r\n\t\t\t\t],\r\n\t\t\t\t\"allowed_card_networks\": [\r\n\t\t\t\t\t\"AMEX\",\r\n\t\t\t\t\t\"DISCOVER\",\r\n\t\t\t\t\t\"INTERAC\",\r\n\t\t\t\t\t\"JCB\",\r\n\t\t\t\t\t\"MASTERCARD\",\r\n\t\t\t\t\t\"VISA\"\r\n\t\t\t\t]\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n\r\npass the public key into the jsfiddle url to generate the google pay token. \r\n\r\n
\r\n\r\n## Checklist\r\n\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `just clippy && just clippy_v2`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n", + "author": "pixincreate", + "created_at": "2025-10-23T17:20:45+00:00", + "merged_at": "2025-10-27T07:03:44+00:00", + "base_branch": "main", + "labels": [ + "A-connector-integration", + "C-feature" + ], + "url": "https://github.com/juspay/hyperswitch/pull/9970", + "commits": [ + { + "sha": "7956b530a0e6ec2be65d120550bfe2b431428097", + "message": "chore: enable hyperswitch decrypted flow in tesouro", + "author": "PiX", + "date": "2025-10-23T16:48:25+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/7956b530a0e6ec2be65d120550bfe2b431428097" + }, + { + "sha": "17625b32c0d9753f3847e3328e457f189569d087", + "message": "revert", + "author": "PiX", + "date": "2025-10-24T10:37:55+00:00", + "url": "https://github.com/juspay/hyperswitch/commit/17625b32c0d9753f3847e3328e457f189569d087" + } + ] +} \ No newline at end of file