Skip to content

Conversation

@deepanshu-iiitu
Copy link
Contributor

@deepanshu-iiitu deepanshu-iiitu commented Jun 7, 2025

Type of Change

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

Description

Removed country PM filters for payment processor authorizedotnet.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

#8277

How did you test it?

Test Any Payment on Authorizedotnet with Billing Country other than US/Canada
Request:

curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: API_KEY_HERE' \
--data '{
    "amount": 1234,
    "currency": "USD",
    "confirm": true,
    "customer_id": "Strustomewwr",
    "payment_method": "card",
    "payment_method_type": "credit",
    "payment_method_data": {
        "card": {
            "card_number": "4111111111111111",
            "card_exp_month": "02",
            "card_exp_year": "35",
            "card_holder_name": "John Doe",
            "card_cvc": "123"
        }
    },
    "billing": {
        "address": {
            "first_name": "John",
            "last_name": "Doe",
            "line1": "Harrison Street",
            "city": "San Francisco",
            "state": "California",
            "zip": "94016",
            "country": "ID"
        }
    },
    "metadata": {
        "count_tickets": 1,
        "transaction_number": "5590045"
    }
}'

Response:

{
    "payment_id": "pay_WWS00coZ3l0Ka60YIRnR",
    "merchant_id": "merchant_1749276137",
    "status": "succeeded",
    "amount": 1234,
    "net_amount": 1234,
    "shipping_cost": null,
    "amount_capturable": 0,
    "amount_received": 1234,
    "connector": "authorizedotnet",
    "client_secret": "pay_WWS00coZ3l0Ka60YIRnR_secret_wFydMj0boNTbiTmq839R",
    "created": "2025-06-07T06:16:14.824Z",
    "currency": "USD",
    "customer_id": "Strustomewwr",
    "customer": {
        "id": "Strustomewwr",
        "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": null,
    "payment_method": "card",
    "payment_method_data": {
        "card": {
            "last4": "1111",
            "card_type": null,
            "card_network": null,
            "card_issuer": null,
            "card_issuing_country": null,
            "card_isin": "411111",
            "card_extended_bin": null,
            "card_exp_month": "02",
            "card_exp_year": "35",
            "card_holder_name": "John Doe",
            "payment_checks": null,
            "authentication_data": null
        },
        "billing": null
    },
    "payment_token": null,
    "shipping": null,
    "billing": {
        "address": {
            "city": "San Francisco",
            "country": "ID",
            "line1": "Harrison Street",
            "line2": null,
            "line3": null,
            "zip": "94016",
            "state": "California",
            "first_name": "John",
            "last_name": "Doe"
        },
        "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": "Strustomewwr",
        "created_at": 1749276974,
        "expires": 1749280574,
        "secret": "epk_715cd374b7e8409fba550e3866c9dbc6"
    },
    "manual_retry_allowed": false,
    "connector_transaction_id": "120064688104",
    "frm_message": null,
    "metadata": {
        "count_tickets": 1,
        "transaction_number": "5590045"
    },
    "connector_metadata": null,
    "feature_metadata": null,
    "reference_id": "120064688104",
    "payment_link": null,
    "profile_id": "pro_lZhF6us28eQOE1icJuYF",
    "surcharge_details": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_iQgBrM8isie20kKlZGth",
    "incremental_authorization_allowed": null,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2025-06-07T06:31:14.824Z",
    "fingerprint": null,
    "browser_info": null,
    "payment_method_id": null,
    "payment_method_status": null,
    "updated": "2025-06-07T06:16:15.357Z",
    "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
}

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

@deepanshu-iiitu deepanshu-iiitu requested a review from a team as a code owner June 7, 2025 06:14
@semanticdiff-com
Copy link

Review changes with  SemanticDiff

@deepanshu-iiitu deepanshu-iiitu linked an issue Jun 7, 2025 that may be closed by this pull request
2 tasks
@deepanshu-iiitu deepanshu-iiitu self-assigned this Jun 7, 2025
@deepanshu-iiitu deepanshu-iiitu added A-connector-integration Area: Connector integration C-bug Category: Bug M-configuration-changes Metadata: This PR involves configuration changes labels Jun 7, 2025
@Gnanasundari24 Gnanasundari24 enabled auto-merge June 7, 2025 06:34
@Gnanasundari24 Gnanasundari24 added this pull request to the merge queue Jun 7, 2025
Merged via the queue into main with commit e407d50 Jun 7, 2025
19 of 24 checks passed
@Gnanasundari24 Gnanasundari24 deleted the adn-remove-country-filter branch June 7, 2025 07:17
pixincreate added a commit that referenced this pull request Jun 9, 2025
…nktransfer

* 'main' of github.com:juspay/hyperswitch: (211 commits)
  feat(tokenio): Add OpenBanking Redirection Flow (#8152)
  fix: Unified scarf setup (#8238)
  feat(health): Health check for Decision engine (#8243)
  chore: Update apple pay currency filter configs (#8217)
  refactor(customers_v2): Remove merchant reference id from v2 customer update (#7879)
  chore(version): 2025.06.09.0
  chore(postman): update Postman collection files
  ci(postman): add tunnel collection to postman tests (#8269)
  feat(connector): Added recurring payments support for split payments in Stripe (#8271)
  feat(connector): [STRIPE] Added Connector Tokenization Flow for Cards (#8248)
  refactor(core): introduce new field in payment_intent to handle longer return_url (#8135)
  fix(connector): [AUTHORIZEDOTNET] Remove country PM filters (#8278)
  refactor(config): redact config urls for hyperswitch vault (#8276)
  feat(vsaas): enable onboarding of Standard Merchant Accounts in Platform Organization (#8231)
  feat(router): add three_ds decision rule execute api (#8148)
  feat(router): Save payment method on payments confirm (V2) (#8090)
  ci(cypress): Add Airwallex Connector Test (#8187)
  feat(payment_methods): add `external_vault_details` for payments v2 sdk session call (#8003)
  fix(connector): [facilitapay] cpf is a required field (#8274)
  fix: Fixed spell check (#8227)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-connector-integration Area: Connector integration C-bug Category: Bug M-configuration-changes Metadata: This PR involves configuration changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Unwanted country PM filters in Authorizedotnet

5 participants