hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

[FEATURE] add support for collecting and refunding charges on payments

Open kashif-m opened this issue 9 months ago • 0 comments

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 in payment_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?

Are you willing to submit a PR?

Yes, I am willing to submit a PR!

kashif-m avatar May 15 '24 17:05 kashif-m