Set up
If you have both a Card Payment Profile and an Open Banking Profile set up, you may want to allow the user to decide how they would like to pay. This can be done by creating a Dynamic Payment Profile.
1.) Create a Dynamic Payment Profile, link a Card Payment Profile and an Open Banking Profile.
2.) Generate a Secret for Dynamic Payment Profile.
3.) Create a Payment Request.
4.) Redirect the user to the Payment Request URL.
5.) Users will have the option to select how they want to pay, either by Card or Open Banking.
A Dynamic Payment Profile cannot receive webhooks and you cannot interact with any other endpoints other than creating a Payment Request. Should you need to interact with the payment for example, to rebill a customer, you can do so on the Card Payment Profile.
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
}'