hyperswitch
hyperswitch copied to clipboard
[FEATURE] Create a dummy connector for internal and external testing of payments and refunds flows
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:
-
Server implementation for dummy connector for the following endpoints a. payments b. refunds c. webhooks
-
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?
- [X] I have 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 @manojradhakrishnan - I have assigned this to @ThisIsMani