Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • status - status of the function execution
    • OK - data exported
    • EMPTY - no data for export
  • response.payment - list of payment options
    • response.payment[i].id - unique identifier of payment option
    • response.payment[i].title - name of payment option
      • response.payment[i].title.ru en - name of payment option in Russian languageEnglish
      • response.payment[i].title.ua ro - name of payment option in Ukrainian languageRomanian
      • ....
      • response.payment[i].title.<LN> - name of the payment option in the particular language. Where , where <LN> is the abbreviation of the that language on the site
    • response.payment[i].desc - description of the payment option
      • response.payment[i].desc.ru en - description of payment option in Russian languageEnglish
      • response.payment[i].desc.ua ro - description of payment option in Ukrainian languageRomanian
      • ....
      • response.payment[i].desc.<LN> - description of the payment option in the particular language. Where , where <LN> is the abbreviation of the that language on the site
    • response.payment[i].payment_method - payment method identifier (see payment/exportMethods function)
    • response.payment[i].enabled - payment option enabled
    • response.payment[i].icon - link to payment option icon (for footer)
    • response.payment[i].link - link to payment gateway
    • response.payment[i].icon_title - icon description
      • response.payment[i].icon_title.ru en - icon description in Russian languageEnglish
      • response.payment[i].icon_title.ua ro - description of icon in Ukrainian languageRomanian
      • ....
      • response.payment[i].icon_title.<LN> - description of the icon in the particular language. Where , where <LN> is the abbreviation of the that language on the site
    • response.payment[i].payment_instruction - payment instruction
      • response.payment[i].payment_instruction.ru en - payment instruction in Russian languageEnglish
      • response.payment[i].payment_instruction.ua ro - payment instruction in Ukrainian languageRomanian
      • ....
      • response.payment[i].payment_instruction.<LN> - payment instruction in language. Where in the particular language, where <LN> is the abbreviation of the that language on the site


Code Block
languagejs
titleQuery example http://<DOMAIN>/api/payment/export/)
{  
    "token": "24a75d0678c49a34030e35baeb376ff3"
}

...

Code Block
languagejs
titleResponse example
{
    "status": "OK",
    "response": {
        "payment": [
            {
                "id": 12,
                "title": {
                    "ruen": "БезналичныйCashless расчетpayment",
                    "uaro": "БезготівковийTransfer розрахунокbancar"
                },
                "desc": {
                    "ruen": "",
                    "uaro": ""
                },
                "payment_method": 1,
                "enabled": true,
                "icon": null,
                "link": "",
                "icon_title": {
                    "ruen": "",
                    "uaro": ""
                },
                "payment_instruction": {
                    "ruen": "",
                    "uaro": ""
                }
            },
            {
                "id": 13,
                "title": {
                    "ruen": "НаличнымиIn cash",
                    "uaro": "ГотівкоюNumerar"
                },
                "desc": {
                    "ruen": "",
                    "uaro": ""
                },
                "payment_method": 1,
                "enabled": true,
                "icon": null,
                "link": "",
                "icon_title": {
                    "ruen": "",
                    "uaro": ""
                },
                "payment_instruction": {
                    "ruen": "",
                    "uaro": ""
                }
            },
            {
                "id": 14,
                "title": {
                    "ruen": "Онлайн-оплатаOnline кредитнойpayment картой(Stripe)",
                    "uaro": "Онлайн-оплатаPlata кредитноюonline карткою(Stripe)"
                },
                "desc": {
                    "ruen": "",
                    "uaro": ""
                },
                "payment_method": 2,
                "enabled": true,
                "icon": "http:\/\/my.horoshopcartum.dev\/content\/images\/50\/34905029336611.jpg",
                "link": "https:\/\/liqpay.com",
                "icon_title": {
                    "ruen": "Принимаем оплатуWe accept payments with Visa\/Mastercard черезvia LiqpayStripe",
                    "uaro": "ПринимаемAcceptăm plăți оплатуcu Visa\/Mastercard через Liqpay"
                },
                "payment_instruction": {
                    "ru": "",
                    "ua": ""
                }
            },
            {
                "id": 15,
                "title": {
                    "ru": "Оплата при получении",
                    "ua": "Післяплата"
                },
                "desc": {
                    "ru": "",
                    "ua": ""
                },
                "payment_method": 1,
                "enabled": true,
                "icon": null,
                "link": "",
                "icon_title": {
                    "ru": "",
                    "ua": " prin Stripe"
                },
                "payment_instruction": {
                    "ruen": "",
                    "uaro": ""
                }
            },
            {
                "id": 1615,
                "title": {
                    "ruen": "Приват24Cash on delivery",
                    "uaro": "Приват24Plată la livrare"
                },
                "desc": {
                    "ruen": "",
                    "uaro": ""
                },
                "payment_method": 31,
                "enabled": true,
                "icon": "http:\/\/my.horoshop.dev\/content\/images\/11\/67169594599140.jpg"": null,
                "link": "https:\/\/privat24.ua",
                "icon_title": {
                    "ruen": "Принимаем оплату через Privat24",
                    "uaro": "Принимаем оплату через Privat24"
                },
                "payment_instruction": {
                    "ruen": "",
                    "uaro": ""
                }
            },
                    {
                "id": 1716,
                "title": {
                    "ruen": "PayPal",
                    "uaro": "PayPal"
                },
                "desc": {
                    "ruen": "",
                    "uaro": ""
                },
                "payment_method": 4,
                "enabled": false,
                "icon": null,
                "link": "https:\/\/www.paypal.com\/",
                "icon_title": {
                    "ruen": "PayPal",
                    "uaro": "PayPal"
                },
                "payment_instruction": {
                    "ruen": "",
                    "uaro": ""
                }
            }
        ]
    }
}