Skip to content

feat(core): Add profile-level configuration for L2/L3 data enablement#9683

Merged
likhinbopanna merged 18 commits intomainfrom
add-profile-level-config-for-l2l3
Oct 16, 2025
Merged

feat(core): Add profile-level configuration for L2/L3 data enablement#9683
likhinbopanna merged 18 commits intomainfrom
add-profile-level-config-for-l2l3

Conversation

@awasthi21
Copy link
Contributor

@awasthi21 awasthi21 commented Oct 6, 2025

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

This PR introduces profile-level configuration for enabling/disabling L2/L3 transaction data, providing merchants with granular control over enhanced payment data collection at the business profile level.

🧩 Additional Changes

🗄️ Database & Schema

  • Added new column is_l2_l3_enabled to the business_profile table.

    • Type: BOOLEAN
    • Nullable: Yes (NULLABLE BOOLEAN)
  • Updated L2/L3 data construction logic to check both:

    1. Global config flag: state.conf.l2_l3_data_config.enabled
    2. Profile-level flag: payment_data.is_l2_l3_enabled == Some(true)
  • New behavior:
    L2/L3 data is now included only when both flags are enabled.


⚙️ Behavior Changes

Previously:
L2/L3 data inclusion was controlled only by the global configuration flag:

l2_l3_data_config.enabled = true

**Now **
L2/L3 data inclusion requires both conditions to be true:

Global config enabled → l2_l3_data_config.enabled = true

Profile-level enabled → is_l2_l3_enabled = true
  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Flag False

curl --location 'http://localhost:8080/account/postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204/business_profile/pro_VRw87wcMS3AfvczM2ROe' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_2Lukl788r5RWxkuO15MlUgGWKB17w8CQgU6Jiov5jEUhKIDyR8xJ9BqP1x6uT6Bh' \
--data '{
    "is_l2_l3_enabled":false
}'

Response

{
    "merchant_id": "postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204",
    "profile_id": "pro_VRw87wcMS3AfvczM2ROe",
    "profile_name": "Update",
    "return_url": "https://google.com/success",
    "enable_payment_response_hash": true,
    "payment_response_hash_key": "cVla9zUpUCNm8lPgzW9zNWi9Le5utHWR3nFruLNhtjbwRdXGtL4PU2g7fGyb9WY6",
    "redirect_to_merchant_with_http_post": false,
    "webhook_details": {
        "webhook_version": "1.0.1",
        "webhook_username": "ekart_retail",
        "webhook_password": "password_ekart@123",
        "webhook_url": "https://webhook.site",
        "payment_created_enabled": true,
        "payment_succeeded_enabled": true,
        "payment_failed_enabled": true,
        "payment_statuses_enabled": null,
        "refund_statuses_enabled": null,
        "payout_statuses_enabled": null
    },
    "metadata": null,
    "routing_algorithm": null,
    "intent_fulfillment_time": 900,
    "frm_routing_algorithm": null,
    "payout_routing_algorithm": null,
    "applepay_verified_domains": null,
    "session_expiry": 900,
    "payment_link_config": null,
    "authentication_connector_details": null,
    "use_billing_as_payment_method_billing": true,
    "extended_card_info_config": null,
    "collect_shipping_details_from_wallet_connector": false,
    "collect_billing_details_from_wallet_connector": false,
    "always_collect_shipping_details_from_wallet_connector": false,
    "always_collect_billing_details_from_wallet_connector": false,
    "is_connector_agnostic_mit_enabled": false,
    "payout_link_config": null,
    "outgoing_webhook_custom_http_headers": null,
    "tax_connector_id": null,
    "is_tax_connector_enabled": false,
    "is_network_tokenization_enabled": false,
    "is_auto_retries_enabled": false,
    "max_auto_retries_enabled": null,
    "always_request_extended_authorization": null,
    "is_click_to_pay_enabled": false,
    "authentication_product_ids": null,
    "card_testing_guard_config": {
        "card_ip_blocking_status": "disabled",
        "card_ip_blocking_threshold": 3,
        "guest_user_card_blocking_status": "disabled",
        "guest_user_card_blocking_threshold": 10,
        "customer_id_blocking_status": "disabled",
        "customer_id_blocking_threshold": 5,
        "card_testing_guard_expiry": 3600
    },
    "is_clear_pan_retries_enabled": false,
    "force_3ds_challenge": false,
    "is_debit_routing_enabled": false,
    "merchant_business_country": null,
    "is_pre_network_tokenization_enabled": false,
    "acquirer_configs": null,
    "is_iframe_redirection_enabled": null,
    "merchant_category_code": null,
    "merchant_country_code": null,
    "dispute_polling_interval": null,
    "is_manual_retry_enabled": null,
    "always_enable_overcapture": null,
    "is_external_vault_enabled": "skip",
    "external_vault_connector_details": null,
    "billing_processor_id": null,
    "is_l2_l3_enabled": false
}

Payments Create +Confirm

curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_2Lukl788r5RWxkuO15MlUgGWKB17w8CQgU6Jiov5jEUhKIDyR8xJ9BqP1x6uT6Bh' \
--data-raw '{
    "amount": 10000,
    "currency": "USD",
    "tax_status": "exempt",
    "duty_amount": 400,
    "shipping_cost": 431,
    "discount_amount": 500,
    "shipping_amount_tax": 50,
    "order_date": "2024-01-15T10:30:00Z",
    "confirm": true,
    "customer": {
        "id":"2343",
        "name": "John Doe",
        "email": "john@example.com",
        "tax_registration_id": "TAX123456789"
    },
    "payment_method": "card",
    "payment_method_data": {
        "card": {
            "card_number": "4457030000000007",
            "card_exp_month": "09",
            "card_exp_year": "30",
            "card_holder_name": "John Doe",
            "card_cvc": "123"
        }
    },
    "shipping": {
        "address": {
            "line1": "123 Main St",
            "city": "New York",
            "state": "NY",
            "zip": "10001",
            "country": "US",
            "origin_zip": "90210"
        }
    },
    "billing": {
        "address": {
            "line1": "123 Main St",
            "city": "New York",
            "state": "NY",
            "zip": "10001",
            "country": "US",
            "origin_zip": "90210"
        }
    },
    "order_details": [
        {
            "product_name": "Laptop",
            "quantity": 1,
            "amount": 8000,
            "description": "Business laptop 23214324",
            "sku": "LAP-001",
            "upc": "123456789012",
            "commodity_code": "8471",
            "unit_of_measure": "EA",
            "unit_price": 8000,
            "unit_discount_amount": 200,
            "tax_rate": 0.08,
            "total_tax_amount": 640
        },
        {
            "product_name": "Mouse",
            "quantity": 2,
            "amount": 2000,
            "description": "Wireless office mouse",
            "sku": "MOU-001",
            "upc": "123456789013",
            "commodity_code": "8471",
            "unit_of_measure": "EA",
            "unit_price": 1000,
            "unit_discount_amount": 50,
            "tax_rate": 0.08,
            "total_tax_amount": 160
        }
    ]
}'

Response

