Browse Source

Minor fixes

tags/1.0.0
Peppinux 1 year ago
parent
commit
868ea84f81
1 changed files with 1 additions and 7 deletions
  1. +1
    -7
      dero-woocommerce-gateway.php

+ 1
- 7
dero-woocommerce-gateway.php View File

@@ -151,12 +151,6 @@ function dero_gateway_init() {
global $wpdb;
$table_name = $wpdb->prefix . 'dero_gateway_payments';

if($wpdb->get_var("show tables like $table_name") != $table_name) {
$error_message = 'Can\'t find DERO payments table. Plugin needs to be deactivated and reactivated.';
wc_add_notice(__('DERO Payment Gateway error: ', 'dero_gateway') . $error_message, 'error');
return;
}

$payment_id = '';
do {
$payment_id = bin2hex(openssl_random_pseudo_bytes(32));
@@ -321,7 +315,7 @@ function dero_gateway_init() {
jQuery('#address-qrcode').toggle();
}
</script>";
echo wpautop(wptexturize($instructions));
echo $instructions;
}

public function email_instructions($order, $sent_to_admin, $plain_text = false) {


Loading…
Cancel
Save