<!-- Describe your changes in detail -->
Initially the status handling was done on the basis of previous payment status. Because of this during manual payment, doing psync twice resulted in succeeded payment, without even triggering capture call. 
In this PR, we have modified 
- api_call_id : to indicate the operation
- handle status using api_call_id receivedin sync response 
-  add adress lines to bill to address 



## 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>Automatic payment and Refund with address line 2 </summary>
Create a payment 

```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_hQJJ2Ut5ZzTIqSxWGY1ud4U2GjpBbqNfjRYucF6ERe567dQXTVQSQB2oCRM7WAfp' \
--data '{
    "amount": 15000,
    "currency": "USD",
    "confirm": true,
    "capture_method": "automatic",
    
    "billing": {
        "address": {
            "line1": "2 Main St.",
            "line2": "2 Main St.",
            
            "city": "Riverside",
            "state": "RI",
            "zip": "02915",
            "country": "US",
            "first_name": "Mike",
            "last_name": "J. Hammer"
        }
    },
    "customer_id": "hyperswitch_sdk_demo_id",
    "payment_method": "card",
    "payment_method_type": "credit",
    "payment_method_data": {
        "card": {
            "card_number": "5435101234510196", 
            "card_exp_month": "11",
            "card_exp_year": "50",
            
            "card_cvc": "987"
        }
    }
   
}'
```
Response

```
{"payment_id":"pay_gAJTPBfK9UEF7GklvSaP","merchant_id":"postman_merchant_GHAction_c5106eba-7361-4bb2-a8db-a873c6849da9","status":"processing","amount":15000,"net_amount":15000,"shipping_cost":null,"amount_capturable":0,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_gAJTPBfK9UEF7GklvSaP_secret_g3NH3CAlCTyaEKUvjb1H","created":"2025-07-11T02:51:50.870Z","currency":"USD","customer_id":"hyperswitch_sdk_demo_id","customer":{"id":"hyperswitch_sdk_demo_id","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":"0196","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"543510","card_extended_bin":null,"card_exp_month":"11","card_exp_year":"50","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":"Riverside","country":"US","line1":"2 Main St.","line2":"2 Main St.","line3":null,"zip":"02915","state":"RI","first_name":"Mike","last_name":"J. Hammer"},"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":{"customer_id":"hyperswitch_sdk_demo_id","created_at":1752202310,"expires":1752205910,"secret":"epk_cb63ae6a5a3f4b2b978370c222d61f9a"},"manual_retry_allowed":false,"connector_transaction_id":"83997183208401633","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_gAJTPBfK9UEF7GklvSaP_1","payment_link":null,"profile_id":"pro_v0l6zYurjcsEYbxFysux","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_wzQksqIKbnLo0Q41EH5j","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-07-11T03:06:50.870Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-07-11T02:52:07.732Z","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}
```

Psync

```
{"payment_id":"pay_gAJTPBfK9UEF7GklvSaP","merchant_id":"postman_merchant_GHAction_c5106eba-7361-4bb2-a8db-a873c6849da9","status":"succeeded","amount":15000,"net_amount":15000,"shipping_cost":null,"amount_capturable":0,"amount_received":15000,"connector":"worldpayvantiv","client_secret":"pay_gAJTPBfK9UEF7GklvSaP_secret_g3NH3CAlCTyaEKUvjb1H","created":"2025-07-11T02:51:50.870Z","currency":"USD","customer_id":"hyperswitch_sdk_demo_id","customer":{"id":"hyperswitch_sdk_demo_id","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":"0196","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"543510","card_extended_bin":null,"card_exp_month":"11","card_exp_year":"50","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":"Riverside","country":"US","line1":"2 Main St.","line2":"2 Main St.","line3":null,"zip":"02915","state":"RI","first_name":"Mike","last_name":"J. Hammer"},"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":"83997183208401633","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_gAJTPBfK9UEF7GklvSaP_1","payment_link":null,"profile_id":"pro_v0l6zYurjcsEYbxFysux","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_wzQksqIKbnLo0Q41EH5j","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-07-11T03:06:50.870Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-07-11T02:52:29.491Z","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}
```

Refund

```
curl --location 'http://localhost:8080/refunds' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_hQJJ2Ut5ZzTIqSxWGY1ud4U2GjpBbqNfjRYucF6ERe567dQXTVQSQB2oCRM7WAfp' \
--data '{
    "payment_id": "pay_gAJTPBfK9UEF7GklvSaP",
    
    "reason": "Customer returned product",
    "refund_type": "instant"
}'
```
Response

