<!-- Describe your changes in detail -->
This Pr implements setup mandate flow, fixes card mandate flow and maps network_txn_id 


## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->

<details>
<summary> Zero Auth CIT + MIT </summary>

1. Create a zero auth CIT

```json
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_XAp69f7Dfj6lQBbz5pPoxtnwadx2HAU7F7DTcFbWGB7EnGVHZakPNhkw3cGpmhoB' \
--data '{
    "amount":0,
    "currency": "USD",
    "confirm": true,
    "capture_method": "automatic",
    
    "payment_type": "setup_mandate",
    
    "customer_id": "aaaa",
    "payment_method": "card",
    "payment_method_type": "credit",
      "payment_method_data": {
        "card": {
            "card_number": "4100200300011001", 
            "card_exp_month": "01",
            "card_exp_year": "50",
            
            "card_cvc": "987"
            
        }
    },
    "return_url": "https://www.google.com/",
    "customer_acceptance": {
        "acceptance_type": "online",
        "accepted_at": "2025-03-27T13:56:49.848Z",
        "online": {
            "ip_address": null,
            "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15"
        }
    },
    "setup_future_usage": "off_session"
}'

```

Response

```
{"payment_id":"pay_VpEtBYRi1niZhQ05lhhn","merchant_id":"postman_merchant_GHAction_012c870c-4e06-418f-a0b3-acdf3a03f4ae","status":"processing","amount":0,"net_amount":0,"shipping_cost":null,"amount_capturable":0,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_VpEtBYRi1niZhQ05lhhn_secret_iZGk5rq2EHnMbomn7TjA","created":"2025-08-12T14:00:54.936Z","currency":"USD","customer_id":"aaaa","customer":{"id":"aaaa","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":"off_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":{"avs_result":"32","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://www.google.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"aaaa","created_at":1755007254,"expires":1755010854,"secret":"epk_f12c783739e54105b8a3029503fee836"},"manual_retry_allowed":false,"connector_transaction_id":"84085359781684826","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"pay_VpEtBYRi1niZhQ05lhhn_1","payment_link":null,"profile_id":"pro_2JdUlQe3tdwrnPEDV2OJ","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_z35pR34MapAVxIgwldLa","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-12T14:15:54.935Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":"pm_q6EKptpWOxiu5tlv05FQ","network_transaction_id":"759986459639263","payment_method_status":"inactive","updated":"2025-08-12T14:00:56.412Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":"2731687290861001","card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```

2.Psync
```
{"payment_id":"pay_VpEtBYRi1niZhQ05lhhn","merchant_id":"postman_merchant_GHAction_012c870c-4e06-418f-a0b3-acdf3a03f4ae","status":"succeeded","amount":0,"net_amount":0,"shipping_cost":null,"amount_capturable":0,"amount_received":0,"connector":"worldpayvantiv","client_secret":"pay_VpEtBYRi1niZhQ05lhhn_secret_iZGk5rq2EHnMbomn7TjA","created":"2025-08-12T14:00:54.936Z","currency":"USD","customer_id":"aaaa","customer":{"id":"aaaa","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":"off_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":{"avs_result":"32","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://www.google.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"84085359781684826","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"pay_VpEtBYRi1niZhQ05lhhn_1","payment_link":null,"profile_id":"pro_2JdUlQe3tdwrnPEDV2OJ","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_z35pR34MapAVxIgwldLa","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-12T14:15:54.935Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":"pm_q6EKptpWOxiu5tlv05FQ","network_transaction_id":"759986459639263","payment_method_status":"inactive","updated":"2025-08-12T14:02:12.188Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":"2731687290861001","card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```

3. Do a MIT 

```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_XAp69f7Dfj6lQBbz5pPoxtnwadx2HAU7F7DTcFbWGB7EnGVHZakPNhkw3cGpmhoB' \
--data '{
    "amount": 15000,
    "currency": "USD",
    "off_session": true,
    "confirm": true,
    "capture_method": "manual",
    "recurring_details": {
        "type": "payment_method_id",
        "data": "pm_q6EKptpWOxiu5tlv05FQ"
    },
    
    "customer_id": "aaaa",
    "connector": [
        "worldpayvantiv"
    ] 
}'
```

Response

