-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathreadme.txt
70 lines (44 loc) · 2.21 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
=== Woocommerce Easypay ===
Contributors: stingerpk
Tags: woocommerce, telenor, easypay, payment, gateway
Requires at least: 3.0.1
Tested up to: 4.5.3
Stable tag: 4.5
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
This plugin adds Telenor Easypay payment gateway to Woocommerce.
== Description ==
This plugin adds Telenor Easypay payment gateway to Woocommerce. You will need to get an Easypay merchant account from Telenor to be able to use this plugin. This plugin supports the sandbox mode provided by Easypay as well.
This plugin is hosted at https://github.com/stingerpk/woocommerce-easypay
Feel free to fork and send pull requests.
== Installation ==
1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress
3. Go to Woocommerce -> Settings -> Checkout -> Pay via Easypay to configure.
4. You will also need to configure IPN URL in Easypay Merchant Portal. The IPN URL should be https://yoursite.com/wc-api/WC_Gateway_Easypay (note the lack of trailing slash).
== Frequently Asked Questions ==
= Are you affiliated with Telenor? =
No.
= Have you used this plugin in production? =
Yes.
= Can I hold you responsible if something goes wrong? =
No.
= Which currencies are supported by Easypay? =
Easypay only supports PKR at the moment. If you are using another currency or multiple currencies, then you should use some method of disabling this gateway when another currency is in use.
I use something like this in my functions.php:
function gateway_disable_by_currency( $available_gateways ) {
global $woocommerce;
if ( isset( $available_gateways['easypay'] ) && !<<insert a function here which checks your currenct currency and returns true if PKR is in use>> ) {
unset( $available_gateways['easypay'] );
}
return $available_gateways;
}
add_filter( 'woocommerce_available_payment_gateways', 'gateway_disable_by_currency' );
== Screenshots ==
1. The configuration options in Woocommerce -> Settings -> Checkout -> Pay via Easypay
== Changelog ==
= 1.0 =
First Release
== Upgrade Notice ==
= 1.0 =
Because you want to.