| "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\nIntroduces a new enum `tokenization` allowing merchants to disable PSP-side token creation and rely solely on Hyperswitch-managed tokens. \r\nApplies to both payment and mandate flows.\r\n\r\n---\r\n\r\n### Database\r\nAdded column to `payment_intent` schema and models:\r\n\r\n```rust\r\ntokenization -> Nullable<varchar>\r\n```\r\n\r\n---\r\n\r\n### Connector Layer (Cybersource)\r\nThis is the functional part:\r\n\r\nAdjusted `CybersourceZeroMandateRequest` and authorization logic:\r\n- If `tokenization == Some(SkipPsp) \u2192 don\u2019t send tokenization fields.\r\n- Else \u2192 retain original token creation behavior.\r\n\r\nEssentially:\r\n\r\n```rust\r\nif tokenization {\r\n // Skip tokenization completely\r\n (None, None, Some(CybersourceAuthorizationOptions { ... }))\r\n} else {\r\n // Normal flow with TOKEN_CREATE and token types\r\n}\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\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\nCIT (Existing flow)\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_lnC8hfrC3uiRHolkLsACt0DT07OekrLHv5WUIX7inHpXLGDAx8QtdDFLhZe9o6br' \\\r\n--data-raw '{\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \r\n \"customer_id\": \"Bambora1Customer\",\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4456530000001096\",\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"50\",\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 },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \r\n \"setup_future_usage\": \"off_session\",\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"offline\",\r\n \"accepted_at\": \"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\": \"125.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n }\r\n \r\n \r\n \r\n}'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_9n9xXA6msFkshD6f1KEb\",\r\n \"merchant_id\": \"postman_merchant_GHAction_9107e8b2-3a7a-42f5-9480-0a6590b387a3\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1000,\r\n \"net_amount\": 1000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 1000,\r\n \"connector\": \"cybersource\",\r\n \"client_secret\": \"pay_9n9xXA6msFkshD6f1KEb_secret_TiQFPqwqGvG86o3Mwixc\",\r\n \"created\": \"2025-10-31T10:28:28.315Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"Bambora1Customer\",\r\n \"customer\": {\r\n \"id\": \"Bambora1Customer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1096\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"445653\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"payment_checks\": {\r\n \"avs_response\": {\r\n \"code\": \"Y\",\r\n \"codeRaw\": \"Y\"\r\n },\r\n \"card_verification\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_pm9ztBC73xkWPlo8SlRU\",\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": 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\": \"Bambora1Customer\",\r\n \"created_at\": 1761906508,\r\n \"expires\": 1761910108,\r\n \"secret\": \"epk_9a63bf2aaaab4604a760d694656c9320\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"7619065085666960903812\",\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\": \"pay_9n9xXA6msFkshD6f1KEb_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_WwnBiHi4vstc37HbGCmD\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_nU2i0sAZeJXkNQa3mAXX\",\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-31T10:43:28.315Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_F7NzOD6gaotgZzLwLRPR\",\r\n \"network_transaction_id\": \"016150703802094\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-10-31T10:28:29.378Z\",\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\": \"4272C92E10D777EEE063AF598E0A16DB\",\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 \"tokenization\": null\r\n}\r\n```\r\nCIT By passing \"tokenization\":\"skip_psp\", (We will not receive the ConnectorMandateDetails)\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--header 'api-key: dev_lnC8hfrC3uiRHolkLsACt0DT07OekrLHv5WUIX7inHpXLGDAx8QtdDFLhZe9o6br' \\\r\n--data-raw '{\r\n \"amount\": 1000,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \r\n \"customer_id\": \"Bambora1Customer\",\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payment request\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \"tokenization\":\"skip_psp\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"card_number\": \"4456530000001096\",\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"50\",\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 },\r\n \"shipping\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n },\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"metadata\": {\r\n \"udf1\": \"value1\",\r\n \"new_customer\": \"true\",\r\n \"login_date\": \"2019-09-10T10:11:12Z\"\r\n },\r\n \r\n \"setup_future_usage\": \"off_session\",\r\n \"customer_acceptance\": {\r\n \"acceptance_type\": \"offline\",\r\n \"accepted_at\": \"1963-05-03T04:07:52.723Z\",\r\n \"online\": {\r\n \"ip_address\": \"125.0.0.1\",\r\n \"user_agent\": \"amet irure esse\"\r\n }\r\n }\r\n\r\n}'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_ksCrBEwprK4wW34fBNyW\",\r\n \"merchant_id\": \"postman_merchant_GHAction_9107e8b2-3a7a-42f5-9480-0a6590b387a3\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 1000,\r\n \"net_amount\": 1000,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 1000,\r\n \"connector\": \"cybersource\",\r\n \"client_secret\": \"pay_ksCrBEwprK4wW34fBNyW_secret_z22KgVh5Gwh1fyXTKfUb\",\r\n \"created\": \"2025-10-31T10:29:50.267Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": \"Bambora1Customer\",\r\n \"customer\": {\r\n \"id\": \"Bambora1Customer\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": \"off_session\",\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1096\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"445653\",\r\n \"card_extended_bin\": null,\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"50\",\r\n \"card_holder_name\": \"joseph Doe\",\r\n \"payment_checks\": {\r\n \"avs_response\": {\r\n \"code\": \"Y\",\r\n \"codeRaw\": \"Y\"\r\n },\r\n \"card_verification\": null\r\n },\r\n \"authentication_data\": null\r\n },\r\n \"billing\": null\r\n },\r\n \"payment_token\": \"token_CVECGYZry3kJyNHGk3CG\",\r\n \"shipping\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"999999999\",\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"joseph\",\r\n \"statement_descriptor_suffix\": \"JS\",\r\n \"next_action\": 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\": \"Bambora1Customer\",\r\n \"created_at\": 1761906590,\r\n \"expires\": 1761910190,\r\n \"secret\": \"epk_d82bd5e63cb547279acbddebc1e2800d\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"7619065905286325003814\",\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\": \"pay_ksCrBEwprK4wW34fBNyW_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_WwnBiHi4vstc37HbGCmD\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_nU2i0sAZeJXkNQa3mAXX\",\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-31T10:44:50.267Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": \"pm_lMZE83gmXgyKXaC6Amdh\",\r\n \"network_transaction_id\": \"016150703802094\",\r\n \"payment_method_status\": \"active\",\r\n \"updated\": \"2025-10-31T10:29:51.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\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": null,\r\n \"mit_category\": null,\r\n \"tokenization\":\"skip_psp\",\r\n}\r\n```\r\nMIT via the Received NTID\r\n```\r\ncurl --location 'http://localhost:8080/payments' \\\r\n--header 'Accept: application/json' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'api-key: dev_lnC8hfrC3uiRHolkLsACt0DT07OekrLHv5WUIX7inHpXLGDAx8QtdDFLhZe9o6br' \\\r\n--data-raw '{\r\n \"amount\": 7445,\r\n \"currency\": \"USD\",\r\n \"confirm\": true,\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"amount_to_capture\": 7445,\r\n \"customer_id\": \"cu_1757579182\",\r\n \"capture_method\": \"automatic\",\r\n \"capture_on\": \"2022-09-10T10:11:12Z\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"return_url\": \"https://google.com\",\r\n \"email\": \"something@gmail.com\",\r\n \"name\": \"Joseph Doe\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\",\r\n \"description\": \"Its my first payment request\",\r\n \"statement_descriptor_name\": \"Juspay\",\r\n \"statement_descriptor_suffix\": \"Router\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_type\": \"credit\",\r\n \r\n \"recurring_details\": {\r\n \"type\": \"network_transaction_id_and_card_details\",\r\n \"data\": {\r\n \"card_number\": \"4456530000001096\",\r\n \"card_exp_month\": \"01\",\r\n \"card_exp_year\": \"50\",\r\n \"card_network\":\"VISA\",\r\n \"network_transaction_id\": \"016150703802094\"\r\n }\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"California\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\"\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n }\r\n }\r\n}'\r\n```\r\nResponse\r\n```\r\n{\r\n \"payment_id\": \"pay_4zQzMswv4UzzB9Dvx6wm\",\r\n \"merchant_id\": \"postman_merchant_GHAction_9107e8b2-3a7a-42f5-9480-0a6590b387a3\",\r\n \"status\": \"succeeded\",\r\n \"amount\": 7445,\r\n \"net_amount\": 7445,\r\n \"shipping_cost\": null,\r\n \"amount_capturable\": 0,\r\n \"amount_received\": 7445,\r\n \"connector\": \"cybersource\",\r\n \"client_secret\": \"pay_4zQzMswv4UzzB9Dvx6wm_secret_UBTvq345G7GMypuDHE3H\",\r\n \"created\": \"2025-10-31T10:50:06.028Z\",\r\n \"currency\": \"USD\",\r\n \"customer_id\": null,\r\n \"customer\": {\r\n \"id\": null,\r\n \"name\": \"Joseph Doe\",\r\n \"email\": \"something@gmail.com\",\r\n \"phone\": \"999999999\",\r\n \"phone_country_code\": \"+65\"\r\n },\r\n \"description\": \"Its my first payment request\",\r\n \"refunds\": null,\r\n \"disputes\": null,\r\n \"mandate_id\": null,\r\n \"mandate_data\": null,\r\n \"setup_future_usage\": null,\r\n \"off_session\": null,\r\n \"capture_on\": null,\r\n \"capture_method\": \"automatic\",\r\n \"payment_method\": \"card\",\r\n \"payment_method_data\": {\r\n \"card\": {\r\n \"last4\": \"1096\",\r\n \"card_type\": null,\r\n \"card_network\": null,\r\n \"card_issuer\": null,\r\n \"card_issuing_country\": null,\r\n \"card_isin\": \"445653\",\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 \"payment_token\": null,\r\n \"shipping\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": null,\r\n \"line3\": null,\r\n \"zip\": \"94122\",\r\n \"state\": \"California\",\r\n \"first_name\": \"joseph\",\r\n \"last_name\": \"Doe\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"8056594427\",\r\n \"country_code\": \"+91\"\r\n },\r\n \"email\": null\r\n },\r\n \"order_details\": null,\r\n \"email\": null,\r\n \"name\": null,\r\n \"phone\": null,\r\n \"return_url\": \"https://google.com/\",\r\n \"authentication_type\": \"no_three_ds\",\r\n \"statement_descriptor_name\": \"Juspay\",\r\n \"statement_descriptor_suffix\": \"Router\",\r\n \"next_action\": null,\r\n \"cancellation_reason\": null,\r\n \"error_code\": null,\r\n \"error_message\": null,\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payment_experience\": null,\r\n \"payment_method_type\": \"credit\",\r\n \"connector_label\": \"cybersource_US_default_default\",\r\n \"business_country\": \"US\",\r\n \"business_label\": \"default\",\r\n \"business_sub_label\": null,\r\n \"allowed_payment_method_types\": null,\r\n \"ephemeral_key\": {\r\n \"customer_id\": \"cu_1757579182\",\r\n \"created_at\": 1761907806,\r\n \"expires\": 1761911406,\r\n \"secret\": \"epk_338b7bf4beca4212a7e9921f6b1ddb8e\"\r\n },\r\n \"manual_retry_allowed\": null,\r\n \"connector_transaction_id\": \"7619078062826266203812\",\r\n \"frm_message\": null,\r\n \"metadata\": null,\r\n \"connector_metadata\": null,\r\n \"feature_metadata\": null,\r\n \"reference_id\": \"pay_4zQzMswv4UzzB9Dvx6wm_1\",\r\n \"payment_link\": null,\r\n \"profile_id\": \"pro_WwnBiHi4vstc37HbGCmD\",\r\n \"surcharge_details\": null,\r\n \"attempt_count\": 1,\r\n \"merchant_decision\": null,\r\n \"merchant_connector_id\": \"mca_nU2i0sAZeJXkNQa3mAXX\",\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-31T11:05:06.028Z\",\r\n \"fingerprint\": null,\r\n \"browser_info\": null,\r\n \"payment_channel\": null,\r\n \"payment_method_id\": null,\r\n \"network_transaction_id\": \"016150703802094\",\r\n \"payment_method_status\": null,\r\n \"updated\": \"2025-10-31T10:50:06.906Z\",\r\n \"split_payments\": null,\r\n \"frm_metadata\": null,\r\n \"extended_authorization_applied\": null,\r\n \"request_extended_authorization\": null,\r\n \"capture_before\": null,\r\n \"merchant_order_reference_id\": null,\r\n \"order_tax_amount\": null,\r\n \"connector_mandate_id\": null,\r\n \"card_discovery\": \"manual\",\r\n \"force_3ds_challenge\": false,\r\n \"force_3ds_challenge_trigger\": false,\r\n \"issuer_error_code\": null,\r\n \"issuer_error_message\": null,\r\n \"is_iframe_redirection_enabled\": null,\r\n \"whole_connector_response\": null,\r\n \"enable_partial_authorization\": null,\r\n \"enable_overcapture\": null,\r\n \"is_overcapture_enabled\": null,\r\n \"network_details\": null,\r\n \"is_stored_credential\": true,\r\n \"mit_category\": null,\r\n \"tokenization\": null\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", |