```
{"refund_id":"ref_IoM7FMxFQxfJgx9drJ2Z","payment_id":"pay_gAJTPBfK9UEF7GklvSaP","amount":15000,"currency":"USD","status":"pending","reason":"Customer returned product","metadata":null,"error_message":null,"error_code":null,"unified_code":null,"unified_message":null,"created_at":"2025-07-11T02:52:52.989Z","updated_at":"2025-07-11T02:52:53.362Z","connector":"worldpayvantiv","profile_id":"pro_v0l6zYurjcsEYbxFysux","merchant_connector_id":"mca_wzQksqIKbnLo0Q41EH5j","split_refunds":null,"issuer_error_code":null,"issuer_error_message":null}
```

Refund

```
{"refund_id":"ref_IoM7FMxFQxfJgx9drJ2Z","payment_id":"pay_gAJTPBfK9UEF7GklvSaP","amount":15000,"currency":"USD","status":"succeeded","reason":"Customer returned product","metadata":null,"error_message":null,"error_code":null,"unified_code":null,"unified_message":null,"created_at":"2025-07-11T02:52:52.989Z","updated_at":"2025-07-11T02:53:34.147Z","connector":"worldpayvantiv","profile_id":"pro_v0l6zYurjcsEYbxFysux","merchant_connector_id":"mca_wzQksqIKbnLo0Q41EH5j","split_refunds":null,"issuer_error_code":null,"issuer_error_message":null}
```

</details>
<details>
<summary> Manual Capture with address line 2 and address line 3</summary>
Create a manual payment

```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_hQJJ2Ut5ZzTIqSxWGY1ud4U2GjpBbqNfjRYucF6ERe567dQXTVQSQB2oCRM7WAfp' \
--data '{
    "amount": 15000,
    "currency": "USD",
    "confirm": true,
    "capture_method": "manual",
    
    "billing": {
        "address": {
            "line1": "2 Main St.",
            "line2": "2 Main St.",
            "line3": "2 Main St.",
            "city": "Riverside",
            "state": "RI",
            "zip": "02915",
            "country": "US",
            "first_name": "Mike",
            "last_name": "J. Hammer"
        }
    },
    "customer_id": "hyperswitch_sdk_demo_id",
    "payment_method": "card",
    "payment_method_type": "credit",
    "payment_method_data": {
        "card": {
            "card_number": "5435101234510196", 
            "card_exp_month": "11",
            "card_exp_year": "50",
            
            "card_cvc": "987"
        }
    }
  
}'
```
Response

```
{"payment_id":"pay_2WkZoyvRYEBnWW4Me5LY","merchant_id":"postman_merchant_GHAction_c5106eba-7361-4bb2-a8db-a873c6849da9","status":"processing","amount":15000,"net_amount":15000,"shipping_cost":null,"amount_capturable":15000,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_2WkZoyvRYEBnWW4Me5LY_secret_eVgftXJDUNujGipnz8Se","created":"2025-07-11T02:54:47.916Z","currency":"USD","customer_id":"hyperswitch_sdk_demo_id","customer":{"id":"hyperswitch_sdk_demo_id","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":"0196","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"543510","card_extended_bin":null,"card_exp_month":"11","card_exp_year":"50","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":"Riverside","country":"US","line1":"2 Main St.","line2":"2 Main St.","line3":"2 Main St.","zip":"02915","state":"RI","first_name":"Mike","last_name":"J. Hammer"},"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":{"customer_id":"hyperswitch_sdk_demo_id","created_at":1752202487,"expires":1752206087,"secret":"epk_31922ae84827441d9a66386de1ac0368"},"manual_retry_allowed":false,"connector_transaction_id":"83997183208402961","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_2WkZoyvRYEBnWW4Me5LY_1","payment_link":null,"profile_id":"pro_v0l6zYurjcsEYbxFysux","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_wzQksqIKbnLo0Q41EH5j","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-07-11T03:09:47.916Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-07-11T02:54:50.027Z","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}
```
Psync

```
{"payment_id":"pay_2WkZoyvRYEBnWW4Me5LY","merchant_id":"postman_merchant_GHAction_c5106eba-7361-4bb2-a8db-a873c6849da9","status":"requires_capture","amount":15000,"net_amount":15000,"shipping_cost":null,"amount_capturable":15000,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_2WkZoyvRYEBnWW4Me5LY_secret_eVgftXJDUNujGipnz8Se","created":"2025-07-11T02:54:47.916Z","currency":"USD","customer_id":"hyperswitch_sdk_demo_id","customer":{"id":"hyperswitch_sdk_demo_id","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":"0196","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"543510","card_extended_bin":null,"card_exp_month":"11","card_exp_year":"50","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":"Riverside","country":"US","line1":"2 Main St.","line2":"2 Main St.","line3":"2 Main St.","zip":"02915","state":"RI","first_name":"Mike","last_name":"J. Hammer"},"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":"83997183208402961","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_2WkZoyvRYEBnWW4Me5LY_1","payment_link":null,"profile_id":"pro_v0l6zYurjcsEYbxFysux","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_wzQksqIKbnLo0Q41EH5j","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-07-11T03:09:47.916Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-07-11T02:55:55.509Z","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}
```

