Skip to content

Commit dbf9abd

Browse files
Set correct version and compatibility
1 parent 1099eab commit dbf9abd

File tree

2 files changed

+103
-94
lines changed

2 files changed

+103
-94
lines changed

paystack-forms.php

Lines changed: 96 additions & 92 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/PaystackHQ/Wordpress-Payment-forms-for-Paystack
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: 3.3.7
6+
Version: 3.3.10
77
Author: Paystack
88
Author URI: http://paystack.com
99
License: GPL-2.0+
@@ -89,99 +89,103 @@ function kkd_pff_paystack_shortcode_button_script()
8989
{
9090
if (wp_script_is("quicktags")) {
9191
?>
92-
<script type="text/javascript">
93-
//this function is used to retrieve the selected text from the text editor
94-
function getSel() {
95-
var txtarea = document.getElementById("content");
96-
var start = txtarea.selectionStart;
97-
var finish = txtarea.selectionEnd;
98-
return txtarea.value.substring(start, finish);
99-
}
92+
<script type="text/javascript">
93+
//this function is used to retrieve the selected text from the text editor
94+
function getSel() {
95+
var txtarea = document.getElementById("content");
96+
var start = txtarea.selectionStart;
97+
var finish = txtarea.selectionEnd;
98+
return txtarea.value.substring(start, finish);
99+
}
100100

101-
QTags.addButton(
102-
"t_shortcode",
103-
"Insert Text",
104-
insertText
105-
);
101+
QTags.addButton(
102+
"t_shortcode",
103+
"Insert Text",
104+
insertText
105+
);
106106

107-
function insertText() {
108-
QTags.insertContent('[text name="Text Title"]');
109-
}
110-
QTags.addButton(
111-
"ta_shortcode",
112-
"Insert Textarea",
113-
insertTextarea
114-
);
115-
116-
function insertTextarea() {
117-
QTags.insertContent('[textarea name="Text Title"]');
118-
}
119-
QTags.addButton(
120-
"s_shortcode",
121-
"Insert Select Dropdown",
122-
insertSelectb
123-
);
124-
125-
function insertSelectb() {
126-
QTags.insertContent('[select name="Text Title" options="option 1,option 2,option 3"]');
127-
}
128-
QTags.addButton(
129-
"r_shortcode",
130-
"Insert Radio Options",
131-
insertRadiob
132-
);
133-
134-
function insertRadiob() {
135-
QTags.insertContent('[radio name="Text Title" options="option 1,option 2,option 3"]');
136-
}
137-
QTags.addButton(
138-
"cb_shortcode",
139-
"Insert Checkbox Options",
140-
insertCheckboxb
141-
);
142-
143-
function insertCheckboxb() {
144-
QTags.insertContent('[checkbox name="Text Title" options="option 1,option 2,option 3"]');
145-
}
146-
QTags.addButton(
147-
"dp_shortcode",
148-
"Insert Datepicker",
149-
insertDatepickerb
150-
);
151-
152-
function insertDatepickerb() {
153-
QTags.insertContent('[datepicker name="Datepicker Title"]');
154-
}
155-
QTags.addButton(
156-
"i_shortcode",
157-
"Insert File Upload",
158-
insertInput
159-
);
160-
161-
function insertInput() {
162-
QTags.insertContent('[input name="File Name"]');
163-
}
164-
QTags.addButton(
165-
"ngs_shortcode",
166-
"Insert Nigerian States",
167-
insertSelectStates
168-
);
169-
170-
function insertSelectStates() {
171-
QTags.insertContent('[select name="State" options="Abia,Adamawa,Akwa Ibom,Anambra,Bauchi,Bayelsa,Benue,Borno,Cross River,Delta,Ebonyi,Edo,Ekiti,Enugu,FCT,Gombe,Imo,Jigawa,Kaduna,Kano,Katsina,Kebbi,Kogi,Kwara,Lagos,Nasarawa,Niger,Ogun,Ondo,Osun,Oyo,Plateau,Rivers,Sokoto,Taraba,Yobe,Zamfara"]');
172-
}
173-
QTags.addButton(
174-
"ctys_shortcode",
175-
"Insert All Countries",
176-
insertSelectCountries
177-
);
178-
179-
function insertSelectCountries() {
180-
QTags.insertContent('[select name="country" options="Afghanistan, Albania, Algeria, American Samoa, Andorra, Angola, Anguilla, Antarctica, Antigua and Barbuda, Argentina, Armenia, Aruba, Australia, Austria, Azerbaijan, Bahamas, Bahrain, Bangladesh, Barbados, Belarus, Belgium, Belize, Benin, Bermuda, Bhutan, Bolivia, Bosnia and Herzegovina, Botswana, Bouvet Island, Brazil, British Indian Ocean Territory, Brunei Darussalam, Bulgaria, Burkina Faso, Burundi, Cambodia, Cameroon, Canada, Cape Verde, Cayman Islands, Central African Republic, Chad, Chile, China, Christmas Island, Cocos (Keeling) Islands, Colombia, Comoros, Congo, Congo, The Democratic Republic of The, Cook Islands, Costa Rica, Cote D’ivoire, Croatia, Cuba, Cyprus, Czech Republic, Denmark, Djibouti, Dominica, Dominican Republic, Ecuador, Egypt, El Salvador, Equatorial Guinea, Eritrea, Estonia, Ethiopia, Falkland Islands (Malvinas), Faroe Islands, Fiji, Finland, France, French Guiana, French Polynesia, French Southern Territories, Gabon, Gambia, Georgia, Germany, Ghana, Gibraltar, Greece, Greenland, Grenada, Guadeloupe, Guam, Guatemala, Guinea, Guinea-bissau, Guyana, Haiti, Heard Island and Mcdonald Islands, Holy See (Vatican City State), Honduras, Hong Kong, Hungary, Iceland, India, Indonesia, Iran, Islamic Republic of, Iraq, Ireland, Israel, Italy, Jamaica, Japan, Jordan, Kazakhstan, Kenya, Kiribati, Korea, Democratic People’s Republic of, Korea, Republic of, Kuwait, Kyrgyzstan, Lao People’s Democratic Republic, Latvia, Lebanon, Lesotho, Liberia, Libyan Arab Jamahiriya, Liechtenstein, Lithuania, Luxembourg, Macao, Macedonia, The Former Yugoslav Republic of, Madagascar, Malawi, Malaysia, Maldives, Mali, Malta, Marshall Islands, Martinique, Mauritania, Mauritius, Mayotte, Mexico, Micronesia, Federated States of, Moldova, Republic of, Monaco, Mongolia, Montserrat, Morocco, Mozambique, Myanmar, Namibia, Nauru, Nepal, Netherlands, Netherlands Antilles, New Caledonia, New Zealand, Nicaragua, Niger, Nigeria, Niue, Norfolk Island, Northern Mariana Islands, Norway, Oman, Pakistan, Palau, Palestinian Territory, Occupied, Panama, Papua New Guinea, Paraguay, Peru, Philippines, Pitcairn, Poland, Portugal, Puerto Rico, Qatar, Reunion, Romania, Russian Federation, Rwanda, Saint Helena, Saint Kitts and Nevis, Saint Lucia, Saint Pierre and Miquelon, Saint Vincent and The Grenadines, Samoa, San Marino, Sao Tome and Principe, Saudi Arabia, Senegal, Serbia and Montenegro, Seychelles, Sierra Leone, Singapore, Slovakia, Slovenia, Solomon Islands, Somalia, South Africa, South Georgia and The South Sandwich Islands, Spain, Sri Lanka, Sudan, Suriname, Svalbard and Jan Mayen, Swaziland, Sweden, Switzerland, Syrian Arab Republic, Taiwan, Province of China, Tajikistan, Tanzania, United Republic of, Thailand, Timor-leste, Togo, Tokelau, Tonga, Trinidad and Tobago, Tunisia, Turkey, Turkmenistan, Turks and Caicos Islands, Tuvalu, Uganda, Ukraine, United Arab Emirates, United Kingdom, United States, United States Minor Outlying Islands, Uruguay, Uzbekistan, Vanuatu, Venezuela, Viet Nam, Virgin Islands, British, Virgin Islands, U.S., Wallis and Futuna, Western Sahara, Yemen, Zambia, Zimbabwe"] ');
181-
}
107+
function insertText() {
108+
QTags.insertContent('[text name="Text Title"]');
109+
}
110+
QTags.addButton(
111+
"ta_shortcode",
112+
"Insert Textarea",
113+
insertTextarea
114+
);
115+
116+
function insertTextarea() {
117+
QTags.insertContent('[textarea name="Text Title"]');
118+
}
119+
QTags.addButton(
120+
"s_shortcode",
121+
"Insert Select Dropdown",
122+
insertSelectb
123+
);
124+
125+
function insertSelectb() {
126+
QTags.insertContent('[select name="Text Title" options="option 1,option 2,option 3"]');
127+
}
128+
QTags.addButton(
129+
"r_shortcode",
130+
"Insert Radio Options",
131+
insertRadiob
132+
);
133+
134+
function insertRadiob() {
135+
QTags.insertContent('[radio name="Text Title" options="option 1,option 2,option 3"]');
136+
}
137+
QTags.addButton(
138+
"cb_shortcode",
139+
"Insert Checkbox Options",
140+
insertCheckboxb
141+
);
142+
143+
function insertCheckboxb() {
144+
QTags.insertContent('[checkbox name="Text Title" options="option 1,option 2,option 3"]');
145+
}
146+
QTags.addButton(
147+
"dp_shortcode",
148+
"Insert Datepicker",
149+
insertDatepickerb
150+
);
151+
152+
function insertDatepickerb() {
153+
QTags.insertContent('[datepicker name="Datepicker Title"]');
154+
}
155+
QTags.addButton(
156+
"i_shortcode",
157+
"Insert File Upload",
158+
insertInput
159+
);
160+
161+
function insertInput() {
162+
QTags.insertContent('[input name="File Name"]');
163+
}
164+
QTags.addButton(
165+
"ngs_shortcode",
166+
"Insert Nigerian States",
167+
insertSelectStates
168+
);
169+
170+
function insertSelectStates() {
171+
QTags.insertContent(
172+
'[select name="State" options="Abia,Adamawa,Akwa Ibom,Anambra,Bauchi,Bayelsa,Benue,Borno,Cross River,Delta,Ebonyi,Edo,Ekiti,Enugu,FCT,Gombe,Imo,Jigawa,Kaduna,Kano,Katsina,Kebbi,Kogi,Kwara,Lagos,Nasarawa,Niger,Ogun,Ondo,Osun,Oyo,Plateau,Rivers,Sokoto,Taraba,Yobe,Zamfara"]'
173+
);
174+
}
175+
QTags.addButton(
176+
"ctys_shortcode",
177+
"Insert All Countries",
178+
insertSelectCountries
179+
);
180+
181+
function insertSelectCountries() {
182+
QTags.insertContent(
183+
'[select name="country" options="Afghanistan, Albania, Algeria, American Samoa, Andorra, Angola, Anguilla, Antarctica, Antigua and Barbuda, Argentina, Armenia, Aruba, Australia, Austria, Azerbaijan, Bahamas, Bahrain, Bangladesh, Barbados, Belarus, Belgium, Belize, Benin, Bermuda, Bhutan, Bolivia, Bosnia and Herzegovina, Botswana, Bouvet Island, Brazil, British Indian Ocean Territory, Brunei Darussalam, Bulgaria, Burkina Faso, Burundi, Cambodia, Cameroon, Canada, Cape Verde, Cayman Islands, Central African Republic, Chad, Chile, China, Christmas Island, Cocos (Keeling) Islands, Colombia, Comoros, Congo, Congo, The Democratic Republic of The, Cook Islands, Costa Rica, Cote D’ivoire, Croatia, Cuba, Cyprus, Czech Republic, Denmark, Djibouti, Dominica, Dominican Republic, Ecuador, Egypt, El Salvador, Equatorial Guinea, Eritrea, Estonia, Ethiopia, Falkland Islands (Malvinas), Faroe Islands, Fiji, Finland, France, French Guiana, French Polynesia, French Southern Territories, Gabon, Gambia, Georgia, Germany, Ghana, Gibraltar, Greece, Greenland, Grenada, Guadeloupe, Guam, Guatemala, Guinea, Guinea-bissau, Guyana, Haiti, Heard Island and Mcdonald Islands, Holy See (Vatican City State), Honduras, Hong Kong, Hungary, Iceland, India, Indonesia, Iran, Islamic Republic of, Iraq, Ireland, Israel, Italy, Jamaica, Japan, Jordan, Kazakhstan, Kenya, Kiribati, Korea, Democratic People’s Republic of, Korea, Republic of, Kuwait, Kyrgyzstan, Lao People’s Democratic Republic, Latvia, Lebanon, Lesotho, Liberia, Libyan Arab Jamahiriya, Liechtenstein, Lithuania, Luxembourg, Macao, Macedonia, The Former Yugoslav Republic of, Madagascar, Malawi, Malaysia, Maldives, Mali, Malta, Marshall Islands, Martinique, Mauritania, Mauritius, Mayotte, Mexico, Micronesia, Federated States of, Moldova, Republic of, Monaco, Mongolia, Montserrat, Morocco, Mozambique, Myanmar, Namibia, Nauru, Nepal, Netherlands, Netherlands Antilles, New Caledonia, New Zealand, Nicaragua, Niger, Nigeria, Niue, Norfolk Island, Northern Mariana Islands, Norway, Oman, Pakistan, Palau, Palestinian Territory, Occupied, Panama, Papua New Guinea, Paraguay, Peru, Philippines, Pitcairn, Poland, Portugal, Puerto Rico, Qatar, Reunion, Romania, Russian Federation, Rwanda, Saint Helena, Saint Kitts and Nevis, Saint Lucia, Saint Pierre and Miquelon, Saint Vincent and The Grenadines, Samoa, San Marino, Sao Tome and Principe, Saudi Arabia, Senegal, Serbia and Montenegro, Seychelles, Sierra Leone, Singapore, Slovakia, Slovenia, Solomon Islands, Somalia, South Africa, South Georgia and The South Sandwich Islands, Spain, Sri Lanka, Sudan, Suriname, Svalbard and Jan Mayen, Swaziland, Sweden, Switzerland, Syrian Arab Republic, Taiwan, Province of China, Tajikistan, Tanzania, United Republic of, Thailand, Timor-leste, Togo, Tokelau, Tonga, Trinidad and Tobago, Tunisia, Turkey, Turkmenistan, Turks and Caicos Islands, Tuvalu, Uganda, Ukraine, United Arab Emirates, United Kingdom, United States, United States Minor Outlying Islands, Uruguay, Uzbekistan, Vanuatu, Venezuela, Viet Nam, Virgin Islands, British, Virgin Islands, U.S., Wallis and Futuna, Western Sahara, Yemen, Zambia, Zimbabwe"] '
184+
);
185+
}
182186

183-
//
184-
</script>
187+
//
188+
</script>
185189
<?php
186190
}
187191
}
@@ -236,4 +240,4 @@ function kkd_pff_parse_request(&$wp)
236240
// $wp_rewrite->non_wp_rules['kkd_wppf_webhoook$'] = $plugin_url;
237241
// $wp_rewrite->non_wp_rules['kkd_wppf_webhoook/$'] = $plugin_url;
238242
// file_put_contents(ABSPATH.'.htaccess', $wp_rewrite->mod_rewrite_rules() );
239-
// }
243+
// }

readme.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Contributors: paystack, kendysond, steveamaza
33
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
6-
Tested up to: 5.2
7-
Stable tag: 3.3.7
6+
Tested up to: 5.5
7+
Stable tag: 3.3.10
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -92,6 +92,11 @@ Yes you can! Join in on our [GitHub repository](https://github.com/PaystackHQ/wo
9292

9393

9494
== Changelog ==
95+
96+
= 3.3.9 =
97+
* Fixed paid_at field not being set in database when plugin is being updated from previous versions with this bug
98+
= 3.3.8 =
99+
* Fixed paid_at field not being set in database
95100
= 3.3.7.1 =
96101
* Fixed bug that showed currency on receipt instead of name
97102
= 3.3.7 =

0 commit comments

Comments
 (0)