Plugin Directory

Changeset 3165767


Ignore:
Timestamp:
10/09/2024 12:14:33 PM (18 months ago)
Author:
yocoadmin
Message:

Update to version 3.7.1 from Gitlab

Location:
yoco-payment-gateway
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • yoco-payment-gateway/tags/3.7.1/readme.txt

    r3138287 r3165767  
    55Tested up to: 6.6
    66Requires PHP: 7.4.0
    7 Stable tag: 3.7.0
     7Stable tag: 3.7.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    137137== Changelog ==
    138138
     139= 3.7.1 =
     140
     141* Improve payment complete implementation to allow use of actions and filters.
     142* WC tested up to 9.3.
     143
    139144= 3.7.0 =
    140145
  • yoco-payment-gateway/tags/3.7.1/src/Gateway/PaymentStatusScheduler.php

    r3138287 r3165767  
    115115                );
    116116
    117                 if ( 'completed' === $payment_status && true === $order->update_status( 'processing' ) ) {
     117                if ( 'completed' === $payment_status && true === $order->payment_complete( $payment_id ) ) {
    118118                    $order->update_meta_data( 'yoco_order_payment_id', $payment_id );
    119119                    $order->save_meta_data();
     
    222222            $payment_id     = $data['body']['paymentId'];
    223223
    224             if ( 'completed' === $payment_status && true === $order->update_status( 'processing' ) ) {
     224            if ( 'completed' === $payment_status && true === $order->payment_complete( $payment_id ) ) {
    225225                $order->update_meta_data( 'yoco_order_payment_id', $payment_id );
    226226                $order->save_meta_data();
    227227
    228                 if ( ! empty( $order->get_meta( 'yoco_order_payment_id', true ) ) ) {
     228                if ( $payment_id === $order->get_meta( 'yoco_order_payment_id', true ) ) {
    229229                    $this->remove_order( $order->get_id() );
    230230                    do_action( 'yoco_payment_gateway/order/meta/yoco_order_payment_id/updated_successfully', $order->get_id() );
  • yoco-payment-gateway/tags/3.7.1/src/Integrations/Yoco/Webhooks/Processors/PaymentWebhookProcessor.php

    r3067423 r3165767  
    3636        }
    3737
    38         if ( ! empty( $this->order->get_meta( 'yoco_order_payment_id', true, 'yoco' ) ) ) {
     38        if ( ! empty( $this->order->get_meta( 'yoco_order_payment_id', true ) ) ) {
    3939            return $this->sendSuccessResponse();
    4040        }
    4141
    42         if ( true === $this->order->update_status( 'processing' ) ) {
     42        if ( true === $this->order->payment_complete( $payload->getPaymentId() ) ) {
    4343            do_action( 'yoco_payment_gateway/payment/completed', $this->order, $payload );
    4444
  • yoco-payment-gateway/tags/3.7.1/yoco_wc_payment_gateway.php

    r3138287 r3165767  
    66 * Author: Yoco
    77 * Author URI: https://www.yoco.com
    8  * Version: 3.7.0
     8 * Version: 3.7.1
    99 * Requires at least: 5.0.0
    1010 * Tested up to: 6.6
    11  * WC requires at least: 4.0.0
    12  * WC tested up to: 9.1
     11 * WC requires at least: 8.0.0
     12 * WC tested up to: 9.3
    1313 * Requires Plugins: woocommerce
    1414 * Text Domain: yoco_wc_payment_gateway
  • yoco-payment-gateway/trunk/readme.txt

    r3138287 r3165767  
    55Tested up to: 6.6
    66Requires PHP: 7.4.0
    7 Stable tag: 3.7.0
     7Stable tag: 3.7.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    137137== Changelog ==
    138138
     139= 3.7.1 =
     140
     141* Improve payment complete implementation to allow use of actions and filters.
     142* WC tested up to 9.3.
     143
    139144= 3.7.0 =
    140145
  • yoco-payment-gateway/trunk/src/Gateway/PaymentStatusScheduler.php

    r3138287 r3165767  
    115115                );
    116116
    117                 if ( 'completed' === $payment_status && true === $order->update_status( 'processing' ) ) {
     117                if ( 'completed' === $payment_status && true === $order->payment_complete( $payment_id ) ) {
    118118                    $order->update_meta_data( 'yoco_order_payment_id', $payment_id );
    119119                    $order->save_meta_data();
     
    222222            $payment_id     = $data['body']['paymentId'];
    223223
    224             if ( 'completed' === $payment_status && true === $order->update_status( 'processing' ) ) {
     224            if ( 'completed' === $payment_status && true === $order->payment_complete( $payment_id ) ) {
    225225                $order->update_meta_data( 'yoco_order_payment_id', $payment_id );
    226226                $order->save_meta_data();
    227227
    228                 if ( ! empty( $order->get_meta( 'yoco_order_payment_id', true ) ) ) {
     228                if ( $payment_id === $order->get_meta( 'yoco_order_payment_id', true ) ) {
    229229                    $this->remove_order( $order->get_id() );
    230230                    do_action( 'yoco_payment_gateway/order/meta/yoco_order_payment_id/updated_successfully', $order->get_id() );
  • yoco-payment-gateway/trunk/src/Integrations/Yoco/Webhooks/Processors/PaymentWebhookProcessor.php

    r3067423 r3165767  
    3636        }
    3737
    38         if ( ! empty( $this->order->get_meta( 'yoco_order_payment_id', true, 'yoco' ) ) ) {
     38        if ( ! empty( $this->order->get_meta( 'yoco_order_payment_id', true ) ) ) {
    3939            return $this->sendSuccessResponse();
    4040        }
    4141
    42         if ( true === $this->order->update_status( 'processing' ) ) {
     42        if ( true === $this->order->payment_complete( $payload->getPaymentId() ) ) {
    4343            do_action( 'yoco_payment_gateway/payment/completed', $this->order, $payload );
    4444
  • yoco-payment-gateway/trunk/yoco_wc_payment_gateway.php

    r3138287 r3165767  
    66 * Author: Yoco
    77 * Author URI: https://www.yoco.com
    8  * Version: 3.7.0
     8 * Version: 3.7.1
    99 * Requires at least: 5.0.0
    1010 * Tested up to: 6.6
    11  * WC requires at least: 4.0.0
    12  * WC tested up to: 9.1
     11 * WC requires at least: 8.0.0
     12 * WC tested up to: 9.3
    1313 * Requires Plugins: woocommerce
    1414 * Text Domain: yoco_wc_payment_gateway
Note: See TracChangeset for help on using the changeset viewer.