```
{"payment_id":"pay_Mkc6QoQYIyLYzwZ1cdTv","merchant_id":"postman_merchant_GHAction_012c870c-4e06-418f-a0b3-acdf3a03f4ae","status":"processing","amount":15000,"net_amount":15000,"shipping_cost":null,"amount_capturable":15000,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_Mkc6QoQYIyLYzwZ1cdTv_secret_y2lZVjlOe70KeQfwWqFm","created":"2025-08-12T14:02:44.770Z","currency":"USD","customer_id":"aaaa","customer":{"id":"aaaa","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":true,"capture_on":null,"capture_method":"manual","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"aaaa","created_at":1755007364,"expires":1755010964,"secret":"epk_3e3606e996744b3db47d9d0ea7da1f63"},"manual_retry_allowed":false,"connector_transaction_id":"83997400517768209","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"pay_Mkc6QoQYIyLYzwZ1cdTv_1","payment_link":null,"profile_id":"pro_2JdUlQe3tdwrnPEDV2OJ","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_z35pR34MapAVxIgwldLa","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-12T14:17:44.770Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":"pm_q6EKptpWOxiu5tlv05FQ","network_transaction_id":"759986459639263","payment_method_status":"active","updated":"2025-08-12T14:02:45.927Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":"2731687290861001","card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```

Psync 

```
{"payment_id":"pay_Mkc6QoQYIyLYzwZ1cdTv","merchant_id":"postman_merchant_GHAction_012c870c-4e06-418f-a0b3-acdf3a03f4ae","status":"requires_capture","amount":15000,"net_amount":15000,"shipping_cost":null,"amount_capturable":15000,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_Mkc6QoQYIyLYzwZ1cdTv_secret_y2lZVjlOe70KeQfwWqFm","created":"2025-08-12T14:02:44.770Z","currency":"USD","customer_id":"aaaa","customer":{"id":"aaaa","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":true,"capture_on":null,"capture_method":"manual","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"83997400517768209","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"pay_Mkc6QoQYIyLYzwZ1cdTv_1","payment_link":null,"profile_id":"pro_2JdUlQe3tdwrnPEDV2OJ","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_z35pR34MapAVxIgwldLa","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-12T14:17:44.770Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":"pm_q6EKptpWOxiu5tlv05FQ","network_transaction_id":"759986459639263","payment_method_status":"active","updated":"2025-08-12T14:03:28.399Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```
</details>

<details>
<summary> Verify card with zero authorization </summary>

1. Create a setup mandate call without setup_future_usage

```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_XAp69f7Dfj6lQBbz5pPoxtnwadx2HAU7F7DTcFbWGB7EnGVHZakPNhkw3cGpmhoB' \
--data '{
    "amount":0,
    "currency": "USD",
    "confirm": true,
    "capture_method": "automatic",
    
    "payment_type": "setup_mandate",
    
    "customer_id": "aaaa",
    "payment_method": "card",
    "payment_method_type": "credit",

    
      "payment_method_data": {
        "card": {
            "card_number": "4100200300011001", 
            "card_exp_month": "01",
            "card_exp_year": "50",
            
            "card_cvc": "987"
            
        }
    },
    "return_url": "https://www.google.com/"
 
    
}'
```

Response 

```
{"payment_id":"pay_y05GVQ9IzVI1LPAKKgts","merchant_id":"postman_merchant_GHAction_012c870c-4e06-418f-a0b3-acdf3a03f4ae","status":"processing","amount":0,"net_amount":0,"shipping_cost":null,"amount_capturable":0,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_y05GVQ9IzVI1LPAKKgts_secret_jeKWdFdAGO0bAteA2Fmz","created":"2025-08-12T14:08:29.272Z","currency":"USD","customer_id":"aaaa","customer":{"id":"aaaa","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":{"avs_result":"32","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://www.google.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"aaaa","created_at":1755007709,"expires":1755011309,"secret":"epk_bb066f7138e143d4ac7226a3b36c8be3"},"manual_retry_allowed":false,"connector_transaction_id":"83997400517831163","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"pay_y05GVQ9IzVI1LPAKKgts_1","payment_link":null,"profile_id":"pro_2JdUlQe3tdwrnPEDV2OJ","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_z35pR34MapAVxIgwldLa","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-12T14:23:29.272Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":null,"network_transaction_id":null,"payment_method_status":null,"updated":"2025-08-12T14:08:30.837Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":"2731687290861001","card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```

2. Do a Psync

```
{"payment_id":"pay_y05GVQ9IzVI1LPAKKgts","merchant_id":"postman_merchant_GHAction_012c870c-4e06-418f-a0b3-acdf3a03f4ae","status":"succeeded","amount":0,"net_amount":0,"shipping_cost":null,"amount_capturable":0,"amount_received":0,"connector":"worldpayvantiv","client_secret":"pay_y05GVQ9IzVI1LPAKKgts_secret_jeKWdFdAGO0bAteA2Fmz","created":"2025-08-12T14:08:29.272Z","currency":"USD","customer_id":"aaaa","customer":{"id":"aaaa","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":{"avs_result":"32","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://www.google.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"83997400517831163","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"pay_y05GVQ9IzVI1LPAKKgts_1","payment_link":null,"profile_id":"pro_2JdUlQe3tdwrnPEDV2OJ","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_z35pR34MapAVxIgwldLa","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-12T14:23:29.272Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":null,"network_transaction_id":null,"payment_method_status":null,"updated":"2025-08-12T14:09:28.286Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":"2731687290861001","card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```
</details>
<details>
<summary> Create a saved card flow via Setupmandate </summary>

Create a saved card payment via setup mandate

```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_XAp69f7Dfj6lQBbz5pPoxtnwadx2HAU7F7DTcFbWGB7EnGVHZakPNhkw3cGpmhoB' \
--data '{
    "amount":0,
    "currency": "USD",
    "confirm": true,
    "capture_method": "automatic",
    
    "payment_type": "setup_mandate",
    "customer_id": "aaaa",
    "payment_method": "card",
    "payment_method_type": "credit",
   
    
    
      "payment_method_data": {
        "card": {
            "card_number": "4100200300011001", 
            "card_exp_month": "01",
            "card_exp_year": "50",
            
            "card_cvc": "987"
            
        }
    },
    "return_url": "https://www.google.com/",
    "customer_acceptance": {
        "acceptance_type": "online",
        "accepted_at": "2025-03-27T13:56:49.848Z",
        "online": {
            "ip_address": null,
            "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15"
        }
    },
    "setup_future_usage": "on_session"
  
    
}'
```

Response

```
{"payment_id":"pay_oq1ndaQNrqFAoBoGtrEZ","merchant_id":"postman_merchant_GHAction_012c870c-4e06-418f-a0b3-acdf3a03f4ae","status":"processing","amount":0,"net_amount":0,"shipping_cost":null,"amount_capturable":0,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_oq1ndaQNrqFAoBoGtrEZ_secret_oliww2oOw7IuRquCePgr","created":"2025-08-12T14:11:44.840Z","currency":"USD","customer_id":"aaaa","customer":{"id":"aaaa","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":"on_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":{"avs_result":"32","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://www.google.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"aaaa","created_at":1755007904,"expires":1755011504,"secret":"epk_e667218908a846a0b79bd0c069baf232"},"manual_retry_allowed":false,"connector_transaction_id":"84085360018542837","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"pay_oq1ndaQNrqFAoBoGtrEZ_1","payment_link":null,"profile_id":"pro_2JdUlQe3tdwrnPEDV2OJ","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_z35pR34MapAVxIgwldLa","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-12T14:26:44.840Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":"pm_oeM8ZeDBVYrcvxlFwJV6","network_transaction_id":null,"payment_method_status":"inactive","updated":"2025-08-12T14:11:46.104Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":"2731687290861001","card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```

Psync
```
{"payment_id":"pay_oq1ndaQNrqFAoBoGtrEZ","merchant_id":"postman_merchant_GHAction_012c870c-4e06-418f-a0b3-acdf3a03f4ae","status":"succeeded","amount":0,"net_amount":0,"shipping_cost":null,"amount_capturable":0,"amount_received":0,"connector":"worldpayvantiv","client_secret":"pay_oq1ndaQNrqFAoBoGtrEZ_secret_oliww2oOw7IuRquCePgr","created":"2025-08-12T14:11:44.840Z","currency":"USD","customer_id":"aaaa","customer":{"id":"aaaa","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":"on_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":{"avs_result":"32","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://www.google.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"84085360018542837","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"pay_oq1ndaQNrqFAoBoGtrEZ_1","payment_link":null,"profile_id":"pro_2JdUlQe3tdwrnPEDV2OJ","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_z35pR34MapAVxIgwldLa","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-12T14:26:44.840Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":"pm_oeM8ZeDBVYrcvxlFwJV6","network_transaction_id":null,"payment_method_status":"inactive","updated":"2025-08-12T14:12:40.060Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":"2731687290861001","card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```

List customer token

