diff --git a/index.php b/index.php index bf7c29df..52cbc610 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: BitPay Checkout for WooCommerce * Plugin URI: https://www.bitpay.com * Description: Create Invoices and process through BitPay. Configure in your WooCommerce->Payments plugin. - * Version: 3.31.2004 + * Version: 3.32.2004 * Author: BitPay * Author URI: mailto:integrations@bitpay.com?subject=BitPay Checkout for WooCommerce */ @@ -787,6 +787,7 @@ function woo_custom_redirect_after_purchase() //orderid $params->orderId = $order->get_order_number($order_id); + //redirect and ipn stuff $checkout_slug = $bitpay_checkout_options['bitpay_checkout_slug']; if (empty($checkout_slug)): @@ -796,7 +797,7 @@ function woo_custom_redirect_after_purchase() #create a hash for the ipn $hash_key = $config->BPC_generateHash($params->orderId); - + $params->acceptanceWindow = 1200000; $params->notificationURL = get_home_url() . '/wp-json/bitpay/ipn/status'; #http:///wp-json/bitpay/ipn/status $params->extendedNotifications = true; diff --git a/readme.txt b/readme.txt index 7c46a356..d5e2a239 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: bitcoin, bitcoin cash, payments, bitpay, cryptocurrency, payment gateway Requires at least: 4.9 Tested up to: 5.4.1 Requires PHP: 5.5 -Stable tag: 3.31.2004 +Stable tag: 3.32.2004 License: MIT License (MIT) License URI: https://github.com/bitpay/bitpay-checkout-for-woocommerce/blob/master/LICENSE @@ -114,6 +114,9 @@ You can contact our support team via the following form https://bitpay.com/reque == Changelog == += 3.32.2004 = +* Limit the time a user has to complete a purchase + = 3.31.2004 = * IPN Updates