Skip to content

fix(connector): [Wise] send uuid as connector_transaction_id #8836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 5, 2025

Conversation

Sakilmostak
Copy link
Contributor

@Sakilmostak Sakilmostak commented Aug 5, 2025

Type of Change

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

Description

connector_transaction_id of wise only support UUID format.
reference_id wont be required as value since we store the wise's transaction id.
We only send UUID to make the transaction without any error.

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?

Tested through Postman:

Create an MCA with Wise, do a payout transaction with below body:

{
    "amount": 100,
    "currency": "USD",
    "customer_id": "{{customer_id}}",
    "email": "[email protected]",
    "name": "John Doe",
    "phone": "999999999",   
    "phone_country_code": "+65",
    "description": "Its my first payout request",
    "payout_type": "bank",
    "payout_method_data": {
        "bank": {
            "bank_account_number": "40000000000",
            "bank_routing_number": "064000020",
            "bank_name": "Deutsche Bank",
            "bank_country_code": "US",
            "bank_city": "NewYork"
        }
    },
    "billing": {
        "address": {
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "city": "San Fransico",
            "state": "NY",
            "zip": "94122",
            "country": "US",
            "first_name": "John",
            "last_name": "Doe"
        },
        "phone": {
            "number": "8056594427",
            "country_code": "+91"
        }
    },
    "entity_type": "Individual",
    "recurring": false,
    "priority": "instant",
    "metadata": {
        "ref": "123"
    },
    "confirm": true,
    "auto_fulfill": true
}

Below should be the response:

{
    "payout_id": "payout_kzRK3VXXZlUnCr1EnD0I",
    "merchant_id": "merchant_1754377291",
    "merchant_order_reference_id": null,
    "amount": 100,
    "currency": "USD",
    "connector": "wise",
    "payout_type": "bank",
    "payout_method_data": {
        "bank": {
            "bank_account_number": "*******0000",
            "bank_routing_number": "064***020",
            "bank_name": "Deutsche Bank",
            "bank_country_code": "US",
            "bank_city": "NewYork"
        }
    },
    "billing": {
        "address": {
            "city": "San Fransico",
            "country": "US",
            "line1": "1467",
            "line2": "Harrison Street",
            "line3": "Harrison Street",
            "zip": "94122",
            "state": "NY",
            "first_name": "John",
            "last_name": "Doe"
        },
        "phone": {
            "number": "8056594427",
            "country_code": "+91"
        },
        "email": null
    },
    "auto_fulfill": true,
    "customer_id": "cus_dLXANQ4lA5rPO9ILVMIU",
    "customer": {
        "id": "cus_dLXANQ4lA5rPO9ILVMIU",
        "name": "John Doe",
        "email": "[email protected]",
        "phone": "999999999",
        "phone_country_code": "+65"
    },
    "client_secret": "payout_payout_kzRK3VXXZlUnCr1EnD0I_secret_aUlO2tVNNnSwCpwtT2BI",
    "return_url": null,
    "business_country": null,
    "business_label": null,
    "description": "Its my first payout request",
    "entity_type": "Individual",
    "recurring": false,
    "metadata": {
        "ref": "123"
    },
    "merchant_connector_id": "mca_X32sex8t8YBX0yuIS77v",
    "status": "success",
    "error_message": null,
    "error_code": null,
    "profile_id": "pro_AlDa1vQRvtDEN6zUests",
    "created": "2025-08-05T07:01:49.063Z",
    "connector_transaction_id": "55301412",
    "priority": "instant",
    "payout_link": null,
    "email": "[email protected]",
    "name": "John Doe",
    "phone": "999999999",
    "phone_country_code": "+65",
    "unified_code": null,
    "unified_message": null,
    "payout_method_id": 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

@Sakilmostak Sakilmostak requested a review from a team as a code owner August 5, 2025 07:04
Copy link

semanticdiff-com bot commented Aug 5, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  crates/hyperswitch_connectors/src/connectors/wise/transformers.rs  0% smaller

@Sakilmostak Sakilmostak self-assigned this Aug 5, 2025
@Sakilmostak Sakilmostak added A-connector-integration Area: Connector integration C-bug Category: Bug labels Aug 5, 2025
@Gnanasundari24 Gnanasundari24 added this pull request to the merge queue Aug 5, 2025
Merged via the queue into main with commit 190d136 Aug 5, 2025
21 of 26 checks passed
@Gnanasundari24 Gnanasundari24 deleted the fix_wise_payout branch August 5, 2025 09:41
pixincreate added a commit that referenced this pull request Aug 6, 2025
…ordea-sepa

* 'main' of github.com:juspay/hyperswitch: (89 commits)
  feat(router): [worldpayvantiv] add dispute list sync and implement dispute (#8830)
  feat(core): Add support for Void after Capture (#8839)
  fix(wasm): [FISERV] Added GooglePay Payment Method Type (#8832)
  feat(connector): [Barclaycard] Add Google Pay Payment Method (#8786)
  chore(version): 2025.08.06.0
  feat(core): Added additional authentication fields for 3ds external authentication (#8758)
  refactor(core): propagate network_transaction_id in response of payment (#8829)
  fix(core): add fix for stopping multiple event locking idempotent logs (#8034)
  feat(connector): [AUTHORIZEDOTNET] create connector customer flow added (#8774)
  feat(core): Add L2_L3 Data Support  (#8828)
  feat(connector): [NMI] Add mandates flow (#8652)
  fix(connector): [Wise] send uuid as connector_transaction_id (#8836)
  feat(core): populate UCS status_code in response headers (#8788)
  feat(external_services): Fixed Url for Unified Connector Service gRPC Client (#8587)
  chore: reorder v2 migrations folders (#8671)
  fix(router): Take merchant ID from headers in API Key - Revoke (v2) (#8808)
  fix(connector): (payload) currency auth key wasm changes (#8825)
  feat(payment-methods): add filtering logic for payment method list v2 (#8606)
  feat(router): add support for apple pay pre-decrypted token in the payments confirm call (#8815)
  chore(version): 2025.08.05.0
  ...
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants