When the Generic Payment webhook executes, it sends a JSON request body to the payment gateway. The request body contains information about the order and about the method of payment. The gateway processes the request and returns a JSON response body that contains information about the transaction, including whether the transaction succeeded.