\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

\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
\r\n \r\n\r\n
\r\nValidation Service Refund Execute Connector Request data comparison
\r\n\r\n
\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
\r\n\r\n**hyperswitch actual request to connector:**\r\n\r\n
\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
\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
\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