Skip to content

fix(connector): [CALIDA] Changed Connector Name From Bluecode to Calida#9712

Merged
likhinbopanna merged 3 commits intomainfrom
bluecode/calida
Oct 7, 2025
Merged

fix(connector): [CALIDA] Changed Connector Name From Bluecode to Calida#9712
likhinbopanna merged 3 commits intomainfrom
bluecode/calida

Conversation

@bsayak03
Copy link
Contributor

@bsayak03 bsayak03 commented Oct 7, 2025

Type of Change

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

Description

Renamed Connector Name from Bluecode to Calida. Payment Method Type Bluecode remains the same.

Additional Changes

  • 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?

Payments Create - Auto Capture :

cURL :

curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_uhvSzhSNBMbsft7V4REfiGxrgyN1ANlV5TOxQdBQACmBStQRhCluFop6DrRgQ19Q' \
--data '{
    "amount": 1,
    "connector": [
        "calida"
    ],
    "currency": "EUR",
    
    "confirm": true,
    "capture_method": "automatic",
    "return_url": "https://duck.com",
    "payment_method": "wallet",
    "payment_method_type": "bluecode",
    "payment_method_data": {
        "wallet": {
            "bluecode_redirect": {}
        }
    },
    "billing": {
        "address": {
            "first_name": "joseph",
            "last_name": "Doe",
            "line1": "1467",
            "city": "San Fransico",
            "country": "AT",
            "zip": "94122"
        }
    }
}
'

Response:

{
    "payment_id": "pay_ucaVwlKVFgehjPCA4HU1",
    "merchant_id": "merchant_1759778408",
    "status": "requires_customer_action",
    "amount": 1,
    "net_amount": 1,
    "shipping_cost": null,
    "amount_capturable": 1,
    "amount_received": null,
    "connector": "calida",
    "client_secret": "pay_ucaVwlKVFgehjPCA4HU1_secret_BrwQdvXiLjp04txLBYu9",
    "created": "2025-10-07T11:44:15.733Z",
    "currency": "EUR",
    "customer_id": null,
    "customer": 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": "wallet",
    "payment_method_data": {
        "wallet": {},
        "billing": null
    },
    "payment_token": null,
    "shipping": null,
    "billing": {
        "address": {
            "city": "San Fransico",
            "country": "AT",
            "line1": "1467",
            "line2": null,
            "line3": null,
            "zip": "94122",
            "state": null,
            "first_name": "joseph",
            "last_name": "Doe",
            "origin_zip": null
        },
        "phone": null,
        "email": null
    },
    "order_details": null,
    "email": null,
    "name": null,
    "phone": null,
    "return_url": "https://duck.com/",
    "authentication_type": "no_three_ds",
    "statement_descriptor_name": null,
    "statement_descriptor_suffix": null,
    "next_action": {
        "type": "redirect_to_url",
        "redirect_to_url": "http://localhost:8080/payments/redirect/pay_ucaVwlKVFgehjPCA4HU1/merchant_1759778408/pay_ucaVwlKVFgehjPCA4HU1_1"
    },
    "cancellation_reason": null,
    "error_code": null,
    "error_message": null,
    "unified_code": null,
    "unified_message": null,
    "payment_experience": null,
    "payment_method_type": "bluecode",
    "connector_label": null,
    "business_country": null,
    "business_label": "default",
    "business_sub_label": null,
    "allowed_payment_method_types": null,
    "ephemeral_key": null,
    "manual_retry_allowed": null,
    "connector_transaction_id": "QPWKQZZW7V1YJWXQ2YK0",
    "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": "4SEOQCZV11MR9NDOR2F99JUDTL",
    "payment_link": null,
    "profile_id": "pro_rWvixdpO5KZLlPeUmLCU",
    "surcharge_details": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_UM2Z3gSLHpaGgCuCrnPc",
    "incremental_authorization_allowed": false,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2025-10-07T11:59:15.733Z",
    "fingerprint": null,
    "browser_info": null,
    "payment_channel": null,
    "payment_method_id": null,
    "network_transaction_id": null,
    "payment_method_status": null,
    "updated": "2025-10-07T11:44:17.650Z",
    "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": 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,
    "enable_overcapture": null,
    "is_overcapture_enabled": null,
    "network_details": null,
    "is_stored_credential": null,
    "mit_category": null
}
Screenshot 2025-10-07 at 5 24 40 PM

