WooCommerce Plugin
Royat Pay payment method for WordPress and WooCommerce
Overview
The Royat Pay WooCommerce plugin lets WordPress stores accept payments through Royat Pay with a simple payment method inside WooCommerce checkout.
Branding: The plugin uses Royat Pay naming and Royat branding only.
Customer stores should use the Royat Pay client API token only. Do not place the central payment integration token inside WordPress.
Package Location
The plugin source is available in the Royat Pay repository under:
packages/royat-pay-wordpress
Download the current ZIP package:
https://panel.royat.sa/downloads/royat-pay-wordpress.zip
Installation
- Compress the
royat-pay-wordpressfolder into a ZIP file. - Open WordPress Admin.
- Go to
Plugins > Add New > Upload Plugin. - Upload and activate the ZIP file.
- Go to
WooCommerce > Settings > Payments > Royat Pay. - Enable the payment method and paste the Royat Pay client API token.
Settings
| Setting | Value |
|---|---|
| Royat Pay URL | https://panel.royat.sa |
| API Token | The client token from the Royat Pay dashboard. |
| Embedded checkout | Enabled by default to keep customers on the store page when possible. |
| Logo URL | https://www.royat.sa/wp-content/uploads/2024/03/logo_header1-1-Recovered.png |
Checkout Flow
- WooCommerce sends the customer to the Royat Pay receipt page.
- The plugin calls
/api/payment/initiate-session. - The plugin loads
/royatpay.jsand renders the embedded checkout inside the store. - After the customer chooses a payment method, the plugin calls
/api/payment/executeusingSessionId. - If 3DS/OTP is required, the plugin opens the verification URL inside an iframe.
- After return, the plugin calls
/api/payment/statusand updates the WooCommerce order.
Main Account Settlement
If the store should settle to the main Royat account, configure that client in Royat Pay with settlement code 0.
The WordPress plugin still uses only the Royat Pay client token.
Current Package Status
This is the first internal package version. Test it on a staging WooCommerce store before giving it to production customers.