PG Agnostic Card Forwarding
Make recurring payments across processors
Last updated
Make recurring payments across processors
Last updated
The CIT used to set up recurring payments via MIT uses the PG token. This introduces a connector stickiness since the recurring payments can only go through the connector which issued the token.
To mitigate this we would be storing the Network Transaction ID which will be a chaining identifier for the CIT in which the payment method was saved for off-session payments.
In the following MIT payments basis the enablement of the feature and the availability of Network Transaction ID Hyperswitch will route your payments to the eligible set of connectors. (This will also be used for retries)
Hyperswitch supports the following processors for PG Agnostic Recurring Payments.
Stripe
Adyen
Cybersource
In case you wish more processors to be covered for PG Agnostic Recurring Payments, please submit a feature request here.
To start routing MIT payments across all supported connectors in addition to the connector through which the recurring payment was set up, use the below API to enable it for a business profile
All the payment methods saved with setup_future_usage : off_session
after enabling this feature would now be eligible to be routed across the list of supported connectors during the subsequent MIT payments
Network Transaction ID which is provided by the card network itself is a reference to the original payment authenticated by the customer and authorized for recurring payments. Hence the MIT exemption is expected to have better auth rates with this.
So the internal precedence would be to try the payment with Network Transaction ID if present else the corresponding PG token would be used.
The Hyperswitch dashboard provides UI to configure routing rules for PG Agnostic Recurring Payments. You can choose the profile for which you wish to configure the rule in the Smart Routing Configuration.
Then, you can configure the rule as shown below using the metadata field in the Rule-Based Configuration.
This rule would be used in conjunction with the other active routing rules that you have configured.
Once the rule is configured, you would need to send the following metadata as per the payment request:
-> Metadata to be sent in CITs
-> Metadata to be sent in MITs
According to the above configured rule all the CITs for the specific business profile should be routed through Stripe and MITs through Adyen.