{
    "payment_id": "pay_k5Bpv5PtEJybJqMpAxgh",
    "merchant_id": "postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204",
    "status": "processing",
    "amount": 10000,
    "net_amount": 10431,
    "shipping_cost": 431,
    "amount_capturable": 10431,
    "amount_received": null,
    "connector": "worldpayvantiv",
    "client_secret": "pay_k5Bpv5PtEJybJqMpAxgh_secret_gIdSB9ymBpqxF67m2YuI",
    "created": "2025-10-06T10:20:03.012Z",
    "currency": "USD",
    "customer_id": "2343",
    "customer": {
        "id": "2343",
        "name": "John Doe",
        "email": "john@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": null,
    "capture_on": null,
    "capture_method": null,
    "payment_method": "card",
    "payment_method_data": {
        "card": {
            "last4": "0007",
            "card_type": null,
            "card_network": null,
            "card_issuer": null,
            "card_issuing_country": null,
            "card_isin": "445703",
            "card_extended_bin": null,
            "card_exp_month": "09",
            "card_exp_year": "30",
            "card_holder_name": "John Doe",
            "payment_checks": {
                "avs_result": "00",
                "advanced_a_v_s_result": null,
                "authentication_result": null,
                "card_validation_result": "M"
            },
            "authentication_data": null
        },
        "billing": null
    },
    "payment_token": null,
    "shipping": {
        "address": {
            "city": "New York",
            "country": "US",
            "line1": "123 Main St",
            "line2": null,
            "line3": null,
            "zip": "10001",
            "state": "NY",
            "first_name": null,
            "last_name": null,
            "origin_zip": "90210"
        },
        "phone": null,
        "email": null
    },
    "billing": {
        "address": {
            "city": "New York",
            "country": "US",
            "line1": "123 Main St",
            "line2": null,
            "line3": null,
            "zip": "10001",
            "state": "NY",
            "first_name": null,
            "last_name": null,
            "origin_zip": "90210"
        },
        "phone": null,
        "email": null
    },
    "order_details": [
        {
            "sku": "LAP-001",
            "upc": "123456789012",
            "brand": null,
            "amount": 8000,
            "category": null,
            "quantity": 1,
            "tax_rate": 0.08,
            "product_id": null,
            "description": "Business laptop 23214324",
            "product_name": "Laptop",
            "product_type": null,
            "sub_category": null,
            "total_amount": null,
            "commodity_code": "8471",
            "unit_of_measure": "EA",
            "product_img_link": null,
            "product_tax_code": null,
            "total_tax_amount": 640,
            "requires_shipping": null,
            "unit_discount_amount": 200
        },
        {
            "sku": "MOU-001",
            "upc": "123456789013",
            "brand": null,
            "amount": 2000,
            "category": null,
            "quantity": 2,
            "tax_rate": 0.08,
            "product_id": null,
            "description": "Wireless office mouse",
            "product_name": "Mouse",
            "product_type": null,
            "sub_category": null,
            "total_amount": null,
            "commodity_code": "8471",
            "unit_of_measure": "EA",
            "product_img_link": null,
            "product_tax_code": null,
            "total_tax_amount": 160,
            "requires_shipping": null,
            "unit_discount_amount": 50
        }
    ],
    "email": "john@example.com",
    "name": "John Doe",
    "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": {
        "customer_id": "2343",
        "created_at": 1759746002,
        "expires": 1759749602,
        "secret": "epk_b1c2dbc4c6974e5ba52bc4febad559c0"
    },
    "manual_retry_allowed": null,
    "connector_transaction_id": "83997805908936712",
    "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": "yu3m15HUiA8RH7xlVbxYNbb_GXBH",
    "payment_link": null,
    "profile_id": "pro_VRw87wcMS3AfvczM2ROe",
    "surcharge_details": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_Xy151X2xCrZUxa679A2r",
    "incremental_authorization_allowed": false,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2025-10-06T10:35:03.012Z",
    "fingerprint": null,
    "browser_info": null,
    "payment_channel": null,
    "payment_method_id": null,
    "network_transaction_id": "500144570300000",
    "payment_method_status": null,
    "updated": "2025-10-06T10:20:06.451Z",
    "split_payments": null,
    "frm_metadata": null,
    "extended_authorization_applied": null,
    "request_extended_authorization": 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,
    "enable_overcapture": null,
    "is_overcapture_enabled": null,
    "network_details": null,
    "is_stored_credential": null,
    "mit_category": null
}

enhanced_data : None (In vantive we pass the l2_l3_data in enchanced_data field )
Screenshot 2025-10-06 at 3 51 10 PM

Prifle flag as true

curl --location 'http://localhost:8080/account/postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204/business_profile/pro_VRw87wcMS3AfvczM2ROe' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_2Lukl788r5RWxkuO15MlUgGWKB17w8CQgU6Jiov5jEUhKIDyR8xJ9BqP1x6uT6Bh' \
--data '{
    "is_l2_l3_enabled":true
}'

Response

{
    "merchant_id": "postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204",
    "profile_id": "pro_VRw87wcMS3AfvczM2ROe",
    "profile_name": "Update",
    "return_url": "https://google.com/success",
    "enable_payment_response_hash": true,
    "payment_response_hash_key": "cVla9zUpUCNm8lPgzW9zNWi9Le5utHWR3nFruLNhtjbwRdXGtL4PU2g7fGyb9WY6",
    "redirect_to_merchant_with_http_post": false,
    "webhook_details": {
        "webhook_version": "1.0.1",
        "webhook_username": "ekart_retail",
        "webhook_password": "password_ekart@123",
        "webhook_url": "https://webhook.site",
        "payment_created_enabled": true,
        "payment_succeeded_enabled": true,
        "payment_failed_enabled": true,
        "payment_statuses_enabled": null,
        "refund_statuses_enabled": null,
        "payout_statuses_enabled": null
    },
    "metadata": null,
    "routing_algorithm": null,
    "intent_fulfillment_time": 900,
    "frm_routing_algorithm": null,
    "payout_routing_algorithm": null,
    "applepay_verified_domains": null,
    "session_expiry": 900,
    "payment_link_config": null,
    "authentication_connector_details": null,
    "use_billing_as_payment_method_billing": true,
    "extended_card_info_config": null,
    "collect_shipping_details_from_wallet_connector": false,
    "collect_billing_details_from_wallet_connector": false,
    "always_collect_shipping_details_from_wallet_connector": false,
    "always_collect_billing_details_from_wallet_connector": false,
    "is_connector_agnostic_mit_enabled": false,
    "payout_link_config": null,
    "outgoing_webhook_custom_http_headers": null,
    "tax_connector_id": null,
    "is_tax_connector_enabled": false,
    "is_network_tokenization_enabled": false,
    "is_auto_retries_enabled": false,
    "max_auto_retries_enabled": null,
    "always_request_extended_authorization": null,
    "is_click_to_pay_enabled": false,
    "authentication_product_ids": null,
    "card_testing_guard_config": {
        "card_ip_blocking_status": "disabled",
        "card_ip_blocking_threshold": 3,
        "guest_user_card_blocking_status": "disabled",
        "guest_user_card_blocking_threshold": 10,
        "customer_id_blocking_status": "disabled",
        "customer_id_blocking_threshold": 5,
        "card_testing_guard_expiry": 3600
    },
    "is_clear_pan_retries_enabled": false,
    "force_3ds_challenge": false,
    "is_debit_routing_enabled": false,
    "merchant_business_country": null,
    "is_pre_network_tokenization_enabled": false,
    "acquirer_configs": null,
    "is_iframe_redirection_enabled": null,
    "merchant_category_code": null,
    "merchant_country_code": null,
    "dispute_polling_interval": null,
    "is_manual_retry_enabled": null,
    "always_enable_overcapture": null,
    "is_external_vault_enabled": "skip",
    "external_vault_connector_details": null,
    "billing_processor_id": null,
    "is_l2_l3_enabled": true
}

Pqyments Create+ Confirm

curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_2Lukl788r5RWxkuO15MlUgGWKB17w8CQgU6Jiov5jEUhKIDyR8xJ9BqP1x6uT6Bh' \
--data-raw '{
    "amount": 10000,
    "currency": "USD",
    "tax_status": "exempt",
    "duty_amount": 400,
    "shipping_cost": 431,
    "discount_amount": 500,
    "shipping_amount_tax": 50,
    "order_date": "2024-01-15T10:30:00Z",
    "confirm": true,
    "customer": {
        "id":"2343",
        "name": "John Doe",
        "email": "john@example.com",
        "tax_registration_id": "TAX123456789"
    },
    "payment_method": "card",
    "payment_method_data": {
        "card": {
            "card_number": "4457030000000007",
            "card_exp_month": "09",
            "card_exp_year": "30",
            "card_holder_name": "John Doe",
            "card_cvc": "123"
        }
    },
    "shipping": {
        "address": {
            "line1": "123 Main St",
            "city": "New York",
            "state": "NY",
            "zip": "10001",
            "country": "US",
            "origin_zip": "90210"
        }
    },
    "billing": {
        "address": {
            "line1": "123 Main St",
            "city": "New York",
            "state": "NY",
            "zip": "10001",
            "country": "US",
            "origin_zip": "90210"
        }
    },
    "order_details": [
        {
            "product_name": "Laptop",
            "quantity": 1,
            "amount": 8000,
            "description": "Business laptop 23214324",
            "sku": "LAP-001",
            "upc": "123456789012",
            "commodity_code": "8471",
            "unit_of_measure": "EA",
            "unit_price": 8000,
            "unit_discount_amount": 200,
            "tax_rate": 0.08,
            "total_tax_amount": 640
        },
        {
            "product_name": "Mouse",
            "quantity": 2,
            "amount": 2000,
            "description": "Wireless office mouse",
            "sku": "MOU-001",
            "upc": "123456789013",
            "commodity_code": "8471",
            "unit_of_measure": "EA",
            "unit_price": 1000,
            "unit_discount_amount": 50,
            "tax_rate": 0.08,
            "total_tax_amount": 160
        }
    ]
}'

Response

{
    "payment_id": "pay_G9uVSa1XhuipIytubifJ",
    "merchant_id": "postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204",
    "status": "processing",
    "amount": 10000,
    "net_amount": 10431,
    "shipping_cost": 431,
    "amount_capturable": 10431,
    "amount_received": null,
    "connector": "worldpayvantiv",
    "client_secret": "pay_G9uVSa1XhuipIytubifJ_secret_lCs00yR6IDj1mQiv6CR3",
    "created": "2025-10-06T10:22:46.946Z",
    "currency": "USD",
    "customer_id": "2343",
    "customer": {
        "id": "2343",
        "name": "John Doe",
        "email": "john@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": null,
    "capture_on": null,
    "capture_method": null,
    "payment_method": "card",
    "payment_method_data": {
        "card": {
            "last4": "0007",
            "card_type": null,
            "card_network": null,
            "card_issuer": null,
            "card_issuing_country": null,
            "card_isin": "445703",
            "card_extended_bin": null,
            "card_exp_month": "09",
            "card_exp_year": "30",
            "card_holder_name": "John Doe",
            "payment_checks": {
                "avs_result": "00",
                "advanced_a_v_s_result": null,
                "authentication_result": null,
                "card_validation_result": "M"
            },
            "authentication_data": null
        },
        "billing": null
    },
    "payment_token": null,
    "shipping": {
        "address": {
            "city": "New York",
            "country": "US",
            "line1": "123 Main St",
            "line2": null,
            "line3": null,
            "zip": "10001",
            "state": "NY",
            "first_name": null,
            "last_name": null,
            "origin_zip": "90210"
        },
        "phone": null,
        "email": null
    },
    "billing": {
        "address": {
            "city": "New York",
            "country": "US",
            "line1": "123 Main St",
            "line2": null,
            "line3": null,
            "zip": "10001",
            "state": "NY",
            "first_name": null,
            "last_name": null,
            "origin_zip": "90210"
        },
        "phone": null,
        "email": null
    },
    "order_details": [
        {
            "sku": "LAP-001",
            "upc": "123456789012",
            "brand": null,
            "amount": 8000,
            "category": null,
            "quantity": 1,
            "tax_rate": 0.08,
            "product_id": null,
            "description": "Business laptop 23214324",
            "product_name": "Laptop",
            "product_type": null,
            "sub_category": null,
            "total_amount": null,
            "commodity_code": "8471",
            "unit_of_measure": "EA",
            "product_img_link": null,
            "product_tax_code": null,
            "total_tax_amount": 640,
            "requires_shipping": null,
            "unit_discount_amount": 200
        },
        {
            "sku": "MOU-001",
            "upc": "123456789013",
            "brand": null,
            "amount": 2000,
            "category": null,
            "quantity": 2,
            "tax_rate": 0.08,
            "product_id": null,
            "description": "Wireless office mouse",
            "product_name": "Mouse",
            "product_type": null,
            "sub_category": null,
            "total_amount": null,
            "commodity_code": "8471",
            "unit_of_measure": "EA",
            "product_img_link": null,
            "product_tax_code": null,
            "total_tax_amount": 160,
            "requires_shipping": null,
            "unit_discount_amount": 50
        }
    ],
    "email": "john@example.com",
    "name": "John Doe",
    "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": {
        "customer_id": "2343",
        "created_at": 1759746166,
        "expires": 1759749766,
        "secret": "epk_2e4eaf2fa2084f55adfbda7dd29be585"
    },
    "manual_retry_allowed": null,
    "connector_transaction_id": "84085766858464538",
    "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": "i4q0Jo5exObW4PQfss0jq4uQ619b",
    "payment_link": null,
    "profile_id": "pro_VRw87wcMS3AfvczM2ROe",
    "surcharge_details": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_Xy151X2xCrZUxa679A2r",
    "incremental_authorization_allowed": false,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2025-10-06T10:37:46.946Z",
    "fingerprint": null,
    "browser_info": null,
    "payment_channel": null,
    "payment_method_id": null,
    "network_transaction_id": "500144570300000",
    "payment_method_status": null,
    "updated": "2025-10-06T10:22:49.462Z",
    "split_payments": null,
    "frm_metadata": null,
    "extended_authorization_applied": null,
    "request_extended_authorization": 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,
    "enable_overcapture": null,
    "is_overcapture_enabled": null,
    "network_details": null,
    "is_stored_credential": null,
    "mit_category": null
}
Screenshot 2025-10-06 at 3 53 33 PM ----------------------------------------------------------------------------------------------------------------------- Profile flag as None ```
## 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`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible

@awasthi21 awasthi21 requested review from a team as code owners October 6, 2025 10:14
@semanticdiff-com
Copy link

semanticdiff-com bot commented Oct 6, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  crates/router/src/core/payments/transformers.rs  100% smaller
  api-reference/v1/openapi_spec_v1.json  0% smaller
  api-reference/v2/openapi_spec_v2.json  0% smaller
  crates/api_models/src/admin.rs  0% smaller
  crates/diesel_models/src/business_profile.rs  0% smaller
  crates/diesel_models/src/schema.rs  0% smaller
  crates/diesel_models/src/schema_v2.rs  0% smaller
  crates/hyperswitch_domain_models/src/business_profile.rs  0% smaller
  crates/router/src/core/admin.rs  0% smaller
  crates/router/src/core/payments.rs  0% smaller
  crates/router/src/core/payments/operations/payment_approve.rs  0% smaller
  crates/router/src/core/payments/operations/payment_cancel.rs  0% smaller
  crates/router/src/core/payments/operations/payment_cancel_post_capture.rs  0% smaller
  crates/router/src/core/payments/operations/payment_capture.rs  0% smaller
  crates/router/src/core/payments/operations/payment_complete_authorize.rs  0% smaller
  crates/router/src/core/payments/operations/payment_confirm.rs  0% smaller
  crates/router/src/core/payments/operations/payment_create.rs  0% smaller
  crates/router/src/core/payments/operations/payment_post_session_tokens.rs  0% smaller
  crates/router/src/core/payments/operations/payment_reject.rs  0% smaller
  crates/router/src/core/payments/operations/payment_session.rs  0% smaller
  crates/router/src/core/payments/operations/payment_start.rs  0% smaller
  crates/router/src/core/payments/operations/payment_status.rs  0% smaller
  crates/router/src/core/payments/operations/payment_update.rs  0% smaller
  crates/router/src/core/payments/operations/payment_update_metadata.rs  0% smaller
  crates/router/src/core/payments/operations/payments_incremental_authorization.rs  0% smaller
  crates/router/src/core/payments/operations/tax_calculation.rs  0% smaller
  crates/router/src/db/events.rs  0% smaller
  crates/router/src/types/api/admin.rs  0% smaller
  migrations/2025-10-06-093228_add_l2_l3_to_business_profile/down.sql Unsupported file format
  migrations/2025-10-06-093228_add_l2_l3_to_business_profile/up.sql Unsupported file format

@hyperswitch-bot hyperswitch-bot bot added the M-database-changes Metadata: This PR involves database schema changes label Oct 6, 2025
@awasthi21 awasthi21 changed the title Initial commit feat(core): Add profile-level configuration for L2/L3 data enablement Oct 6, 2025
@hyperswitch-bot hyperswitch-bot bot added the M-api-contract-changes Metadata: This PR involves API contract changes label Oct 6, 2025
@awasthi21 awasthi21 force-pushed the add-profile-level-config-for-l2l3 branch from ee716e4 to e2f9232 Compare October 6, 2025 10:35
@hyperswitch-bot hyperswitch-bot bot added M-api-contract-changes Metadata: This PR involves API contract changes and removed M-api-contract-changes Metadata: This PR involves API contract changes labels Oct 6, 2025
@awasthi21 awasthi21 force-pushed the add-profile-level-config-for-l2l3 branch from cb80ebb to b4db2c9 Compare October 7, 2025 05:58
@hyperswitch-bot hyperswitch-bot bot added M-api-contract-changes Metadata: This PR involves API contract changes and removed M-api-contract-changes Metadata: This PR involves API contract changes labels Oct 7, 2025
@awasthi21 awasthi21 force-pushed the add-profile-level-config-for-l2l3 branch from 7396d08 to 55c2b90 Compare October 8, 2025 08:44
@awasthi21 awasthi21 force-pushed the add-profile-level-config-for-l2l3 branch from dab9d65 to 40eac45 Compare October 8, 2025 09:59
@hyperswitch-bot hyperswitch-bot bot removed the M-api-contract-changes Metadata: This PR involves API contract changes label Oct 8, 2025
@awasthi21 awasthi21 self-assigned this Oct 8, 2025
@hyperswitch-bot hyperswitch-bot bot added the M-api-contract-changes Metadata: This PR involves API contract changes label Oct 8, 2025
@awasthi21 awasthi21 force-pushed the add-profile-level-config-for-l2l3 branch from ddb4bc6 to 5dacf13 Compare October 8, 2025 13:09
@hyperswitch-bot hyperswitch-bot bot removed the M-api-contract-changes Metadata: This PR involves API contract changes label Oct 8, 2025
@hyperswitch-bot hyperswitch-bot bot added the M-api-contract-changes Metadata: This PR involves API contract changes label Oct 8, 2025
@awasthi21 awasthi21 force-pushed the add-profile-level-config-for-l2l3 branch from 5572fde to a0c88ab Compare October 8, 2025 15:33
@hyperswitch-bot hyperswitch-bot bot added M-api-contract-changes Metadata: This PR involves API contract changes and removed M-api-contract-changes Metadata: This PR involves API contract changes labels Oct 8, 2025
@awasthi21 awasthi21 force-pushed the add-profile-level-config-for-l2l3 branch from 1010551 to 394f9f0 Compare October 13, 2025 04:39
@hyperswitch-bot hyperswitch-bot bot removed the M-api-contract-changes Metadata: This PR involves API contract changes label Oct 13, 2025
@awasthi21 awasthi21 force-pushed the add-profile-level-config-for-l2l3 branch from 15e566d to 21d7978 Compare October 13, 2025 04:44
@hyperswitch-bot hyperswitch-bot bot added the M-api-contract-changes Metadata: This PR involves API contract changes label Oct 13, 2025
@awasthi21 awasthi21 force-pushed the add-profile-level-config-for-l2l3 branch from e22ac95 to 92a3efc Compare October 14, 2025 04:24
@likhinbopanna likhinbopanna added this pull request to the merge queue Oct 15, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Oct 15, 2025
@likhinbopanna likhinbopanna added this pull request to the merge queue Oct 16, 2025
Merged via the queue into main with commit bd85334 Oct 16, 2025
22 of 25 checks passed
@likhinbopanna likhinbopanna deleted the add-profile-level-config-for-l2l3 branch October 16, 2025 08:22
chaitak-gorai pushed a commit that referenced this pull request Oct 16, 2025
…#9683)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: likhinbopanna <131246334+likhinbopanna@users.noreply.github.com>
drdholu pushed a commit to drdholu/hyperswitch that referenced this pull request Oct 30, 2025
…juspay#9683)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: likhinbopanna <131246334+likhinbopanna@users.noreply.github.com>
aadityaguptaa pushed a commit that referenced this pull request Nov 10, 2025
…#9683)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: likhinbopanna <131246334+likhinbopanna@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

M-api-contract-changes Metadata: This PR involves API contract changes M-database-changes Metadata: This PR involves database schema changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants