Changeset 3165767
- Timestamp:
- 10/09/2024 12:14:33 PM (18 months ago)
- Location:
- yoco-payment-gateway
- Files:
-
- 8 edited
- 1 copied
-
tags/3.7.1 (copied) (copied from yoco-payment-gateway/trunk)
-
tags/3.7.1/readme.txt (modified) (2 diffs)
-
tags/3.7.1/src/Gateway/PaymentStatusScheduler.php (modified) (2 diffs)
-
tags/3.7.1/src/Integrations/Yoco/Webhooks/Processors/PaymentWebhookProcessor.php (modified) (1 diff)
-
tags/3.7.1/yoco_wc_payment_gateway.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Gateway/PaymentStatusScheduler.php (modified) (2 diffs)
-
trunk/src/Integrations/Yoco/Webhooks/Processors/PaymentWebhookProcessor.php (modified) (1 diff)
-
trunk/yoco_wc_payment_gateway.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
yoco-payment-gateway/tags/3.7.1/readme.txt
r3138287 r3165767 5 5 Tested up to: 6.6 6 6 Requires PHP: 7.4.0 7 Stable tag: 3.7. 07 Stable tag: 3.7.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 137 137 == Changelog == 138 138 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 139 144 = 3.7.0 = 140 145 -
yoco-payment-gateway/tags/3.7.1/src/Gateway/PaymentStatusScheduler.php
r3138287 r3165767 115 115 ); 116 116 117 if ( 'completed' === $payment_status && true === $order-> update_status( 'processing') ) {117 if ( 'completed' === $payment_status && true === $order->payment_complete( $payment_id ) ) { 118 118 $order->update_meta_data( 'yoco_order_payment_id', $payment_id ); 119 119 $order->save_meta_data(); … … 222 222 $payment_id = $data['body']['paymentId']; 223 223 224 if ( 'completed' === $payment_status && true === $order-> update_status( 'processing') ) {224 if ( 'completed' === $payment_status && true === $order->payment_complete( $payment_id ) ) { 225 225 $order->update_meta_data( 'yoco_order_payment_id', $payment_id ); 226 226 $order->save_meta_data(); 227 227 228 if ( ! empty( $order->get_meta( 'yoco_order_payment_id', true )) ) {228 if ( $payment_id === $order->get_meta( 'yoco_order_payment_id', true ) ) { 229 229 $this->remove_order( $order->get_id() ); 230 230 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 36 36 } 37 37 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 ) ) ) { 39 39 return $this->sendSuccessResponse(); 40 40 } 41 41 42 if ( true === $this->order-> update_status( 'processing') ) {42 if ( true === $this->order->payment_complete( $payload->getPaymentId() ) ) { 43 43 do_action( 'yoco_payment_gateway/payment/completed', $this->order, $payload ); 44 44 -
yoco-payment-gateway/tags/3.7.1/yoco_wc_payment_gateway.php
r3138287 r3165767 6 6 * Author: Yoco 7 7 * Author URI: https://www.yoco.com 8 * Version: 3.7. 08 * Version: 3.7.1 9 9 * Requires at least: 5.0.0 10 10 * Tested up to: 6.6 11 * WC requires at least: 4.0.012 * WC tested up to: 9. 111 * WC requires at least: 8.0.0 12 * WC tested up to: 9.3 13 13 * Requires Plugins: woocommerce 14 14 * Text Domain: yoco_wc_payment_gateway -
yoco-payment-gateway/trunk/readme.txt
r3138287 r3165767 5 5 Tested up to: 6.6 6 6 Requires PHP: 7.4.0 7 Stable tag: 3.7. 07 Stable tag: 3.7.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 137 137 == Changelog == 138 138 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 139 144 = 3.7.0 = 140 145 -
yoco-payment-gateway/trunk/src/Gateway/PaymentStatusScheduler.php
r3138287 r3165767 115 115 ); 116 116 117 if ( 'completed' === $payment_status && true === $order-> update_status( 'processing') ) {117 if ( 'completed' === $payment_status && true === $order->payment_complete( $payment_id ) ) { 118 118 $order->update_meta_data( 'yoco_order_payment_id', $payment_id ); 119 119 $order->save_meta_data(); … … 222 222 $payment_id = $data['body']['paymentId']; 223 223 224 if ( 'completed' === $payment_status && true === $order-> update_status( 'processing') ) {224 if ( 'completed' === $payment_status && true === $order->payment_complete( $payment_id ) ) { 225 225 $order->update_meta_data( 'yoco_order_payment_id', $payment_id ); 226 226 $order->save_meta_data(); 227 227 228 if ( ! empty( $order->get_meta( 'yoco_order_payment_id', true )) ) {228 if ( $payment_id === $order->get_meta( 'yoco_order_payment_id', true ) ) { 229 229 $this->remove_order( $order->get_id() ); 230 230 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 36 36 } 37 37 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 ) ) ) { 39 39 return $this->sendSuccessResponse(); 40 40 } 41 41 42 if ( true === $this->order-> update_status( 'processing') ) {42 if ( true === $this->order->payment_complete( $payload->getPaymentId() ) ) { 43 43 do_action( 'yoco_payment_gateway/payment/completed', $this->order, $payload ); 44 44 -
yoco-payment-gateway/trunk/yoco_wc_payment_gateway.php
r3138287 r3165767 6 6 * Author: Yoco 7 7 * Author URI: https://www.yoco.com 8 * Version: 3.7. 08 * Version: 3.7.1 9 9 * Requires at least: 5.0.0 10 10 * Tested up to: 6.6 11 * WC requires at least: 4.0.012 * WC tested up to: 9. 111 * WC requires at least: 8.0.0 12 * WC tested up to: 9.3 13 13 * Requires Plugins: woocommerce 14 14 * Text Domain: yoco_wc_payment_gateway
Note: See TracChangeset
for help on using the changeset viewer.