Plugin Directory

Changeset 3051131


Ignore:
Timestamp:
03/14/2024 02:38:01 PM (2 years ago)
Author:
satispay
Message:
  • Fixed order cancellation bug * Bugfixes and Improvements
Location:
woo-satispay/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • woo-satispay/trunk/readme.txt

    r3036234 r3051131  
    33Tags: woocommerce, satispay, payment method
    44Requires at least: 5.0
    5 Tested up to: 6.4.3
    6 Stable tag: 2.2.1
     5Tested up to: 6.5.0
     6Stable tag: 2.2.2
    77License: MIT
    88License URI: https://opensource.org/licenses/MIT
     
    3737
    3838== Changelog ==
     39= 2.2.2
     40* Fixed Order cancellation
     41* Bugfixes and Improvements
     42
     43
    3944= 2.2.0
    40 *Added compatibility to WooCommerce Blocks Checkout and HPOS feature
    41 *Improved ordering management (new status: "On Hold")
    42 *Bugfixes and improvements
     45* Added compatibility to WooCommerce Blocks Checkout and HPOS feature
     46* Improved ordering management (new status: "On Hold")
     47* Bugfixes and improvements
    4348
    4449= 2.1.9
  • woo-satispay/trunk/wc-satispay.php

    r3035846 r3051131  
    9393            $order->add_order_note('The Satispay Payment has been finalized by custom cron action');
    9494            $order->save();
     95          }
     96          if ($payment->status === 'CANCELED') {
     97              $order->update_status("wc-cancelled");
     98              $order->add_order_note('The Satispay Payment has been cancelled by custom cron action');
     99              $order->save();
    95100          }
    96101        }
     
    161166            'action' => 'CANCEL'
    162167          ));
    163 
    164           header('Location: '.$order->get_cancel_order_url_raw());
     168          header('Location: '. WC()->cart->get_checkout_url());
    165169        }
    166170        break;
     
    175179        if ($payment->status === 'ACCEPTED') {
    176180          $order->payment_complete($payment->id);
     181        }
     182        if ($payment->status === 'CANCELED') {
     183            $order->update_status("wc-cancelled");
    177184        }
    178185        break;
  • woo-satispay/trunk/woo-satispay.php

    r3036215 r3051131  
    66 * Author: Satispay
    77 * Author URI: https://www.satispay.com/
    8  * Version: 2.2.1
    9  * WC tested up to: 8.5.2
     8 * Version: 2.2.2
     9 * WC tested up to: 8.6.1
    1010 */
    1111
  • woo-satispay/trunk/woo-satispay.pot

    r3036215 r3051131  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce Satispay 2.2.0\n"
     5"Project-Id-Version: WooCommerce Satispay 2.2.2\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-satispay\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-02-14T17:23:39+00:00\n"
     12"POT-Creation-Date: 2024-03-14T14:36:39+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.10.0\n"
     
    4040msgstr ""
    4141
    42 #: wc-satispay.php:112
     42#: wc-satispay.php:117
    4343msgid "Enable/Disable"
    4444msgstr ""
    4545
    46 #: wc-satispay.php:113
     46#: wc-satispay.php:118
    4747msgid "Enable Satispay"
    4848msgstr ""
    4949
    50 #: wc-satispay.php:118
     50#: wc-satispay.php:123
    5151msgid "Activation Code"
    5252msgstr ""
    5353
    54 #: wc-satispay.php:120
     54#: wc-satispay.php:125
    5555msgid "Get a six characters Activation Code from Online Shop section on <a href=\"%s\" target=\"_blank\">Satispay Dashboard</a>."
    5656msgstr ""
    5757
    58 #: wc-satispay.php:123
     58#: wc-satispay.php:128
    5959msgid "Sandbox"
    6060msgstr ""
    6161
    62 #: wc-satispay.php:124
     62#: wc-satispay.php:129
    6363msgid "Sandbox Mode"
    6464msgstr ""
    6565
    66 #: wc-satispay.php:127
     66#: wc-satispay.php:132
    6767msgid "Sandbox Mode can be used to test payments. Request a <a href=\"%s\" target=\"_blank\">Sandbox Account</a>."
    6868msgstr ""
    6969
    70 #: wc-satispay.php:130
     70#: wc-satispay.php:135
    7171msgid "Finalize unhandled payments"
    7272msgstr ""
    7373
    74 #: wc-satispay.php:131
     74#: wc-satispay.php:136
    7575msgid "Enable cron"
    7676msgstr ""
    7777
    78 #: wc-satispay.php:134
     78#: wc-satispay.php:139
    7979msgid "Finalize unhandled Satispay payments with a cron."
    8080msgstr ""
    8181
    82 #: wc-satispay.php:137
    83 #: wc-satispay.php:138
     82#: wc-satispay.php:142
     83#: wc-satispay.php:143
    8484msgid "Finalize pending payments up to"
    8585msgstr ""
    8686
    87 #: wc-satispay.php:141
     87#: wc-satispay.php:146
    8888msgid "Choose a number of hours, default is four and minimum is two."
    8989msgstr ""
    9090
    91 #: wc-satispay.php:210
     91#: wc-satispay.php:217
    9292msgid "The Activation Code \"%s\" is invalid"
    9393msgstr ""
    9494
    95 #: wc-satispay.php:228
     95#: wc-satispay.php:235
    9696msgid "Satispay is not correctly configured, get an Activation Code from Online Shop section on <a href=\"%s\" target=\"_blank\">Satispay Dashboard</a>"
    9797msgstr ""
Note: See TracChangeset for help on using the changeset viewer.