Changeset 3304820
- Timestamp:
- 06/02/2025 10:27:30 AM (10 months ago)
- Location:
- hyperpay-gateways
- Files:
-
- 14 edited
-
tags/5.3.0/hyperpay-payments.php (modified) (1 diff)
-
tags/5.3.0/readme.txt (modified) (1 diff)
-
tags/5.3.0/src/App/DefaultGateway.php (modified) (5 diffs)
-
tags/5.3.0/src/App/blackBins.php (modified) (1 diff)
-
tags/5.3.0/src/Brands/ClickToPay.php (modified) (1 diff)
-
tags/5.3.0/src/assets/js/admin.js (modified) (1 diff)
-
tags/5.3.0/src/assets/js/click_to_pay.js (modified) (1 diff)
-
trunk/hyperpay-payments.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/src/App/DefaultGateway.php (modified) (5 diffs)
-
trunk/src/App/blackBins.php (modified) (1 diff)
-
trunk/src/Brands/ClickToPay.php (modified) (1 diff)
-
trunk/src/assets/js/admin.js (modified) (1 diff)
-
trunk/src/assets/js/click_to_pay.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hyperpay-gateways/tags/5.3.0/hyperpay-payments.php
r3296629 r3304820 41 41 */ 42 42 43 add_action(' remove_hyperpay_expired_logs', [Log::class, 'removeExpiredLogs']);43 add_action('hyperpay_remove_expired_logs', [Log::class, 'removeExpiredLogs']); 44 44 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'); 47 47 } 48 48 -
hyperpay-gateways/tags/5.3.0/readme.txt
r3297120 r3304820 63 63 64 64 For details, see each library’s LICENSE file in the `vendor/` directory or their respective repositories. 65 66 67 == Source Code == 68 The uncompressed source code for compiled assets (e.g., JavaScript and CSS) is available in the `/src/assets/` directory. 69 70 Build tools used: 71 - Node.js 72 - Webpack 73 74 To build: 75 1. Run `npm install` 76 2. Run `npm run build` -
hyperpay-gateways/tags/5.3.0/src/App/DefaultGateway.php
r3297120 r3304820 347 347 $location = sanitize_url($_SERVER['HTTP_REFERER']); 348 348 wp_safe_redirect($location); 349 die;349 exit(); 350 350 } 351 351 … … 361 361 $order->update_status('pending'); 362 362 } 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(); 364 365 } 365 366 } … … 399 400 400 401 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); 402 403 } 403 404 } … … 1041 1042 1042 1043 1043 wp_ redirect($this->get_return_url($order));1044 die;1044 wp_safe_redirect($this->get_return_url($order)); 1045 exit(); 1045 1046 } 1046 1047 … … 1064 1065 1065 1066 $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(); 1067 1069 } 1068 1070 } -
hyperpay-gateways/tags/5.3.0/src/App/blackBins.php
r3296629 r3304820 100 100 ]; 101 101 102 ?> -
hyperpay-gateways/tags/5.3.0/src/Brands/ClickToPay.php
r3297120 r3304820 54 54 parent::renderPaymentForm($order,$result); 55 55 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()]); 57 57 } 58 58 -
hyperpay-gateways/tags/5.3.0/src/assets/js/admin.js
r3296629 r3304820 1 1 jQuery(document).ready(function ($) { 2 const { id, url, code_setting } = data;2 const { id, url, code_setting } = hyperpay_data; 3 3 4 4 const currencies_ids = $(`#woocommerce_${id}_currencies_ids_field`); -
hyperpay-gateways/tags/5.3.0/src/assets/js/click_to_pay.js
r3296629 r3304820 2 2 onReady: function () { 3 3 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) 5 5 }, 6 6 -
hyperpay-gateways/trunk/hyperpay-payments.php
r3297120 r3304820 41 41 */ 42 42 43 add_action(' remove_hyperpay_expired_logs', [Log::class, 'removeExpiredLogs']);43 add_action('hyperpay_remove_expired_logs', [Log::class, 'removeExpiredLogs']); 44 44 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'); 47 47 } 48 48 -
hyperpay-gateways/trunk/readme.txt
r3297120 r3304820 63 63 64 64 For details, see each library’s LICENSE file in the `vendor/` directory or their respective repositories. 65 66 67 == Source Code == 68 The uncompressed source code for compiled assets (e.g., JavaScript and CSS) is available in the `/src/assets/` directory. 69 70 Build tools used: 71 - Node.js 72 - Webpack 73 74 To build: 75 1. Run `npm install` 76 2. Run `npm run build` -
hyperpay-gateways/trunk/src/App/DefaultGateway.php
r3297120 r3304820 347 347 $location = sanitize_url($_SERVER['HTTP_REFERER']); 348 348 wp_safe_redirect($location); 349 die;349 exit(); 350 350 } 351 351 … … 361 361 $order->update_status('pending'); 362 362 } 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(); 364 365 } 365 366 } … … 399 400 400 401 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); 402 403 } 403 404 } … … 1041 1042 1042 1043 1043 wp_ redirect($this->get_return_url($order));1044 die;1044 wp_safe_redirect($this->get_return_url($order)); 1045 exit(); 1045 1046 } 1046 1047 … … 1064 1065 1065 1066 $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(); 1067 1069 } 1068 1070 } -
hyperpay-gateways/trunk/src/App/blackBins.php
r3297120 r3304820 100 100 ]; 101 101 102 ?> -
hyperpay-gateways/trunk/src/Brands/ClickToPay.php
r3297120 r3304820 54 54 parent::renderPaymentForm($order,$result); 55 55 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()]); 57 57 } 58 58 -
hyperpay-gateways/trunk/src/assets/js/admin.js
r3021558 r3304820 1 1 jQuery(document).ready(function ($) { 2 const { id, url, code_setting } = data;2 const { id, url, code_setting } = hyperpay_data; 3 3 4 4 const currencies_ids = $(`#woocommerce_${id}_currencies_ids_field`); -
hyperpay-gateways/trunk/src/assets/js/click_to_pay.js
r3061731 r3304820 2 2 onReady: function () { 3 3 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) 5 5 }, 6 6
Note: See TracChangeset
for help on using the changeset viewer.