Rooveo Payments API
Connect your platform to the Rooveo payment gateway. Send customers to a Rooveo-hosted checkout page, or process payments straight from your own server through our REST API. This guide covers both options, plus refunds and order status checks.
General information
Every API call is an HTTPS POST request with a JSON body. Responses are also returned as JSON. The full endpoint address is your base URL followed by the endpoint path.
| Endpoint | Purpose |
|---|---|
| {base_url}/process_payment.php | Submit a card, Google Pay, Apple Pay or PayPal payment |
| {base_url}/process_refund.php | Refund a completed payment, in full or in part |
| {base_url}/get_order_status.php | Look up the current status of a payment |
Your live base URL and API token are issued by your Rooveo account manager during onboarding. They are not published in this guide.
Authentication
Authenticate every request with a Bearer token in the Authorization header, and send the body as JSON.
Authorization: Bearer YOUR_API_TOKEN Content-Type: application/json
Your token identifies your merchant account. Store it on your server only and never expose it in browser code or mobile apps.
Payment flows
Rooveo supports two ways of taking payments. Choose the one that fits how your checkout is built.
Hosted checkout
The customer is sent to a secure page hosted by Rooveo, where they enter their billing and payment details. 3D Secure checks also take place on this page.
Server-to-server (S2S)
You collect the payment details in your own checkout and send them to Rooveo directly through the API.
Hosted checkout: how a payment moves
- The customer opens the hosted payment page URL, fills in their billing information, chooses a payment method and enters their payment details.
- If the card issuer requires it, the customer completes 3D Secure authentication.
- The Rooveo gateway processes and authorises the payment.
- The customer is redirected to your success or failure page.
- Your server confirms the final result through the order status API.
Server-to-server
Your system gathers the payment details and calls the Rooveo endpoints described below. You control the full checkout experience, and Rooveo handles processing, authorisation and 3D Secure.
If you collect raw card numbers on your own pages, your environment must meet the PCI DSS requirements that apply to card data.
Process a payment
Submits a payment for authorisation. The fields you send depend on the payment method.
return_urlandstatus_urlare optional.- Every transaction is visible in your Rooveo merchant dashboard by default.
- Email or webhook notifications are switched on by request. Contact info@rooveo.com to enable them.
Payment methods
Set paymentMethod to one of these values:
BASIC_CARDGOOGLEPAYAPPLEPAYPAYPALRequest parameters
These fields apply to every payment method.
| Field | Type | Rules | |
|---|---|---|---|
| paymentMethod | Required | string | Payment method name, for example BASIC_CARD |
| firstName | Required | string | Letters only, 2–50 characters |
| lastName | Required | string | Letters only, 2–50 characters |
| amount | Required | string (decimal) | Minimum 10.00; decimals allowed |
| invoiceNumber | Required | string | Unique per transaction, 7–50 characters |
| Required | string | Valid email address | |
| currency | Required | string | 3-letter ISO currency code, for example USD, EUR, GBP |
| phone | Required | string | Digits only, 7–18 digits; no country code, spaces or symbols |
| city | Required | string | 3–30 characters; letters, spaces, hyphens and apostrophes |
| state | Required | string | Up to 30 characters |
| street1 | Required | string | 3–45 characters; letters, numbers, spaces, commas and full stops |
| country | Required | string | ISO 3166-1 alpha-2 code in upper case, for example US, IN |
| postal_code | Required | string | 3–10 characters; letters and numbers, optional hyphen |
| ip | Required | string | Customer's IPv4 or IPv6 address |
| return_url | Optional | string (URL) | Where the customer is sent after the payment |
| status_url | Optional | string (URL) | Your webhook endpoint for payment status notifications |
For BASIC_CARD only, also send the card details:
| Field | Type | Rules | |
|---|---|---|---|
| cardNumber | Required | string | 15–16 digits, no spaces or separators |
| expMonth | Required | string | Two-digit month, MM |
| expYear | Required | string | Four-digit year, YYYY |
| cvv | Required | string | 3 digits for Visa and Mastercard, 4 digits for Amex |
Google Pay, Apple Pay and PayPal requests do not include card fields.
Request examples
Responses
{
"code": 0,
"status": "Success",
"amount": "10.00",
"currency": "USD",
"invoiceNumber": "1234567",
"message": "The transaction has been completed successfully (PAYMENT SUCCESSFUL)",
"transactionId": "1000",
"Statement_Descriptor": ""
}
When the issuing bank requires 3D Secure, the response includes a 3DSUrl field. Redirect the customer to this URL so they can complete authentication. The final result is then sent to your status_url.
A payment is complete when the response returns "code": 0 with "status": "Success". Treat anything else as not completed, and confirm the final state with get_order_status before fulfilling the order.
Callbacks & webhooks
- Rooveo sends the transaction result to your
status_urlasynchronously. return_urlonly redirects the customer's browser. Do not use the redirect alone to mark an order as paid.- For 3D Secure payments, the webhook is sent once authentication has finished.
Test cards
Use these card numbers when testing your integration:
Ask your account manager for test credentials and the expected outcome of each card.
Refund a payment
Refunds a completed payment, identified by its invoice number. Authenticate with your Bearer token as usual.
| Field | Type | Rules | |
|---|---|---|---|
| invoiceNumber | Required | string | Invoice number of the payment to refund |
| refundReason | Required | string | Reason for the refund |
| refundAmount | Required | string (decimal) | Minimum 10.00; decimals allowed |
{
"invoiceNumber": "1234567",
"refundReason": "Customer requested",
"refundAmount": "10.00"
}{
"code": 0,
"status": "Success",
"amount": "10.00",
"currency": "USD",
"invoiceNumber": "1234567",
"message": "Merchant Request",
"transactionID": "1000",
"refundID": "R1254",
"refundAmount": "10.00"
}The refund response uses transactionID and refundID, with a capital “ID”. The payment and status responses use transactionId.
Get order status
Returns the current status of a payment. Use it to confirm the final result after a hosted checkout, a 3D Secure redirect or a webhook.
| Field | Type | Rules | |
|---|---|---|---|
| invoiceNumber | Required | string | Invoice number of the payment to look up |
{
"invoiceNumber": "1234567"
}{
"code": 0,
"status": "Success",
"amount": 10,
"currency": "USD",
"invoiceNumber": "1234567",
"message": "message",
"transactionId": "1000",
"Statement_Descriptor": ""
}In this response amount is returned as a number, while the payment response returns it as a string.