More sanitization, update min versions.
This commit is contained in:
parent
0a4de9bfd6
commit
06e03eaa47
@ -12,7 +12,7 @@
|
||||
* License URI: https://opensource.org/licenses/MIT
|
||||
* Requires PHP: 8.1
|
||||
* Requires at least: 6.0
|
||||
* Tested up to: 6.7
|
||||
* Tested up to: 6.8
|
||||
* Requires Plugins: give
|
||||
* GiveWP tested up to: 3.22.2
|
||||
*/
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
=== BTCPay for GiveWP ===
|
||||
Contributors: ndeet
|
||||
Tags: Bitcoin, BTCPay Server, cryptocurrency, GiveWP, donations
|
||||
Requires at least: 5.0
|
||||
Requires at least: 6.0
|
||||
Tested up to: 6.8
|
||||
Stable tag: 1.0.0
|
||||
Requires Give: 2.24.0
|
||||
|
||||
@ -238,7 +238,7 @@ class BtcpayGateway extends PaymentGateway
|
||||
break;
|
||||
case 'InvoiceExpired':
|
||||
// Handle invoice expired event
|
||||
if ($payload->partiallyPaid) {
|
||||
if (rest_sanitize_boolean($payload->partiallyPaid)) {
|
||||
$donation->status = DonationStatus::PROCESSING();
|
||||
|
||||
DonationNote::create([
|
||||
|
||||
Loading…
Reference in New Issue
Block a user