Plugin Directory

Changeset 3083045


Ignore:
Timestamp:
05/08/2024 08:06:16 AM (2 years ago)
Author:
omise
Message:

Update to version 5.8.3 from GitHub

Location:
omise
Files:
4 deleted
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • omise/tags/5.8.3/CHANGELOG.md

    r3068190 r3083045  
    11# CHANGELOG
     2
     3## [v5.8.3 _(May 8, 2024)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.8.3)
     4- Remove OCBC PAO (PR: [#449](https://github.com/omise/omise-woocommerce/pull/449))
    25
    36## [v5.8.2 _(Apr 9, 2024)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.8.2)
  • omise/tags/5.8.3/includes/class-omise-payment-factory.php

    r3045385 r3083045  
    3232        'Omise_Payment_TouchNGo',
    3333        'Omise_Payment_RabbitLinePay',
    34         'Omise_Payment_OCBC_PAO',
    3534        'Omise_Payment_OCBC_Digital',
    3635        'Omise_Payment_GrabPay',
  • omise/tags/5.8.3/includes/class-omise-rest-webhooks-controller.php

    r2876857 r3083045  
    2727     * @var string
    2828     */
    29     const OCBC_PAO_CALLBACK_ENDPOINT = 'ocbc-pao-callback';
    30 
    31     /**
    32      * @var string
    33      */
    3429    const RETURN_TRUE = '__return_true';
    3530
     
    5449                'methods' => WP_REST_Server::READABLE,
    5550                'callback' => array( $this, 'callback_paynow_payment_status' ),
    56                 'permission_callback' => self::RETURN_TRUE
    57             )
    58         );
    59 
    60         register_rest_route(
    61             self::ENDPOINT_NAMESPACE,
    62             '/' . self::OCBC_PAO_CALLBACK_ENDPOINT . '/(?P<order_id>\d+)',
    63             array(
    64                 'methods' => WP_REST_Server::READABLE,
    65                 'callback' => array( $this, 'callback_ocbc_pao_callback' ),
    6651                'permission_callback' => self::RETURN_TRUE
    6752            )
     
    10792        return rest_ensure_response( $data );
    10893    }
    109 
    110     /**
    111      * @param  WP_REST_Request $request
    112      *
    113      * @return WP_Error|WP_REST_Response
    114      */
    115     public function callback_ocbc_pao_callback($request) {
    116         $order_id = $request->get_param('order_id');
    117         $url = add_query_arg('order_id', $order_id, home_url('wc-api/omise_ocbc_pao_callback'));
    118         wp_redirect($url);
    119         exit();
    120     }
    12194}
  • omise/tags/5.8.3/includes/gateway/class-omise-payment-mobilebanking.php

    r2987898 r3083045  
    9999     */
    100100    public function is_capability_support( $available_payment_methods ) {
    101         //filter ocbc pao out bc is no longer mobile banking payments
    102         return preg_grep('/^mobile_banking_(?!ocbc_pao)/', $available_payment_methods);
     101        return preg_grep('/^mobile_banking_/', $available_payment_methods);
    103102    }
    104103}
  • omise/tags/5.8.3/includes/libraries/omise-plugin/helpers/request.php

    r3045385 r3083045  
    2525            $token = isset($_GET['token']) ? sanitize_text_field($_GET['token']) : null;
    2626
    27             // For all payment except offline and OCBC PAO.
     27            // For all payment except offline
    2828            if ($token) {
    2929                return $token === $order_token;
  • omise/tags/5.8.3/omise-woocommerce.php

    r3068190 r3083045  
    55 * Plugin URI:  https://www.omise.co/woocommerce
    66 * Description: Opn Payments is a WordPress plugin designed specifically for WooCommerce. The plugin adds support for Opn Payments Payment Gateway's payment methods to WooCommerce.
    7  * Version:     5.8.2
     7 * Version:     5.8.3
    88 * Author:      Opn Payments and contributors
    99 * Author URI:  https://github.com/omise/omise-woocommerce/graphs/contributors
     
    2323     * @var string
    2424     */
    25     public $version = '5.8.2';
     25    public $version = '5.8.3';
    2626
    2727    /**
     
    214214        require_once OMISE_WOOCOMMERCE_PLUGIN_PATH . '/includes/gateway/class-omise-payment-googlepay.php';
    215215        require_once OMISE_WOOCOMMERCE_PLUGIN_PATH . '/includes/gateway/class-omise-payment-grabpay.php';
    216         require_once OMISE_WOOCOMMERCE_PLUGIN_PATH . '/includes/gateway/class-omise-payment-ocbc-pao.php';
    217216        require_once OMISE_WOOCOMMERCE_PLUGIN_PATH . '/includes/gateway/class-omise-payment-ocbc-digital.php';
    218217        require_once OMISE_WOOCOMMERCE_PLUGIN_PATH . '/includes/gateway/class-omise-payment-boost.php';
  • omise/tags/5.8.3/readme.txt

    r3068190 r3083045  
    44Requires at least: 4.3.1
    55Tested up to: 6.4.2
    6 Stable tag: 5.8.2
     6Stable tag: 5.8.3
    77License: MIT
    88License URI: https://opensource.org/licenses/MIT
     
    3434
    3535== Changelog ==
     36
     37= 5.8.3 =
     38
     39- Remove OCBC PAO (PR: [#449](https://github.com/omise/omise-woocommerce/pull/449))
    3640
    3741= 5.8.2 =
  • omise/trunk/CHANGELOG.md

    r3068190 r3083045  
    11# CHANGELOG
     2
     3## [v5.8.3 _(May 8, 2024)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.8.3)
     4- Remove OCBC PAO (PR: [#449](https://github.com/omise/omise-woocommerce/pull/449))
    25
    36## [v5.8.2 _(Apr 9, 2024)_](https://github.com/omise/omise-woocommerce/releases/tag/v5.8.2)
  • omise/trunk/includes/class-omise-payment-factory.php

    r3045385 r3083045  
    3232        'Omise_Payment_TouchNGo',
    3333        'Omise_Payment_RabbitLinePay',
    34         'Omise_Payment_OCBC_PAO',
    3534        'Omise_Payment_OCBC_Digital',
    3635        'Omise_Payment_GrabPay',
  • omise/trunk/includes/class-omise-rest-webhooks-controller.php

    r2876857 r3083045  
    2727     * @var string
    2828     */
    29     const OCBC_PAO_CALLBACK_ENDPOINT = 'ocbc-pao-callback';
    30 
    31     /**
    32      * @var string
    33      */
    3429    const RETURN_TRUE = '__return_true';
    3530
     
    5449                'methods' => WP_REST_Server::READABLE,
    5550                'callback' => array( $this, 'callback_paynow_payment_status' ),
    56                 'permission_callback' => self::RETURN_TRUE
    57             )
    58         );
    59 
    60         register_rest_route(
    61             self::ENDPOINT_NAMESPACE,
    62             '/' . self::OCBC_PAO_CALLBACK_ENDPOINT . '/(?P<order_id>\d+)',
    63             array(
    64                 'methods' => WP_REST_Server::READABLE,
    65                 'callback' => array( $this, 'callback_ocbc_pao_callback' ),
    6651                'permission_callback' => self::RETURN_TRUE
    6752            )
     
    10792        return rest_ensure_response( $data );
    10893    }
    109 
    110     /**
    111      * @param  WP_REST_Request $request
    112      *
    113      * @return WP_Error|WP_REST_Response
    114      */
    115     public function callback_ocbc_pao_callback($request) {
    116         $order_id = $request->get_param('order_id');
    117         $url = add_query_arg('order_id', $order_id, home_url('wc-api/omise_ocbc_pao_callback'));
    118         wp_redirect($url);
    119         exit();
    120     }
    12194}
  • omise/trunk/includes/gateway/class-omise-payment-mobilebanking.php

    r2987898 r3083045  
    9999     */
    100100    public function is_capability_support( $available_payment_methods ) {
    101         //filter ocbc pao out bc is no longer mobile banking payments
    102         return preg_grep('/^mobile_banking_(?!ocbc_pao)/', $available_payment_methods);
     101        return preg_grep('/^mobile_banking_/', $available_payment_methods);
    103102    }
    104103}
  • omise/trunk/includes/libraries/omise-plugin/helpers/request.php

    r3045385 r3083045  
    2525            $token = isset($_GET['token']) ? sanitize_text_field($_GET['token']) : null;
    2626
    27             // For all payment except offline and OCBC PAO.
     27            // For all payment except offline
    2828            if ($token) {
    2929                return $token === $order_token;
  • omise/trunk/omise-woocommerce.php

    r3068190 r3083045  
    55 * Plugin URI:  https://www.omise.co/woocommerce
    66 * Description: Opn Payments is a WordPress plugin designed specifically for WooCommerce. The plugin adds support for Opn Payments Payment Gateway's payment methods to WooCommerce.
    7  * Version:     5.8.2
     7 * Version:     5.8.3
    88 * Author:      Opn Payments and contributors
    99 * Author URI:  https://github.com/omise/omise-woocommerce/graphs/contributors
     
    2323     * @var string
    2424     */
    25     public $version = '5.8.2';
     25    public $version = '5.8.3';
    2626
    2727    /**
     
    214214        require_once OMISE_WOOCOMMERCE_PLUGIN_PATH . '/includes/gateway/class-omise-payment-googlepay.php';
    215215        require_once OMISE_WOOCOMMERCE_PLUGIN_PATH . '/includes/gateway/class-omise-payment-grabpay.php';
    216         require_once OMISE_WOOCOMMERCE_PLUGIN_PATH . '/includes/gateway/class-omise-payment-ocbc-pao.php';
    217216        require_once OMISE_WOOCOMMERCE_PLUGIN_PATH . '/includes/gateway/class-omise-payment-ocbc-digital.php';
    218217        require_once OMISE_WOOCOMMERCE_PLUGIN_PATH . '/includes/gateway/class-omise-payment-boost.php';
  • omise/trunk/readme.txt

    r3068190 r3083045  
    44Requires at least: 4.3.1
    55Tested up to: 6.4.2
    6 Stable tag: 5.8.2
     6Stable tag: 5.8.3
    77License: MIT
    88License URI: https://opensource.org/licenses/MIT
     
    3434
    3535== Changelog ==
     36
     37= 5.8.3 =
     38
     39- Remove OCBC PAO (PR: [#449](https://github.com/omise/omise-woocommerce/pull/449))
    3640
    3741= 5.8.2 =
Note: See TracChangeset for help on using the changeset viewer.