Plugin Directory

Changeset 3748784


Ignore:
Timestamp:
10/15/2026 02:51:27 PM (6 weeks ago)
Author:
stitchexpress
Message:

1.10.1

Location:
stitch-express
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • stitch-express/tags/1.10.1/includes/stitch-express-client.php

    r3748318 r3748784  
    3939
    4040class Stitch_Express_Client {
    41     private const PLUGIN_VERSION = '1.10.0';
     41    private const PLUGIN_VERSION = '1.10.1';
    4242    private const REQUEST_TIMEOUT = 15;
    4343    // Hosts and proxies commonly end requests at 30 seconds.
  • stitch-express/tags/1.10.1/readme.txt

    r3748318 r3748784  
    33Tags: woocommerce, card, payments, south africa, apple pay, google pay, stitch, express, stitch express
    44Tested up to: 6.9
    5 Stable tag: 1.10.0
     5Stable tag: 1.10.1
    66License: GPLv3
    77License URI: https://www.gnu.org/licenses/gpl-3.0.html
    … …  
    8383
    8484== Changelog ==
     85= 1.10.1 =
     86* Keep completing the order when Stitch Express stops waiting for the payment notification, so a slow store no longer leaves the order unpaid after the notification times out.
     87* Tell Stitch Express when an order can no longer be completed (for example it was refunded or trashed) instead of asking it to retry.
     88
    8589= 1.10.0 =
    8690* Add a "Payment Link Expiry" setting so you can choose how long customers have to complete payment after checkout (5 minutes to 60 days, default 30 days). Shared by the Stitch Express and Stitch Pay Later gateways.
    … …  
    234238
    235239== Upgrade Notice ==
     240= 1.10.1 =
     241* Fixes orders staying unpaid when the store is slow to process the Stitch Express payment notification. No configuration needed.
     242
    236243= 1.10.0 =
    237244* Adds a configurable payment link expiry. Existing stores keep the 30-day default; no configuration needed.
  • stitch-express/tags/1.10.1/stitch-express.php

    r3748318 r3748784  
    1010 * Description:          Use Stitch Express to easily and securely accept Card payment on your WooCommerce store.
    1111 * Plugin URI:           https://wordpress.org/plugins/stitchexpress/
    12  * Version:              1.10.0
     12 * Version:              1.10.1
    1313 * Requires at least:    6.5
    1414 * Requires PHP:         8.0
    … …  
    691691 */
    692692function stitch_express_handle_webhook(WP_REST_Request $request): WP_REST_Response {
     693    ignore_user_abort(true);
     694
    693695    $gateway = new Stitch_Express_Payment_Gateway();
    694696    $logger = wc_get_logger();
    … …  
    788790            'order_status' => $order->get_status(),
    789791        ], 200);
     792    }
     793
     794    if ($order && !in_array($order->get_status(), stitch_express_completable_order_statuses(), true)) {
     795        return new WP_REST_Response([
     796            'success' => false,
     797            'error' => 'Order status not completable',
     798            'order_id' => (string) $order_id,
     799            'order_status' => $order->get_status(),
     800        ], 422);
    790801    }
    791802
  • stitch-express/trunk/includes/stitch-express-client.php

    r3748318 r3748784  
    3939
    4040class Stitch_Express_Client {
    41     private const PLUGIN_VERSION = '1.10.0';
     41    private const PLUGIN_VERSION = '1.10.1';
    4242    private const REQUEST_TIMEOUT = 15;
    4343    // Hosts and proxies commonly end requests at 30 seconds.
  • stitch-express/trunk/readme.txt

    r3748318 r3748784  
    33Tags: woocommerce, card, payments, south africa, apple pay, google pay, stitch, express, stitch express
    44Tested up to: 6.9
    5 Stable tag: 1.10.0
     5Stable tag: 1.10.1
    66License: GPLv3
    77License URI: https://www.gnu.org/licenses/gpl-3.0.html
    … …  
    8383
    8484== Changelog ==
     85= 1.10.1 =
     86* Keep completing the order when Stitch Express stops waiting for the payment notification, so a slow store no longer leaves the order unpaid after the notification times out.
     87* Tell Stitch Express when an order can no longer be completed (for example it was refunded or trashed) instead of asking it to retry.
     88
    8589= 1.10.0 =
    8690* Add a "Payment Link Expiry" setting so you can choose how long customers have to complete payment after checkout (5 minutes to 60 days, default 30 days). Shared by the Stitch Express and Stitch Pay Later gateways.
    … …  
    234238
    235239== Upgrade Notice ==
     240= 1.10.1 =
     241* Fixes orders staying unpaid when the store is slow to process the Stitch Express payment notification. No configuration needed.
     242
    236243= 1.10.0 =
    237244* Adds a configurable payment link expiry. Existing stores keep the 30-day default; no configuration needed.
  • stitch-express/trunk/stitch-express.php

    r3748318 r3748784  
    1010 * Description:          Use Stitch Express to easily and securely accept Card payment on your WooCommerce store.
    1111 * Plugin URI:           https://wordpress.org/plugins/stitchexpress/
    12  * Version:              1.10.0
     12 * Version:              1.10.1
    1313 * Requires at least:    6.5
    1414 * Requires PHP:         8.0
    … …  
    691691 */
    692692function stitch_express_handle_webhook(WP_REST_Request $request): WP_REST_Response {
     693    ignore_user_abort(true);
     694
    693695    $gateway = new Stitch_Express_Payment_Gateway();
    694696    $logger = wc_get_logger();
    … …  
    788790            'order_status' => $order->get_status(),
    789791        ], 200);
     792    }
     793
     794    if ($order && !in_array($order->get_status(), stitch_express_completable_order_statuses(), true)) {
     795        return new WP_REST_Response([
     796            'success' => false,
     797            'error' => 'Order status not completable',
     798            'order_id' => (string) $order_id,
     799            'order_status' => $order->get_status(),
     800        ], 422);
    790801    }
    791802
Note: See TracChangeset for help on using the changeset viewer.