#Confused about the allowed_payment_method_types field

1 messages · Page 1 of 1 (latest)

narrow thunder
#

The allowed_payment_method_types has confusing documentation.

On this site:
https://docs.dodopayments.com/features/payment-methods#payment-method-not-appearing
it says:
"By default, all eligible payment methods appear automatically. "

But on this site:
https://docs.dodopayments.com/api-reference/checkout-sessions/create
it says:
"Customers will never see payment methods that are not in this list."
and
"Disclaimar: Always provide 'credit' and 'debit' as a fallback.
If all payment methods are unavailable, checkout session will fail."

So what must I then include? Nothing? Or both credit and debit always?
The docs seem contradictory.

Dodo Payments Documentation

Unified endpoint for creating checkout sessions for all types of billing requirements.

Dodo Payments Documentation

Complete guide to payment methods supported by Dodo Payments, including credit/debit cards, digital wallets, BNPL, UPI/Rupay, European options, and how to configure them for your checkout.

ivory irisBOT
# narrow thunder The allowed_payment_method_types has confusing documentation. On this site: ht...

They’re describing two different behaviors:

✅ If you omit allowed_payment_method_types

  • All eligible payment methods are shown automatically.
  • You don’t need to include anything.
  • This is the default behavior.

✅ If you provide allowed_payment_method_types

  • Only the methods in that list will appear.
  • Nothing outside the list will be shown.
  • You should include 'credit' and 'debit' as fallback options.
  • If none of the listed methods are available, the session fails.

What to do?

  • ✅ Want automatic behavior → Don’t send the field
  • ✅ Want strict control → Send the field + include credit and debit

No contradiction — just default vs override behavior.


Helpful Links

Dodo Payments Documentation

Unified endpoint for creating checkout sessions for all types of billing requirements.

leaden flax