| "description": "## Type of Change\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [ ] Bugfix\r\n- [ ] New feature\r\n- [ ] Enhancement\r\n- [ ] Refactoring\r\n- [ ] Dependency updates\r\n- [ ] Documentation\r\n- [ ] CI/CD\r\n\r\n## Description\r\nRefactor bankredirect required fields for payout\r\n\r\nin required fields \r\n- changed `payout_method_data.bank_redirect.interac.email` to `payout_method_data.bank_redirect.email`\r\n- changed `payment_method_data.billing.phone.number` and `payment_method_data.billing.phone.country_code` to `billing.phone.number` and `billing.phone.country_code`\r\n\r\n### Additional Changes\r\n\r\n- [ ] This PR modifies the API contract\r\n- [ ] This PR modifies the database schema\r\n- [ ] This PR modifies application configuration/environment variables\r\n\r\n<!--\r\nProvide links to the files with corresponding changes.\r\n\r\nFollowing are the paths where you can find config files:\r\n1. `config`\r\n2. `crates/router/src/configs`\r\n3. `loadtest/config`\r\n-->\r\n\r\n\r\n## Motivation and Context\r\n<!--\r\nWhy is this change required? What problem does it solve?\r\nIf it fixes an open issue, please link to the issue here.\r\n\r\nIf you don't have an issue, we'd recommend starting with one first so the PR\r\ncan focus on the implementation (unless it is an obvious bug or documentation fix\r\nthat will have little conversation).\r\n-->\r\n\r\n\r\n## How did you test it?\r\n1. Create Gigadat payout connector\r\n```\r\n{\r\n \"connector_type\": \"payout_processor\",\r\n \"connector_name\": \"gigadat\",\r\n \"connector_account_details\": {\r\n \"auth_type\": \"SignatureKey\",\r\n \"api_key\": \"_\r\n \"key1\": \"_\",\r\n \"api_secret\" : \"_\"\r\n },\r\n \"test_mode\": true,\r\n \"disabled\": false,\r\n \"payment_methods_enabled\": [\r\n {\r\n \"payment_method\": \"bank_redirect\",\r\n \"payment_method_types\": [\r\n {\r\n \"payment_method_type\": \"interac\",\r\n \"payment_experience\": \"redirect_to_url\",\r\n \"minimum_amount\": 1,\r\n \"maximum_amount\": 68607706,\r\n \"recurring_enabled\": true,\r\n \"installment_payment_enabled\": true\r\n }\r\n ]\r\n }\r\n ],\r\n \"metadata\": {\r\n \"site\" : \"https://google.com/\"\r\n }\r\n}\r\n\r\n```\r\n2. Create a payout with confirm false\r\n```\r\n{\r\n \"amount\": 1,\r\n \"currency\": \"CAD\",\r\n \"customer_id\": \"{{customer_id}}\",\r\n \"email\": \"payout_customer@example.com\",\r\n \"name\": \"Doest John\",\r\n \"phone\": \"6168205366\",\r\n \"phone_country_code\": \"+1\",\r\n \"description\": \"Its my first payout request\",\r\n \"connector\": [\r\n \"gigadat\"\r\n ],\r\n \"browser_info\": {\r\n \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36\",\r\n \"accept_header\": \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\",\r\n \"language\": \"nl-NL\",\r\n \"color_depth\": 24,\r\n \"screen_height\": 723,\r\n \"screen_width\": 1536,\r\n \"time_zone\": 0,\r\n \"java_enabled\": true,\r\n \"java_script_enabled\": true,\r\n \"ip_address\": \"127.0.0.1\"\r\n },\r\n \"billing\": {\r\n \"address\": {\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"city\": \"San Fransico\",\r\n \"state\": \"CA\",\r\n \"zip\": \"94122\",\r\n \"country\": \"US\",\r\n \"first_name\": \"Doest\",\r\n \"last_name\": \"John\"\r\n },\r\n \"phone\": {\r\n \"number\": \"6168205366\",\r\n \"country_code\": \"1\"\r\n }\r\n },\r\n \"entity_type\": \"Individual\",\r\n \"recurring\": false,\r\n \"payout_link\": true,\r\n \"payout_link_config\": {\r\n \"logo\": \"https://hyperswitch.io/favicon.ico\",\r\n \"merchant_name\": \"Hyperswitch\",\r\n \"theme\": \"#4285F4\",\r\n \"test_mode\": true,\r\n \"form_layout\": \"tabs\"\r\n }\r\n}\r\n```\r\n\r\nResponse\r\n```\r\n{\r\n \"payout_id\": \"payout_wOL1qmK6JEbrrm4x97y4\",\r\n \"merchant_id\": \"merchant_1761055504\",\r\n \"merchant_order_reference_id\": null,\r\n \"amount\": 1,\r\n \"currency\": \"CAD\",\r\n \"connector\": null,\r\n \"payout_type\": null,\r\n \"payout_method_data\": null,\r\n \"billing\": {\r\n \"address\": {\r\n \"city\": \"San Fransico\",\r\n \"country\": \"US\",\r\n \"line1\": \"1467\",\r\n \"line2\": \"Harrison Street\",\r\n \"line3\": \"Harrison Street\",\r\n \"zip\": \"94122\",\r\n \"state\": \"CA\",\r\n \"first_name\": \"Doest\",\r\n \"last_name\": \"John\",\r\n \"origin_zip\": null\r\n },\r\n \"phone\": {\r\n \"number\": \"6168205366\",\r\n \"country_code\": \"1\"\r\n },\r\n \"email\": null\r\n },\r\n \"auto_fulfill\": false,\r\n \"customer_id\": \"cus_JME76kNhCBZbnCCt7STw\",\r\n \"customer\": {\r\n \"id\": \"cus_JME76kNhCBZbnCCt7STw\",\r\n \"name\": \"John Doe\",\r\n \"email\": \"guest@example.com\",\r\n \"phone\": \"6168205366\",\r\n \"phone_country_code\": \"+1\"\r\n },\r\n \"client_secret\": \"payout_payout_wOL1qmK6JEbrrm4x97y4_secret_MlbMUxpR5ZO8gIiwYv8u\",\r\n \"return_url\": null,\r\n \"business_country\": null,\r\n \"business_label\": null,\r\n \"description\": \"Its my first payout request\",\r\n \"entity_type\": \"Individual\",\r\n \"recurring\": false,\r\n \"metadata\": {},\r\n \"merchant_connector_id\": null,\r\n \"status\": \"requires_payout_method_data\",\r\n \"error_message\": null,\r\n \"error_code\": null,\r\n \"profile_id\": \"pro_ZBFKeBzE1jVH95KQwzxl\",\r\n \"created\": \"2025-10-21T14:05:31.518Z\",\r\n \"connector_transaction_id\": null,\r\n \"priority\": null,\r\n \"payout_link\": {\r\n \"payout_link_id\": \"payout_link_gJd0iaL268lZI2KxDqpS\",\r\n \"link\": \"http://localhost:8080/payout_link/merchant_1761055504/payout_wOL1qmK6JEbrrm4x97y4?locale=en\"\r\n },\r\n \"email\": \"guest@example.com\",\r\n \"name\": \"John Doe\",\r\n \"phone\": \"6168205366\",\r\n \"phone_country_code\": \"+1\",\r\n \"unified_code\": null,\r\n \"unified_message\": null,\r\n \"payout_method_id\": null\r\n}\r\n```\r\nIn payout link , we can see\r\n```\r\n\"enabled_payment_methods_with_required_fields\": [\r\n {\r\n \"payment_method\": \"bank_redirect\",\r\n \"payment_method_types_info\": [\r\n {\r\n \"payment_method_type\": \"interac\",\r\n \"required_fields\": {\r\n \"billing.phone.country_code\": {\r\n \"required_field\": \"billing.phone.country_code\",\r\n \"display_name\": \"dialing_code\",\r\n \"field_type\": \"user_phone_number_country_code\",\r\n \"value\": null\r\n },\r\n \"billing.address.first_name\": {\r\n \"required_field\": \"billing.address.first_name\",\r\n \"display_name\": \"billing_address_first_name\",\r\n \"field_type\": \"text\",\r\n \"value\": null\r\n },\r\n \"payout_method_data.bank_redirect.email\": {\r\n \"required_field\": \"payout_method_data.bank_redirect.email\",\r\n \"display_name\": \"email\",\r\n \"field_type\": \"text\",\r\n \"value\": null\r\n },\r\n \"billing.address.last_name\": {\r\n \"required_field\": \"billing.address.last_name\",\r\n \"display_name\": \"billing_address_last_name\",\r\n \"field_type\": \"text\",\r\n \"value\": null\r\n },\r\n \"billing.phone.number\": {\r\n \"required_field\": \"billing.phone.number\",\r\n \"display_name\": \"phone\",\r\n \"field_type\": \"user_phone_number\",\r\n \"value\": null\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n],\r\n```\r\n\r\n\r\n## Checklist\r\n<!-- Put an `x` in the boxes that apply -->\r\n\r\n- [x] I formatted the code `cargo +nightly fmt --all`\r\n- [x] I addressed lints thrown by `cargo clippy`\r\n- [x] I reviewed the submitted code\r\n- [ ] I added unit tests for my changes where possible\r\n", |