Plugin Directory

Changeset 2821949


Ignore:
Timestamp:
11/22/2022 07:55:12 AM (3 years ago)
Author:
opyintegrations
Message:
  • Updated the plugin to process the refund for completed and custom order status
Location:
openpay-payment-gateway
Files:
625 added
4 edited

Legend:

Unmodified
Added
Removed
  • openpay-payment-gateway/tags/1.2.2/class/WC_Gateway_Openpay.php

    r2804564 r2821949  
    357357            }     
    358358
    359             if ( !$order->has_status( 'processing' ) ) {
     359            if ( $order->has_status( 'pending' ) || $order->has_status( 'failed' ) ) {
    360360                return new WP_Error( 'error', 'Order was not paid and cannot be refunded' );
    361361            }
  • openpay-payment-gateway/trunk/class/WC_Gateway_Openpay.php

    r2767372 r2821949  
    357357            }     
    358358
    359             if ( !$order->has_status( 'processing' ) ) {
     359            if ( $order->has_status( 'pending' ) || $order->has_status( 'failed' ) ) {
    360360                return new WP_Error( 'error', 'Order was not paid and cannot be refunded' );
    361361            }
  • openpay-payment-gateway/trunk/openpay.php

    r2804572 r2821949  
    33 * Plugin Name: Openpay Payment Gateway
    44 * Description: Openpay is an alternative interest-free payment method available for customers at checkout.
    5  * Version: 1.2.2
     5 * Version: 1.2.3
    66 * Author: Openpay
    77 * Author URI: https://opy.com
  • openpay-payment-gateway/trunk/readme.txt

    r2807700 r2821949  
    7474== Changelog ==
    7575
     76= 1.2.3 =
     77* Updated the plugin to process the refund for `completed` and custom order status
     78
    7679= 1.2.2 =
    7780* Updated the plugin to use the Handover URL from API response
Note: See TracChangeset for help on using the changeset viewer.