@@ -81,6 +81,9 @@ function paystack_link($params)
8181 // Client
8282 $ email = $ params ['clientdetails ' ]['email ' ];
8383 $ phone = $ params ['clientdetails ' ]['phonenumber ' ];
84+ $ params ['langpaynow ' ] =
85+ array_key_exists ('langpaynow ' , $ params ) ?
86+ $ params ['langpaynow ' ] : 'Pay with ATM ' ;
8487
8588 // Config Options
8689 if ($ params ['testMode ' ] == 'on ' ) {
@@ -136,7 +139,7 @@ function paystack_link($params)
136139 if (paymentMethod === \'paystack \') {
137140 $( \'.payment-btn-container2 \').hide();
138141 var toAppend = \'<button type="button" ' .
139- ' onclick="payWithPaystack()"> Pay with ATM Card </button> \';
142+ ' onclick="payWithPaystack()"> ' . addslashes ( $ params [ ' langpaynow ' ]). ' </button> \';
140143 $( \'.payment-btn-container \').append(toAppend);
141144 if($( \'.payment-btn-container \').length===0){
142145 $( \'select[name="gateway"] \').after(toAppend);
@@ -171,7 +174,7 @@ function payWithPaystack(){
171174 $( \'img[alt="Loading"] \').hide();
172175 $( \'div.alert.alert-info.text-center \').html( \'Click the button below to retry payment... \');
173176 $( \'.payment-btn-container2 \').append( \'<button type="button" ' .
174- ' onclick="payWithPaystack()">Pay with ATM Card </button> \');
177+ ' onclick="payWithPaystack()"> ' . addslashes ( $ params [ ' langpaynow ' ]). ' </button> \');
175178 }
176179 }
177180 ' . ( $ paynowload ? 'setTimeout("payWithPaystack()", 5100); ' : '' ) . '
0 commit comments