method_code. The SDK ships a PaymentMethodCode
enum so you can reference codes type-safely instead of hardcoding strings.
Reading method metadata
The full method descriptor (label, icon, category) is returned by the API on each attempt’smethod object — read it from there rather than hardcoding it:
Categories
PaymentMethodCategory groups methods: card, mobile_money, bank_transfer,
wallet, ussd, qr_code, crypto, other.
Method codes are stable identifiers. The set of methods available to a payment depends on
your configured gateway accounts and routing rules for the country and currency.