diff --git a/src/Paystack.php b/src/Paystack.php index 9dc8a81..0aa42dc 100644 --- a/src/Paystack.php +++ b/src/Paystack.php @@ -113,7 +113,7 @@ public function makePaymentRequest( $data = null) { if ( $data == null ) { - $quantity = intval(request()->quantity); + $quantity = intval(request()->quantity ?? 1); $data = [ "amount" => intval(request()->amount) * $quantity,