hyperswitch
hyperswitch copied to clipboard
refactor(mandates): add validations for recurring mandates using payment_method_id
When a setup mandate is done with customer, when doing recurring payment using payment_method_id
, add validation to match on customer_id such that they match on setup mandate as well as recurring.
Also add validation not to pass both mandate_id
and recurring_details