Skip to content

Commit

Permalink
Limit the time a user has to complete a purchase
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoshualewis committed May 11, 2020
1 parent e83b6b8 commit 03f3875
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href ="admin.php?page=wc-settings&tab=checkout&section=bitpay_checkout_gateway">WooCommerce->Payments plugin</a>.
* Version: 3.31.2004
* Version: 3.32.2004
* Author: BitPay
* Author URI: mailto:[email protected]?subject=BitPay Checkout for WooCommerce
*/
Expand Down Expand Up @@ -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)):
Expand All @@ -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://<host>/wp-json/bitpay/ipn/status
$params->extendedNotifications = true;
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 03f3875

Please sign in to comment.