Skip to content

feat(feature_matrix): add feature matrix for both paytm and phonepe#8822

Merged
likhinbopanna merged 4 commits intomainfrom
fix-pr-8732
Aug 4, 2025
Merged

feat(feature_matrix): add feature matrix for both paytm and phonepe#8822
likhinbopanna merged 4 commits intomainfrom
fix-pr-8732

Conversation

@maverox
Copy link
Contributor

@maverox maverox commented Aug 1, 2025

Type of Change

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

Description

Add Phonepe, Paytm supported payment methods, currencies and countries in feature matrix.

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?

Feature API Call
Request

curl --location 'http://localhost:8080/feature_matrix' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: ____'

Response

{
            "name": "PAYTM",
            "display_name": "PAYTM",
            "description": "Paytm is an Indian multinational fintech company specializing in digital payments and financial services. Initially known for its mobile wallet, it has expanded to include a payment bank, e-commerce, ticketing, and wealth management services.",
            "category": "payment_gateway",
            "supported_payment_methods": [
                {
                    "payment_method": "upi",
                    "payment_method_type": "upi_intent",
                    "payment_method_type_display_name": "UPI Intent",
                    "mandates": "not_supported",
                    "refunds": "not_supported",
                    "supported_capture_methods": [
                        "automatic"
                    ],
                    "supported_countries": [
                        "IND"
                    ],
                    "supported_currencies": [
                        "INR"
                    ]
                },
                {
                    "payment_method": "upi",
                    "payment_method_type": "upi_collect",
                    "payment_method_type_display_name": "UPI Collect",
                    "mandates": "not_supported",
                    "refunds": "not_supported",
                    "supported_capture_methods": [
                        "automatic"
                    ],
                    "supported_countries": [
                        "IND"
                    ],
                    "supported_currencies": [
                        "INR"
                    ]
                }
            ],
            "supported_webhook_flows": []
        },
        {
            "name": "PAYU",
            "display_name": "Payu",
            "description": "PayU is a global fintech company providing online payment solutions, including card processing, UPI, wallets, and BNPL services across multiple markets ",
            "category": "payment_gateway",
            "supported_payment_methods": [
                {
                    "payment_method": "card",
                    "payment_method_type": "debit",
                    "payment_method_type_display_name": "Debit Card",
                    "mandates": "not_supported",
                    "refunds": "supported",
                    "supported_capture_methods": [
                        "automatic",
                        "manual",
                        "sequential_automatic"
                    ],
                    "three_ds": "supported",
                    "no_three_ds": "not_supported",
                    "supported_card_networks": [
                        "Visa",
                        "Mastercard",
                        "Interac",
                        "AmericanExpress",
                        "JCB",
                        "DinersClub",
                        "Discover",
                        "CartesBancaires",
                        "UnionPay"
                    ],
                    "supported_countries": [
                        "WSM",
                        "BWA",
                        "MAR",
                        "TWN",
                        "TJK",
                        "KAZ",
                        "LAO",
                        "MEX",
                        "LBR",
                        "OMN",
                        "CRI",
                        "JPN",
                        "MDA",
                        "JOR",
                        "CMR",
                        "VNM",
                        "TZA",
                        "ROU",
                        "PYF",
                        "COL",
                        "ISL",
                        "AUS",
                        "ARG",
                        "GEO",
                        "SAU",
                        "CHL",
                        "CYM",
                        "GMB",
                        "ZWE",
                        "ZAF",
                        "URY",
                        "BHR",
                        "DJI",
                        "MWI",
                        "COM",
                        "UGA",
                        "AFG",
                        "MRT",
                        "CAN",
                        "SRB",
                        "GIB",
                        "GHA",
                        "GIN",
                        "SWZ",
                        "COD",
                        "SOM",
                        "ARM",
                        "SHN",
                        "BVT",
                        "PNG",
                        "PER",
                        "SYC",
                        "AZE",
                        "ETH",
                        "RWA",
                        "BIH",
                        "BHS",
                        "PAN",
                        "KOR",
                        "CPV",
                        "SUR",
                        "AND",
                        "ISR",
                        "EGY",
                        "TKM",
                        "NAM",
                        "TUN",
                        "GTM",
                        "NIC",
                        "POL",
                        "SGP",
                        "SLV",
                        "BEN",
                        "DNK",
                        "CZE",
                        "SLB",
                        "TTO",
                        "HTI",
                        "COK",
                        "BDI",
                        "GUY",
                        "LBN",
                        "FJI",
                        "AGO",
                        "KWT",
                        "LIE",
                        "LSO",
                        "BRA",
                        "HKG",
                        "MAC",
                        "MKD",
                        "HUN",
                        "HRV",
                        "FLK",
                        "VEN",
                        "BOL",
                        "ARE",
                        "ALB",
                        "ABW",
                        "BRN",
                        "THA",
                        "YEM",
                        "MOZ",
                        "GGY",
                        "TON",
                        "BMU",
                        "MYS",
                        "KGZ",
                        "MDV",
                        "BGR",
                        "BLZ",
                        "TUR",
                        "DOM",
                        "IDN",
                        "QAT",
                        "MNG",
                        "KHM",
                        "JAM",
                        "ZMB",
                        "CUW",
                        "UZB",
                        "VUT",
                        "SWE",
                        "NGA",
                        "ASM",
                        "HND",
                        "DZA",
                        "AIA",
                        "MDG",
                        "CHN",
                        "IRQ",
                        "BLR",
                        "PRY",
                        "BRB"
                    ],
                    "supported_currencies": [
                        "MRU",
                        "TRY",
                        "RSD",
                        "SVC",
                        "CZK",
                        "EGP",
                        "WST",
                        "AOA",
                        "NAD",
                        "MVR",
                        "PEN",
                        "KHR",
                        "FKP",
                        "EUR",
                        "BOB",
                        "UYU",
                        "HKD",
                        "TMT",
                        "BGN",
                        "ISK",
                        "LRD",
                        "DZD",
                        "MWK",
                        "GYD",
                        "NZD",
                        "IQD",
                        "DJF",
                        "PLN",
                        "BYN",
                        "BBD",
                        "MKD",
                        "MXN",
                        "MYR",
                        "NIO",
                        "CRC",
                        "LSL",
                        "TWD",
                        "VND",
                        "ALL",
                        "MZN",
                        "VUV",
                        "XAF",
                        "NGN",
                        "KMF",
                        "AUD",
                        "TJS",
                        "HRK",
                        "AZN",
                        "GTQ",
                        "VES",
                        "IDR",
                        "CDF",
                        "CHF",
                        "ANG",
                        "BIF",
                        "NOK",
                        "YER",
                        "RWF",
                        "JMD",
                        "KWD",
                        "ILS",
                        "CVE",
                        "LBP",
                        "ZMW",
                        "MNT",
                        "SBD",
                        "GHS",
                        "PAB",
                        "AFN",
                        "GIP",
                        "USD",
                        "LAK",
                        "PGK",
                        "RON",
                        "AED",
                        "MAD",
                        "SEK",
                        "UZS",
                        "ZAR",
                        "TTD",
                        "KZT",
                        "AWG",
                        "FJD",
                        "HTG",
                        "JPY",
                        "ZWL",
                        "COP",
                        "CNY",
                        "PYG",
                        "ETB",
                        "SGD",
                        "BSD",
                        "UGX",
                        "XOF",
                        "CLP",
                        "JOD",
                        "DOP",
                        "SRD",
                        "BND",
                        "SZL",
                        "SCR",
                        "SHP",
                        "BHD",
                        "BZD",
                        "BMD",
                        "XPF",
                        "HNL",
                        "BWP",
                        "THB",
                        "TOP",
                        "DKK",
                        "MDL",
                        "KRW",
                        "BAM",
                        "BRL",
                        "ARS",
                        "KYD",
                        "TND",
                        "SOS",
                        "MGA",
                        "XCD",
                        "GNF",
                        "KGS",
                        "QAR",
                        "SAR",
                        "HUF",
                        "MOP",
                        "TZS",
                        "CAD",
                        "OMR",
                        "GBP",
                        "AMD",
                        "GEL",
                        "GMD"
                    ]
                },
                {
                    "payment_method": "card",
                    "payment_method_type": "credit",
                    "payment_method_type_display_name": "Credit Card",
                    "mandates": "not_supported",
                    "refunds": "supported",
                    "supported_capture_methods": [
                        "automatic",
                        "manual",
                        "sequential_automatic"
                    ],
                    "three_ds": "supported",
                    "no_three_ds": "not_supported",
                    "supported_card_networks": [
                        "Visa",
                        "Mastercard",
                        "Interac",
                        "AmericanExpress",
                        "JCB",
                        "DinersClub",
                        "Discover",
                        "CartesBancaires",
                        "UnionPay"
                    ],
                    "supported_countries": [
                        "VNM",
                        "KHM",
                        "ETH",
                        "SRB",
                        "QAT",
                        "BHR",
                        "NGA",
                        "HND",
                        "IRQ",
                        "UGA",
                        "NIC",
                        "PYF",
                        "JPN",
                        "ISL",
                        "ZWE",
                        "TWN",
                        "SAU",
                        "GGY",
                        "PNG",
                        "VEN",
                        "FLK",
                        "MWI",
                        "BMU",
                        "GUY",
                        "PER",
                        "MEX",
                        "AZE",
                        "TTO",
                        "LBN",
                        "AIA",
                        "GTM",
                        "RWA",
                        "MDV",
                        "ARM",
                        "BRN",
                        "COM",
                        "COK",
                        "SLV",
                        "SWE",
                        "COL",
                        "CUW",
                        "BHS",
                        "ISR",
                        "MDG",
                        "EGY",
                        "TUN",
                        "JOR",
                        "ALB",
                        "BRB",
                        "LAO",
                        "CYM",
                        "MDA",
                        "THA",
                        "YEM",
                        "MRT",
                        "SWZ",
                        "ARG",
                        "AFG",
                        "TZA",
                        "ABW",
                        "HRV",
                        "BGR",
                        "ROU",
                        "PAN",
                        "LIE",
                        "BIH",
                        "CHL",
                        "VUT",
                        "SGP",
                        "HUN",
                        "ZMB",
                        "CHN",
                        "BLR",
                        "SLB",
                        "BRA",
                        "HKG",
                        "CAN",
                        "DZA",
                        "CZE",
                        "WSM",
                        "OMN",
                        "GIN",
                        "KWT",
                        "MAR",
                        "AUS",
                        "KAZ",
                        "ASM",
                        "TON",
                        "SUR",
                        "BOL",
                        "DNK",
                        "UZB",
                        "MAC",
                        "GHA",
                        "HTI",
                        "SHN",
                        "MKD",
                        "CMR",
                        "BDI",
                        "DOM",
                        "TKM",
                        "SOM",
                        "FJI",
                        "POL",
                        "KGZ",
                        "SYC",
                        "BWA",
                        "TJK",
                        "AGO",
                        "BVT",
                        "NAM",
                        "AND",
                        "ARE",
                        "CPV",
                        "MOZ",
                        "MYS",
                        "BEN",
                        "COD",
                        "LSO",
                        "PRY",
                        "GEO",
                        "GIB",
                        "MNG",
                        "DJI",
                        "CRI",
                        "GMB",
                        "URY",
                        "TUR",
                        "IDN",
                        "JAM",
                        "KOR",
                        "LBR",
                        "BLZ",
                        "ZAF"
                    ],
                    "supported_currencies": [
                        "SVC",
                        "SHP",
                        "PLN",
                        "CRC",
                        "JOD",
                        "PAB",
                        "RWF",
                        "SOS",
                        "TOP",
                        "WST",
                        "VND",
                        "BND",
                        "EUR",
                        "MYR",
                        "DJF",
                        "TRY",
                        "HTG",
                        "CHF",
                        "EGP",
                        "KMF",
                        "MWK",
                        "GTQ",
                        "AUD",
                        "BHD",
                        "UYU",
                        "BWP",
                        "FJD",
                        "MZN",
                        "LSL",
                        "ANG",
                        "BMD",
                        "CZK",
                        "DZD",
                        "SEK",
                        "BGN",
                        "BRL",
                        "DKK",
                        "HNL",
                        "SAR",
                        "SCR",
                        "MXN",
                        "GIP",
                        "MDL",
                        "BAM",
                        "TWD",
                        "ZAR",
                        "OMR",
                        "SZL",
                        "KGS",
                        "RSD",
                        "CVE",
                        "GMD",
                        "VUV",
                        "BSD",
                        "ISK",
                        "HUF",
                        "BOB",
                        "TZS",
                        "USD",
                        "AZN",
                        "KWD",
                        "FKP",
                        "COP",
                        "BIF",
                        "ILS",
                        "IDR",
                        "ALL",
                        "MGA",
                        "KYD",
                        "KHR",
                        "KRW",
                        "PEN",
                        "TND",
                        "XOF",
                        "NAD",
                        "HKD",
                        "NGN",
                        "THB",
                        "XPF",
                        "CNY",
                        "GYD",
                        "UGX",
                        "AOA",
                        "LAK",
                        "NIO",
                        "NOK",
                        "ARS",
                        "QAR",
                        "TMT",
                        "MAD",
                        "JPY",
                        "YER",
                        "SGD",
                        "GBP",
                        "KZT",
                        "NZD",
                        "MVR",
                        "ZWL",
                        "ZMW",
                        "AMD",
                        "DOP",
                        "LBP",
                        "XCD",
                        "HRK",
                        "BBD",
                        "BZD",
                        "JMD",
                        "MNT",
                        "GEL",
                        "LRD",
                        "UZS",
                        "MKD",
                        "AWG",
                        "GHS",
                        "CLP",
                        "CAD",
                        "ETB",
                        "PGK",
                        "RON",
                        "AED",
                        "TJS",
                        "TTD",
                        "XAF",
                        "BYN",
                        "CDF",
                        "SBD",
                        "GNF",
                        "IQD",
                        "PYG",
                        "MRU",
                        "MOP",
                        "SRD",
                        "VES",
                        "AFN"
                    ]
                },
                {
                    "payment_method": "wallet",
                    "payment_method_type": "apple_pay",
                    "payment_method_type_display_name": "Apple Pay",
                    "mandates": "not_supported",
                    "refunds": "supported",
                    "supported_capture_methods": [
                        "automatic",
                        "manual",
                        "sequential_automatic"
                    ],
                    "supported_countries": null,
                    "supported_currencies": null
                },
                {
                    "payment_method": "wallet",
                    "payment_method_type": "google_pay",
                    "payment_method_type_display_name": "Google Pay",
                    "mandates": "not_supported",
                    "refunds": "supported",
                    "supported_capture_methods": [
                        "automatic",
                        "manual",
                        "sequential_automatic"
                    ],
                    "supported_countries": [
                        "CZE",
                        "JOR",
                        "AUS",
                        "MEX",
                        "PER",
                        "JPN",
                        "VNM",
                        "OMN",
                        "SWE",
                        "LBN",
                        "ROU",
                        "DNK",
                        "BRA",
                        "CAN",
                        "THA",
                        "DZA",
                        "HKG",
                        "BHR",
                        "IND",
                        "QAT",
                        "ARE",
                        "TUR",
                        "EGY",
                        "AGO",
                        "COL",
                        "IDN",
                        "SGP",
                        "KAZ",
                        "TWN",
                        "PAN",
                        "ALB",
                        "ARG",
                        "ISR",
                        "HRV",
                        "DOM",
                        "HUN",
                        "ASM",
                        "AZE",
                        "BLR",
                        "MYS",
                        "SAU",
                        "BGR",
                        "URY",
                        "KWT",
                        "CHL",
                        "POL"
                    ],
                    "supported_currencies": [
                        "AED",
                        "ILS",
                        "ALL",
                        "KWD",
                        "ARS",
                        "DKK",
                        "SGD",
                        "TRY",
                        "BHD",
                        "VND",
                        "JOD",
                        "XCD",
                        "AUD",
                        "NOK",
                        "CLP",
                        "DOP",
                        "EGP",
                        "MYR",
                        "PLN",
                        "EUR",
                        "COP",
                        "BYN",
                        "HKD",
                        "KZT",
                        "HUF",
                        "PAB",
                        "SAR",
                        "CHF",
                        "IDR",
                        "TWD",
                        "PEN",
                        "UYU",
                        "ZAR",
                        "USD",
                        "BGN",
                        "MXN",
                        "AOA",
                        "NZD",
                        "SEK",
                        "CZK",
                        "BRL",
                        "CAD",
                        "UAH",
                        "INR",
                        "GBP",
                        "JPY",
                        "LBP",
                        "THB",
                        "AZN",
                        "DZD",
                        "RON",
                        "QAR",
                        "OMR"
                    ]
                }
            ],
            "supported_webhook_flows": []
        },
        {
            "name": "PHONEPE",
            "display_name": "PHONEPE",
            "description": "PhonePe is a digital payments and financial services platform built on the UPI system. It allows users to make instant payments, recharge mobiles, pay bills, and access financial services like investments and insurance.",
            "category": "payment_gateway",
            "supported_payment_methods": [
                {
                    "payment_method": "upi",
                    "payment_method_type": "upi_collect",
                    "payment_method_type_display_name": "UPI Collect",
                    "mandates": "not_supported",
                    "refunds": "not_supported",
                    "supported_capture_methods": [
                        "automatic"
                    ],
                    "supported_countries": [
                        "IND"
                    ],
                    "supported_currencies": [
                        "INR"
                    ]
                },
                {
                    "payment_method": "upi",
                    "payment_method_type": "upi_intent",
                    "payment_method_type_display_name": "UPI Intent",
                    "mandates": "not_supported",
                    "refunds": "not_supported",
                    "supported_capture_methods": [
                        "automatic"
                    ],
                    "supported_countries": [
                        "IND"
                    ],
                    "supported_currencies": [
                        "INR"
                    ]
                }
            ],
            "supported_webhook_flows": []
        },

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

@maverox maverox requested a review from a team as a code owner August 1, 2025 14:08
@semanticdiff-com
Copy link

semanticdiff-com bot commented Aug 1, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  crates/hyperswitch_connectors/src/connectors/paytm.rs  27% smaller
  crates/hyperswitch_connectors/src/connectors/phonepe.rs  26% smaller

@maverox maverox self-assigned this Aug 1, 2025
@maverox maverox added A-connector-integration Area: Connector integration C-bug Category: Bug labels Aug 1, 2025
@likhinbopanna likhinbopanna added this pull request to the merge queue Aug 4, 2025
Merged via the queue into main with commit cf5737f Aug 4, 2025
17 of 22 checks passed
@likhinbopanna likhinbopanna deleted the fix-pr-8732 branch August 4, 2025 07:49
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.

5 participants