hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

[FEATURE] Create a dummy connector for internal and external testing of payments and refunds flows

Open bernard-eugine opened this issue 1 year ago • 1 comments

Feature Description

A dummy test connector needs to be created with the ability to process all the payment methods available on Hyperswitch. This dummy connector will be useful for internal and external testing and it will be used extensively by those trying to test or integrate Hyperswitch without setting up any active accounts with any of the processors.

The dummy test connector will be able to simulate most basic scenarios (success/failure/pending) for all the available payment methods by having separate test payment method data for each of these flows. Payment failure can include further breakdown in scenarios according to the payment methods.

For example, there should be separate test card numbers for simulating success, failure, pending statuses of 3DS and Non 3DS flows. Under failure, different test card numbers should enable simulating errors like invalid card info, insufficient funds, declined by gateway, declined by issuing bank, declines due to bad fraud score, etc.

Possible Implementation

We would need to create a dummy connector to test all the payment flows, refund flows, webhooks, etc.

The two major tasks are:

  1. Server implementation for dummy connector for the following endpoints a. payments b. refunds c. webhooks

  2. Integrating Hyperswitch with the dummy connector for the following endpoints a. payments b. refunds c. webhooks

  • [ ] Template code for dummy connector #970
  • [ ] Routes for dummy connector #980
  • [ ] Payment code for dummy connector
  • [ ] Payment routes for dummy connector #980
  • [ ] Refund code for dummy connector
  • [ ] Refund routes for dummy connector
  • [ ] Payments sync code for dummy connector
  • [ ] Payments sync routes for dummy connector

Cards: Non- 3DS payments flow https://github.com/juspay/hyperswitch/issues/727

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

  • [X] I checked and didn't find similar issue

Have you read the Contributing Guidelines?

Are you willing to submit a PR?

No, but I'm happy to collaborate on a PR with someone else

bernard-eugine avatar Mar 09 '23 13:03 bernard-eugine

@bernard-eugine @manojradhakrishnan - I have assigned this to @ThisIsMani

koushikg14 avatar Apr 12 '23 08:04 koushikg14