Payments

New payment

POST /fast-events/v1/payments

Create a new payment request.

Example request

$ curl \
  -X POST \
  -H "X-FE-API-KEY: pcXFwrEhmATzplQZ" \
  -H "Content-Type: application/json" \
  -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \
  -d '{"amount":20.00,"description":"1 Silver ticket","direct_type":1}' \
   https://exampledomain.com/wp-json/fast-events/v1/payments

Example response

{
    "order_id": 14794,
    "qrcode": "https://ideal.nl/ideal-qr/qr/get/b35e32ab-f298-4103-8866-78e2e820123b",
    "email": "[email protected]",
    "checkout_url": "https://mollie.com/paymentscreen/issuer/select/ideal/Wpgujc9R6s",
    "payment_status": "open"
}

The qrcode field contains the link to a qrcode image that can be scanned by a customer.

Warning

The qrcode field can also contain a data uri. For example data:image/png;base64,iVBORw0KGgoAAAAN...

Changelog

Version

Description

1.0

Introduced.


Payment status

GET /fast-events/v1/payments/(integer: id)

Retrieve the status of a payment.

Example request

$ curl \
  -H "X-FE-API-KEY: pcXFwrEhmATzplQZ" \
  -H "Content-Type: application/json" \
  -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \
   https://exampledomain.com/wp-json/fast-events/v1/payments/14794

Example response

{
    "order_id": 14794,
    "payment_status": "paid"
}

Changelog

Version

Description

1.0

Introduced.