Skip to content

feat(core): added payment method type in uas for modular auth and payments api#9852

Merged
likhinbopanna merged 4 commits intomainfrom
11516-add-payment-method-type-support-in-uas
Oct 16, 2025
Merged

feat(core): added payment method type in uas for modular auth and payments api#9852
likhinbopanna merged 4 commits intomainfrom
11516-add-payment-method-type-support-in-uas

Conversation

@sahkal
Copy link
Contributor

@sahkal sahkal commented Oct 15, 2025

Type of Change

  • New feature

Description

Currently we are not sending payment method type to UAS in pre_authentication request, with this change we will be sending that

How did you test it?

Setup Juspay Threeds Server

Once done initiate a transaction with juspay Threeds using modular auth or payments

curl --location 'localhost:8080/authentication/authn_87dsa87qQXddwnuXt5Jl/eligibility' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_7azrHJkoGVhOCt8fToNlstyRiy64GVyWcVJnZatYgsDMzjPHDR7IRsuYHtBIkGJn' \
--data-raw '{
     "payment_method": "card",
    
    "payment_method_data": {
        "card": {
        "card_number": "4916994064252017", // visa challenge
       "card_exp_month": "06",
         "card_exp_year": "30",
         "card_holder_name": "Sahkal Poddar",
          "card_cvc": "123"
    },
    "payment_method_type": "debit",
    "billing": {
        "address": {
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "city": "San Fransico",
            "state": "CA",
            "zip": "94122",
            "country": "US",
            "first_name": "PiX"
        },
        "phone": {
            "number": "123456789",
            "country_code": "12"
        }
    },
    "shipping": {
        "address": {
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "city": "San Fransico",
            "state": "California",
            "zip": "94122",
            "country": "US",
            "first_name": "PiX"
        },
        "phone": {
            "number": "123456789",
            "country_code": "12"
        }
    },
    "email": "sahkalplanet@gmail.com",
    "browser_information": {
        "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",
        "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
        "language": "nl-NL",
        "color_depth": 24,
        "screen_height": 723,
        "screen_width": 1536,
        "time_zone": 0,
        "java_enabled": true,
        "java_script_enabled": true,
        "ip_address": "115.99.183.2"
    }
}'

in logs check if we sending

pmt_details: {
account_type: Debit
}

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

@sahkal sahkal added this to the July 2025 Release milestone Oct 15, 2025
@sahkal sahkal self-assigned this Oct 15, 2025
@sahkal sahkal added the A-core Area: Core flows label Oct 15, 2025
@sahkal sahkal requested review from a team as code owners October 15, 2025 08:51
@semanticdiff-com
Copy link

semanticdiff-com bot commented Oct 15, 2025

@hyperswitch-bot hyperswitch-bot bot added the M-api-contract-changes Metadata: This PR involves API contract changes label Oct 15, 2025
….com:juspay/hyperswitch into 11516-add-payment-method-type-support-in-uas
@likhinbopanna likhinbopanna added this pull request to the merge queue Oct 16, 2025
Merged via the queue into main with commit 0fe4f23 Oct 16, 2025
25 of 29 checks passed
@likhinbopanna likhinbopanna deleted the 11516-add-payment-method-type-support-in-uas branch October 16, 2025 13:55
drdholu pushed a commit to drdholu/hyperswitch that referenced this pull request Oct 30, 2025
…ments api (juspay#9852)

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
…ments api (#9852)

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

A-core Area: Core flows 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