Welcome to Royat Pay

Complete API Documentation and Integration Guide

Get Started with Royat Pay

Integrate seamless payment processing into your application with our comprehensive API documentation. Support for multiple payment methods including cards, Apple Pay, Google Pay, and more.

๐Ÿš€ Quick Start

Get up and running with Royat Pay in minutes:

  1. Obtain your API token from your client dashboard
  2. Authenticate using Bearer token in request headers
  3. Start making payment requests using our RESTful API
  4. Handle callbacks and webhooks for payment status updates

API Endpoints

๐Ÿ“ฑ Embedded Integration

Integrate payment forms directly into your website with our embedded payment solution. Supports Card, Apple Pay, Google Pay, and STC Pay.

View Documentation โ†’

๐Ÿ’ณ Initiate Payment

Retrieve all available payment methods with service charges. Get payment method IDs and details before executing a payment.

View Documentation โ†’

โšก Execute Payment

Create and execute payment transactions. Supports both embedded payment sessions and redirect checkout integration.

View Documentation โ†’

๐Ÿ“‹ Payment Status

Check payment status by PaymentId. Verify transactions after callback or embedded payment โ€” know if a payment is Paid, Pending, or Canceled.

View Documentation โ†’

๐Ÿ”„ Make Refund

Process refunds for completed payments. Support for full and partial refunds with flexible service charge handling.

View Documentation โ†’

๐Ÿ”Ž Session Details

Verify the status and PaymentId of an embedded (v3 session) payment when a callback doesn't surface one.

View Documentation โ†’

๐Ÿ”— Payment Links

Create a shareable payment link and invoice from your own platform, with an optional SMS/email notification.

View Documentation โ†’

๐Ÿ Apple Pay Domain

Self-register your checkout domain for Apple Pay after publishing the domain association file.

View Documentation โ†’

๐Ÿ’ฐ Live Balance

Read your pending, deposited, and total balance in real time, without waiting for a report.

View Documentation โ†’

๐Ÿงพ Deposit History

List your settlement deposits with pagination and sorting โ€” build your own reconciliation view.

View Documentation โ†’

Laravel SDK

Use the official Royat Pay Laravel SDK to create payments, check status, request refunds, and read supplier invoices from Laravel stores.

View Documentation โ†’

WooCommerce Plugin

Install Royat Pay as a WooCommerce payment method with embedded checkout and Royat-branded settings.

View Documentation โ†’

WHMCS Gateway

Install Royat Pay as a WHMCS payment gateway for hosting, billing, and subscription invoices.

View Documentation โ†’

Authentication

All API requests require authentication using a Bearer token.

Include your client token in the Authorization header:

Authorization: Bearer {your_client_token}

Your client token is unique to your account and can be found in your client dashboard.

Base URL

All API endpoints are available at:

https://panel.royat.sa/api

For example:

https://panel.royat.sa/api/payment/initiate

Response Format

All API responses follow a consistent format:

{
  "IsSuccess": true,
  "Message": "Operation completed successfully",
  "ValidationErrors": null,
  "Data": {
    // Response data here
  }
}

Error Handling

Error responses will include:

  • IsSuccess: false - Indicates the request failed
  • Message - Human-readable error message
  • ValidationErrors - Object containing field-specific errors

Support

Need help? Contact our support team for assistance with integration, troubleshooting, or any questions about our API.