```
{"customer_payment_methods":[{"payment_token":"token_CIvJ8kYL746zNCwdn0Mg","payment_method_id":"pm_oeM8ZeDBVYrcvxlFwJV6","customer_id":"aaaa","payment_method":"card","payment_method_type":"credit","payment_method_issuer":null,"payment_method_issuer_code":null,"recurring_enabled":false,"installment_payment_enabled":false,"payment_experience":["redirect_to_url"],"card":{"scheme":null,"issuer_country":null,"last4_digits":"1001","expiry_month":"01","expiry_year":"50","card_token":null,"card_holder_name":null,"card_fingerprint":null,"nick_name":null,"card_network":null,"card_isin":"410020","card_issuer":null,"card_type":null,"saved_to_locker":true},"metadata":null,"created":"2025-08-12T14:11:46.098Z","bank":null,"surcharge_details":null,"requires_cvv":true,"last_used_at":"2025-08-12T14:11:46.098Z","default_payment_method_set":false,"billing":null},{"payment_token":"token_ZAX2JJ8gsvKh1V6SY6xN","payment_method_id":"pm_q6EKptpWOxiu5tlv05FQ","customer_id":"aaaa","payment_method":"card","payment_method_type":"credit","payment_method_issuer":null,"payment_method_issuer_code":null,"recurring_enabled":false,"installment_payment_enabled":false,"payment_experience":["redirect_to_url"],"card":{"scheme":null,"issuer_country":null,"last4_digits":"1001","expiry_month":"01","expiry_year":"50","card_token":null,"card_holder_name":null,"card_fingerprint":null,"nick_name":null,"card_network":null,"card_isin":"410020","card_issuer":null,"card_type":null,"saved_to_locker":true},"metadata":null,"created":"2025-08-12T14:00:56.393Z","bank":null,"surcharge_details":null,"requires_cvv":true,"last_used_at":"2025-08-12T14:00:56.393Z","default_payment_method_set":false,"billing":null},{"payment_token":"token_DtT7wbbpXAmdpgLpDMZ1","payment_method_id":"pm_imyGqIP7QfVlNx4d0cOw","customer_id":"aaaa","payment_method":"card","payment_method_type":"credit","payment_method_issuer":null,"payment_method_issuer_code":null,"recurring_enabled":false,"installment_payment_enabled":false,"payment_experience":["redirect_to_url"],"card":{"scheme":null,"issuer_country":null,"last4_digits":"1001","expiry_month":"01","expiry_year":"50","card_token":null,"card_holder_name":null,"card_fingerprint":null,"nick_name":null,"card_network":null,"card_isin":"410020","card_issuer":null,"card_type":null,"saved_to_locker":true},"metadata":null,"created":"2025-08-12T11:02:07.848Z","bank":null,"surcharge_details":null,"requires_cvv":true,"last_used_at":"2025-08-12T11:02:07.848Z","default_payment_method_set":true,"billing":null}],"is_guest_customer":null}
```

Create a payment with confirm false

```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_XAp69f7Dfj6lQBbz5pPoxtnwadx2HAU7F7DTcFbWGB7EnGVHZakPNhkw3cGpmhoB' \
--data '{
    "amount": 100,
    "currency": "USD",
    "confirm": false,
    "capture_method": "manual",
    
    "billing": {
        "address": {
            
            
            
            "city": "Riverside",
            "state": "RI",
            "zip": "02915",
            "country": "US",
            "first_name": "Mike",
            "last_name": "J. Hammer"
        }
    },
    "customer_id": "aaaa"

}'
```

Response

```
{"payment_id":"pay_wFlHWWR7kxIJsAUn2bvP","merchant_id":"postman_merchant_GHAction_012c870c-4e06-418f-a0b3-acdf3a03f4ae","status":"requires_payment_method","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":0,"amount_received":null,"connector":null,"client_secret":"pay_wFlHWWR7kxIJsAUn2bvP_secret_9seEJ3kzbZ1GLKxp4Om3","created":"2025-08-12T14:14:56.698Z","currency":"USD","customer_id":"aaaa","customer":{"id":"aaaa","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"manual","payment_method":null,"payment_method_data":null,"payment_token":null,"shipping":null,"billing":{"address":{"city":"Riverside","country":"US","line1":null,"line2":null,"line3":null,"zip":"02915","state":"RI","first_name":"Mike","last_name":"J. Hammer","origin_zip":null},"phone":null,"email":null},"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":null,"statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"aaaa","created_at":1755008096,"expires":1755011696,"secret":"epk_7d50bfb983044b5b92b8f7381c6ab1a6"},"manual_retry_allowed":null,"connector_transaction_id":null,"frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":null,"payment_link":null,"profile_id":"pro_2JdUlQe3tdwrnPEDV2OJ","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":null,"incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-12T14:29:56.698Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":null,"network_transaction_id":null,"payment_method_status":null,"updated":"2025-08-12T14:14:56.729Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":null,"force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```

Confirm

```
curl --location 'http://localhost:8080/payments/pay_wFlHWWR7kxIJsAUn2bvP/confirm' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_XAp69f7Dfj6lQBbz5pPoxtnwadx2HAU7F7DTcFbWGB7EnGVHZakPNhkw3cGpmhoB' \
--data '{
    "customer_id": "aaaa",
    "payment_method":"card",
    "payment_token": "token_CIvJ8kYL746zNCwdn0Mg" 
}'
```

Response

