Changeset 3292557
- Timestamp:
- 05/13/2025 12:51:12 PM (11 months ago)
- Location:
- icount
- Files:
-
- 87 added
- 3 edited
-
tags/2.0.6 (added)
-
tags/2.0.6/.git (added)
-
tags/2.0.6/.git/HEAD (added)
-
tags/2.0.6/.git/branches (added)
-
tags/2.0.6/.git/config (added)
-
tags/2.0.6/.git/description (added)
-
tags/2.0.6/.git/hooks (added)
-
tags/2.0.6/.git/hooks/applypatch-msg.sample (added)
-
tags/2.0.6/.git/hooks/commit-msg.sample (added)
-
tags/2.0.6/.git/hooks/fsmonitor-watchman.sample (added)
-
tags/2.0.6/.git/hooks/post-update.sample (added)
-
tags/2.0.6/.git/hooks/pre-applypatch.sample (added)
-
tags/2.0.6/.git/hooks/pre-commit.sample (added)
-
tags/2.0.6/.git/hooks/pre-merge-commit.sample (added)
-
tags/2.0.6/.git/hooks/pre-push.sample (added)
-
tags/2.0.6/.git/hooks/pre-rebase.sample (added)
-
tags/2.0.6/.git/hooks/pre-receive.sample (added)
-
tags/2.0.6/.git/hooks/prepare-commit-msg.sample (added)
-
tags/2.0.6/.git/hooks/push-to-checkout.sample (added)
-
tags/2.0.6/.git/hooks/update.sample (added)
-
tags/2.0.6/.git/index (added)
-
tags/2.0.6/.git/info (added)
-
tags/2.0.6/.git/info/exclude (added)
-
tags/2.0.6/.git/logs (added)
-
tags/2.0.6/.git/logs/HEAD (added)
-
tags/2.0.6/.git/logs/refs (added)
-
tags/2.0.6/.git/logs/refs/heads (added)
-
tags/2.0.6/.git/logs/refs/heads/main (added)
-
tags/2.0.6/.git/logs/refs/remotes (added)
-
tags/2.0.6/.git/logs/refs/remotes/origin (added)
-
tags/2.0.6/.git/logs/refs/remotes/origin/HEAD (added)
-
tags/2.0.6/.git/objects (added)
-
tags/2.0.6/.git/objects/info (added)
-
tags/2.0.6/.git/objects/pack (added)
-
tags/2.0.6/.git/objects/pack/pack-41c13121d16a4af6c66a501b8a6fb7529b251402.idx (added)
-
tags/2.0.6/.git/objects/pack/pack-41c13121d16a4af6c66a501b8a6fb7529b251402.pack (added)
-
tags/2.0.6/.git/packed-refs (added)
-
tags/2.0.6/.git/refs (added)
-
tags/2.0.6/.git/refs/heads (added)
-
tags/2.0.6/.git/refs/heads/main (added)
-
tags/2.0.6/.git/refs/remotes (added)
-
tags/2.0.6/.git/refs/remotes/origin (added)
-
tags/2.0.6/.git/refs/remotes/origin/HEAD (added)
-
tags/2.0.6/.git/refs/tags (added)
-
tags/2.0.6/assets (added)
-
tags/2.0.6/assets/css (added)
-
tags/2.0.6/assets/css/admin_settings.css (added)
-
tags/2.0.6/assets/images (added)
-
tags/2.0.6/assets/images/icount.png (added)
-
tags/2.0.6/assets/js (added)
-
tags/2.0.6/assets/js/admin_settings.js (added)
-
tags/2.0.6/assets/js/block_element.js (added)
-
tags/2.0.6/assets/js/checkout.js (added)
-
tags/2.0.6/icount-payment-gateway.php (added)
-
tags/2.0.6/includes (added)
-
tags/2.0.6/includes/WC_ICount_ENUM.php (added)
-
tags/2.0.6/includes/WC_ICount_Gateway.php (added)
-
tags/2.0.6/includes/WC_ICount_Locker.php (added)
-
tags/2.0.6/includes/WC_ICount_Logger.php (added)
-
tags/2.0.6/includes/WC_ICount_PaymentMethodType.php (added)
-
tags/2.0.6/index.php (added)
-
tags/2.0.6/languages (added)
-
tags/2.0.6/languages/icount-payment-gateway-he_IL.mo (added)
-
tags/2.0.6/languages/icount-payment-gateway-he_IL.po (added)
-
tags/2.0.6/readme.txt (added)
-
tags/2.0.6/trunk (added)
-
tags/2.0.6/trunk/assets (added)
-
tags/2.0.6/trunk/assets/css (added)
-
tags/2.0.6/trunk/assets/css/admin_settings.css (added)
-
tags/2.0.6/trunk/assets/images (added)
-
tags/2.0.6/trunk/assets/images/icount.png (added)
-
tags/2.0.6/trunk/assets/js (added)
-
tags/2.0.6/trunk/assets/js/admin_settings.js (added)
-
tags/2.0.6/trunk/assets/js/block_element.js (added)
-
tags/2.0.6/trunk/assets/js/checkout.js (added)
-
tags/2.0.6/trunk/icount-payment-gateway.php (added)
-
tags/2.0.6/trunk/includes (added)
-
tags/2.0.6/trunk/includes/WC_ICount_ENUM.php (added)
-
tags/2.0.6/trunk/includes/WC_ICount_Gateway.php (added)
-
tags/2.0.6/trunk/includes/WC_ICount_Locker.php (added)
-
tags/2.0.6/trunk/includes/WC_ICount_Logger.php (added)
-
tags/2.0.6/trunk/includes/WC_ICount_PaymentMethodType.php (added)
-
tags/2.0.6/trunk/index.php (added)
-
tags/2.0.6/trunk/languages (added)
-
tags/2.0.6/trunk/languages/icount-payment-gateway-he_IL.mo (added)
-
tags/2.0.6/trunk/languages/icount-payment-gateway-he_IL.po (added)
-
tags/2.0.6/trunk/readme.txt (added)
-
trunk/icount-payment-gateway.php (modified) (1 diff)
-
trunk/includes/WC_ICount_Gateway.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
icount/trunk/icount-payment-gateway.php
r3272080 r3292557 6 6 * Plugin Name: iCount Payment Gateway 7 7 * Description: WooCommerce integration for iCount Payment Gateway. 8 * Version: 2.0. 58 * Version: 2.0.6 9 9 * RequiresPHP: 7.4 10 10 * Author: iCount Systems -
icount/trunk/includes/WC_ICount_Gateway.php
r3272080 r3292557 544 544 $hwc = implode("\n", $custom_hwc); 545 545 546 547 ///////////////////////////////////////////////////////////////////// 548 //MZ UPDATE 14.04.2025 549 //workaround not to use metadata storage 550 551 $posted = wp_unslash( 552 array_filter( 553 $_REQUEST, 554 fn($k) => in_array( 555 $k, 556 [ 557 self::SECRET_VERIFY, 558 'order-id', 559 'confirmation_code', 560 'sum', 561 'num_of_payments', 562 'cc_type', 563 'cc_last4', 564 'multipass', 565 'currency_code', 566 'first_payment', 567 568 'interest_rate', 569 'total_interest', 570 'total_paid' 571 ] 572 ), 573 ARRAY_FILTER_USE_KEY 574 ) 575 ); 576 577 $cc_params_meta = ($posted['sum'] != 0 578 ? [ 579 'cc' => [ 580 'sum' => ($posted['total_interest']) ? $posted['sum'] + $posted['total_interest'] : $posted['sum'], 581 'num_of_payments' => $posted['num_of_payments'], 582 'cc_type' => $posted['cc_type'], 583 'cc_last4' => $posted['cc_last4'], 584 'confirmation_code' => $posted['confirmation_code'] 585 ], 586 ] : [] 587 ) 588 + 589 (array_key_exists('multipass', $posted) 590 ? ['multipass' => $posted['multipass'],] 591 : [] 592 ); 593 594 if (!isset($cc_params_meta['cc'])) 595 $cc_params_meta = []; 596 ///////////////////////////////////////////////////////////////////// 597 546 598 @[ 547 599 'doctype' => $doctype, … … 583 635 ], 584 636 ] 585 : ($order->get_meta('_icount_transaction_details') ?: []) + [ 637 //: ($order->get_meta('_icount_transaction_details') ?: []) + [ 638 : ($cc_params_meta) + [ 586 639 'sum' => $order->get_total(), 587 640 'confirmation_code' => $order->get_transaction_id(), -
icount/trunk/readme.txt
r3272080 r3292557 4 4 Requires at least: 5.0 5 5 Tested up to: 6.7.1 6 Stable tag: 2.0. 56 Stable tag: 2.0.6 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.