get payment

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

get payment v15.0.2

Reads an order as Smart Pay holds it now: was it paid, with what, and which transaction to refund. The answer that does not depend on the customer coming back or on a webhook arriving : Smart Pay asks for it as the fallback to the webhook, not as a polling loop.

In pins 2 + flow
  • flow
  • connection rabosmartpayconnection required
  • order id value required

    Smart Pay's order id, from create payment : not your own merchant order id.

Out pins 15 + flow
  • flow
  • connection rabosmartpayconnection
  • paid condition

    True only when the order is COMPLETED. This is the pin to gate fulfilment on.

  • status value

    IN_PROGRESS, COMPLETED, CANCELLED or EXPIRED.

  • order id value
  • merchant order id value
  • total amount number

    In cents.

  • paid amount number

    In cents, the sum of the successful payment transactions.

  • currency value
  • transaction id value

    The transaction that took the money. A refund names this.

  • payment brand value

    What the customer paid with, e.g. IDEAL.

  • transactions array<object>
  • order object
  • 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.

order status
payment status
was it paid
check payment

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 payments Return to the group to view all blocks within this group