Skip to content

Commit

Permalink
Merge pull request #33 from RichardCardGate/master
Browse files Browse the repository at this point in the history
Fix: on-hold status for pending payments
  • Loading branch information
cardgate authored Jan 10, 2023
2 parents 808a990 + 6d087a6 commit 818a46f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README_DE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
f![CardGate](https://cdn.curopayments.net/thumb/200/logos/cardgate.png)
![CardGate](https://cdn.curopayments.net/thumb/200/logos/cardgate.png)

# CardGate Modul für WooCommerce

Expand Down
2 changes: 1 addition & 1 deletion cardgate/cardgate-clientlib-php/src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ final class Client {
/**
* Client version.
*/
const CLIENT_VERSION = "1.1.17";
const CLIENT_VERSION = "1.1.18";

/**
* Url to use for production.
Expand Down
5 changes: 3 additions & 2 deletions cardgate/cardgate.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
* Description: Integrates Cardgate Gateway for WooCommerce into WordPress
* Author: CardGate
* Author URI: https://www.cardgate.com
* Version: 3.1.23
* Version: 3.1.24
* Text Domain: cardgate
* Domain Path: /i18n/languages
* Requires at least: 4.4
* WC requires at least: 3.0.0
* WC tested up to: 7.1.0
* WC tested up to: 7.2.2
* License: GPLv3 or later
*/

Expand Down Expand Up @@ -516,6 +516,7 @@ function cardgate_callback() {
$sReturnStatus = 'failed';
}
if ($_REQUEST['code'] >= '700' && $_REQUEST['code'] < '800') {
$order->update_status('on-hold');
$sReturnStatus = 'waiting';
}

Expand Down
7 changes: 5 additions & 2 deletions cardgate/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: cardgate
Tags: CardGate, iDEAL, Creditcard, WooCommerce, Payment, MisterCash, SofortBanking, OverBoeking, PayPal, Giropay, DirectDebit, Webmoney
Requires at least: 4.4
Tested up to: 6.1
Stable tag: 3.1.23
Stable tag: 3.1.24
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -44,7 +44,7 @@ This plug-in contains the following payment methods from CardGate for WooCommerc
* PHP version 5.6 or greater
* PHP extensions enabled: cURL
* WordPress 3.8 or greater
* WooCommerce 2.2.0 or greater
* WooCommerce 3.0.0 or greater

= Automatic installation =

Expand Down Expand Up @@ -75,6 +75,9 @@ If you are updating from an older version then 3.0.4 you will need new [CardGate

== Changelog ==

= 3.1.24 =
* Fix: on-hold status for pending payments

= 3.1.23 =
* Tested version updates

Expand Down

0 comments on commit 818a46f

Please sign in to comment.