Export of payment methods

Function payment/exportMethods (http://<DOMAIN>/api/payment/exportMethods/)

Parameters:

  • token - authorization key obtained through the auth function

Response:

  • status - status of the function execution
    • OK - data exported
    • EMPTY - no data for export
  • response.payment - list of delivery options
    • response.paymentMethods[i].id - unique identifier of payment method
    • response.paymentMethods[i].title - name of payment method
    • response.paymentMethods[i].is_simple - payment method is simple (boolean)
      • true - after placing an order the user will be immediately redirected to the page with a thank you about the order
      • false - the user will be immediately redirected to the payment gateway (if the option to confirm the possibility of payment by the manager is disabled)


Query example http://<DOMAIN>/api/payment/exportMethods/
{  
    "token": "24a75d0678c49a34030e35baeb376ff3"
}
Response example
{
    "status": "OK",
    "response": {
        "paymentMethods": [
            {
                "id": 1,
                "title": "Manual payment",
                "is_simple": 1
            },
            {
                "id": 2,
                "title": "PayU",
                "is_simple": 0
            },
            {
                "id": 3,
                "title": "Stripe",
                "is_simple": 0
            },
            {
                "id": 4,
                "title": "PayPal Native",
                "is_simple": 0
            }
        ]
    }
}