unicodeveloper / laravel-paystack

:credit_card: :package: :moneybag: Laravel 6, 7, 8, 9, 10 and 11 Package for Paystack

Home Page:https://paystack.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I got resulted in a `400 Bad Request` response

bossoff opened this issue · comments

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

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

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.