juspay/hyperswitch

[Cypress] : Create Paystack Connector Test Configuration for Eft bank redirect payment method

Open

#9,624 opened on Sep 30, 2025

View on GitHub
 (4 comments) (0 reactions) (1 assignee)Rust (4,676 forks)batch import
C-featureS-awaiting-triagehacktoberfest

Repository metrics

Stars
 (42,690 stars)
PR merge metrics
 (Avg merge 6d 22h) (213 merged PRs in 30d)

Description

Feature Description

This task involves adding comprehensive test configuration for the Paystack connector in Cypress, specifically for EFT bank redirect payments. The Paystack connector is already implemented in the codebase but lacks proper test coverage for its EFT bank redirect functionality.

Pre-requisites:

  • Cypress is the testing framework that Hyperswitch is using to run automated tests. Having good grip on Javascript to work on Cypress is a must.
  • Understanding of Open Banking UK payment flows and bank redirect mechanisms
  • Please follow the README for guidelines on file structure, formatting and instructions on how to set up and run Cypress.

Possible Implementation

The Paystack connector supports:

  • Payment Method: bank_redirect
  • Payment Method Type: eft
{
            "name": "PAYSTACK",
            "display_name": "Paystack",
            "description": "Paystack is a Nigerian financial technology company that provides online and offline payment solutions to businesses across Africa.",
            "category": "payment_gateway",
            "integration_status": "sandbox",
            "supported_payment_methods": [
                {
                    "payment_method": "bank_redirect",
                    "payment_method_type": "eft",
                    "payment_method_type_display_name": "EFT",
                    "mandates": "not_supported",
                    "refunds": "supported",
                    "supported_capture_methods": [
                        "automatic",
                        "sequential_automatic"
                    ],
                    "supported_countries": [
                        "KEN",
                        "GHA",
                        "ZAF",
                        "NGA",
                        "CIV"
                    ],
                    "supported_currencies": [
                        "NGN",
                        "GHS",
                        "KES",
                        "USD",
                        "ZAR"
                    ]
                }
            ],
            "supported_webhook_flows": [
                "payments",
                "refunds"
            ]
        },

Possible Implementation

Steps:

  1. Create the Paystack connector configuration file under the Payment configs directory: Payment Configs Directory

  2. Add the Paystack test configuration file Paystack.js, following the format used in the Stripe.js connector.

  3. In the Paystack connector config, map the test cases and statuses properly for Open Banking UK flows. To do this, use the below dashboard credentials where Paystack should be configured, test the flows, and then assign the correct statuses.

URL: https://app.hyperswitch.io Username, Password: Please drop a comment requesting credentials. The Creds are only shared on request

Postman collection for reference https://www.postman.com/altimetry-participant-63653904/hyperswitch

Note:

Test cases for other payment methods should be skipped

Submission Process: Ask the maintainers for assignment of the issue, you can request for assignment by commenting on the issue itself. Once assigned, submit a pull request (PR). Maintainers will review and provide feedback, if any. Maintainers can unassign issues due to inactivity, read more here. Refer here for Terms and conditions for the contest.

Have you spent some time checking if this feature request has been raised before?

  • I checked and didn't find a similar issue

Have you read the Contributing Guidelines?

Are you willing to submit a PR?

None

Contributor guide