Skip to content

Commit

Permalink
status to to processing (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars-icepay authored Apr 30, 2024
1 parent 9479679 commit e274ed0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion IcepayForWoocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Description: Accept payments on your WooCommerce store via ICEPAY.
* Author: ICEPAY
* Author URI: http://www.icepay.com
* Version: 1.0.3
* Version: 1.0.4
* Copyright: Copyright © 2024 ICEPAY B.V. (https://icepay.com/)
* Text Domain: icepay-for-woocommerce
* Domain Path: /languages
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "icepay/icepay-woocommerce",
"description": "ICEPAY for WooCommerce",
"version": "1.0.3",
"version": "1.0.4",
"type": "library",
"keywords": [
"icepay",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "icepay-for-woocommerce",
"version": "1.0.3",
"version": "1.0.4",
"description": "```bash cp .env.example .env docker compose up -d make install ```",
"scripts": {
"build": "wp-scripts build",
Expand Down
2 changes: 1 addition & 1 deletion src/Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class Integration {
public const NAME = 'ICEPAY for WooCommerce';
public const ID = 'icepay-for-woocommerce';
public const VERSION = '1.0.3';
public const VERSION = '1.0.4';

public function __invoke(): void {
$this->addSettings();
Expand Down
3 changes: 1 addition & 2 deletions src/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ public function handle(): void {
}

$status = match ( $data['status'] ) {
'completed' => 'completed',
'completed' => 'processing',
'cancelled', 'expired' => 'cancelled',
'pending' => 'processing',
default => 'pending',
};

Expand Down

0 comments on commit e274ed0

Please sign in to comment.