We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2f5202 commit 4697e32Copy full SHA for 4697e32
modules/gateways/paystack.php
@@ -135,8 +135,12 @@ function paystack_link($params)
135
var paymentMethod = $(\'select[name="gateway"]\').val();
136
if (paymentMethod === \'paystack\') {
137
$(\'.payment-btn-container2\').hide();
138
- $(\'.payment-btn-container\').append(\'<button type="button"'.
139
- ' onclick="payWithPaystack()"> Pay with ATM Card</button>\');
+ var toAppend = \'<button type="button"'.
+ ' onclick="payWithPaystack()"> Pay with ATM Card</button>\';
140
+ $(\'.payment-btn-container\').append(toAppend);
141
+ if($(\'.payment-btn-container\').length===0){
142
+ $(\'select[name="gateway"]\').after(toAppend);
143
+ }
144
}
145
});
146
</script>
0 commit comments