Plugin Directory

Changeset 2948491


Ignore:
Timestamp:
08/07/2023 10:32:40 AM (3 years ago)
Author:
chaifinport
Message:

handling expiry status in webhooks

Location:
chaiport-payment/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chaiport-payment/trunk/chaiportGateway.php

    r2896909 r2948491  
    44 * Plugin URI:        https://www.docs.portone.cloud/plugins_and_sdks/woocommerce-plugin.html
    55 * Description:       Single Payment
    6  * Version:           2.0.7
     6 * Version:           2.0.8
    77 * Requires at least: 5.6
    88 * Author:            PortOne
     
    427427            $order->add_order_note($note);
    428428        } else if ($status == "Failed") {
     429            $statusCode = $data["status_code"];
     430            $statusReason = $data["status_reason"];
     431            $statusChannelReason = $data["status_channel_reason"];
     432
     433            $status = $order->update_status('wc-failed');
     434
     435            $note .= "Transaction Status: " . $status . "\n";
     436            $note .= "Failure Code: " . $statusCode . "\n";
     437            $note .= "Failure Reason: " . $statusReason . "\n";
     438            $note .= "Failure Channel Reason: " . $statusChannelReason;
     439
     440            $order->add_order_note($note);
     441        } else if ($status == "Expired") {
    429442            $statusCode = $data["status_code"];
    430443            $statusReason = $data["status_reason"];
  • chaiport-payment/trunk/readme.txt

    r2896909 r2948491  
    44Requires at least: 3.9.2
    55Tested up to: 6.1.1
    6 Stable tag: 2.0.7
     6Stable tag: 2.0.8
    77Requires PHP: 5.6
    88License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.