```
{"payment_id":"pay_wFlHWWR7kxIJsAUn2bvP","merchant_id":"postman_merchant_GHAction_012c870c-4e06-418f-a0b3-acdf3a03f4ae","status":"processing","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":100,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_wFlHWWR7kxIJsAUn2bvP_secret_9seEJ3kzbZ1GLKxp4Om3","created":"2025-08-12T14:14:56.698Z","currency":"USD","customer_id":"aaaa","customer":{"id":"aaaa","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"manual","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":{"avs_result":"32","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":null},"authentication_data":null},"billing":null},"payment_token":"token_CIvJ8kYL746zNCwdn0Mg","shipping":null,"billing":{"address":{"city":"Riverside","country":"US","line1":null,"line2":null,"line3":null,"zip":"02915","state":"RI","first_name":"Mike","last_name":"J. Hammer","origin_zip":null},"phone":null,"email":null},"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"83997400528468328","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"pay_wFlHWWR7kxIJsAUn2bvP_1","payment_link":null,"profile_id":"pro_2JdUlQe3tdwrnPEDV2OJ","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_z35pR34MapAVxIgwldLa","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-12T14:29:56.698Z","fingerprint":null,"browser_info":{"os_type":null,"language":null,"time_zone":null,"ip_address":"::1","os_version":null,"user_agent":null,"color_depth":null,"device_model":null,"java_enabled":null,"screen_width":null,"accept_header":null,"screen_height":null,"accept_language":"en","java_script_enabled":null},"payment_channel":null,"payment_method_id":"pm_oeM8ZeDBVYrcvxlFwJV6","network_transaction_id":null,"payment_method_status":"active","updated":"2025-08-12T14:15:32.966Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"saved_card","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```

Psync

```
{"payment_id":"pay_wFlHWWR7kxIJsAUn2bvP","merchant_id":"postman_merchant_GHAction_012c870c-4e06-418f-a0b3-acdf3a03f4ae","status":"requires_capture","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":100,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_wFlHWWR7kxIJsAUn2bvP_secret_9seEJ3kzbZ1GLKxp4Om3","created":"2025-08-12T14:14:56.698Z","currency":"USD","customer_id":"aaaa","customer":{"id":"aaaa","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"manual","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":{"avs_result":"32","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":null},"authentication_data":null},"billing":null},"payment_token":"token_CIvJ8kYL746zNCwdn0Mg","shipping":null,"billing":{"address":{"city":"Riverside","country":"US","line1":null,"line2":null,"line3":null,"zip":"02915","state":"RI","first_name":"Mike","last_name":"J. Hammer","origin_zip":null},"phone":null,"email":null},"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"83997400528468328","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"pay_wFlHWWR7kxIJsAUn2bvP_1","payment_link":null,"profile_id":"pro_2JdUlQe3tdwrnPEDV2OJ","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_z35pR34MapAVxIgwldLa","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-12T14:29:56.698Z","fingerprint":null,"browser_info":{"os_type":null,"language":null,"time_zone":null,"ip_address":"::1","os_version":null,"user_agent":null,"color_depth":null,"device_model":null,"java_enabled":null,"screen_width":null,"accept_header":null,"screen_height":null,"accept_language":"en","java_script_enabled":null},"payment_channel":null,"payment_method_id":"pm_oeM8ZeDBVYrcvxlFwJV6","network_transaction_id":null,"payment_method_status":"active","updated":"2025-08-12T14:16:56.569Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"saved_card","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```
</details>

<details>
<summary> Sanity test </summary>
Create a normal mandate payment

```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_XAp69f7Dfj6lQBbz5pPoxtnwadx2HAU7F7DTcFbWGB7EnGVHZakPNhkw3cGpmhoB' \
--data '{
    "amount":100,
    "currency": "USD",
    "confirm": true,
    "capture_method": "automatic",

    "customer_id": "aaaa",
    "payment_method": "card",
    "payment_method_type": "credit",
    
      "payment_method_data": {
        "card": {
            "card_number": "4100200300011001", 
            "card_exp_month": "01",
            "card_exp_year": "50",
            
            "card_cvc": "987"
            
        }
    },
    "return_url": "https://www.google.com/",
    "customer_acceptance": {
        "acceptance_type": "online",
        "accepted_at": "2025-03-27T13:56:49.848Z",
        "online": {
            "ip_address": null,
            "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15"
        }
    },
    "setup_future_usage": "off_session"
 
    
}'
```

Response

