File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff 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> ' ;
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments