Skip to content

Conversation

Nithin1506200
Copy link
Contributor

@Nithin1506200 Nithin1506200 commented Jul 1, 2025

Type of Change

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

Description

ADD new pm for multisafepay

  • EPS
  • SOFORT
  • MBWAY

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?

MCA
{
    "connector_type": "payment_processor",
    "connector_account_details": {
        "auth_type": "HeaderKey",

        "api_key": "****"
    },
    "connector_name": "multisafepay",
    "test_mode": false,
    "disabled": false,
    "payment_methods_enabled": [
        {
            "payment_method": "wallet",
            "payment_method_types": [
                {
                    "payment_method_type": "paypal",
                    "payment_experience": "redirect_to_url"
                }
            ]
        },
        {
            "payment_method": "wallet",
            "payment_method_types": [
                {
                    "payment_method_type": "we_chat_pay",
                    "payment_experience": "redirect_to_url"
                }
            ]
        },
        {
            "payment_method": "wallet",
            "payment_method_types": [
                {
                    "payment_method_type": "ali_pay",
                    "payment_experience": "redirect_to_url"
                }
            ]
        },
        {
            "payment_method": "wallet",
            "payment_method_types": [
                {
                    "payment_method_type": "amazon_pay",
                    "payment_experience": "redirect_to_url"
                }
            ]
        },
        {
            "payment_method": "bank_redirect",
            "payment_method_types": [
                {
                    "payment_method_type": "trustly"
                }
            ]
        },
        {
            "payment_method": "bank_redirect",
            "payment_method_types": [
                {
                    "payment_method_type": "eps",
                    "payment_experience": "redirect_to_url"
                }
            ]
        },
        {
            "payment_method": "bank_redirect",
            "payment_method_types": [
                {
                    "payment_method_type": "mb_way",
                    "payment_experience": "redirect_to_url"
                }
            ]
        },
        {
            "payment_method": "bank_redirect",
            "payment_method_types": [
                {
                    "payment_method_type": "sofort",
                    "payment_experience": "redirect_to_url"
                }
            ]
        },
        {
            "payment_method": "card",
            "payment_method_types": [
                {
                    "payment_method_type": "credit",
                    "card_networks": [
                        "Visa",
                        "Mastercard"
                    ],
                    "minimum_amount": 1,
                    "maximum_amount": 68607706,
                    "recurring_enabled": true,
                    "installment_payment_enabled": true
                },
                {
                    "payment_method_type": "debit",
                    "card_networks": [
                        "Visa",
                        "Mastercard"
                    ],
                    "minimum_amount": 1,
                    "maximum_amount": 68607706,
                    "recurring_enabled": true,
                    "installment_payment_enabled": true
                }
            ]
        }
    ],
    "metadata": {
        "city": "NY",
        "unit": "245"
    },

    "business_country": "US",
    "business_label": "default"
}

SOFORT

Payment Request
{
    "amount": 333,
    "currency": "EUR",
    "confirm": true,
    "capture_method": "automatic",
    "payment_method": "bank_redirect",
    "payment_method_type": "sofort",
    "authentication_type": "no_three_ds",
    "description": "hellow world",
    "billing": {
        "address": {
            "zip": "560095",
            "first_name": "Sakil",
            "last_name": "Mostak",
            "line1": "Fasdf",
            "country": "CN",
            "line2": "Fasdf",
            "city": "Fasdf"
        }
    },
    "payment_method_data": {

        "bank_redirect": {
            "sofort": {}
        }
    }
}
Confirm page Screenshot 2025-07-01 at 11 20 05 AM
Psync Response
{
    "payment_id": "pay_2VuZLa8gqY25CfYd0j9g",
    "merchant_id": "merchant_1751348844",
    "status": "succeeded",
    "amount": 333,
    "net_amount": 333,
    "shipping_cost": null,
    "amount_capturable": 0,
    "amount_received": 333,
    "connector": "multisafepay",
    "client_secret": "pay_2VuZLa8gqY25CfYd0j9g_secret_uJ6cIqUaMlLLZjxdduEB",
    "created": "2025-07-01T05:49:46.290Z",
    "currency": "EUR",
    "customer_id": null,
    "customer": null,
    "description": "hellow world",
    "refunds": null,
    "disputes": null,
    "mandate_id": null,
    "mandate_data": null,
    "setup_future_usage": null,
    "off_session": null,
    "capture_on": null,
    "capture_method": "automatic",
    "payment_method": "bank_redirect",
    "payment_method_data": {
        "bank_redirect": {
            "type": "BankRedirectResponse",
            "bank_name": null
        },
        "billing": null
    },
    "payment_token": null,
    "shipping": null,
    "billing": {
        "address": {
            "city": "Fasdf",
            "country": "CN",
            "line1": "Fasdf",
            "line2": "Fasdf",
            "line3": null,
            "zip": "560095",
            "state": null,
            "first_name": "Sakil",
            "last_name": "Mostak"
        },
        "phone": null,
        "email": null
    },
    "order_details": null,
    "email": null,
    "name": null,
    "phone": null,
    "return_url": null,
    "authentication_type": "no_three_ds",
    "statement_descriptor_name": null,
    "statement_descriptor_suffix": null,
    "next_action": null,
    "cancellation_reason": null,
    "error_code": null,
    "error_message": null,
    "unified_code": null,
    "unified_message": null,
    "payment_experience": null,
    "payment_method_type": "sofort",
    "connector_label": null,
    "business_country": null,
    "business_label": "default",
    "business_sub_label": null,
    "allowed_payment_method_types": null,
    "ephemeral_key": null,
    "manual_retry_allowed": false,
    "connector_transaction_id": "pay_2VuZLa8gqY25CfYd0j9g_1",
    "frm_message": null,
    "metadata": null,
    "connector_metadata": null,
    "feature_metadata": null,
    "reference_id": "pay_2VuZLa8gqY25CfYd0j9g_1",
    "payment_link": null,
    "profile_id": "pro_3OEvbwtJss77rpYRZpK9",
    "surcharge_details": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_lpvLYRnYLwlFl8HyiR3C",
    "incremental_authorization_allowed": null,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2025-07-01T06:04:46.290Z",
    "fingerprint": null,
    "browser_info": null,
    "payment_method_id": null,
    "payment_method_status": null,
    "updated": "2025-07-01T05:50:08.187Z",
    "split_payments": null,
    "frm_metadata": null,
    "extended_authorization_applied": null,
    "capture_before": null,
    "merchant_order_reference_id": null,
    "order_tax_amount": null,
    "connector_mandate_id": null,
    "card_discovery": null,
    "force_3ds_challenge": false,
    "force_3ds_challenge_trigger": false,
    "issuer_error_code": null,
    "issuer_error_message": null,
    "is_iframe_redirection_enabled": null,
    "whole_connector_response": null
}

EPS

Payment request
{
    "amount": 333,
    "currency": "EUR",
    "confirm": true,
    "capture_method": "automatic",
    "payment_method": "bank_redirect",
    "payment_method_type": "eps",
    "authentication_type": "no_three_ds",
    "description": "hellow world",
    "billing": {
        "address": {
            "zip": "560095",
            "first_name": "Sakil",
            "last_name": "Mostak",
            "line1": "Fasdf",
            "country": "AT",
            "line2": "Fasdf",
            "city": "Fasdf"
        }
    },
    "payment_method_data": {
        "bank_redirect": {
            "eps": {}
        }
    }
}
Payment page
NOTE there is a bug in confirm page by multisafe page where it shows gyropay instead eps. But after success the payment is regestered under eps only in the merchant page

