hyperswitch-funcdiff / prs /pr_10063.json
SirajRLX's picture
Add files using upload-large-folder tool
a8cf596 verified
{
"number": 10063,
"title": "feat(connector): Mandates + setup mandate for tesouro CARDS",
"description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [x] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\n<!-- Describe your changes in detail -->\r\n Implement mandates + setupmandate flow for tesouro\r\n\r\nSome test are failing because faster execution of cypress, which were previously failing too\r\n\r\n<img width=\"730\" height=\"783\" alt=\"Screenshot 2025-10-31 at 2 47 59\u202fPM\" src=\"https://github.com/user-attachments/assets/cda1f9ab-5d54-463d-997e-ce1359127b31\" />\r\n\r\n\r\n## TEST CASES\r\n\r\n<details>\r\n <summary> OFF SESSION REQUEST + MANDATE PAYMENT </summary>\r\n\r\n### request\r\n\r\n```json\r\n{\r\n \"amount\": 689,\r\n \"customer_id\":\"dfasfsafsaf\",\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 \"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 \"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```\r\n\r\n### response\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_s5wC5a0yAsBg1Nmu7FrG\",\r\n \"merchant_id\": \"merchant_1761817351\",\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_s5wC5a0yAsBg1Nmu7FrG_secret_gStv9ttrcKXhTYrU9C3v\",\r\n \"created\": \"2025-10-30T09:43:03.472Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"helsslox_world\",\r\n \"customer\": {\r\n \"id\": \"helsslox_world\",\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\": \"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\": 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\": \"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\": \"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\": \"helsslox_world\",\r\n \"created_at\": 1761817383,\r\n \"expires\": 1761820983,\r\n \"secret\": \"epk_4be17291e3c3483aab0e35504fcc532f\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"d5704048-b574-11f0-9a6c-2ecefb15c9d7\",\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_V8g8RBt3DQtn47sFt81P\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_mdenAjV2sjnhV7WUKrJp\",\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:58:03.472Z\",\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_dNNUljIi5tLJqKSS6I2r\",\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-10-30T09:43:05.188Z\",\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\": \"cf3bf816-d51f-4386-8a10-3864889b63a4\",\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\r\n</details>\r\n\r\n\r\n<details>\r\n <summary> Mandate request</summary>\r\n\r\n```json\r\n{\r\n \"amount\": 333,\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"dfasfsafsaf\",\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\r\n### response\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_FG34Ihtwd4m57th7kJxK\",\r\n \"merchant_id\": \"merchant_1761817351\",\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_FG34Ihtwd4m57th7kJxK_secret_0uEMF6zHEAFLrP7mdgIq\",\r\n \"created\": \"2025-10-30T10:35:54.375Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"dfasfsafsaf\",\r\n \"customer\": {\r\n \"id\": \"dfasfsafsaf\",\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\": \"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\": 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\": \"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\": \"dfasfsafsaf\",\r\n \"created_at\": 1761820554,\r\n \"expires\": 1761824154,\r\n \"secret\": \"epk_eb3458d2ee9645be9c6223f71b41b96c\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"36a953fc-b57c-11f0-a9d1-9ec116e24a35\",\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_V8g8RBt3DQtn47sFt81P\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_mdenAjV2sjnhV7WUKrJp\",\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-30T10:50:54.375Z\",\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_dNNUljIi5tLJqKSS6I2r\",\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-10-30T10:35:54.707Z\",\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\": \"cf3bf816-d51f-4386-8a10-3864889b63a4\",\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\": true,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n</details>\r\n\r\n\r\n### SETUP MANDATE\r\n\r\n<details>\r\n <summary> SETUP MANDATE REQUEST + RESPONSE</summary>\r\n\r\n### request\r\n\r\n```json\r\n{\r\n \"connector\": [\"tesouro\"],\r\n \"amount\": 0,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"customer_id\": \"dfasfsafsaf\",\r\n \"capture_method\": \"automatic\",\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\": \"+65\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://example.com\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"debit\",\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 \"setup_future_usage\": \"off_session\",\r\n \"mandate_data\": null,\r\n \"payment_type\": \"setup_mandate\",\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 \"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 \"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 \"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 \"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\": \"Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/22F76 [FBAN/FBIOS;FBAV/520.0.0.38.101;FBBV/756351453;FBDV/iPhone14,7;FBMD/iPhone;FBSN/iOS;FBSV/18.5;FBSS/3;FBID/phone;FBLC/fr_FR;FBOP/5;FBRV/760683563;IABMV/1]\"\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_z1uQNIK0Ir6wQZpEKr2o\",\r\n \"merchant_id\": \"merchant_1761817351\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 0,\r\n \"net_amount\": 0,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": null,\r\n \"connector\": \"tesouro\",\r\n \"client_secret\": \"pay_z1uQNIK0Ir6wQZpEKr2o_secret_qbVD0UHFCQ9TjwBpatbd\",\r\n \"created\": \"2025-10-30T09:52:54.721Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"dfasfsafsaf\",\r\n \"customer\": {\r\n \"id\": \"dfasfsafsaf\",\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\": \"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\": \"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\": 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\": \"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\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://example.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\": \"dfasfsafsaf\",\r\n \"created_at\": 1761817974,\r\n \"expires\": 1761821574,\r\n \"secret\": \"epk_09067b3fbd134f20a3c4988000b9f88c\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"359765e8-b576-11f0-b462-74c116753138\",\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_V8g8RBt3DQtn47sFt81P\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_mdenAjV2sjnhV7WUKrJp\",\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-30T10:07:54.721Z\",\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_0KFZ65OwaHzg8vi3LOCT\",\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-10-30T09:52:56.205Z\",\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\": \"cf3bf816-d51f-4386-8a10-3864889b63a4\",\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\r\n</details>\r\n\r\n<details>\r\n <summary> Mandate payment</summary>\r\n\r\n### request\r\n\r\n```json\r\n{\r\n \"amount\": 333,\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"dfasfsafsaf\",\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\r\n### response\r\n\r\n```json\r\n{\r\n \"payment_id\": \"pay_agweyDNOmRll411doeq1\",\r\n \"merchant_id\": \"merchant_1761817351\",\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_agweyDNOmRll411doeq1_secret_lWqqn3cHl4beXsWPJACy\",\r\n \"created\": \"2025-10-30T09:53:36.632Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"dfasfsafsaf\",\r\n \"customer\": {\r\n \"id\": \"dfasfsafsaf\",\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\": \"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\": 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\": \"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\": \"dfasfsafsaf\",\r\n \"created_at\": 1761818016,\r\n \"expires\": 1761821616,\r\n \"secret\": \"epk_0b466876560f4421af77b5e9828f3353\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"4e2b71ac-b576-11f0-a132-fdac6d73247f\",\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_V8g8RBt3DQtn47sFt81P\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_mdenAjV2sjnhV7WUKrJp\",\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-30T10:08:36.632Z\",\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_0KFZ65OwaHzg8vi3LOCT\",\r\n \"network_transaction_id\": null,\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-10-30T09:53:37.155Z\",\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\": \"cf3bf816-d51f-4386-8a10-3864889b63a4\",\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\": true,\r\n \"mit_category\": null\r\n}\r\n```\r\n\r\n</details>\r\n\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n<!--\r\nDid you write an integration/unit/API test to verify the code changes?\r\nOr did you test this change manually (provide relevant screenshots)?\r\n-->\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] I formatted the code `cargo +nightly fmt --all`\r\n- [ ] I addressed lints thrown by `cargo clippy`\r\n- [ ] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n",
"author": "Nithin1506200",
"created_at": "2025-10-30T10:10:05+00:00",
"merged_at": "2025-11-05T07:22:35+00:00",
"base_branch": "main",
"labels": [
"A-connector-integration"
],
"url": "https://github.com/juspay/hyperswitch/pull/10063",
"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": "27a9ba08d518bf0494070f1a5edb43fe2d21797b",
"message": "update",
"author": "nihtin",
"date": "2025-11-04T13:45:17+00:00",
"url": "https://github.com/juspay/hyperswitch/commit/27a9ba08d518bf0494070f1a5edb43fe2d21797b"
},
{
"sha": "8091c4af7319d4ab71b1abc7172cfbda2f9b3963",
"message": "Merge branch 'main' of https://github.com/juspay/hyperswitch into tesouro-recurring",
"author": "nihtin",
"date": "2025-11-05T04:37:10+00:00",
"url": "https://github.com/juspay/hyperswitch/commit/8091c4af7319d4ab71b1abc7172cfbda2f9b3963"
}
]
}