Skip to content

revolut.php

Revolut Payment Gateway integration for managing payment initialization, order status verification, and transaction confirmation.

API Methods

Method Action Description
check get Checks the current status of a Revolut order to verify if payment has been completed.
confirm get Confirms a completed Revolut order and processes the associated invoice.
init get Initializes a new Revolut payment session for a specific invoice.

revolut/check

Checks the current status of a Revolut order to verify if payment has been completed.

HTTP method: POST

Parameters:

Parameter Required Type Description
action ✅ string Method identifier: check
token ✅ string Authentication token for API access.
order_id ✅ integer The unique identifier of the order to check status.

Request example

curl -s "https://invapi.hostkey.com/revolut.php" -X POST \
--data "action=check" \
--data "token=VALUE" \
--data "order_id=VALUE"
Success response example
{
"result": "OK",
"action": "check",
"status": "completed",
"order_id": 12345,
"amount": 50.0,
"currency": "EUR"
}
Error examples
{
"code": -1,
"message": "Missing order_id parameter"
}

revolut/confirm

Confirms a completed Revolut order and processes the associated invoice.

HTTP method: POST

Parameters:

Parameter Required Type Description
action ✅ string Method identifier: confirm
token ✅ string Authentication token for API access.
order_id ✅ integer The unique identifier of the order to be confirmed.

Request example

curl -s "https://invapi.hostkey.com/revolut.php" -X POST \
--data "action=confirm" \
--data "token=HOSTKEY_TOKEN" \
--data "order_id=VALUE"
Success response example
{
"result": "OK",
"message": "Payment confirmed",
"paid": true,
"status": "already_processed"
}
Error examples
{
"code": -1,
"message": "Missing order_id parameter"
}

revolut/init

Initializes a new Revolut payment session for a specific invoice.

HTTP method: POST

Parameters:

Parameter Required Type Description
action ✅ string Method identifier: init
token ✅ string Authentication token for API access.
invoice_id ✅ integer The unique identifier of the invoice to pay.
force_subscr ❌ integer Flag to force subscription creation during initialization.

Request example

curl -s "https://invapi.hostkey.com/revolut.php" -X POST \
--data "action=init" \
--data "token=HOSTKEY_TOKEN" \
--data "invoice_id=VALUE"
Success response example
{
"result": "OK",
"action": "init",
"payment_url": "https://revolut.com/pay/example_link",
"amount": 100.5,
"currency": "EUR"
}
Error examples
{
"code": -1,
"message": "Revolut is not available for USD customers"
}
question_mark
Is there anything I can help you with?
question_mark
AI Assistant ×