Skip to content

Commit 146bf82

Browse files
update currency names
1 parent 999c0ca commit 146bf82

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

admin/class-paystack-forms-admin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ 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 Francs</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>
387387
<option value="EGP" ' . kkd_pff_paystack_txncheck('EGP', $currency) . '>Egyptian Pound</option>
388388
<option value="USD" ' . kkd_pff_paystack_txncheck('USD', $currency) . '>US Dollars</option>
389389
</select>';

public/class-paystack-forms-public.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1964,7 +1964,10 @@ function kkd_pff_paystack_form_shortcode($atts) {
19641964
// Ensure minimum defaults are set
19651965
$meta['_minimum'] = $meta['_minimum'] === "" ? 0 : $meta['_minimum'];
19661966
$meta['_usevariableamount'] = $meta['_usevariableamount'] === "" ? 0 : $meta['_usevariableamount'];
1967-
1967+
$meta['_usequantity'] = $meta['_usequantity'] === "" ? 'no' : $meta['_usequantity'];
1968+
$minimum = floatval($meta['_minimum']);
1969+
$currency = $meta['_currency'] === "" ? 'NGN' : $meta['_currency'];
1970+
$txncharge = floatval($meta['_txncharge']);
19681971
// Process variable amount options if applicable
19691972
$paymentoptions = [];
19701973
if ($meta['_usevariableamount'] == 1) {

0 commit comments

Comments
 (0)