Upon receiving IncomingWebhooks, the payments gets to terminal state.

PSync:

cURL:

curl --location 'http://localhost:8080/payments/pay_ucaVwlKVFgehjPCA4HU1?force_sync=true&expand_captures=true&expand_attempts=true' \
--header 'Accept: application/json' \
--header 'api-key: dev_uhvSzhSNBMbsft7V4REfiGxrgyN1ANlV5TOxQdBQACmBStQRhCluFop6DrRgQ19Q' \
--data ''

Response:

{
    "payment_id": "pay_ucaVwlKVFgehjPCA4HU1",
    "merchant_id": "merchant_1759778408",
    "status": "succeeded",
    "amount": 1,
    "net_amount": 1,
    "shipping_cost": null,
    "amount_capturable": 0,
    "amount_received": 1,
    "connector": "calida",
    "client_secret": "pay_ucaVwlKVFgehjPCA4HU1_secret_BrwQdvXiLjp04txLBYu9",
    "created": "2025-10-07T11:44:15.733Z",
    "currency": "EUR",
    "customer_id": null,
    "customer": null,
    "description": null,
    "refunds": null,
    "disputes": null,
    "attempts": [
        {
            "attempt_id": "pay_ucaVwlKVFgehjPCA4HU1_1",
            "status": "charged",
            "amount": 1,
            "order_tax_amount": null,
            "currency": "EUR",
            "connector": "calida",
            "error_message": null,
            "payment_method": "wallet",
            "connector_transaction_id": "QPWKQZZW7V1YJWXQ2YK0",
            "capture_method": "automatic",
            "authentication_type": "no_three_ds",
            "created_at": "2025-10-07T11:44:15.733Z",
            "modified_at": "2025-10-07T11:44:48.963Z",
            "cancellation_reason": null,
            "mandate_id": null,
            "error_code": null,
            "payment_token": null,
            "connector_metadata": null,
            "payment_experience": null,
            "payment_method_type": "bluecode",
            "reference_id": "4SEOQCZV11MR9NDOR2F99JUDTL",
            "unified_code": null,
            "unified_message": null,
            "client_source": null,
            "client_version": null
        }
    ],
    "mandate_id": null,
    "mandate_data": null,
    "setup_future_usage": null,
    "off_session": null,
    "capture_on": null,
    "capture_method": "automatic",
    "payment_method": "wallet",
    "payment_method_data": {
        "wallet": {},
        "billing": null
    },
    "payment_token": null,
    "shipping": null,
    "billing": {
        "address": {
            "city": "San Fransico",
            "country": "AT",
            "line1": "1467",
            "line2": null,
            "line3": null,
            "zip": "94122",
            "state": null,
            "first_name": "joseph",
            "last_name": "Doe",
            "origin_zip": null
        },
        "phone": null,
        "email": null
    },
    "order_details": null,
    "email": null,
    "name": null,
    "phone": null,
    "return_url": "https://duck.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": "bluecode",
    "connector_label": null,
    "business_country": null,
    "business_label": "default",
    "business_sub_label": null,
    "allowed_payment_method_types": null,
    "ephemeral_key": null,
    "manual_retry_allowed": null,
    "connector_transaction_id": "QPWKQZZW7V1YJWXQ2YK0",
    "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": "4SEOQCZV11MR9NDOR2F99JUDTL",
    "payment_link": null,
    "profile_id": "pro_rWvixdpO5KZLlPeUmLCU",
    "surcharge_details": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_UM2Z3gSLHpaGgCuCrnPc",
    "incremental_authorization_allowed": false,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2025-10-07T11:59:15.733Z",
    "fingerprint": null,
    "browser_info": null,
    "payment_channel": null,
    "payment_method_id": null,
    "network_transaction_id": null,
    "payment_method_status": null,
    "updated": "2025-10-07T11:44:48.963Z",
    "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": 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,
    "enable_overcapture": null,
    "is_overcapture_enabled": null,
    "network_details": null,
    "is_stored_credential": null,
    "mit_category": null
}

