Changeset 3173079
- Timestamp:
- 10/21/2024 04:39:03 PM (18 months ago)
- Location:
- tamara-checkout/trunk
- Files:
-
- 5 edited
-
package.json (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/Services/WCTamaraGateway.php (modified) (1 diff)
-
src/TamaraCheckout.php (modified) (7 diffs)
-
tamara-checkout.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tamara-checkout/trunk/package.json
r3121832 r3173079 1 1 { 2 2 "name": "tamara_checkout", 3 "version": "1.9. 7",3 "version": "1.9.8", 4 4 "description": "Plugin for checking out using Tamara payment method", 5 5 "scripts": { -
tamara-checkout/trunk/readme.txt
r3121925 r3173079 5 5 Tested up to: 6.6 6 6 Requires PHP: 7.2+ 7 Stable tag: 1.9. 77 Stable tag: 1.9.8 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 80 80 81 81 == Changelog == 82 83 = 1.9.8 - 2024-10-21 = 84 85 Bugfixes: 86 87 * Fix the cron issues 82 88 83 89 = 1.9.7 - 2024-07-18 = -
tamara-checkout/trunk/src/Services/WCTamaraGateway.php
r3121832 r3173079 441 441 $tamaraCheckoutSessionId = $checkoutResponse->getCheckoutResponse()->getCheckoutId(); 442 442 443 update_post_meta($orderId, '_tamara_checkout_session_id', $tamaraCheckoutSessionId); 443 444 update_post_meta($orderId, 'tamara_checkout_session_id', $tamaraCheckoutSessionId); 445 update_post_meta($orderId, '_tamara_checkout_url', $tamaraCheckoutUrl); 444 446 update_post_meta($orderId, 'tamara_checkout_url', $tamaraCheckoutUrl); 447 update_post_meta($orderId, '_tamara_payment_type', $checkoutPaymentType); 445 448 update_post_meta($orderId, 'tamara_payment_type', $checkoutPaymentType); 446 449 if ($checkoutPaymentType === static::PAYMENT_TYPE_PAY_BY_INSTALMENTS && !empty($instalmentPeriod)) { -
tamara-checkout/trunk/src/TamaraCheckout.php
r3121832 r3173079 260 260 add_action('woocommerce_checkout_update_order_review', [$this, 'getUpdatedPhoneNumberOnCheckout']); 261 261 262 if ($this->isCronjobEnabled() ) {262 if ($this->isCronjobEnabled() && rand(0,20) === 1) { 263 263 add_action('admin_footer', [$this, 'addCronJobTriggerScript']); 264 264 } … … 642 642 'post_status' => $tamaraCapturePaymentStatus, 643 643 'date_query' => [ 644 'before' => date('Y-m-d', strtotime('-14 days')), 644 645 'after' => date('Y-m-d', strtotime('-180 days')), 645 646 'inclusive' => true, … … 648 649 'relation' => 'AND', 649 650 [ 650 'key' => ' tamara_order_id',651 'key' => '_tamara_order_id', 651 652 'compare' => 'EXISTS', 652 653 ], 653 654 [ 654 'key' => 'capture_id', 655 'key' => '_tamara_capture_id', 656 'compare' => 'NOT EXISTS', 657 ], 658 [ 659 'key' => '_tamara_force_capture_checked', 655 660 'compare' => 'NOT EXISTS', 656 661 ], … … 663 668 664 669 foreach ($wcOrderIds as $wcOrderId) { 670 update_post_meta($wcOrderId, '_tamara_force_capture_checked', 1); 671 665 672 if (static::TAMARA_FULLY_CAPTURED_STATUS === TamaraCheckout::getInstance()->getTamaraOrderStatus($wcOrderId)) { 666 673 $wcOrder = wc_get_order($wcOrderId); 667 674 $wcOrder->add_order_note(__('Tamara - The payment has been captured successfully.', $this->textDomain)); 675 $tamaraCaptureId = $this->getWCTamaraGatewayService()->getTamaraCaptureId($wcOrderId); 676 update_post_meta($wcOrderId, '_tamara_capture_id', $tamaraCaptureId); 677 668 678 return true; 669 679 } else { … … 685 695 'post_status' => $toAuthoriseStatus, 686 696 'date_query' => [ 697 'before' => date('Y-m-d', strtotime('-3 days')), 687 698 'after' => date('Y-m-d', strtotime('-180 days')), 688 699 'inclusive' => true, … … 695 706 ], 696 707 [ 697 'key' => 'tamara_order_id', 708 'key' => '_tamara_order_id', 709 'compare' => 'NOT EXISTS', 710 ], 711 [ 712 'key' => '_tamara_force_authorise_checked', 698 713 'compare' => 'NOT EXISTS', 699 714 ], … … 706 721 707 722 foreach ($wcOrderIds as $wcOrderId) { 723 update_post_meta($wcOrderId, '_tamara_force_authorise_checked', 1); 708 724 if (!$this->isOrderAuthorised($wcOrderId)) { 709 725 $this->authoriseOrder($wcOrderId); -
tamara-checkout/trunk/tamara-checkout.php
r3121832 r3173079 6 6 * Author: dev@tamara.co 7 7 * Author URI: https://tamara.co/ 8 * Version: 1.9. 78 * Version: 1.9.8 9 9 * Text Domain: tamara 10 10 */ … … 12 12 use Tamara\Wp\Plugin\TamaraCheckout; 13 13 14 defined('TAMARA_CHECKOUT_VERSION') || define('TAMARA_CHECKOUT_VERSION', '1.9. 7');14 defined('TAMARA_CHECKOUT_VERSION') || define('TAMARA_CHECKOUT_VERSION', '1.9.8'); 15 15 16 16 // Use autoload if it isn't loaded before
Note: See TracChangeset
for help on using the changeset viewer.