Plugin Directory

Changeset 3081999


Ignore:
Timestamp:
05/06/2024 02:27:59 PM (2 years ago)
Author:
monei
Message:

Update to version 5.8.8 from GitHub

Location:
monei
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • monei/tags/5.8.8/class-woocommerce-gateway-monei.php

    r3081047 r3081999  
    66 * @category Core
    77 * @package  Woocommerce_Gateway_Monei
    8  * @version  5.8.7
     8 * @version  5.8.8
    99 */
    1010if ( ! class_exists( 'Woocommerce_Gateway_Monei' ) ) :
     
    1717         * @var string
    1818         */
    19         public $version = '5.8.7';
     19        public $version = '5.8.8';
    2020
    2121        /**
  • monei/tags/5.8.8/includes/abstracts/abstract-wc-monei-payment-gateway.php

    r2664464 r3081999  
    153153
    154154        $payment_id = $order->get_meta( '_payment_order_number_monei', true );
     155
    155156        try {
     157
    156158            $result = WC_Monei_API::refund_payment( $payment_id, monei_price_format( $amount ) );
     159
    157160            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
    162167                return true;
     168
    163169            }
    164170        } catch ( Exception $e ) {
  • monei/tags/5.8.8/readme.txt

    r3081047 r3081999  
    44Requires at least: 5.0
    55Tested up to: 6.5.2
    6 Stable tag: 5.8.7
     6Stable tag: 5.8.8
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    102102
    103103== Changelog ==
     104= 5.8.8 =
     105* Fix partial refunds
     106
     107= 5.8.8 =
     108* Update dependencies
     109
    104110= 5.7.0 =
    105111* Update dependencies
  • monei/tags/5.8.8/woocommerce-gateway-monei.php

    r3081047 r3081999  
    1111 * Plugin URI: https://wordpress.org/plugins/monei/
    1212 * Description: Accept Card, Apple Pay, Google Pay, Bizum, PayPal and many more payment methods in your store.
    13  * Version: 5.8.7
     13 * Version: 5.8.8
    1414 * Author: MONEI
    1515 * Author URI: https://www.monei.com/
  • monei/trunk/class-woocommerce-gateway-monei.php

    r3081047 r3081999  
    66 * @category Core
    77 * @package  Woocommerce_Gateway_Monei
    8  * @version  5.8.7
     8 * @version  5.8.8
    99 */
    1010if ( ! class_exists( 'Woocommerce_Gateway_Monei' ) ) :
     
    1717         * @var string
    1818         */
    19         public $version = '5.8.7';
     19        public $version = '5.8.8';
    2020
    2121        /**
  • monei/trunk/includes/abstracts/abstract-wc-monei-payment-gateway.php

    r2664464 r3081999  
    153153
    154154        $payment_id = $order->get_meta( '_payment_order_number_monei', true );
     155
    155156        try {
     157
    156158            $result = WC_Monei_API::refund_payment( $payment_id, monei_price_format( $amount ) );
     159
    157160            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
    162167                return true;
     168
    163169            }
    164170        } catch ( Exception $e ) {
  • monei/trunk/readme.txt

    r3081047 r3081999  
    44Requires at least: 5.0
    55Tested up to: 6.5.2
    6 Stable tag: 5.8.7
     6Stable tag: 5.8.8
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    102102
    103103== Changelog ==
     104= 5.8.8 =
     105* Fix partial refunds
     106
     107= 5.8.8 =
     108* Update dependencies
     109
    104110= 5.7.0 =
    105111* Update dependencies
  • monei/trunk/woocommerce-gateway-monei.php

    r3081047 r3081999  
    1111 * Plugin URI: https://wordpress.org/plugins/monei/
    1212 * Description: Accept Card, Apple Pay, Google Pay, Bizum, PayPal and many more payment methods in your store.
    13  * Version: 5.8.7
     13 * Version: 5.8.8
    1414 * Author: MONEI
    1515 * Author URI: https://www.monei.com/
Note: See TracChangeset for help on using the changeset viewer.