|
|
| Line 80: |
Line 80: |
|
| |
|
| if (array_key_exists("paymentmethod", $parameters) && (empty($parameters["paymentmethod"]) || $parameters["paymentmethod"] == 'payplug') && isModEnabled('payplugdolicloud')) { | | if (array_key_exists("paymentmethod", $parameters) && (empty($parameters["paymentmethod"]) || $parameters["paymentmethod"] == 'payplug') && isModEnabled('payplugdolicloud')) { |
| $resprints .= '<div class="button buttonpayment" id="div_dopayment_payplug"><span class="fa fa-credit-card"></span> <input class="" type="submit" id="dopayment_payplug" name="dopayment_payplug" value="'.$langs->trans("PayplugDoPayment").'">'; | | $resprints .= '<button class="buttonpaymentsmall">'.$langs->trans("CreditOrDebitCard").'</button>'; |
| $resprints .= '<input type="hidden" name="noidempotency" value="'.GETPOST('noidempotency', 'int').'">';
| | $resprints .= '<script>myjavascript code</script>'; |
| $resprints .= '<input type="hidden" name="s" value="'.(GETPOST('s', 'alpha') ? GETPOST('s', 'alpha') : GETPOST('source', 'alpha')).'">';
| |
| $resprints .= '<input type="hidden" name="ref" value="'.GETPOST('ref').'">';
| |
| $resprints .= '<br>';
| |
| $resprints .= '<span class="buttonpaymentsmall">'.$langs->trans("CreditOrDebitCard").'</span>';
| |
| $resprints .= '</div>';
| |
| $resprints .= '<script> | |
| $( document ).ready(function() {
| |
| $("#div_dopayment_payplug").click(function(){
| |
| $("#dopayment_payplug").click();
| |
| });
| |
| $("#dopayment_payplug").click(function(e){
| |
| $("#div_dopayment_payplug").css( \'cursor\', \'wait\' );
| |
| e.stopPropagation();
| |
| return true;
| |
| });
| |
| });
| |
| </script> | |
| '; | |
| } | | } |
|
| |
|