Skip to content

Commit 29259b1

Browse files
committed
V2.1.3 cap transactions+ https for font awesome
1 parent b0d84a5 commit 29259b1

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

README.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://paystack.com/demo
44
Tags: paystack, recurrent payments, nigeria, mastercard, visa, target,Naira,payments,verve,donation,church,NGO,form,contact form 7, form,
55
Requires at least: 3.1
66
Tested up to: 4.7
7-
Stable tag: 2.1.2
7+
Stable tag: 2.1.3
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -84,6 +84,9 @@ You can also follow us on Twitter! **[@paystack](http://twitter.com/paystack)**
8484

8585

8686
== Changelog ==
87+
= 2.1.3 =
88+
* Bug fix for ignoring NGN 2,000 transaction cap
89+
* Use https for fontawesome
8790
= 2.1.2 =
8891
* Checkbox form Element.
8992
* Special feature: Custom Start date use case for subscriptions.

paystack-forms.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Payment forms for Paystack
44
Plugin URI: https://github.com/Kendysond/Wordpress-paystack-forms
55
Description: Payment forms for Paystack allows you create forms that will be used to bill clients for goods and services via Paystack.
6-
Version: 2.1.2
6+
Version: 2.1.3
77
Author: Douglas Kendyson
88
Author URI: http://kendyson.com
99
License: GPL-2.0+
@@ -15,7 +15,7 @@
1515
}
1616
define( 'KKD_PFF_PAYSTACK_PLUGIN_PATH', plugins_url( __FILE__ ) );
1717
define( 'KKD_PFF_PAYSTACK_MAIN_FILE', __FILE__ );
18-
define( 'KKD_PFF_PAYSTACK_VERSION', '2.0.4' );
18+
define( 'KKD_PFF_PAYSTACK_VERSION', '2.1.3' );
1919
define( 'KKD_PFF_PAYSTACK_TABLE', 'paystack_forms_payments' );
2020

2121

public/class-paystack-forms-public.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,19 @@ public function enqueue_scripts() {
5858
function kkd_pff_paystack_add_paystack_charge($amount)
5959
{
6060
// $amountinkobo = $amount; // * 100;
61+
$charge = 0;
6162
$amount = intval($amount);
6263
if ($amount <= 2500) {
63-
$amount = $amount + floatval($amount*KKD_PFF_PAYSTACK_PERCENTAGE);
64+
$charge = floatval($amount*KKD_PFF_PAYSTACK_PERCENTAGE);
6465
}else{
65-
$amount = $amount + floatval($amount*KKD_PFF_PAYSTACK_PERCENTAGE)+100;
66+
$charge = floatval($amount*KKD_PFF_PAYSTACK_PERCENTAGE)+100;
6667

6768
}
69+
// echo $charge;
70+
if ($charge > 2000) {
71+
$charge = 2000;
72+
}
73+
$amount += $charge;
6874
return $amount;
6975
// if ($amountinkobo > KKD_PFF_PAYSTACK_FLATLINE_AMOUNT)
7076
// return ($amountinkobo + KKD_PFF_PAYSTACK_LOCAL_CAP)/100;

public/css/pff-paystack-style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* Font
22
=============================== */
3-
@import url("http://fonts.googleapis.com/css?family=Open+Sans:400,600");
3+
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600");
44

55
/*=================================================================*/
66
/* Main */

0 commit comments

Comments
 (0)