Enables Credit/Debit card payments through ThawaniPay on your WooCommerce shop.
Report a bug
This is a new version of Thawani-For-WooCommerce. This version is stripped of the features the original plugin provided. therefore, this plugin is a newer and it replaces the old one. if you want to use the WordPress block feature then this plugin will works for you.
This is not a stable version of the plugin if you wish to use the stable on I prefer that you go and download from the original Repository Thawani-For-WooCommerce
⚠ INFORMATION & REQUIREMENTS
- Thawani For WooCommerce is currently only available in Oman.
- Only OMR is currently supported.
The Thawani Plugin for WooCommerce allows merchants to accept Credit & Debit card transactions.
This plugin will only work with WooCommerce and is built to extend it.
Feel free to fork or send a PR, if there is bug fixes only. New features are not acceptable.
- Credit & Debit card payment.
- Payments are in OMR no conversion currency needed.
- Easy to switch from sandbox and live environment.
- Checks for payment confirmation.
- Track Session History
- Logging to make debugging easy.
- WooCommerce 5.6+
- WordPress > 6.4
For live account, please create a merchant account with Thawani then follow the instructions on their documentation.
-
Download the .zip file from this repository.
-
Go to: WordPress Admin > Plugins > Add New to upload the .zip file you downloaded with Choose File.
-
Activate the extension. (If you haven't already in the previous step)
More information at: Managing Plugins.
For the plugin to work properly, please make sure that your permalink settings are set to post name. To do that Go to: Settings > Permalinks > Common Settings and make sure that post name is selected.
- Go to: WooCommerce > Settings > Payments.
- Select Thawani Gateway. You are taken to the configuration screen.
- Enable/Disable – Enabled by default. Disable to turn off Thawani Pay.
- Select the Environment:
- Development Environment
In development environment you will be able to make mock payments to simulate the payment processing flow of a live account.
When you are in development mode you will need to use the User Acceptable Test ("UAT") secret and publishable keys and not your own secret and publishable keys. These two keys can be found on the Thawani documentation.
- Production Environment
Production environment is to be used when the website is live
To setup a live account you need the following:
- An SSL certificate.
- A Thawani merchant account. You can apply by visiting Thawani's website.
- Access to the Thawani merchant dashboard. This is where you can get your live secret and publishable keys. Learn more by reading Thawani's documentation.
- Add the following URL:
https//<YOUR-SITE-URL>/wc-api/thawani-payment-status
to the webhook URL section on the Thawani dashboard. Learn more by reading Thawani's documentation. - Set the secret and publishable keys in the payment settings page to the secret and publishable keys provided by Thawani
- Enable logging
Thawani For WooCommerce comes with a troubleshooting tool. This is in the form of logs. The logs are added each time a user orders an item, even if the payment fails.
To enable logging make sure that the Enable Logging checkbox is checked.
To view the logs Go to: WooCommerce > Status > Logs
The logs messages for this plugin follow the following format thawani-<DATE-OF-ORDER-PLACEMENT>
.
The Thawani Gateway plugin keeps a record of all the sessions created to process payments and displays them for the admin.
The plugin keeps a record of:
- Timestamp of when the session was created
- Client refrence / Order ID
- Customer Information
- Payment Status
- Total Amount
Note that this plugin automatically updates the order status as follows:
- Processing: Payment received (paid); order is awaiting fulfillment from merchant.
- On hold: Awaiting payment
- Failed: Payment failed or was declined (unpaid)
- Canceled: Canceled by an admin or the customer
For more information about WooCommerce Orders, Go to: Managing Orders.
- Q. How can I use this plugin?
- A. upload it in the admin dashboard > plugins > install plugin.
Distributed under the MIT License. See License for more information.