Skip to content

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

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 3 commits 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.

Hotfix raised against: #8836

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 review from a team as code owners August 5, 2025 07:57
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 removed the request for review from a team August 5, 2025 07:58
@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 merged commit 5b31b0e into hotfix-2025.07.30.0 Aug 5, 2025
21 of 26 checks passed
@Gnanasundari24 Gnanasundari24 deleted the fix_wise_payout_hotfix branch August 5, 2025 10:18
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