Payment Refund
Primer notifies you with a PAYMENT.REFUND
Webhook when a refund request has been fully processed by a payment processor and the refund has reached a final state.
Check the transaction with the most recent transactionType: "REFUND"
in the transactions
array:
- if
processorStatus
isSETTLED
, the refund was successful and the funds have been returned to the customer - if
processorStatus
isFAILED
, the refund was unsuccessful
Learn more about how Primer handles webhooks.
Headers
X-Signature-Primary
An HMAC signature generated using the webhook payload and a shared signing secret. This is then converted to a base64 encoded string.
X-Signature-Secondary
A secondary signature that is added when you have rotated your secret within the past 24 hours.
Payload
The payload of this webhook request is an object.
eventType
The type of the webhook raised. PAYMENT.REFUND
in this case.
date
The date-time that the webhook was sent.
notificationConfig
The notification configuration details.
version
The payload version
payment
Response
200
any
Return a 200 status to indicate that the data was received successfully.