Payment methods and currencies
You need to know what are the available payment methods and currencies for you.
Check available payment methods and currencies
To do that we have an endpoint that will show you all available currencies and payment methods grouped with their available currencies.
curl --location 'https://order.vouchstar.shop/api/v1/payment/methods/' \--header 'X-Vouchstar-Token: <you-vouchstar-token-here>'
Running this command you should get similar information like so:
{ "currencies": [ "PLN", "EUR", "CHF", "USD", "GBP", "RON", "CNY" ], "payment_methods": [ { "id": "5ddbca9c-deed-40bd-8899-9e29517fc8e1", "name": "BLIK", "type": "PCL_BLIK_REDIRECT", "currencies": [ "PLN" ] }, { "id": "70c06644-82b3-40f1-8447-7cd1500547a2", "name": "Bancontact", "type": "PCL_BANCONTACT", "currencies": [ "EUR" ] }, { "id": "ce7bacc9-af9f-410f-bef2-154711e5d50f", "name": "Neosurf", "type": "PCL_NEOSURF", "currencies": [ "EUR", "PLN", "CHF", "USD", "GBP", "RON", "CNY" ] }, { "id": "1f2da31d-10c5-49d9-9ce9-1aafcf5609c5", "name": "WeChat", "type": "PCL_WECHAT", "currencies": [ "CNY" ] } ]}