hyperswitch
hyperswitch copied to clipboard
[FEATURE] add support for collecting and refunding charges on payments
Feature Description
Charges can be collected on payments for collecting fees for resellers. Adyen, Stripe allows creating charges on payment intents using their marketplace platform.
The support for collecting charges on payments and refunding charges needs to be added.
Possible Implementation
Payments
- A new field
charges
is introduced to read charge specific details - Charge details are sent to the connector where request is transformed and sent
-
charge_id
is returned by the connector which is persisted inpayment_attempt
table. This can later be used for refunding charges
Refunds
- A new field
charges
is introduced to read charge id and refund options -
charges
created during payments is fetched and used as a reference - Charge details are sent to the connector where request is transformed and sent
Have you spent some time checking if this feature request has been raised before?
- [X] I checked and didn't find a similar issue
Have you read the Contributing Guidelines?
- [X] I have read the Contributing Guidelines
Are you willing to submit a PR?
Yes, I am willing to submit a PR!