Thawani: WooCommerce (WordPress) plugin

This article is to show how to install our WooCommerce plugin for Thawani Gateway. First you will need to download the plugin file (Downloads and Licenses) . From WordPress Admin, go to Plugins -> Add New and click Upload Plugin button:

 

From the form, you can select the downloaded file and click Install Now button. After Installation you can activate and configure the plugin. You can find configuration page from two places:

  1. WooCommerce -> Settings -> Payments
  2. Plugins -> Installed Plugins -> Settings:

In plugin settings, you can add your API keys (Thawani: Getting API Keys):

 

Currency exchange at checkout:

This step is only in case you have a different currency than Omani Rial.

To exchange currency at checkout, you will need to use "thawani_convert_to_omr". Here is an example to exchange from USD to OMR:

add_filter('thawani_convert_to_omr', function($amount, $currency){
	$exchangeRate = 0.3953;
    return $currency == 'USD'? $amount * $exchangeRate : $amount;
}, 10, 2);

$currency variable has been introduced in version 1.3.18


Note: you can use Code Snippets plugin to add the code to your WordPress.

 

Saving Credit/Debit cards information:

Cards will be saved in Thawani server which will reduce the risk in your side. To allow the option to save cards, make sure to enable it on the settings page:

Note: this feature will work only if you have an active license. If you don't have one, you can add it from Client Area and login with your account then: Services > View available addons and then add click on Order Now button of "Save Credit Cards" addon:

  • 3 A felhasználók hasznosnak találták ezt
Hasznosnak találta ezt a választ?

Kapcsolódó cikkek

 Thawani: General PHP Class

This class is for developers who want to integrate with Thawani Gateway. To get started, you...

 Downloads and Licenses

In this article, will show how to use the licenses and download purchased plugins. After a...

 Thawani: OpenCart Extension

This article is to show how to install our OpenCart extension for Thawani Gateway. First you will...

 Thawani: PMPRO (WordPress) Plugin

This article is to show how to install our WordPress Membership Plugin and Subscriptions Platform...

 Thawani: WHMCS Module

This article is to show how to install our OpenCart extension for Thawani Gateway. First you will...