unicodeveloper / laravel-paystack

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

Client error: `GET https://api.paystack.co/transaction/verify/` resulted in a `400 Bad Request` response #150

Open ItzSamdam opened 2 years ago

ItzSamdam commented 2 years ago

Client error: GET https://api.paystack.co/transaction/verify/ resulted in a 400 Bad Request response: { "status": false, "message": "Transaction ID should be numeric." }

I'm working with Livewire Components and I'm having a tough time setting up with Paystack Any Help will be appreciated

charayo commented 2 years ago

Any solution still?

Xavin616 commented 2 years ago

Check the request type. Should be a POST request not GET. Worked for me.

promiseoomos commented 2 years ago

Check the reference you are concatenating with the URL, it may have a problem. Maybe its not well destructured from its Object or array. I just checked mine and saw that I was passing a string as an object and reading the string as an Object. It was neither POST or GET for me