unicodeveloper / laravel-paystack

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

Does not work for laravel 5.5 and above (5.6) #53

Closed Thirdwrist closed 4 years ago

Thirdwrist commented 6 years ago

I have tried using this package on laravel 5.5 and 5.6 but it keeps returning the curl 3 error, I have used this package on 5.4 and I had no problem. But that isn't the same in the former.

image Please do check this out: Steps to reproduce:

requirements:

  1. Windows computer
  2. Apache engine
  3. Localhost
  4. Laravel 5.5 and above

Steps:

  1. Install laravel 5.5 or above
  2. Require the unicodedeveloper paystack package
  3. Set it up as in the readme

try to Initialize a payment with the default inputs as provided in the readme

26

taghwo commented 6 years ago

Lost every hair on my head today. Can't find any solution to this

Thirdwrist commented 6 years ago

A friend of mine found a solution to it, you can reach him out on twitter @awulonu_obinna

I ended up using another package for this.

https://github.com/yabacon/paystack-php

taghwo commented 6 years ago

let me try that. Thanks

taghwo commented 6 years ago

is it the package that has the curl issue or it's the laravel version?

taghwo commented 6 years ago

The documentation on that package is head shrinking

Thirdwrist commented 6 years ago

At the moment when I had the issue, time wasn't on my side to debug deeply so I just switched package.

taghwo commented 6 years ago

Think i have found the solution, it's working now

Thirdwrist commented 6 years ago

Share please, was it with the help of the friend I suggested?

taghwo commented 6 years ago

Did a few things,i will go back on all the steps and post here...

Thirdwrist commented 6 years ago

Awesome

taghwo commented 6 years ago

okay so i took out every change i made while trying to debug the error from php.ini to the getting the api full path, i removed everything. Surprisingly it worked as it was then when the curl error was popping up . The only thing i see is, after the set up is complete you need to run config:cache and hit ctrl F5 to refresh

ladaposamuel commented 5 years ago

I had this error too then i read the Readme file again and ran this php artisan vendor:publish --provider="Unicodeveloper\Paystack\PaystackServiceProvider" It fixed the issue.

technicaldee commented 5 years ago

I had this error too then i read the Readme file again and ran this php artisan vendor:publish --provider="Unicodeveloper\Paystack\PaystackServiceProvider" It fixed the issue.

This fixed the issue instantly. Thanks

ajayidavid99 commented 5 years ago

I had this error too then i read the Readme file again and ran this php artisan vendor:publish --provider="Unicodeveloper\Paystack\PaystackServiceProvider" It fixed the issue.

So should I read it again! Just tell us what you discovered when you read it. (laughable!) You may need to reopen your application then re-run: php artisan vendor:publish --provider="Unicodeveloper\Paystack\PaystackServiceProvider" for you to notice paystack.php copied into your config folder but this doesn't solve the above question

banklan commented 5 years ago

i am having this issue and still cannot resolve with all the suggestions

unicodeveloper commented 4 years ago

Closing this issue because it's almost a year old and people have gotten solutions