NOTE : Above Request Body has only the dummy data, please refer to the request headers and parameters table above to generate the payload and headers.
Important Notes:
Merchants should pass “paymentModeConfig” block only if the merchant wants to manage the instrument to be displayed on the checkout page. Otherwise, the “paymentModeConfig” block should be ignored which will show the default instruments enabled at PhonePe’s end.
Either enabledPaymentModes or disabledPaymentModes is required, if both are present API will throw error.
paymentModeConfig.enabledPaymentModes: This will ensure the list of Instruments passed within the “enabledPaymentModes” block will only be shown on the Checkout Page while all other enabled instruments at PhonePe end won’t be displayed.
paymentModeConfig.disabledPaymentModes: This will ensure the list of Instruments passed within the “disabledPaymentModes” block will not be shown on the Checkout Page while all other enabled instruments at PhonePe end will be displayed.
Special Case for the CARD instrument Ensure to pass the cardTypes as well along with type.
If “enabledPaymentModes.type” = “CARD” but “enabledPaymentModes.cardTypes” is not passed, then the Card option will be displayed based on the instrument enabled at PhonePe’s end [CreditCard (and/or) Debit Card].
If “enabledPaymentModes.type” = “CARD” and “enabledPaymentModes.cardTypes” = [“DEBIT_CARD”] is passed, then the Debit Card option only will be allowed on the PhonePe checkout.
If “disabledPaymentModes.type” = “CARD” but “disabledPaymentModes.cardTypes” is not passed, then the Card option won’t be disabled and user will be displayed based on the instrument enabled at PhonePe’s end [CreditCard (and/or) Debit Card].
If “disabledPaymentModes.type” = “CARD” and “disabledPaymentModes.cardTypes” = [“DEBIT_CARD”] is passed, then the Debit Card option alone will be disabled on the PhonePe checkout.
If “disabledPaymentModes.type” = “CARD” and “disabledPaymentModes.cardTypes” = [“DEBIT_CARD”, “CREDIT_CARD”] is passed, only then both Debit Card and Credit Card will be disabled on the PhonePe checkout.