Skip to content

Commit 78a79ad

Browse files
committed
Merge branch 'dev'
2 parents 30b6be2 + 3cb0bde commit 78a79ad

4 files changed

Lines changed: 135 additions & 19 deletions

File tree

assets/images/cards.png

-15.1 KB
Binary file not shown.
10.1 KB
Loading

paystack-woocommerce-payment-gateway.php

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ public function __construct() {
3737
$this->init_settings();
3838

3939
// Get setting values
40-
$this->title = $this->get_option( 'title' );
41-
$this->description = $this->get_option( 'description' );
40+
$this->title = 'Debit/Credit Cards';
4241
$this->enabled = $this->get_option( 'enabled' );
4342
$this->testmode = $this->get_option( 'testmode' ) === 'yes' ? true : false;
4443

@@ -67,7 +66,8 @@ public function __construct() {
6766
* display paystack payment icon
6867
*/
6968
public function get_icon() {
70-
$icon = '<img src="' . plugins_url( 'assets/images/cards.png' , __FILE__ ) . '" alt="cards" />';
69+
70+
$icon = '<img src="' . WC_HTTPS::force_https_url( plugins_url( 'assets/images/paystack-woocommerce.png' , __FILE__ ) ) . '" alt="cards" />';
7171

7272
return apply_filters( 'woocommerce_gateway_icon', $icon, $this->id );
7373
}
@@ -134,18 +134,6 @@ public function init_form_fields() {
134134
'description' => '',
135135
'default' => 'no'
136136
),
137-
'title' => array(
138-
'title' => 'Title',
139-
'type' => 'text',
140-
'description' => 'This controls the title which the user sees during checkout.',
141-
'default' => ''
142-
),
143-
'description' => array(
144-
'title' => 'Description',
145-
'type' => 'textarea',
146-
'description' => 'This controls the description which the user sees during checkout.',
147-
'default' => ''
148-
),
149137
'testmode' => array(
150138
'title' => 'Test mode',
151139
'label' => 'Enable Test Mode',
@@ -156,25 +144,25 @@ public function init_form_fields() {
156144
'test_secret_key' => array(
157145
'title' => 'Test Secret Key',
158146
'type' => 'text',
159-
'description' => '',
147+
'description' => 'Enter your Test Secret Key here',
160148
'default' => ''
161149
),
162150
'test_public_key' => array(
163151
'title' => 'Test Public Key',
164152
'type' => 'text',
165-
'description' => '',
153+
'description' => 'Enter your Test Public Key here.',
166154
'default' => ''
167155
),
168156
'live_secret_key' => array(
169157
'title' => 'Live Secret Key',
170158
'type' => 'text',
171-
'description' => '',
159+
'description' => 'Enter your Live Secret Key here.',
172160
'default' => ''
173161
),
174162
'live_public_key' => array(
175163
'title' => 'Live Public Key',
176164
'type' => 'text',
177-
'description' => '',
165+
'description' => 'Enter your Live Public Key here.',
178166
'default' => ''
179167
),
180168
);

readme.txt

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
=== Paystack WooCommerce Payment Gateway ===
2+
Contributors: tubiz
3+
Donate link: http://bosun.me/donate
4+
Tags: woocommerce, payment gateway, payment gateways, paystack, interswitch, verve cards, tubiz plugins, verve, nigeria, mastercard, visa card
5+
Requires at least: 4.1
6+
Tested up to: 4.4
7+
Stable tag: 1.0.0
8+
License: GPLv2 or later
9+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10+
11+
Paystack WooCommerce Payment Gateway allows you to accept online payments from local and international customers
12+
13+
14+
15+
== Description ==
16+
17+
This is a Paystack payment gateway for Woocommerce.
18+
19+
Paystack is on a mission to deliver a safe and convenient payment experience for customers and merchants. Paystack provide Nigerian merchants with the tools and services needed to accept online payments from local and international customers using MasterCard, Visa and Verve Cards.
20+
21+
To signup for a Paystack Merchant account visit their website by clicking [here](https://paystack.com)
22+
23+
Paystack Woocommerce Payment Gateway allows you to accept payment on your Woocommerce store using MasterCard, Visa and Verve Cards.
24+
25+
With this Paystack Woocommerce Payment Gateway plugin, you will be able to accept the following payment methods in your shop:
26+
27+
* __MasterCard__
28+
* __Visa__
29+
* __Verve Cards__
30+
31+
= Note =
32+
33+
This plugin is meant to be used by merchants in Nigeria.
34+
35+
= Plugin Features =
36+
37+
* __Accept payment__ via MasterCard, Visa and Verve Cards.
38+
* __Seamless integration__ into the WooCommerce checkout page. Accept payment directly on your site
39+
40+
41+
42+
= Suggestions / Feature Request =
43+
44+
If you have suggestions or a new feature request, feel free to get in touch with me via the contact form on my website [here](http://bosun.me/get-in-touch/)
45+
46+
You can also follow me on Twitter! **[@tubiz](http://twitter.com/tubiz)**
47+
48+
49+
== Installation ==
50+
51+
= Automatic Installation =
52+
* Login to your WordPress Admin area
53+
* Go to "Plugins > Add New" from the left hand menu
54+
* In the search box type __Paystack Woocommerce Payment Gateway__
55+
* From the search result you will see __Paystack Woocommerce Payment Gateway__ click on __Install Now__ to install the plugin
56+
* A popup window will ask you to confirm your wish to install the Plugin.
57+
* After installation, activate the plugin.
58+
* Open the settings page for WooCommerce and click the "Checkout" tab.
59+
* Click on the __Paystack__ link from the available Checkout Options
60+
* Configure your __Paystack Payment Gateway__ settings. See below for details.
61+
62+
= Manual Installation =
63+
1. Download the plugin zip file
64+
2. Login to your WordPress Admin. Click on "Plugins > Add New" from the left hand menu.
65+
3. Click on the "Upload" option, then click "Choose File" to select the zip file from your computer. Once selected, press "OK" and press the "Install Now" button.
66+
4. Activate the plugin.
67+
5. Open the settings page for WooCommerce and click the "Checkout" tab.
68+
6. Click on the __Paystack__ link from the available Checkout Options
69+
7. Configure your __Paystack Payment Gateway__ settings. See below for details.
70+
71+
72+
73+
= Configure the plugin =
74+
To configure the plugin, go to __WooCommerce > Settings__ from the left hand menu, then click __Checkout__ from the top tab. You will see __Paystack__ as part of the available Checkout Options. Click on it to configure the payment gateway.
75+
76+
* __Enable/Disable__ - check the box to enable Paystack Payment Gateway.
77+
* __Title__ - allows you to determine what your customers will see this payment option as on the checkout page.
78+
* __Description__ - controls the message that appears under the payment fields on the checkout page. Here you can list the types of cards you accept.
79+
* __Test Mode__ - Check to enable test mode. Test mode enables you to test payments before going live. If you ready to start receving real payment on your site, kindly uncheck this.
80+
* __Test Secret Key__ - Enter your Test Secret Key here. Get your API keys from your Paystack account under Settings > Developer/API
81+
* __Test Public Key__ - Enter your Test Public Key here. Get your API keys from your Paystack account under Settings > Developer/API
82+
* __Live Secret Key__ - Enter your Live Secret Key here. Get your API keys from your Paystack account under Settings > Developer/API
83+
* __Live Public Key__ - Enter your Live Public Key here. Get your API keys from your Paystack account under Settings > Developer/API
84+
* Click on __Save Changes__ for the changes you made to be effected.
85+
86+
87+
88+
89+
90+
== Frequently Asked Questions ==
91+
92+
= What Do I Need To Use The Plugin =
93+
94+
1. You need to have WooCommerce plugin installed and activated on your WordPress site.
95+
2. You need to open a Paystack merchant account on [Paystack](https://paystack.com)
96+
97+
98+
99+
100+
== Changelog ==
101+
102+
= 1.0.0 =
103+
* First release
104+
105+
106+
107+
108+
109+
== Upgrade Notice ==
110+
111+
There is no need to upgrade just yet.
112+
113+
114+
115+
116+
117+
118+
== Screenshots ==
119+
120+
1. Paystack WooCommerce Payment Gateway Setting Page
121+
122+
2. Paystack WooCommerce Payment Gateway on the checkout page
123+
124+
3. Paystack payment field displayed directly on your site
125+
126+
127+
128+
== Other Notes ==

0 commit comments

Comments
 (0)