juspay / hyperswitch

An open source payments switch written in Rust to make payments fast, reliable and affordable
https://hyperswitch.io/
Apache License 2.0
11.02k stars 1.19k forks source link

feat(payouts): add country, currency filters for payout methods #5130

Open srujanchikke opened 6 days ago

srujanchikke commented 6 days ago

Type of Change

Description

This PR includes :

Additional Changes

Motivation and Context

How did you test it?

Test case 1: create mca with connector adyen with payment method

{
    "connector_type": "payout_processor",
    "connector_name": "adyen",
    "connector_account_details": {
        "auth_type": "SignatureKey",
        "api_key": "api_key",
        "key1": "key1",
        "api_secret": "api_secret"
    },
    "test_mode": false,
    "disabled": false,
    "metadata": {
        "city": "NY",
        "unit": "245",
        "endpoint_prefix": ""
    },
    "payment_methods_enabled": [
        {
            "payment_method": "bank_transfer",
            "payment_method_types": [
                {
                    "payment_method_type": "sepa",
                    "payment_experience": "redirect_to_url",
                    "card_networks": null,
                    "accepted_currencies": null,
                    "accepted_countries": null,
                    "minimum_amount": 0,
                    "maximum_amount": 68607706,
                    "recurring_enabled": true,
                    "installment_payment_enabled": false
                }
            ]
        }
    ]
}

Test Case 3 : Create MCA as created in test case1 , While creating payout link, try creating with different currency other than EUR. Default Payout method card should be present after redirecting to payout list.

Test Case 4 : After WASM deployment, please verify Adyen payout connector doesn't have ach & bacs in bank transfers.

Checklist