process webhook

This block is part of the rabosmartpay group and was last modified in core v15.0.2.

process webhook v15.0.2

Handles a Smart Pay webhook end to end. The notification carries no order, only a token, so this block verifies the notification's signature, pulls the changed orders with its token, and verifies every page of results before any of them reaches order results. Wire the request body into payload. Smart Pay hands each result out once: store what you act on before the endpoint answers.

In pins 2 + flow
  • flow
  • connection rabosmartpayconnection required
  • request body value required

    The body Smart Pay posted, as the raw string or the parsed object : the signature covers the values, so both verify.

Out pins 9 + flow
  • flow
  • connection rabosmartpayconnection
  • verified condition

    Gate everything on this. False means the notification was not signed with the provider's signing key.

  • order results array<object>

    One entry per changed order, each signature-checked: merchant_order_id, order_id, status, paid, paid_amount, total_amount, currency, transaction_id, payment_brand, status_at, transactions.

  • count number
  • event name value

    merchant.order.status.changed.

  • webshop id value

    The point of interaction (webshop) the notification is for.

  • success condition
  • error value

    Smart Pay's own message, e.g. merchantOrderId should only contain alphanumeric characters, or a sentinel for a problem in the wiring.

  • error code value

    Smart Pay's code (5017 validation, 5001 authorization) or a sentinel like SIGNATURE_MISMATCH.

rabo webhook
smart pay notification
order status changed
payment hook
verify signature

Version history

Introduced in v15.0.2.

Service documentation

External API reference This block wraps a third-party service. Click here for the service's own documentation of the underlying endpoint.
Back to rabosmartpay Return to the main group to view all sub-groups Back to webhooks Return to the group to view all blocks within this group