Skip to content

Commit a401fb1

Browse files
Merge pull request #86 from PaystackOSS/chore/sanitize-form-fieds
Chore/sanitize form fields
2 parents 356afa4 + 146bf82 commit a401fb1

File tree

5 files changed

+702
-850
lines changed

5 files changed

+702
-850
lines changed

admin/class-paystack-forms-admin.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function kkd_pff_paystack_setting_page()
6262
<tr valign="top">
6363
<th scope="row">Test Secret Key</th>
6464
<td>
65-
<input type="text" name="tsk" value="<?php echo esc_attr(get_option('tsk')); ?>" />
65+
<input type="password" name="tsk" value="<?php echo esc_attr(get_option('tsk')); ?>" />
6666
</td>
6767
</tr>
6868

@@ -73,7 +73,7 @@ function kkd_pff_paystack_setting_page()
7373

7474
<tr valign="top">
7575
<th scope="row">Live Secret Key</th>
76-
<td><input type="text" name="lsk" value="<?php echo esc_attr(get_option('lsk')); ?>" /></td>
76+
<td><input type="password" name="lsk" value="<?php echo esc_attr(get_option('lsk')); ?>" /></td>
7777
</tr>
7878
<tr valign="top">
7979
<th scope="row">Live Public Key</th>
@@ -382,6 +382,9 @@ function kkd_pff_paystack_editor_add_form_data()
382382
<option value="GHS" ' . kkd_pff_paystack_txncheck('GHS', $currency) . '>Ghanaian Cedis</option>
383383
<option value="ZAR" ' . kkd_pff_paystack_txncheck('ZAR', $currency) . '>South African Rand</option>
384384
<option value="KES" ' . kkd_pff_paystack_txncheck('KES', $currency) . '>Kenyan Shillings</option>
385+
<option value="XOF" ' . kkd_pff_paystack_txncheck('XOF', $currency) . '>West African CFA Franc</option>
386+
<option value="RWF" ' . kkd_pff_paystack_txncheck('RWF', $currency) . '>Rwandan Franc</option>
387+
<option value="EGP" ' . kkd_pff_paystack_txncheck('EGP', $currency) . '>Egyptian Pound</option>
385388
<option value="USD" ' . kkd_pff_paystack_txncheck('USD', $currency) . '>US Dollars</option>
386389
</select>';
387390
echo '<small>Ensure you are activated for the currency you are selecting. Check <a href="https://paystack.helpscoutdocs.com/article/38-can-paystack-process-payments-in-usd-international-currencies" target="_blank">here</a> for more information.</small>';

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/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.4.1
6+
Version: 3.4.2
77
Author: Paystack
88
Author URI: http://paystack.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', '3.4.1');
18+
define('KKD_PFF_PAYSTACK_VERSION', '3.4.2');
1919
define('KKD_PFF_PAYSTACK_TABLE', 'paystack_forms_payments');
2020

2121
define('KKD_PFF_PLUGIN_BASENAME', plugin_basename(__FILE__));

0 commit comments

Comments
 (0)