Server-to-Server Callback

Transaction Status Update via Webhook for CreatePaymentLink

An HTTPS callback will be sent to your server to notify the completion of the transaction.

The callback will be made to the endpoint URL specified in the notifyUrl parameter of the CreatePaymentLink API request.

Upon receiving the update, you are required to execute the ApproveTransaction API call.
This call serves as an acknowledgment that your system has received the server notification and is aware of the transaction status.

Please note: The transaction will be processed even if the ApproveTransaction request is not executed or fails.

{
    "err": "",
    "status": "1",
    "data": {
        "asmachta": "373371897",
        "cardSuffix": "3353",
        "cardType": "Local",
        "cardTypeCode": "1",
        "cardBrand": "Visa",
        "cardBrandCode": "3",
        "cardExp": "1125",
        "firstPaymentSum": "0",
        "periodicalPaymentSum": "0",
        "status": "שולם",
        "statusCode": "2",
        "transactionTypeId": "1",
        "paymentType": "2",
        "sum": "13",
        "paymentsNum": "0",
        "allPaymentsNum": "1",
        "paymentDate": "02/12/24",
        "description": "",
        "fullName": "דוד דוידי",
        "payerPhone": "0501111111",
        "payerEmail": "[email protected]",
        "transactionId": "5133668",
        "transactionToken": "818bf8333e0e37b8eb67a3f0c53ef8e7",
        "paymentLinkProcessId": "1383333",
        "paymentLinkProcessToken": "7ab1c9133444a85050ea8007ebf24ff2",
        "productData": [
            {
                "product_id": "0",
                "name": "פמפסים",
                "catalog_number": "",
                "vat": "1",
                "quantity": "1",
                "price": "1",
                "price_mark": "0"
            },
            {
                "product_id": "0",
                "name": "אגרטל שקוף",
                "catalog_number": "",
                "vat": "1",
                "quantity": "1",
                "price": "2",
                "price_mark": "0"
            }
        ],
        "processId": "13809798",
        "processToken": "10e0f8f61fc31b9cfe4f1914762a78a9"
    }
}

Testing the Server-to-Server Callback

You can test the server-to-server callback using the updateMyUrl endpoint.

This GET request simulates the callback notification by sending an HTTP request to the URL you specify.

Replace MySiteURL with your server's endpoint to test how it handles incoming callback data.

This tool allows you to debug the integration and verify your server’s handling of incoming notifications, including any logging as needed.

https://sandbox.meshulam.co.il/api/light/server/1.0/updateMyUrl/?url=MySiteURL