```
{"payment_id":"pay_3m6mYlD1FliJWl0aUuRy","merchant_id":"postman_merchant_GHAction_012c870c-4e06-418f-a0b3-acdf3a03f4ae","status":"processing","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":100,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_3m6mYlD1FliJWl0aUuRy_secret_awz2ONXkUfOrvEXhBcNY","created":"2025-08-12T14:48:30.800Z","currency":"USD","customer_id":"aaaa","customer":{"id":"aaaa","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":"off_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":{"avs_result":"32","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://www.google.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"aaaa","created_at":1755010110,"expires":1755013710,"secret":"epk_579869778fa340069bdbc3d6edd00bfe"},"manual_retry_allowed":false,"connector_transaction_id":"83997400723976364","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"pay_3m6mYlD1FliJWl0aUuRy_1","payment_link":null,"profile_id":"pro_2JdUlQe3tdwrnPEDV2OJ","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_z35pR34MapAVxIgwldLa","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-12T15:03:30.800Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":"pm_PHUF5QsTx4tMa4Mzaz04","network_transaction_id":"182021959660275","payment_method_status":"inactive","updated":"2025-08-12T14:48:32.137Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":"2731687290861001","card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```

Psync

```
{"payment_id":"pay_C0QQ36LRddmq2PSIQUmJ","merchant_id":"postman_merchant_GHAction_012c870c-4e06-418f-a0b3-acdf3a03f4ae","status":"succeeded","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":0,"amount_received":100,"connector":"worldpayvantiv","client_secret":"pay_C0QQ36LRddmq2PSIQUmJ_secret_96PG3a3Fx4v3Tj8y35AY","created":"2025-08-12T14:38:47.041Z","currency":"USD","customer_id":"aaaa","customer":{"id":"aaaa","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":"on_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":{"avs_result":"32","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://www.google.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"83997400673542323","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"pay_C0QQ36LRddmq2PSIQUmJ_1","payment_link":null,"profile_id":"pro_2JdUlQe3tdwrnPEDV2OJ","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_z35pR34MapAVxIgwldLa","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-12T14:53:47.041Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":"pm_Bvlly7kDjitDtA9PfODD","network_transaction_id":null,"payment_method_status":"inactive","updated":"2025-08-12T14:44:06.384Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```