Capture

```
curl --location 'http://localhost:8080/payments/pay_2WkZoyvRYEBnWW4Me5LY/capture' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_hQJJ2Ut5ZzTIqSxWGY1ud4U2GjpBbqNfjRYucF6ERe567dQXTVQSQB2oCRM7WAfp' \
--data '{
    
    "statement_descriptor_name": "Joseph",
    "statement_descriptor_suffix": "JS"
}'
```
Response

```
{"payment_id":"pay_2WkZoyvRYEBnWW4Me5LY","merchant_id":"postman_merchant_GHAction_c5106eba-7361-4bb2-a8db-a873c6849da9","status":"processing","amount":15000,"net_amount":15000,"shipping_cost":null,"amount_capturable":15000,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_2WkZoyvRYEBnWW4Me5LY_secret_eVgftXJDUNujGipnz8Se","created":"2025-07-11T02:54:47.916Z","currency":"USD","customer_id":"hyperswitch_sdk_demo_id","customer":{"id":"hyperswitch_sdk_demo_id","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":"0196","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"543510","card_extended_bin":null,"card_exp_month":"11","card_exp_year":"50","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":"Riverside","country":"US","line1":"2 Main St.","line2":"2 Main St.","line3":"2 Main St.","zip":"02915","state":"RI","first_name":"Mike","last_name":"J. Hammer"},"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":"83997183413946869","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_2WkZoyvRYEBnWW4Me5LY_1","payment_link":null,"profile_id":"pro_v0l6zYurjcsEYbxFysux","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_wzQksqIKbnLo0Q41EH5j","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-07-11T03:09:47.916Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-07-11T02:56:20.329Z","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}
```

Psync

```
{"payment_id":"pay_2WkZoyvRYEBnWW4Me5LY","merchant_id":"postman_merchant_GHAction_c5106eba-7361-4bb2-a8db-a873c6849da9","status":"succeeded","amount":15000,"net_amount":15000,"shipping_cost":null,"amount_capturable":0,"amount_received":15000,"connector":"worldpayvantiv","client_secret":"pay_2WkZoyvRYEBnWW4Me5LY_secret_eVgftXJDUNujGipnz8Se","created":"2025-07-11T02:54:47.916Z","currency":"USD","customer_id":"hyperswitch_sdk_demo_id","customer":{"id":"hyperswitch_sdk_demo_id","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":"0196","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"543510","card_extended_bin":null,"card_exp_month":"11","card_exp_year":"50","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":"Riverside","country":"US","line1":"2 Main St.","line2":"2 Main St.","line3":"2 Main St.","zip":"02915","state":"RI","first_name":"Mike","last_name":"J. Hammer"},"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":"83997183413946869","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_2WkZoyvRYEBnWW4Me5LY_1","payment_link":null,"profile_id":"pro_v0l6zYurjcsEYbxFysux","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_wzQksqIKbnLo0Q41EH5j","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-07-11T03:09:47.916Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-07-11T02:56:54.101Z","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}
```

</details>
<details> 
<summary>Create  a manual payment and void the payment without address lines</summary>
Create a manual payment

```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_hQJJ2Ut5ZzTIqSxWGY1ud4U2GjpBbqNfjRYucF6ERe567dQXTVQSQB2oCRM7WAfp' \
--data '{
    "amount": 15000,
    "currency": "USD",
    "confirm": true,
    "capture_method": "manual",
    
    "billing": {
        "address": {
            "city": "Riverside",
            "state": "RI",
            "zip": "02915",
            "country": "US",
            "first_name": "Mike",
            "last_name": "J. Hammer"
        }
    },
    "customer_id": "hyperswitch_sdk_demo_id",
    "payment_method": "card",
    "payment_method_type": "credit",
    "payment_method_data": {
        "card": {
            "card_number": "5435101234510196", 
            "card_exp_month": "11",
            "card_exp_year": "50",
            
            "card_cvc": "987"
        }
    }   
}'
```
Response

