Sending receipts and notifications to customer

Sending receipt

To form and send an electronic sales receipt to customers after performing a payment, pass all the positions indicated in the receipt in the payment request.

The data for the receipt is passed as a JSON object, which must be encoded in Base64 and sent in the payment request in the receipt_data parameter. The JSON object structure is given in the receiptdata model in Gate API.

Example of the receipt data for passing

Initial JSON object:
{  
   "receipt_data":{  
      "positions":[  
         {  
            "quantity":3,
            "amount":10000,
            "tax":18,
            "tax_amount":1800,
            "description":"Design frame"
         }
      ],
      "total_tax_amount":1800,
      "common_tax":1800       
   }
}
The same array, encoded in Base64, to be sent to Payment Page in the payment request:
receipt_data: "eyAgCiAgICAgICJwb3NpdGlvbnMiOlsgIAogICAgICAgICB7ICAKICAgICAgICAgICAgInF1YW50aXR5IjozLAogICAgICAgICAgICAiYW1vdW50IjoxMDAwMCwKICAgICAgICAgICAgInRheCI6MTgsCiAgICAgICAgICAgICJ0YXhfYW1vdW50IjoxODAwLAogICAgICAgICAgICAiZGVzY3JpcHRpb24iOiLQoNCw0LzQutCwINGBINC00LjQt9Cw0LnQvdC+0LwiCiAgICAgICAgIH0KICAgICAgXSwKICAgICAgInRvdGFsX3RheF9hbW91bnQiOjE4MDAsCiAgICAgICJjb21tb25fdGF4IjoxODAwICAgICAgIAogICB9"

Sending notification

In the case of payments on the cards of Belarusian banks, it is possible to set up sending notifications to customers by email about payment completion. For more information or to enable and configure the service, refer to your Key Account Manager.