I want to access the payment methods available in my store through my API. I have explored the documentation but didn’t understand how to retrieve the list of available payment methods. Currently, I have enabled Stripe, COD, and Bank Transfers as payment options.
I need a response similar to this:
{
"status": 200,
"message": "Requested results are generated.",
"data": [
{
"method_id": 186,
"button_text": "Make Payment",
"name": "Credit/Debit Card",
"description": "",
"images": null
},
{
"method_id": 600,
"name": "Stripe",
"description": "stripe description",
"images": null,
},
{
"method_id": 6,
"name": "COD",
"description": "COD fees of 5 AED will apply.",
"images": null
}
]
}