Updating the server with the transaction's status and details would be performed by an HTTPS API method that you will be providing us when calling to create a payment process, in the notifyUrl param.

This URL is an endpoint in your site, which Grow's server will call to update you about the transaction. When received this call (you could save data to DB etc. and then) you should call ApproveTransaction.

The method takes in parameters as an HTTP POST, the same way as you would send the data to the CreatePaymentProcess method and NOT as JSON.

Please note: The payment will go through even if you did not Approve Transaction.


    {
        "err": "",
        "status": "1",
        "data": {
            "asmachta": "0289199",
            "cardSuffix": "1177",
            "cardType": "Local",
            "cardTypeCode": "1",
            "cardBrand": "Mastercard",
            "cardBrandCode": "2",
            "cardExp": "0126",
            "firstPaymentSum": "0",
            "periodicalPaymentSum": "0",
            "status": "שולם",
            "statusCode": "2",
            "transactionTypeId": "6",
            "paymentType": "2",
            "sum": "269",
            "paymentsNum": "0",
            "allPaymentsNum": "1",
            "paymentDate": "21/12/21",
            "description": "TEST TEST",
            "fullName": "John Smith",
            "payerPhone": "0541234567",
            "payerEmail": "[email protected]",
            "transactionId": "145111110",
            "transactionToken": "c68d98D4c3f19b30hgy7362e9g5g5g5862",
            "processId": "332002",
            "processToken": "f01644c3f19b30h825eg5g5g5g3b0",
            "customFields": {
                "cField1": "3ba543214f1"
            }
        }
    }

  • 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.

Test

If you wish to test this call you can use updateMyUrl function.

This is a Get function that simulates our server-to-server call. You need to insert your server address in the URL.

This will help you debug the service, and/or insert logs if necessary.

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