Retrieve available payment methods
async getPaymentsMethods( parameters?: PaymentMethodsFilters ): Promise<PaymentMethod[]>
Show PaymentMethodsFilters properties
currencies: 'USD' // or currencies: ['USD', 'EUR', 'GBP']
countries: 'FR' // or countries: ['FR', 'DE', 'ES']
interface PaymentMethod { id: string; name: string; type: string; currencies: string[]; countries: string[]; }
const payviox = new Payviox('your_api_token'); const methods = await payviox.getPaymentsMethods(); console.log('Available payment methods:', methods);
try { const methods = await payviox.getPaymentsMethods(); if (methods.length === 0) { console.warn('No payment methods available'); } } catch (error) { console.error('Failed to fetch payment methods:', error); }