RooveoAPI
Rooveo · Checkout integration guide

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.

EndpointPurpose
{base_url}/process_payment.phpSubmit a card, Google Pay, Apple Pay or PayPal payment
{base_url}/process_refund.phpRefund a completed payment, in full or in part
{base_url}/get_order_status.phpLook up the current status of a payment
Base URL

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.

HTTP HEADERS
Authorization: Bearer YOUR_API_TOKEN
Content-Type: application/json
Keep it secret

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.

Option 1

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.

Option 2

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

  1. The customer opens the hosted payment page URL, fills in their billing information, chooses a payment method and enters their payment details.
  2. If the card issuer requires it, the customer completes 3D Secure authentication.
  3. The Rooveo gateway processes and authorises the payment.
  4. The customer is redirected to your success or failure page.
  5. 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.

Card data

If you collect raw card numbers on your own pages, your environment must meet the PCI DSS requirements that apply to card data.

POST{base_url}/process_payment.php

Process a payment

Submits a payment for authorisation. The fields you send depend on the payment method.

  • return_url and status_url are 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_CARDGOOGLEPAYAPPLEPAYPAYPAL

Request parameters

These fields apply to every payment method.

FieldTypeRules
paymentMethodRequiredstringPayment method name, for example BASIC_CARD
firstNameRequiredstringLetters only, 2–50 characters
lastNameRequiredstringLetters only, 2–50 characters
amountRequiredstring (decimal)Minimum 10.00; decimals allowed
invoiceNumberRequiredstringUnique per transaction, 7–50 characters
emailRequiredstringValid email address
currencyRequiredstring3-letter ISO currency code, for example USD, EUR, GBP
phoneRequiredstringDigits only, 7–18 digits; no country code, spaces or symbols
cityRequiredstring3–30 characters; letters, spaces, hyphens and apostrophes
stateRequiredstringUp to 30 characters
street1Requiredstring3–45 characters; letters, numbers, spaces, commas and full stops
countryRequiredstringISO 3166-1 alpha-2 code in upper case, for example US, IN
postal_codeRequiredstring3–10 characters; letters and numbers, optional hyphen
ipRequiredstringCustomer's IPv4 or IPv6 address
return_urlOptionalstring (URL)Where the customer is sent after the payment
status_urlOptionalstring (URL)Your webhook endpoint for payment status notifications

For BASIC_CARD only, also send the card details:

FieldTypeRules
cardNumberRequiredstring15–16 digits, no spaces or separators
expMonthRequiredstringTwo-digit month, MM
expYearRequiredstringFour-digit year, YYYY
cvvRequiredstring3 digits for Visa and Mastercard, 4 digits for Amex

Google Pay, Apple Pay and PayPal requests do not include card fields.

Request examples

REQUEST BODY · JSON

Responses

RESPONSE · JSON
{
  "code": 0,
  "status": "Success",
  "amount": "10.00",
  "currency": "USD",
  "invoiceNumber": "1234567",
  "message": "The transaction has been completed successfully (PAYMENT SUCCESSFUL)",
  "transactionId": "1000",
  "Statement_Descriptor": ""
}
Final status

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_url asynchronously.
  • return_url only 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:

4000 0000 0000 0002
4242 4242 4242 4242

Ask your account manager for test credentials and the expected outcome of each card.

POST{base_url}/process_refund.php

Refund a payment

Refunds a completed payment, identified by its invoice number. Authenticate with your Bearer token as usual.

FieldTypeRules
invoiceNumberRequiredstringInvoice number of the payment to refund
refundReasonRequiredstringReason for the refund
refundAmountRequiredstring (decimal)Minimum 10.00; decimals allowed
REQUEST BODY · JSON
{
  "invoiceNumber": "1234567",
  "refundReason": "Customer requested",
  "refundAmount": "10.00"
}
RESPONSE · SUCCESS
{
  "code": 0,
  "status": "Success",
  "amount": "10.00",
  "currency": "USD",
  "invoiceNumber": "1234567",
  "message": "Merchant Request",
  "transactionID": "1000",
  "refundID": "R1254",
  "refundAmount": "10.00"
}
Field names

The refund response uses transactionID and refundID, with a capital “ID”. The payment and status responses use transactionId.

POST{base_url}/get_order_status.php

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.

FieldTypeRules
invoiceNumberRequiredstringInvoice number of the payment to look up
REQUEST BODY · JSON
{
  "invoiceNumber": "1234567"
}
RESPONSE · SUCCESS
{
  "code": 0,
  "status": "Success",
  "amount": 10,
  "currency": "USD",
  "invoiceNumber": "1234567",
  "message": "message",
  "transactionId": "1000",
  "Statement_Descriptor": ""
}
Data type

In this response amount is returned as a number, while the payment response returns it as a string.