Plugin Directory

Changeset 3304820


Ignore:
Timestamp:
06/02/2025 10:27:30 AM (10 months ago)
Author:
hyperpayproducts
Message:

feedback

Location:
hyperpay-gateways
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • hyperpay-gateways/tags/5.3.0/hyperpay-payments.php

    r3296629 r3304820  
    4141     */
    4242
    43     add_action('remove_hyperpay_expired_logs', [Log::class, 'removeExpiredLogs']);
     43    add_action('hyperpay_remove_expired_logs', [Log::class, 'removeExpiredLogs']);
    4444
    45     if (!wp_next_scheduled('remove_hyperpay_expired_logs')) {
    46         wp_schedule_event(time(), 'daily', 'remove_hyperpay_expired_logs');
     45    if (!wp_next_scheduled('hyperpay_remove_expired_logs')) {
     46        wp_schedule_event(time(), 'daily', 'hyperpay_remove_expired_logs');
    4747    }
    4848
  • hyperpay-gateways/tags/5.3.0/readme.txt

    r3297120 r3304820  
    6363
    6464For details, see each library’s LICENSE file in the `vendor/` directory or their respective repositories.
     65
     66
     67== Source Code ==
     68The uncompressed source code for compiled assets (e.g., JavaScript and CSS) is available in the `/src/assets/` directory.
     69
     70Build tools used:
     71- Node.js
     72- Webpack
     73
     74To build:
     751. Run `npm install`
     762. Run `npm run build`
  • hyperpay-gateways/tags/5.3.0/src/App/DefaultGateway.php

    r3297120 r3304820  
    347347        $location = sanitize_url($_SERVER['HTTP_REFERER']);
    348348        wp_safe_redirect($location);
    349         die;
     349        exit();
    350350    }
    351351
     
    361361            $order->update_status('pending');
    362362        } elseif ($order->has_status($this->order_status)) {
    363             wp_redirect($this->get_return_url($order));
     363            wp_safe_redirect($this->get_return_url($order));
     364            exit();
    364365        }
    365366    }
     
    399400
    400401            wp_enqueue_script('hyperpay_admin',  HYPERPAY_PLUGIN_DIR . '/src/assets/js/admin.js', ['jquery'], '1.0.0', true);
    401             wp_localize_script('hyperpay_admin', 'data', $data);
     402            wp_localize_script('hyperpay_admin', 'hyperpay_data', $data);
    402403        }
    403404    }
     
    10411042
    10421043
    1043         wp_redirect($this->get_return_url($order));
    1044         die;
     1044        wp_safe_redirect($this->get_return_url($order));
     1045        exit();
    10451046    }
    10461047
     
    10641065
    10651066        $order->add_order_note("the order waiting gateway confirmation" . __("Transaction ID: ", "hyperpay-gateways") . esc_html($uniqueId));
    1066         wp_redirect($this->get_return_url($order));
     1067        wp_safe_redirect($this->get_return_url($order));
     1068        exit();
    10671069    }
    10681070}
  • hyperpay-gateways/tags/5.3.0/src/App/blackBins.php

    r3296629 r3304820  
    100100];
    101101
    102 ?>
  • hyperpay-gateways/tags/5.3.0/src/Brands/ClickToPay.php

    r3297120 r3304820  
    5454        parent::renderPaymentForm($order,$result);
    5555        wp_enqueue_script('CLICK_TO_PAY_JS',  HYPERPAY_PLUGIN_DIR . '/src/assets/js/click_to_pay.js', ['jquery'], '1.0.0', true);
    56         wp_localize_script('CLICK_TO_PAY_JS', 'dataObj_click_to_pay', ["email" => $order->get_billing_email()]);
     56        wp_localize_script('CLICK_TO_PAY_JS', 'hyperpay_dataObj_click_to_pay', ["email" => $order->get_billing_email()]);
    5757    }
    5858
  • hyperpay-gateways/tags/5.3.0/src/assets/js/admin.js

    r3296629 r3304820  
    11jQuery(document).ready(function ($) {
    2   const { id, url, code_setting } = data;
     2  const { id, url, code_setting } = hyperpay_data;
    33
    44  const currencies_ids = $(`#woocommerce_${id}_currencies_ids_field`);
  • hyperpay-gateways/tags/5.3.0/src/assets/js/click_to_pay.js

    r3296629 r3304820  
    22    onReady: function () {
    33      jQuery('.wpwl-container-virtualAccount-CLICK_TO_PAY').after(jQuery('.wpwl-container-card '))
    4       jQuery(".wpwl-control-clickToPayAccessMyCards").val(dataObj_click_to_pay.email)
     4      jQuery(".wpwl-control-clickToPayAccessMyCards").val(hyperpay_dataObj_click_to_pay.email)
    55    },
    66 
  • hyperpay-gateways/trunk/hyperpay-payments.php

    r3297120 r3304820  
    4141     */
    4242
    43     add_action('remove_hyperpay_expired_logs', [Log::class, 'removeExpiredLogs']);
     43    add_action('hyperpay_remove_expired_logs', [Log::class, 'removeExpiredLogs']);
    4444
    45     if (!wp_next_scheduled('remove_hyperpay_expired_logs')) {
    46         wp_schedule_event(time(), 'daily', 'remove_hyperpay_expired_logs');
     45    if (!wp_next_scheduled('hyperpay_remove_expired_logs')) {
     46        wp_schedule_event(time(), 'daily', 'hyperpay_remove_expired_logs');
    4747    }
    4848
  • hyperpay-gateways/trunk/readme.txt

    r3297120 r3304820  
    6363
    6464For details, see each library’s LICENSE file in the `vendor/` directory or their respective repositories.
     65
     66
     67== Source Code ==
     68The uncompressed source code for compiled assets (e.g., JavaScript and CSS) is available in the `/src/assets/` directory.
     69
     70Build tools used:
     71- Node.js
     72- Webpack
     73
     74To build:
     751. Run `npm install`
     762. Run `npm run build`
  • hyperpay-gateways/trunk/src/App/DefaultGateway.php

    r3297120 r3304820  
    347347        $location = sanitize_url($_SERVER['HTTP_REFERER']);
    348348        wp_safe_redirect($location);
    349         die;
     349        exit();
    350350    }
    351351
     
    361361            $order->update_status('pending');
    362362        } elseif ($order->has_status($this->order_status)) {
    363             wp_redirect($this->get_return_url($order));
     363            wp_safe_redirect($this->get_return_url($order));
     364            exit();
    364365        }
    365366    }
     
    399400
    400401            wp_enqueue_script('hyperpay_admin',  HYPERPAY_PLUGIN_DIR . '/src/assets/js/admin.js', ['jquery'], '1.0.0', true);
    401             wp_localize_script('hyperpay_admin', 'data', $data);
     402            wp_localize_script('hyperpay_admin', 'hyperpay_data', $data);
    402403        }
    403404    }
     
    10411042
    10421043
    1043         wp_redirect($this->get_return_url($order));
    1044         die;
     1044        wp_safe_redirect($this->get_return_url($order));
     1045        exit();
    10451046    }
    10461047
     
    10641065
    10651066        $order->add_order_note("the order waiting gateway confirmation" . __("Transaction ID: ", "hyperpay-gateways") . esc_html($uniqueId));
    1066         wp_redirect($this->get_return_url($order));
     1067        wp_safe_redirect($this->get_return_url($order));
     1068        exit();
    10671069    }
    10681070}
  • hyperpay-gateways/trunk/src/App/blackBins.php

    r3297120 r3304820  
    100100];
    101101
    102 ?>
  • hyperpay-gateways/trunk/src/Brands/ClickToPay.php

    r3297120 r3304820  
    5454        parent::renderPaymentForm($order,$result);
    5555        wp_enqueue_script('CLICK_TO_PAY_JS',  HYPERPAY_PLUGIN_DIR . '/src/assets/js/click_to_pay.js', ['jquery'], '1.0.0', true);
    56         wp_localize_script('CLICK_TO_PAY_JS', 'dataObj_click_to_pay', ["email" => $order->get_billing_email()]);
     56        wp_localize_script('CLICK_TO_PAY_JS', 'hyperpay_dataObj_click_to_pay', ["email" => $order->get_billing_email()]);
    5757    }
    5858
  • hyperpay-gateways/trunk/src/assets/js/admin.js

    r3021558 r3304820  
    11jQuery(document).ready(function ($) {
    2   const { id, url, code_setting } = data;
     2  const { id, url, code_setting } = hyperpay_data;
    33
    44  const currencies_ids = $(`#woocommerce_${id}_currencies_ids_field`);
  • hyperpay-gateways/trunk/src/assets/js/click_to_pay.js

    r3061731 r3304820  
    22    onReady: function () {
    33      jQuery('.wpwl-container-virtualAccount-CLICK_TO_PAY').after(jQuery('.wpwl-container-card '))
    4       jQuery(".wpwl-control-clickToPayAccessMyCards").val(dataObj_click_to_pay.email)
     4      jQuery(".wpwl-control-clickToPayAccessMyCards").val(hyperpay_dataObj_click_to_pay.email)
    55    },
    66 
Note: See TracChangeset for help on using the changeset viewer.