Response example:

Success:

{
    "status": 1,
    "err": "",
    "data": {
        "asmachta": "293942875",
        "cardSuffix": "3253",
        "cardType": "Local",
        "cardTypeCode": 1,
        "cardBrand": "Visa",
        "cardBrandCode": 3,
        "cardExp": "1123",
        "firstPaymentSum": 0,
        "periodicalPaymentSum": 0,
        "status": "שולם",
        "statusCode": 2,
        "transactionTypeId": "1",
        "paymentType": "2",
        "sum": "3",
        "paymentsNum": 0,
        "allPaymentsNum": 1,
        "paymentDate": "22/8/23",
        "description": "תיאור",
        "fullName": "לקוח לקוח",
        "payerPhone": "0509721696",
        "payerEmail": "[email protected]",
        "transactionId": 32324365,
        "transactionToken": "bfc899df35258d5b87126e049614ff76"
    }
}

Failure:

{
    "status": 0,
    "err": {
        "id": 140,
        "message": "לא ניתן לבצע תשלום עם טוקן, קוד מזהה טוקן אינו תקין"
    },
    "data": ""
}
  • status is referred to success or failure (1 or 0 respectively).
  • err - in case of an error, would return as the error code and error message.
  • data - all the details would return here.

Important!

You must NOT reveal the process details such as the processId and the processToken to the paying customer. You may display the asmachta field for unique identification of the transaction.