Payment Update

Purpose

Use the payment update webhook to receive the result of an asynchronous payment request. The event reports a payment status of authorized or refused and includes the payment ID and gateway metadata.

Payment Authorization
Before proceeding to finalise checkout, you must confirm that "status": "authorized" is received for the payment.

Definitions

ParameterMeaning
paymentIdThe unique payment ID from Deliverect Pay
statusThe status from the list of value supported for updates.

Payment Status

StatusDescription
authorizedPayment was successfully authorized
refusedPayment was refused due to issues with the shopper's payment methods (not enough balance, wrong cvc, etc...)
failedPayment failed to be processed due to a technical issue
pendingPayment is being processed
Payload
string

The unique payment ID from Deliverect Pay.

string
enum

The status from the list of values supported for updates:

  • authorized — Payment was successfully authorized
  • refused — Payment was refused due to issues with the shopper's payment methods (not enough balance, wrong CVC, etc.)
  • failed — Payment failed to be processed due to a technical issue
  • pending — Payment is being processed
Allowed:
metadata
object

Gateway details for the payment. Included when status is authorized or refused.

Headers
string
required
Defaults to Deliverect/{version}

Identifies Deliverect as the sender of the webhook, in the format Deliverect/{version}.

string
required
Defaults to {signature}

HMAC-SHA256 signature of the raw request body, generated with your shared secret. Recompute the signature on receipt and compare it to this value to verify the request came from Deliverect (see the HMAC authentication guide).

Response

LoadingLoading…