Screenshot 2025-07-01 at 11 34 03 AM
Psync response
{
    "payment_id": "pay_5wcVD9r07H9USnvnkmj8",
    "merchant_id": "merchant_1751348844",
    "status": "succeeded",
    "amount": 333,
    "net_amount": 333,
    "shipping_cost": null,
    "amount_capturable": 0,
    "amount_received": 333,
    "connector": "multisafepay",
    "client_secret": "pay_5wcVD9r07H9USnvnkmj8_secret_gszuW3VnyepDNGQycnkG",
    "created": "2025-07-01T06:03:45.907Z",
    "currency": "EUR",
    "customer_id": null,
    "customer": null,
    "description": "hellow world",
    "refunds": null,
    "disputes": null,
    "mandate_id": null,
    "mandate_data": null,
    "setup_future_usage": null,
    "off_session": null,
    "capture_on": null,
    "capture_method": "automatic",
    "payment_method": "bank_redirect",
    "payment_method_data": {
        "bank_redirect": {
            "type": "BankRedirectResponse",
            "bank_name": null
        },
        "billing": null
    },
    "payment_token": null,
    "shipping": null,
    "billing": {
        "address": {
            "city": "Fasdf",
            "country": "AT",
            "line1": "Fasdf",
            "line2": "Fasdf",
            "line3": null,
            "zip": "560095",
            "state": null,
            "first_name": "Sakil",
            "last_name": "Mostak"
        },
        "phone": null,
        "email": null
    },
    "order_details": null,
    "email": null,
    "name": null,
    "phone": null,
    "return_url": null,
    "authentication_type": "no_three_ds",
    "statement_descriptor_name": null,
    "statement_descriptor_suffix": null,
    "next_action": null,
    "cancellation_reason": null,
    "error_code": null,
    "error_message": null,
    "unified_code": null,
    "unified_message": null,
    "payment_experience": null,
    "payment_method_type": "eps",
    "connector_label": null,
    "business_country": null,
    "business_label": "default",
    "business_sub_label": null,
    "allowed_payment_method_types": null,
    "ephemeral_key": null,
    "manual_retry_allowed": false,
    "connector_transaction_id": "pay_5wcVD9r07H9USnvnkmj8_1",
    "frm_message": null,
    "metadata": null,
    "connector_metadata": null,
    "feature_metadata": null,
    "reference_id": "pay_5wcVD9r07H9USnvnkmj8_1",
    "payment_link": null,
    "profile_id": "pro_3OEvbwtJss77rpYRZpK9",
    "surcharge_details": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_lpvLYRnYLwlFl8HyiR3C",
    "incremental_authorization_allowed": null,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2025-07-01T06:18:45.907Z",
    "fingerprint": null,
    "browser_info": null,
    "payment_method_id": null,
    "payment_method_status": null,
    "updated": "2025-07-01T06:04:06.199Z",
    "split_payments": null,
    "frm_metadata": null,
    "extended_authorization_applied": null,
    "capture_before": null,
    "merchant_order_reference_id": null,
    "order_tax_amount": null,
    "connector_mandate_id": null,
    "card_discovery": null,
    "force_3ds_challenge": false,
    "force_3ds_challenge_trigger": false,
    "issuer_error_code": null,
    "issuer_error_message": null,
    "is_iframe_redirection_enabled": null,
    "whole_connector_response": null
}

MB WAY

Payment
{
    "amount": 333,
    "currency": "EUR",
    "confirm": true,
    "capture_method": "automatic",
    "payment_method": "wallet",
    "payment_method_type": "mb_way",
    "authentication_type": "no_three_ds",
    "description": "hellow world",
    "billing": {
        "address": {
            "zip": "560095",
            "first_name": "Sakil",
            "last_name": "Mostak",
            "line1": "Fasdf",
            "country": "PT",
            "line2": "Fasdf",
            "city": "Fasdf"
        }
    },
    "payment_method_data": {
        "wallet": {
            "mb_way_redirect": {}
        }
    }
}
Payment Response
{
    "payment_id": "pay_5FG8mrPdW4jnQERhOSSW",
    "merchant_id": "merchant_1751348844",
    "status": "requires_customer_action",
    "amount": 333,
    "net_amount": 333,
    "shipping_cost": null,
    "amount_capturable": 333,
    "amount_received": null,
    "connector": "multisafepay",
    "client_secret": "pay_5FG8mrPdW4jnQERhOSSW_secret_OZ8fONDt6UUY4YyCHZRh",
    "created": "2025-07-01T06:10:53.544Z",
    "currency": "EUR",
    "customer_id": null,
    "customer": null,
    "description": "hellow world",
    "refunds": null,
    "disputes": null,
    "mandate_id": null,
    "mandate_data": null,
    "setup_future_usage": null,
    "off_session": null,
    "capture_on": null,
    "capture_method": "automatic",
    "payment_method": "wallet",
    "payment_method_data": {
        "wallet": {},
        "billing": null
    },
    "payment_token": null,
    "shipping": null,
    "billing": {
        "address": {
            "city": "Fasdf",
            "country": "PT",
            "line1": "Fasdf",
            "line2": "Fasdf",
            "line3": null,
            "zip": "560095",
            "state": null,
            "first_name": "Sakil",
            "last_name": "Mostak"
        },
        "phone": null,
        "email": null
    },
    "order_details": null,
    "email": null,
    "name": null,
    "phone": null,
    "return_url": null,
    "authentication_type": "no_three_ds",
    "statement_descriptor_name": null,
    "statement_descriptor_suffix": null,
    "next_action": {
        "type": "redirect_to_url",
        "redirect_to_url": "http://localhost:8080/payments/redirect/pay_5FG8mrPdW4jnQERhOSSW/merchant_1751348844/pay_5FG8mrPdW4jnQERhOSSW_1"
    },
    "cancellation_reason": null,
    "error_code": null,
    "error_message": null,
    "unified_code": null,
    "unified_message": null,
    "payment_experience": null,
    "payment_method_type": "mb_way",
    "connector_label": null,
    "business_country": null,
    "business_label": "default",
    "business_sub_label": null,
    "allowed_payment_method_types": null,
    "ephemeral_key": null,
    "manual_retry_allowed": null,
    "connector_transaction_id": "pay_5FG8mrPdW4jnQERhOSSW_1",
    "frm_message": null,
    "metadata": null,
    "connector_metadata": null,
    "feature_metadata": null,
    "reference_id": "pay_5FG8mrPdW4jnQERhOSSW_1",
    "payment_link": null,
    "profile_id": "pro_3OEvbwtJss77rpYRZpK9",
    "surcharge_details": null,
    "attempt_count": 1,
    "merchant_decision": null,
    "merchant_connector_id": "mca_NafK7LHPOhPMyNsUBOfH",
    "incremental_authorization_allowed": null,
    "authorization_count": null,
    "incremental_authorizations": null,
    "external_authentication_details": null,
    "external_3ds_authentication_attempted": false,
    "expires_on": "2025-07-01T06:25:53.544Z",
    "fingerprint": null,
    "browser_info": null,
    "payment_method_id": null,
    "payment_method_status": null,
    "updated": "2025-07-01T06:10:55.158Z",
    "split_payments": null,
    "frm_metadata": null,
    "extended_authorization_applied": null,
    "capture_before": null,
    "merchant_order_reference_id": null,
    "order_tax_amount": null,
    "connector_mandate_id": null,
    "card_discovery": null,
    "force_3ds_challenge": false,
    "force_3ds_challenge_trigger": false,
    "issuer_error_code": null,
    "issuer_error_message": null,
    "is_iframe_redirection_enabled": null,
    "whole_connector_response": null
}
Confirm page Screenshot 2025-07-01 at 11 20 05 AM Screenshot 2025-07-01 at 11 34 03 AM

SOME PROBLEM WITH CONFIRMATION

Psync
UNABLE TO VERIFY due to issue from multisafepay . Needs alpha testing 

cypress test

  • UNABLE TO TEST REDIRECTION VIA CYPRESS DUE TO CSRF BLOCKING
Screenshot 2025-07-09 at 4 18 29 PM

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

Copy link

semanticdiff-com bot commented Jul 1, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs  11% smaller
  config/deployments/integration_test.toml Unsupported file format
  config/deployments/production.toml Unsupported file format
  config/deployments/sandbox.toml Unsupported file format
  config/development.toml Unsupported file format
  crates/hyperswitch_connectors/src/connectors/multisafepay.rs  0% smaller
  cypress-tests/cypress/e2e/configs/Payment/Multisafepay.js  0% smaller
  cypress-tests/cypress/support/redirectionHandler.js  0% smaller

@Nithin1506200 Nithin1506200 changed the title Multisafepay integration2 feat(connector): Multisafepay integration - EPS | MBWAY | SOFORT Jul 1, 2025
@Nithin1506200 Nithin1506200 marked this pull request as ready for review July 2, 2025 10:11
@Nithin1506200 Nithin1506200 requested review from a team as code owners July 2, 2025 10:11
@Nithin1506200 Nithin1506200 linked an issue Jul 3, 2025 that may be closed by this pull request
2 tasks
@deepanshu-iiitu deepanshu-iiitu changed the title feat(connector): Multisafepay integration - EPS | MBWAY | SOFORT feat(connector): [Multisafepay] Integrate EPS, MBWAY and SOFORT Jul 3, 2025
deepanshu-iiitu
deepanshu-iiitu previously approved these changes Jul 3, 2025
ShankarSinghC
ShankarSinghC previously approved these changes Jul 3, 2025
deepanshu-iiitu
deepanshu-iiitu previously approved these changes Jul 4, 2025
@Nithin1506200 Nithin1506200 self-assigned this Jul 7, 2025
@Nithin1506200 Nithin1506200 added the A-connector-integration Area: Connector integration label Jul 7, 2025
@Nithin1506200 Nithin1506200 requested a review from a team as a code owner July 7, 2025 12:35
deepanshu-iiitu
deepanshu-iiitu previously approved these changes Jul 8, 2025
@Nithin1506200 Nithin1506200 requested review from ShankarSinghC, sai-harsha-vardhan and a team and removed request for ShankarSinghC and sai-harsha-vardhan July 8, 2025 07:50
ShankarSinghC
ShankarSinghC previously approved these changes Jul 9, 2025
@likhinbopanna likhinbopanna added this pull request to the merge queue Jul 14, 2025
Merged via the queue into main with commit 8a9d7d2 Jul 14, 2025
28 of 32 checks passed
@likhinbopanna likhinbopanna deleted the multisafepay_integration2 branch July 14, 2025 10:08
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Multisafe pay : EPS | MBWAY | SOFORT
4 participants