Changeset 3081999
- Timestamp:
- 05/06/2024 02:27:59 PM (2 years ago)
- Location:
- monei
- Files:
-
- 8 edited
- 1 copied
-
tags/5.8.8 (copied) (copied from monei/trunk)
-
tags/5.8.8/class-woocommerce-gateway-monei.php (modified) (2 diffs)
-
tags/5.8.8/includes/abstracts/abstract-wc-monei-payment-gateway.php (modified) (1 diff)
-
tags/5.8.8/readme.txt (modified) (2 diffs)
-
tags/5.8.8/woocommerce-gateway-monei.php (modified) (1 diff)
-
trunk/class-woocommerce-gateway-monei.php (modified) (2 diffs)
-
trunk/includes/abstracts/abstract-wc-monei-payment-gateway.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woocommerce-gateway-monei.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
monei/tags/5.8.8/class-woocommerce-gateway-monei.php
r3081047 r3081999 6 6 * @category Core 7 7 * @package Woocommerce_Gateway_Monei 8 * @version 5.8. 78 * @version 5.8.8 9 9 */ 10 10 if ( ! class_exists( 'Woocommerce_Gateway_Monei' ) ) : … … 17 17 * @var string 18 18 */ 19 public $version = '5.8. 7';19 public $version = '5.8.8'; 20 20 21 21 /** -
monei/tags/5.8.8/includes/abstracts/abstract-wc-monei-payment-gateway.php
r2664464 r3081999 153 153 154 154 $payment_id = $order->get_meta( '_payment_order_number_monei', true ); 155 155 156 try { 157 156 158 $result = WC_Monei_API::refund_payment( $payment_id, monei_price_format( $amount ) ); 159 157 160 if ( 'REFUNDED' === $result->getStatus() || 'PARTIALLY_REFUNDED' === $result->getStatus() ) { 158 WC_Monei_Logger::log( 'Refund approved.', 'debug' ); 159 WC_Monei_Logger::log( $result, 'debug' ); 160 $order->add_order_note( '<strong>Refund Approved</strong>: Status: ' . $result->getStatus() . ' ' . $result->getStatusMessage() ); 161 $order->update_status('refunded', 'Refunded issued by admin.'); 161 162 WC_Monei_Logger::log( $amount . ' Refund approved.', 'debug' ); 163 //WC_Monei_Logger::log( $result, 'debug' ); 164 165 $order->add_order_note( '<strong>MONEI Refund Approved:</strong> ' . wc_price( $amount ) . '<br/>Status: ' . $result->getStatus() . ' ' . $result->getStatusMessage() ); 166 162 167 return true; 168 163 169 } 164 170 } catch ( Exception $e ) { -
monei/tags/5.8.8/readme.txt
r3081047 r3081999 4 4 Requires at least: 5.0 5 5 Tested up to: 6.5.2 6 Stable tag: 5.8. 76 Stable tag: 5.8.8 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 102 102 103 103 == Changelog == 104 = 5.8.8 = 105 * Fix partial refunds 106 107 = 5.8.8 = 108 * Update dependencies 109 104 110 = 5.7.0 = 105 111 * Update dependencies -
monei/tags/5.8.8/woocommerce-gateway-monei.php
r3081047 r3081999 11 11 * Plugin URI: https://wordpress.org/plugins/monei/ 12 12 * Description: Accept Card, Apple Pay, Google Pay, Bizum, PayPal and many more payment methods in your store. 13 * Version: 5.8. 713 * Version: 5.8.8 14 14 * Author: MONEI 15 15 * Author URI: https://www.monei.com/ -
monei/trunk/class-woocommerce-gateway-monei.php
r3081047 r3081999 6 6 * @category Core 7 7 * @package Woocommerce_Gateway_Monei 8 * @version 5.8. 78 * @version 5.8.8 9 9 */ 10 10 if ( ! class_exists( 'Woocommerce_Gateway_Monei' ) ) : … … 17 17 * @var string 18 18 */ 19 public $version = '5.8. 7';19 public $version = '5.8.8'; 20 20 21 21 /** -
monei/trunk/includes/abstracts/abstract-wc-monei-payment-gateway.php
r2664464 r3081999 153 153 154 154 $payment_id = $order->get_meta( '_payment_order_number_monei', true ); 155 155 156 try { 157 156 158 $result = WC_Monei_API::refund_payment( $payment_id, monei_price_format( $amount ) ); 159 157 160 if ( 'REFUNDED' === $result->getStatus() || 'PARTIALLY_REFUNDED' === $result->getStatus() ) { 158 WC_Monei_Logger::log( 'Refund approved.', 'debug' ); 159 WC_Monei_Logger::log( $result, 'debug' ); 160 $order->add_order_note( '<strong>Refund Approved</strong>: Status: ' . $result->getStatus() . ' ' . $result->getStatusMessage() ); 161 $order->update_status('refunded', 'Refunded issued by admin.'); 161 162 WC_Monei_Logger::log( $amount . ' Refund approved.', 'debug' ); 163 //WC_Monei_Logger::log( $result, 'debug' ); 164 165 $order->add_order_note( '<strong>MONEI Refund Approved:</strong> ' . wc_price( $amount ) . '<br/>Status: ' . $result->getStatus() . ' ' . $result->getStatusMessage() ); 166 162 167 return true; 168 163 169 } 164 170 } catch ( Exception $e ) { -
monei/trunk/readme.txt
r3081047 r3081999 4 4 Requires at least: 5.0 5 5 Tested up to: 6.5.2 6 Stable tag: 5.8. 76 Stable tag: 5.8.8 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 102 102 103 103 == Changelog == 104 = 5.8.8 = 105 * Fix partial refunds 106 107 = 5.8.8 = 108 * Update dependencies 109 104 110 = 5.7.0 = 105 111 * Update dependencies -
monei/trunk/woocommerce-gateway-monei.php
r3081047 r3081999 11 11 * Plugin URI: https://wordpress.org/plugins/monei/ 12 12 * Description: Accept Card, Apple Pay, Google Pay, Bizum, PayPal and many more payment methods in your store. 13 * Version: 5.8. 713 * Version: 5.8.8 14 14 * Author: MONEI 15 15 * Author URI: https://www.monei.com/
Note: See TracChangeset
for help on using the changeset viewer.