laravel-paystack icon indicating copy to clipboard operation
laravel-paystack copied to clipboard

I got resulted in a `400 Bad Request` response

Open bossoff opened this issue 4 years ago • 2 comments

Client error: POST https://api.paystack.co/transaction/initialize resulted in a 400 Bad Request response: { "status": false, "message": "Invalid plan Sent" }

bossoff avatar Nov 19 '20 14:11 bossoff

Hello @bossoff I have fixed the issue. Please upgrade to the latest version of the package.

unicodeveloper avatar Nov 19 '20 16:11 unicodeveloper

Go to the vendor folder vendor\unicodeveloper\laravel-paystack\src\Paystack.php Change "plan" => request()->plan, to "plan_code" => request()->plan,

paystack did an update that is why you have an error.

blazefluz avatar Jan 26 '21 14:01 blazefluz