Changeset 2601662
- Timestamp:
- 09/20/2021 10:19:27 AM (5 years ago)
- Location:
- slimcd-payment-gateway
- Files:
-
- 19 added
- 4 edited
-
tags/1.0.2 (added)
-
tags/1.0.2/README.txt (added)
-
tags/1.0.2/assets (added)
-
tags/1.0.2/assets/images (added)
-
tags/1.0.2/assets/images/icon.png (added)
-
tags/1.0.2/assets/images/icon1.png (added)
-
tags/1.0.2/assets/images/icon2.png (added)
-
tags/1.0.2/assets/images/powered-by-SlimCd.png (added)
-
tags/1.0.2/assets/js (added)
-
tags/1.0.2/assets/js/slimcd_script.js (added)
-
tags/1.0.2/assets/styles (added)
-
tags/1.0.2/assets/styles/style.css (added)
-
tags/1.0.2/includes (added)
-
tags/1.0.2/includes/class-slimcd-payment-gateway.php (added)
-
tags/1.0.2/includes/convience-surcharge.php (added)
-
tags/1.0.2/includes/settings-slimcd-payment.php (added)
-
tags/1.0.2/includes/slimcd-checkout-description-fields.php (added)
-
tags/1.0.2/languages (added)
-
tags/1.0.2/slimcd-payment-for-woocommerce.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/includes/class-slimcd-payment-gateway.php (modified) (2 diffs)
-
trunk/includes/settings-slimcd-payment.php (modified) (1 diff)
-
trunk/slimcd-payment-for-woocommerce.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
slimcd-payment-gateway/trunk/README.txt
r2574476 r2601662 4 4 Requires at least: 4.9.0 5 5 Tested up to: 5.8 6 Stable tag: 1.0. 16 Stable tag: 1.0.2 7 7 Requires PHP: 7.0.0 8 8 License: GPLv2 or later … … 95 95 = 1.0.1 = 96 96 Fixed reported bugs. 97 98 = 1.0.2 = 99 Added user choice to select status after payment. -
slimcd-payment-gateway/trunk/includes/class-slimcd-payment-gateway.php
r2576606 r2601662 185 185 { 186 186 $order = wc_get_order($order_id); 187 $order->update_status( 'processing');187 $order->update_status(trim($this->get_option('slimcd_wc_status_after_payment'))); 188 188 WC()->cart->empty_cart(); 189 189 } … … 196 196 public function slimcd_redirect() 197 197 { 198 198 199 if (!empty($_GET['order_id'])) { 199 200 $order = wc_get_order($_GET['order_id']); 200 if ($order->get_payment_method() == "slimcd_payment" && $order->get_status() == "processing") { 201 $currentOrderStatus = $order->get_status(); 202 if ($order->get_payment_method() == "slimcd_payment" && ($currentOrderStatus == "processing" || $currentOrderStatus == "completed")) { 201 203 wp_redirect($order->get_checkout_order_received_url()); 202 204 } else if ($_GET && $_GET['sessionid'] !== "") { -
slimcd-payment-gateway/trunk/includes/settings-slimcd-payment.php
r2593306 r2601662 96 96 ), 97 97 98 'slimcd_wc_status_after_payment_details' => array( 99 'title' => __('WooCommerce Status', 'slimcd-payment-gateway'), 100 'type' => 'title', 101 'description' => __('Enter desired WooCommerce status after payment completion ', 'slimcd-payment-gateway'), 102 ), 103 104 'slimcd_wc_status_after_payment' => array( 105 'title' => __('Order status', 'slimcd-payment-gateway'), 106 'type' => 'select', 107 'options' => array('processing' => __('Processing', 'slimcd-payment-gateway'), 'completed' => __('Completed', 'slimcd-payment-gateway')), 108 'description' => __('Add your the order status after payment', 'slimcd-payment-gateway'), 109 'desc_tip' => true, 110 ), 111 98 112 'slimcd_formname_card_details' => array( 99 113 'title' => __('Credit Card Options', 'slimcd-payment-gateway'), -
slimcd-payment-gateway/trunk/slimcd-payment-for-woocommerce.php
r2574482 r2601662 5 5 * Plugin URI: https://slimcd.com/woocommerce/ 6 6 * Description: Slim CD’s gateway system was designed to allow merchants to take any kind of electronic payment with a single piece of software – quickly, easily, painlessly, from any PC. 7 * Version: 1.0. 17 * Version: 1.0.2 8 8 * Author: SlimCD 9 9 * Author URI: https://slimcd.com/
Note: See TracChangeset
for help on using the changeset viewer.