Checklist

  • 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

@bsayak03 bsayak03 requested review from a team as code owners October 7, 2025 11:55
@semanticdiff-com
Copy link

semanticdiff-com bot commented Oct 7, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  crates/router/src/connector.rs  68% smaller
  crates/hyperswitch_connectors/src/connectors/calida.rs  54% smaller
  crates/router/src/core/connector_validation.rs  44% smaller
  crates/router/src/types/connector_transformers.rs  42% smaller
  crates/hyperswitch_connectors/src/connectors.rs  40% smaller
  crates/common_enums/src/connector_enums.rs  19% smaller
  crates/hyperswitch_connectors/src/connectors/calida/transformers.rs  3% smaller
  api-reference/v1/openapi_spec_v1.json  0% smaller
  api-reference/v2/openapi_spec_v2.json  0% smaller
  config/config.example.toml Unsupported file format
  config/deployments/integration_test.toml Unsupported file format
  config/deployments/production.toml Unsupported file format
  config/deployments/sandbox.toml Unsupported file format
  config/development.toml Unsupported file format
  config/docker_compose.toml Unsupported file format
  crates/connector_configs/src/connector.rs  0% smaller
  crates/connector_configs/toml/development.toml Unsupported file format
  crates/connector_configs/toml/production.toml Unsupported file format
  crates/connector_configs/toml/sandbox.toml Unsupported file format
  crates/hyperswitch_connectors/src/default_implementations.rs  0% smaller
  crates/hyperswitch_connectors/src/default_implementations_v2.rs  0% smaller
  crates/hyperswitch_domain_models/src/connector_endpoints.rs  0% smaller
  crates/payment_methods/src/configs/payment_connector_required_fields.rs  0% smaller
  crates/router/src/types/api/connector_mapping.rs  0% smaller
  crates/router/src/types/api/feature_matrix.rs  0% smaller
  crates/router/tests/connectors/calida.rs  0% smaller
  crates/router/tests/connectors/main.rs  0% smaller
  crates/router/tests/connectors/sample_auth.toml Unsupported file format
  crates/test_utils/src/connector_auth.rs  0% smaller
  loadtest/config/development.toml Unsupported file format

@bsayak03 bsayak03 self-assigned this Oct 7, 2025
deepanshu-iiitu
deepanshu-iiitu previously approved these changes Oct 7, 2025
@hyperswitch-bot hyperswitch-bot bot added the M-api-contract-changes Metadata: This PR involves API contract changes label Oct 7, 2025
@likhinbopanna likhinbopanna added this pull request to the merge queue Oct 7, 2025
Merged via the queue into main with commit 04a14e3 Oct 7, 2025
21 of 25 checks passed
@likhinbopanna likhinbopanna deleted the bluecode/calida branch October 7, 2025 16:39
@bsayak03 bsayak03 added the hacktoberfest-accepted Pull requests accepted as Hacktoberfest contributions label Oct 7, 2025
UdayPandey01 pushed a commit to UdayPandey01/hyperswitch that referenced this pull request Oct 8, 2025
…da (juspay#9712)

Co-authored-by: Sayak Bhattacharya <sayak.b@Sayak-Bhattacharya-G092THXJ34.local>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
aadityaguptaa pushed a commit that referenced this pull request Nov 10, 2025
…da (#9712)

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

Labels

hacktoberfest-accepted Pull requests accepted as Hacktoberfest contributions M-api-contract-changes Metadata: This PR involves API contract changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants