unicodeveloper / laravel-paystack

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

Paystack: Getting error at the time of chargeCard #85

Open Harrrrry opened 4 years ago

Harrrrry commented 4 years ago

Hello,

I am trying to charge card but every time am getting error. Please check below response:

GuzzleHttp\Exception\ClientException: Client error:POST https://api.paystack.co/chargeresulted in a400 Bad Requestresponse: { "status": false, "message": "Charge attempted", "data": { "reference": "p858fma5d67w0tw", "status": "fai (truncated...) in file D:\xampp\htdocs\cityjobber\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 113

Not getting what is the problem because it works in one function but not in API controller. Any solution

bellodamilola commented 4 years ago

I have this same problem too. Any solution yet?

aeadedoyin commented 4 years ago

@Harrrrry Update to Laravel 7 also update your version of the package Laravel-Paystack 1.04 is now available.

You should be fine.

Oyelamin commented 3 years ago

I don't think the version of laravel has anything to do with api calls. I also have the same problem but the only solution i found was to delete the card and add the card again then make payment or charge the card again. This should work