juspay / hyperswitch

An open source payments switch written in Rust to make payments fast, reliable and affordable
https://hyperswitch.io/
Apache License 2.0
11.53k stars 1.22k forks source link

[FEATURE] Supporting processors token in Payments API #5394

Closed inventvenkat closed 1 month ago

inventvenkat commented 1 month ago

Feature Description

During the transition phase of Hyperswitch, Merchant should be able to send the processor's token to Hyperswitch to process MIT transaction. This is because, Merchant will not have the card data to migrate from Processor to Hyperswitch.

Possible Implementation

#Solution 1 In payments create+confirm API, we will add new enum processor_token in type under recurring_details to support connector data. We will start supporting Bambora’s and we will slowly adopt every connectors.

Expected Flow:

Technical changes information:

In V1 we can add if else to handle the flow, in v2, we will follow separate handler with the same route.

Flow shall be in the following order,

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

Have you read the Contributing Guidelines?

Are you willing to submit a PR?

None

tinu-hareesswar commented 1 month ago