unicodeveloper / laravel-paystack

:credit_card: :package: :moneybag: Laravel 6, 7, 8, 9, 10 and 11 Package for Paystack
https://paystack.co
MIT License
597 stars 310 forks source link

Set default value for quantity field #111

Closed chikeozulumba closed 3 years ago

chikeozulumba commented 3 years ago

Greetings, I encountered a 400 bad request as Paystack's response whenever I tried initialising a transaction. I discovered that not setting a quantity field in the request object would coerce the amount to zero, based on value returned from the intval function. I figured it could be defaulted to the value, 1.