Plugin Directory

Changeset 3184505


Ignore:
Timestamp:
11/08/2024 02:52:52 PM (17 months ago)
Author:
oaron
Message:

3.8: Fixed the successfull order statuses list.

Location:
pay-via-barion-for-woocommerce/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pay-via-barion-for-woocommerce/trunk/class-wc-gateway-barion.php

    r3145670 r3184505  
    130130    return $this->order_button_text;
    131131}
     132public function get_successfull_status() {
     133    return $this->settings["order_status"];
     134}
     135
    132136
    133137public function get_rejected_status() {
  • pay-via-barion-for-woocommerce/trunk/includes/class-wc-gateway-barion-ipn-handler.php

    r3145670 r3184505  
    8282
    8383        if($payment_details->Status == PaymentStatus::Succeeded) {
    84             if($order->has_status('completed')) {
     84            if($order->has_status($this->gateway->get_successfull_status())) {
    8585                exit;
    8686            }
  • pay-via-barion-for-woocommerce/trunk/includes/settings-barion.php

    r3145670 r3184505  
    5252        'title'           => __('Order status after payment', 'pay-via-barion-for-woocommerce'),
    5353        'type'            => 'select',
    54         'options'         => array(
    55                                 'automatic' => __('Automatic (recommended)', 'pay-via-barion-for-woocommerce'),
    56                                 'completed' => _x('Completed', 'Order status', 'woocommerce'),
    57                                 'processing' => _x('Processing', 'Order status', 'woocommerce'),
    58                                 'pending' => _x('Pending payment', 'Order status', 'woocommerce'),
    59                              ),
    60         'default'         => 'automatic',
     54        'options'         => array_merge(array('automatic' => __('Automatic (recommended)', 'pay-via-barion-for-woocommerce')), array_combine(array_map(fn($key) => str_replace('wc-', '', $key), array_keys(wc_get_order_statuses())), wc_get_order_statuses()) ),
     55                                             'default'         => 'automatic',
    6156        'description'     => __('Choose the status of the order after successful Barion payment.', 'pay-via-barion-for-woocommerce'),
    6257        'desc_tip'        => true,
  • pay-via-barion-for-woocommerce/trunk/index.php

    r3145670 r3184505  
    44Plugin URI: http://github.com/szelpe/woocommerce-barion
    55Description: Adds the ability to WooCommerce to pay via Barion
    6 Version: 3.7
     6Version: 3.8
    77Author: Aron Ocsvari <ugyfelszolgalat@bitron.hu>
    88Author URI: https://bitron.hu
     
    1111
    1212WC requires at least: 3.0.0
    13 WC tested up to: 9.2.3
     13WC tested up to: 9.3.3
    1414
    1515Text Domain: pay-via-barion-for-woocommerce
  • pay-via-barion-for-woocommerce/trunk/readme.txt

    r3145670 r3184505  
    33Tags: woocommerce, barion, gateway, payment
    44Requires at least: 4.0
    5 Tested up to: 6.5
     5Tested up to: 6.6.2
    66WC requires at least: 3.0.0
    7 WC tested up to: 9.2.3
     7WC tested up to: 9.3.3
    88Requires PHP: 5.6
    99Stable tag: trunk
     
    8989
    9090== Changelog ==
     91= 3.8 =
     92- Fixed the successfull order statuses list.
    9193= 3.7 =
    9294- Fixed labels on order buttons in checkout blocks;
Note: See TracChangeset for help on using the changeset viewer.