```
{"payment_id":"pay_xynlshGK0KIfzJhKZ7Jy","merchant_id":"postman_merchant_GHAction_c5106eba-7361-4bb2-a8db-a873c6849da9","status":"processing","amount":15000,"net_amount":15000,"shipping_cost":null,"amount_capturable":15000,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_xynlshGK0KIfzJhKZ7Jy_secret_igkU7TdzhDswnamaTKU3","created":"2025-07-11T02:58:31.762Z","currency":"USD","customer_id":"hyperswitch_sdk_demo_id","customer":{"id":"hyperswitch_sdk_demo_id","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":"0196","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"543510","card_extended_bin":null,"card_exp_month":"11","card_exp_year":"50","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":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"},"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":{"customer_id":"hyperswitch_sdk_demo_id","created_at":1752202711,"expires":1752206311,"secret":"epk_6d7214c99c97483dba473a4908ffebdc"},"manual_retry_allowed":false,"connector_transaction_id":"84085142647433277","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_xynlshGK0KIfzJhKZ7Jy_1","payment_link":null,"profile_id":"pro_v0l6zYurjcsEYbxFysux","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_wzQksqIKbnLo0Q41EH5j","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-07-11T03:13:31.762Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-07-11T02:58:36.761Z","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}
```

Psync

```
{"payment_id":"pay_xynlshGK0KIfzJhKZ7Jy","merchant_id":"postman_merchant_GHAction_c5106eba-7361-4bb2-a8db-a873c6849da9","status":"requires_capture","amount":15000,"net_amount":15000,"shipping_cost":null,"amount_capturable":15000,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_xynlshGK0KIfzJhKZ7Jy_secret_igkU7TdzhDswnamaTKU3","created":"2025-07-11T02:58:31.762Z","currency":"USD","customer_id":"hyperswitch_sdk_demo_id","customer":{"id":"hyperswitch_sdk_demo_id","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":"0196","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"543510","card_extended_bin":null,"card_exp_month":"11","card_exp_year":"50","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":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"},"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":"84085142647433277","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_xynlshGK0KIfzJhKZ7Jy_1","payment_link":null,"profile_id":"pro_v0l6zYurjcsEYbxFysux","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_wzQksqIKbnLo0Q41EH5j","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-07-11T03:13:31.762Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-07-11T02:59:14.490Z","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}
```

Void 

```
curl --location 'http://localhost:8080/payments/pay_xynlshGK0KIfzJhKZ7Jy/cancel' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_hQJJ2Ut5ZzTIqSxWGY1ud4U2GjpBbqNfjRYucF6ERe567dQXTVQSQB2oCRM7WAfp' \
--data '{"cancellation_reason":"requested_by_customer"}'
```
Response

```
{"payment_id":"pay_xynlshGK0KIfzJhKZ7Jy","merchant_id":"postman_merchant_GHAction_c5106eba-7361-4bb2-a8db-a873c6849da9","status":"processing","amount":15000,"net_amount":15000,"shipping_cost":null,"amount_capturable":0,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_xynlshGK0KIfzJhKZ7Jy_secret_igkU7TdzhDswnamaTKU3","created":"2025-07-11T02:58:31.762Z","currency":"USD","customer_id":"hyperswitch_sdk_demo_id","customer":{"id":"hyperswitch_sdk_demo_id","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":"0196","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"543510","card_extended_bin":null,"card_exp_month":"11","card_exp_year":"50","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":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"},"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":"requested_by_customer","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":"84085142759342183","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_xynlshGK0KIfzJhKZ7Jy_1","payment_link":null,"profile_id":"pro_v0l6zYurjcsEYbxFysux","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_wzQksqIKbnLo0Q41EH5j","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-07-11T03:13:31.762Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-07-11T02:59:32.991Z","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}
```

Psync

```
{"payment_id":"pay_xynlshGK0KIfzJhKZ7Jy","merchant_id":"postman_merchant_GHAction_c5106eba-7361-4bb2-a8db-a873c6849da9","status":"cancelled","amount":15000,"net_amount":15000,"shipping_cost":null,"amount_capturable":0,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_xynlshGK0KIfzJhKZ7Jy_secret_igkU7TdzhDswnamaTKU3","created":"2025-07-11T02:58:31.762Z","currency":"USD","customer_id":"hyperswitch_sdk_demo_id","customer":{"id":"hyperswitch_sdk_demo_id","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":"0196","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"543510","card_extended_bin":null,"card_exp_month":"11","card_exp_year":"50","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":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"},"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":"requested_by_customer","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":"84085142759342183","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_xynlshGK0KIfzJhKZ7Jy_1","payment_link":null,"profile_id":"pro_v0l6zYurjcsEYbxFysux","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_wzQksqIKbnLo0Q41EH5j","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-07-11T03:13:31.762Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2025-07-11T03:00:13.829Z","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}
```
</details>

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

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


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

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

**Detailed Identifier Changes:**


Commit a4ec03f9:
Files to modify:


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

**crates/hyperswitch_connectors/src/utils.rs**
  Modify existing code
{"pr_number": 8602, "pr_title": "fix(connector): [Worldpayvantiv] Psync status mapping and add address lines to billing data", "merged_at": "2025-07-15T08:04:26Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs"]}, "change_types": {"functions_added": 6, "enums_added": 1, "fields_added": 12, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}