Payment Request

To obtain a Payment Request you will need to call our API and request a payment. This should be done from your back-end to prevent users from accessing your payment profile credentials.

To do this you need to send a POST request to the following url

https://api.vendreo.com/v1/request-payment (Full example: docs)

Single Payments

For single payments see the example below.

curl --location --request POST 'https://api.vendreo.com/v1/request-payment' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer {AUTH_TOKEN}' \
  --data-raw '{
    "application_key": "{APPLICATION_KEY}",
    "amount": "120",
    "country_code": "GB",
    "currency": "GBP",
    "description" : "Product Description",
    "options": "optional string ",
    "payment_type": "single",
    "redirect_url": "https://example.com/success",
    "failed_url": "https://example.com/failed",
    "reference_id": 12312312
  }'

Users will be redirected to redirect_url where the payment process will start.

Disabling specific banks

You may want to disable specific banks from being able to make payments. To do this, you must provide the disable_payment_institutions array in the request.

To see the full list of banks available, please see the Active Institutions page.

  {
    "disable_payment_institutions": ["bank1", "bank2"]
  }