Enables our merchants to custom-define filtering of payment methods associated with an order.
order_meta.payment_methods_filters
object in the Create Order API.
order_meta.payment_methods_filters
is not defined, enabled payment methods will be made available to the user by default.payment_methods_filters
object while creating an order.
Refer to the below defined sample payment_methods_filters
object which exhaustively covers all possible filters possible. As per merchant’s need, they can define required filters at an order level.
card_schemes
must be uppercase (e.g., “VISA”, “RUPAY”).card_issuing_bank
, use exact values provided by Cashfree.card_bins
and card_emi_bins
should contain valid BINs. Only cards with these BINs will be eligible.card_suffix
must be the last 4 digits of the card number.card_bins
and card_suffix
mandatorily.card_emi_schemes
, card_emi_issuing_bank
) must be used only if you include credit_card_emi
or debit_card_emi
in methods.values
.card_emi_tenure
range from 3 to 36 months.card_schemes
:
card_issuing_bank
are provided in the following document.
Merchants can refer to the above documentation and directly use these values to define card_issuing_bank
object.Use Case | Configuration |
---|---|
Allow only credit and debit cards | Set "methods.values" to ["credit_card", "debit_card"] |
Allow only cards from Axis Bank | Use the card_issuing_bank filter with value "AXIS" |
Allow only specific card BINs | Use the card_bins filter with values like "451457" |
Allow only a single card | Use both card_bins and card_suffix filters |
Allow only VISA credit card EMI for 3 months | Use "methods.values" with "credit_card_emi" , set card_emi_schemes to "VISA" , and card_emi_tenure to 3 |