-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit the time a user has to complete a purchase
- Loading branch information
1 parent
e83b6b8
commit 03f3875
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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§ion=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 | ||
*/ | ||
|
@@ -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://<host>/wp-json/bitpay/ipn/status | ||
$params->extendedNotifications = true; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters