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:
- Obtain your API token from your client dashboard
- Authenticate using Bearer token in request headers
- Start making payment requests using our RESTful API
- 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 failedMessage- Human-readable error messageValidationErrors- Object containing field-specific errors
Support
Need help? Contact our support team for assistance with integration, troubleshooting, or any questions about our API.