3. Do a MIT payment
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_XAp69f7Dfj6lQBbz5pPoxtnwadx2HAU7F7DTcFbWGB7EnGVHZakPNhkw3cGpmhoB' \
--data '{
    "amount": 15000,
    "currency": "USD",
    "off_session": true,
    "confirm": true,
    "capture_method": "automatic",
    "recurring_details": {
        "type": "payment_method_id",
        "data": "pm_PHUF5QsTx4tMa4Mzaz04"
    },
    
    "customer_id": "aaaa",
    "connector": [
        "worldpayvantiv"
    ]

}'
```

Response

```
{"payment_id":"pay_qDi2nW0Y36oFSBCjjl7B","merchant_id":"postman_merchant_GHAction_012c870c-4e06-418f-a0b3-acdf3a03f4ae","status":"processing","amount":15000,"net_amount":15000,"shipping_cost":null,"amount_capturable":15000,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_qDi2nW0Y36oFSBCjjl7B_secret_fCrdKGGKGXMJ2jJDR08U","created":"2025-08-12T14:55:32.467Z","currency":"USD","customer_id":"aaaa","customer":{"id":"aaaa","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":true,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"aaaa","created_at":1755010532,"expires":1755014132,"secret":"epk_bb52fe6c03484c5b8764af529efb5444"},"manual_retry_allowed":false,"connector_transaction_id":"84085361246060683","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"pay_qDi2nW0Y36oFSBCjjl7B_1","payment_link":null,"profile_id":"pro_2JdUlQe3tdwrnPEDV2OJ","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_z35pR34MapAVxIgwldLa","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-12T15:10:32.467Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":"pm_PHUF5QsTx4tMa4Mzaz04","network_transaction_id":"182021959660275","payment_method_status":"active","updated":"2025-08-12T14:55:35.090Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":"2731687290861001","card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```

Psync

```
{"payment_id":"pay_qDi2nW0Y36oFSBCjjl7B","merchant_id":"postman_merchant_GHAction_012c870c-4e06-418f-a0b3-acdf3a03f4ae","status":"succeeded","amount":15000,"net_amount":15000,"shipping_cost":null,"amount_capturable":0,"amount_received":15000,"connector":"worldpayvantiv","client_secret":"pay_qDi2nW0Y36oFSBCjjl7B_secret_fCrdKGGKGXMJ2jJDR08U","created":"2025-08-12T14:55:32.467Z","currency":"USD","customer_id":"aaaa","customer":{"id":"aaaa","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":true,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"84085361246060683","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"pay_qDi2nW0Y36oFSBCjjl7B_1","payment_link":null,"profile_id":"pro_2JdUlQe3tdwrnPEDV2OJ","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_z35pR34MapAVxIgwldLa","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-12T15:10:32.467Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":"pm_PHUF5QsTx4tMa4Mzaz04","network_transaction_id":"182021959660275","payment_method_status":"active","updated":"2025-08-12T14:56:31.282Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```
</details>

<details>
<summary>Test MIT via NTID Proxy </summary>

```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_sc2oKOD27H8y2Y6yOMM57iqq1Wdp0jIdIcvGC603grXrH61zX8gT7VzgDmddJKr2' \
--data '{
    "amount":100,
    "currency": "USD",
    "confirm": true,
    "capture_method": "automatic",
    "customer_id": "aaaa",
    "payment_method": "card",
    "payment_method_type": "credit",
      "payment_method_data": {
        "card": {
            "card_number": "4100200300011001", 
            "card_exp_month": "01",
            "card_exp_year": "50",
            
            "card_cvc": "987"
            
        }
    },
    "return_url": "https://www.google.com/",
    "customer_acceptance": {
        "acceptance_type": "online",
        "accepted_at": "2025-03-27T13:56:49.848Z",
        "online": {
            "ip_address": null,
            "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15"
        }
    },
    "setup_future_usage": "off_session"
}'
```

Response

```
{"payment_id":"pay_8u1mqAL17eEY9iH9Ig8s","merchant_id":"postman_merchant_GHAction_a0aa6807-a6f5-45ed-85c3-97e93ce90f6c","status":"processing","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":100,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_8u1mqAL17eEY9iH9Ig8s_secret_tdpAOFPyf1XowS7qt3cR","created":"2025-08-13T12:09:26.138Z","currency":"USD","customer_id":"aaaa","customer":{"id":"aaaa","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":"off_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":{"avs_result":"32","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://www.google.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"aaaa","created_at":1755086966,"expires":1755090566,"secret":"epk_09a9698b6e004ea1b0dbc89a201df2df"},"manual_retry_allowed":false,"connector_transaction_id":"84085375278858376","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"pay_8u1mqAL17eEY9iH9Ig8s_1","payment_link":null,"profile_id":"pro_XAwVWhApurVFYX9dp285","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_Qpey1AT01m2ulFBEc2JM","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-13T12:24:26.138Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":"pm_iyqPE9mHU9SuA3kM3e8G","network_transaction_id":"563446247209171","payment_method_status":"inactive","updated":"2025-08-13T12:09:29.410Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":"2731687290861001","card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```

Psync 

```
{"payment_id":"pay_8u1mqAL17eEY9iH9Ig8s","merchant_id":"postman_merchant_GHAction_a0aa6807-a6f5-45ed-85c3-97e93ce90f6c","status":"processing","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":100,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_8u1mqAL17eEY9iH9Ig8s_secret_tdpAOFPyf1XowS7qt3cR","created":"2025-08-13T12:09:26.138Z","currency":"USD","customer_id":"aaaa","customer":{"id":"aaaa","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":"off_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":{"avs_result":"32","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://www.google.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"aaaa","created_at":1755086966,"expires":1755090566,"secret":"epk_09a9698b6e004ea1b0dbc89a201df2df"},"manual_retry_allowed":false,"connector_transaction_id":"84085375278858376","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"pay_8u1mqAL17eEY9iH9Ig8s_1","payment_link":null,"profile_id":"pro_XAwVWhApurVFYX9dp285","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_Qpey1AT01m2ulFBEc2JM","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-13T12:24:26.138Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":"pm_iyqPE9mHU9SuA3kM3e8G","network_transaction_id":"563446247209171","payment_method_status":"inactive","updated":"2025-08-13T12:09:29.410Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":"2731687290861001","card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```

NTID mandates

```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_sc2oKOD27H8y2Y6yOMM57iqq1Wdp0jIdIcvGC603grXrH61zX8gT7VzgDmddJKr2' \
--data-raw '{
    "amount": 499,
    "currency": "USD",
    "confirm": true,
    "capture_method": "automatic",
    "email": "guest@example.com",
    "payment_method": "card",
    "payment_method_type": "credit",
    "off_session": true,
    "recurring_details": {
        "type": "network_transaction_id_and_card_details",
        "data": {
            "card_number": "4100200300011001",
            "card_exp_month": "01",
            "card_exp_year": "50",
            
            "network_transaction_id": "381960752261585"
        }
    },
    "billing": {
        "address": {
            "city": "test",
            "country": "US",
            "line1": "here",
            "line2": "there",
            "line3": "anywhere",
            "zip": "560095",
            "state": "Washington",
            "first_name": "One",
            "last_name": "Two"
        },
        "phone": {
            "number": "1234567890",
            "country_code": "+1"
        },
        "email": "guest@example.com"
    }
}'
```

Response

```
{"payment_id":"pay_9Biq9SfRXGZ6QT1PtLHY","merchant_id":"postman_merchant_GHAction_a0aa6807-a6f5-45ed-85c3-97e93ce90f6c","status":"processing","amount":499,"net_amount":499,"shipping_cost":null,"amount_capturable":499,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_9Biq9SfRXGZ6QT1PtLHY_secret_UWd3izamEVMhDCjvgEr7","created":"2025-08-13T12:12:35.230Z","currency":"USD","customer_id":null,"customer":{"id":null,"name":null,"email":"guest@example.com","phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":true,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":"test","country":"US","line1":"here","line2":"there","line3":"anywhere","zip":"560095","state":"Washington","first_name":"One","last_name":"Two","origin_zip":null},"phone":{"number":"1234567890","country_code":"+1"},"email":"guest@example.com"},"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"83997414881052991","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_9Biq9SfRXGZ6QT1PtLHY_1","payment_link":null,"profile_id":"pro_XAwVWhApurVFYX9dp285","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_Qpey1AT01m2ulFBEc2JM","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-13T12:27:35.230Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":null,"network_transaction_id":null,"payment_method_status":null,"updated":"2025-08-13T12:12:37.148Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```

Psync

```
{"payment_id":"pay_9Biq9SfRXGZ6QT1PtLHY","merchant_id":"postman_merchant_GHAction_a0aa6807-a6f5-45ed-85c3-97e93ce90f6c","status":"succeeded","amount":499,"net_amount":499,"shipping_cost":null,"amount_capturable":0,"amount_received":499,"connector":"worldpayvantiv","client_secret":"pay_9Biq9SfRXGZ6QT1PtLHY_secret_UWd3izamEVMhDCjvgEr7","created":"2025-08-13T12:12:35.230Z","currency":"USD","customer_id":null,"customer":{"id":null,"name":null,"email":"guest@example.com","phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":true,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"1001","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"410020","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"50","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":"test","country":"US","line1":"here","line2":"there","line3":"anywhere","zip":"560095","state":"Washington","first_name":"One","last_name":"Two","origin_zip":null},"phone":{"number":"1234567890","country_code":"+1"},"email":"guest@example.com"},"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"83997414881052991","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":{"redirect_response":null,"search_tags":null,"apple_pay_recurring_details":null,"gateway_system":"direct"},"reference_id":"pay_9Biq9SfRXGZ6QT1PtLHY_1","payment_link":null,"profile_id":"pro_XAwVWhApurVFYX9dp285","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_Qpey1AT01m2ulFBEc2JM","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-13T12:27:35.230Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":null,"network_transaction_id":null,"payment_method_status":null,"updated":"2025-08-13T12:13:47.708Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null}
```
</details>

Most of the test cases are failing in vantiv because all payments will initially go to processing before terminal state. This is a known issue

 
<img width="402" height="924" alt="Screenshot 2025-08-13 at 6 40 15 PM" src="https://github.com/user-attachments/assets/96141592-ec0b-46ce-9a15-2628efcac8a9" />



<img width="567" height="224" alt="Screenshot 2025-08-13 at 5 53 21 PM" src="https://github.com/user-attachments/assets/3dc1a794-d3c0-450e-a631-b35f7c738007" />



## Checklist
<!-- Put an `x` in the boxes that apply -->

- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
To implement this **search_filter** feature, you'll need to modify these architectural layers:


**1. Domain Models (Business Logic Types)**
   - `crates/hyperswitch_domain_models/src/router_request_types.rs`

**2. Core Business Logic**
   - `crates/router/src/core/payments/transformers.rs`

**3. External Connector Integration**
   - `crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs`
   - `crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs`
   - `crates/hyperswitch_connectors/src/utils.rs`

**4. Tests**
   - `cypress-tests/cypress/e2e/configs/Payment/Worldpayvantiv.js`

**Code Patterns Applied:**
- Implement new functions (18 changes)
- Extend existing types with new fields (99 changes)
- Add conditional logic for feature flags or filtering (4 changes)

**Detailed Identifier Changes:**


Commit 6950c04e:
Files to modify:


**crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs**
  Modify existing code

**crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs**
  Modify existing code

**crates/hyperswitch_connectors/src/utils.rs**
  Modify existing code

**crates/hyperswitch_domain_models/src/router_request_types.rs**
  Modify existing code

**crates/router/src/core/payments/transformers.rs**
  Modify existing code
{"pr_number": 8929, "pr_title": "fix(connectors): [worldpayvantiv] add setup mandate flow, map network txn id and fix mandate flow", "merged_at": "2025-08-13T14:30:41Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/router_request_types.rs"], "core_business": ["crates/router/src/core/payments/transformers.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs", "crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs"], "tests": ["cypress-tests/cypress/e2e/configs/Payment/Worldpayvantiv.js"]}, "change_types": {"functions_added": 18, "fields_added": 99, "conditionals_added": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}