From 95b90b74eca9470c4c2d2ca28b0b30014dfb19d8 Mon Sep 17 00:00:00 2001 From: Joshua Lewis Date: Thu, 17 Sep 2020 10:47:43 -0400 Subject: [PATCH] ipn updates --- .gitignore | 1 + modules/gateways/bitpaycheckout.php | 4 ++-- .../bitpaycheckout_callback.php | 2 +- .../bitpaycheckout/bitpaycheckout_ipn.php | 19 ++++++++++++++++++- 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index d7364a5..eebb221 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ composer.lock composer.phar .DS_Store +modules/gateways/bitpaycheckout/bitpay.txt diff --git a/modules/gateways/bitpaycheckout.php b/modules/gateways/bitpaycheckout.php index c70503b..9a38e37 100644 --- a/modules/gateways/bitpaycheckout.php +++ b/modules/gateways/bitpaycheckout.php @@ -1,6 +1,6 @@ 'BitPay_Checkout_WHCMS', - 'APIVersion' => '3.0.1.6', // Use API Version 1.1 + 'APIVersion' => '3.0.1.7', // Use API Version 1.1 'DisableLocalCreditCardInput' => false, 'TokenisedStorage' => false, ); diff --git a/modules/gateways/bitpaycheckout/bitpaycheckout_callback.php b/modules/gateways/bitpaycheckout/bitpaycheckout_callback.php index 4ebde0a..eb776b5 100644 --- a/modules/gateways/bitpaycheckout/bitpaycheckout_callback.php +++ b/modules/gateways/bitpaycheckout/bitpaycheckout_callback.php @@ -1,7 +1,7 @@ data->status): + #ipn doesnt match data, stop + die(); +endif; + #first see if the ipn matches #get the user id first $table = "_bitpay_checkout_transactions";