Changeset 3083045
- Timestamp:
- 05/08/2024 08:06:16 AM (2 years ago)
- Location:
- omise
- Files:
-
- 4 deleted
- 14 edited
- 1 copied
-
tags/5.8.3 (copied) (copied from omise/trunk)
-
tags/5.8.3/CHANGELOG.md (modified) (1 diff)
-
tags/5.8.3/includes/class-omise-payment-factory.php (modified) (1 diff)
-
tags/5.8.3/includes/class-omise-rest-webhooks-controller.php (modified) (3 diffs)
-
tags/5.8.3/includes/gateway/class-omise-payment-mobilebanking.php (modified) (1 diff)
-
tags/5.8.3/includes/gateway/class-omise-payment-ocbc-pao.php (deleted)
-
tags/5.8.3/includes/libraries/omise-plugin/helpers/request.php (modified) (1 diff)
-
tags/5.8.3/omise-woocommerce.php (modified) (3 diffs)
-
tags/5.8.3/readme.txt (modified) (2 diffs)
-
tags/5.8.3/tests/unit/includes/gateway/class-omise-payment-ocbc-pao-test.php (deleted)
-
trunk/CHANGELOG.md (modified) (1 diff)
-
trunk/includes/class-omise-payment-factory.php (modified) (1 diff)
-
trunk/includes/class-omise-rest-webhooks-controller.php (modified) (3 diffs)
-
trunk/includes/gateway/class-omise-payment-mobilebanking.php (modified) (1 diff)
-
trunk/includes/gateway/class-omise-payment-ocbc-pao.php (deleted)
-
trunk/includes/libraries/omise-plugin/helpers/request.php (modified) (1 diff)
-
trunk/omise-woocommerce.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/tests/unit/includes/gateway/class-omise-payment-ocbc-pao-test.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
omise/tags/5.8.3/CHANGELOG.md
r3068190 r3083045 1 1 # 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)) 2 5 3 6 ## [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 32 32 'Omise_Payment_TouchNGo', 33 33 'Omise_Payment_RabbitLinePay', 34 'Omise_Payment_OCBC_PAO',35 34 'Omise_Payment_OCBC_Digital', 36 35 'Omise_Payment_GrabPay', -
omise/tags/5.8.3/includes/class-omise-rest-webhooks-controller.php
r2876857 r3083045 27 27 * @var string 28 28 */ 29 const OCBC_PAO_CALLBACK_ENDPOINT = 'ocbc-pao-callback';30 31 /**32 * @var string33 */34 29 const RETURN_TRUE = '__return_true'; 35 30 … … 54 49 'methods' => WP_REST_Server::READABLE, 55 50 'callback' => array( $this, 'callback_paynow_payment_status' ), 56 'permission_callback' => self::RETURN_TRUE57 )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' ),66 51 'permission_callback' => self::RETURN_TRUE 67 52 ) … … 107 92 return rest_ensure_response( $data ); 108 93 } 109 110 /**111 * @param WP_REST_Request $request112 *113 * @return WP_Error|WP_REST_Response114 */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 }121 94 } -
omise/tags/5.8.3/includes/gateway/class-omise-payment-mobilebanking.php
r2987898 r3083045 99 99 */ 100 100 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); 103 102 } 104 103 } -
omise/tags/5.8.3/includes/libraries/omise-plugin/helpers/request.php
r3045385 r3083045 25 25 $token = isset($_GET['token']) ? sanitize_text_field($_GET['token']) : null; 26 26 27 // For all payment except offline and OCBC PAO.27 // For all payment except offline 28 28 if ($token) { 29 29 return $token === $order_token; -
omise/tags/5.8.3/omise-woocommerce.php
r3068190 r3083045 5 5 * Plugin URI: https://www.omise.co/woocommerce 6 6 * 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. 27 * Version: 5.8.3 8 8 * Author: Opn Payments and contributors 9 9 * Author URI: https://github.com/omise/omise-woocommerce/graphs/contributors … … 23 23 * @var string 24 24 */ 25 public $version = '5.8. 2';25 public $version = '5.8.3'; 26 26 27 27 /** … … 214 214 require_once OMISE_WOOCOMMERCE_PLUGIN_PATH . '/includes/gateway/class-omise-payment-googlepay.php'; 215 215 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';217 216 require_once OMISE_WOOCOMMERCE_PLUGIN_PATH . '/includes/gateway/class-omise-payment-ocbc-digital.php'; 218 217 require_once OMISE_WOOCOMMERCE_PLUGIN_PATH . '/includes/gateway/class-omise-payment-boost.php'; -
omise/tags/5.8.3/readme.txt
r3068190 r3083045 4 4 Requires at least: 4.3.1 5 5 Tested up to: 6.4.2 6 Stable tag: 5.8. 26 Stable tag: 5.8.3 7 7 License: MIT 8 8 License URI: https://opensource.org/licenses/MIT … … 34 34 35 35 == Changelog == 36 37 = 5.8.3 = 38 39 - Remove OCBC PAO (PR: [#449](https://github.com/omise/omise-woocommerce/pull/449)) 36 40 37 41 = 5.8.2 = -
omise/trunk/CHANGELOG.md
r3068190 r3083045 1 1 # 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)) 2 5 3 6 ## [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 32 32 'Omise_Payment_TouchNGo', 33 33 'Omise_Payment_RabbitLinePay', 34 'Omise_Payment_OCBC_PAO',35 34 'Omise_Payment_OCBC_Digital', 36 35 'Omise_Payment_GrabPay', -
omise/trunk/includes/class-omise-rest-webhooks-controller.php
r2876857 r3083045 27 27 * @var string 28 28 */ 29 const OCBC_PAO_CALLBACK_ENDPOINT = 'ocbc-pao-callback';30 31 /**32 * @var string33 */34 29 const RETURN_TRUE = '__return_true'; 35 30 … … 54 49 'methods' => WP_REST_Server::READABLE, 55 50 'callback' => array( $this, 'callback_paynow_payment_status' ), 56 'permission_callback' => self::RETURN_TRUE57 )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' ),66 51 'permission_callback' => self::RETURN_TRUE 67 52 ) … … 107 92 return rest_ensure_response( $data ); 108 93 } 109 110 /**111 * @param WP_REST_Request $request112 *113 * @return WP_Error|WP_REST_Response114 */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 }121 94 } -
omise/trunk/includes/gateway/class-omise-payment-mobilebanking.php
r2987898 r3083045 99 99 */ 100 100 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); 103 102 } 104 103 } -
omise/trunk/includes/libraries/omise-plugin/helpers/request.php
r3045385 r3083045 25 25 $token = isset($_GET['token']) ? sanitize_text_field($_GET['token']) : null; 26 26 27 // For all payment except offline and OCBC PAO.27 // For all payment except offline 28 28 if ($token) { 29 29 return $token === $order_token; -
omise/trunk/omise-woocommerce.php
r3068190 r3083045 5 5 * Plugin URI: https://www.omise.co/woocommerce 6 6 * 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. 27 * Version: 5.8.3 8 8 * Author: Opn Payments and contributors 9 9 * Author URI: https://github.com/omise/omise-woocommerce/graphs/contributors … … 23 23 * @var string 24 24 */ 25 public $version = '5.8. 2';25 public $version = '5.8.3'; 26 26 27 27 /** … … 214 214 require_once OMISE_WOOCOMMERCE_PLUGIN_PATH . '/includes/gateway/class-omise-payment-googlepay.php'; 215 215 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';217 216 require_once OMISE_WOOCOMMERCE_PLUGIN_PATH . '/includes/gateway/class-omise-payment-ocbc-digital.php'; 218 217 require_once OMISE_WOOCOMMERCE_PLUGIN_PATH . '/includes/gateway/class-omise-payment-boost.php'; -
omise/trunk/readme.txt
r3068190 r3083045 4 4 Requires at least: 4.3.1 5 5 Tested up to: 6.4.2 6 Stable tag: 5.8. 26 Stable tag: 5.8.3 7 7 License: MIT 8 8 License URI: https://opensource.org/licenses/MIT … … 34 34 35 35 == Changelog == 36 37 = 5.8.3 = 38 39 - Remove OCBC PAO (PR: [#449](https://github.com/omise/omise-woocommerce/pull/449)) 36 40 37 41 = 5.8.2 =
Note: See TracChangeset
for help on using the changeset viewer.