unicodeveloper / laravel-paystack

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

Curr error 3 in Laravel 5.5 #26

Open librallaw opened 6 years ago

librallaw commented 6 years ago

Hello, I ge this error when I am using Laravel 5,5 but in Laravel 5.3 it works fine

cURL error 3: malformed (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Please help me look into it

wehjey commented 6 years ago

Hey @librallaw are you sure you followed all the steps bcuz i'm using this library with Laravel 5.5 and it works just fine

abiodunsulaiman694 commented 6 years ago

Hey @wehjey I get error cURL error 35: SSL connect error (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) I've used this package a number of times before, but now, it's kind of stuck on that error

codenaz commented 6 years ago

This error is mostly caused as a result of communication glitch between your web browser and the api. Make sure your computer is connected to the internet, or try a different browser. You can also try clearing cache and cookies.

dapperGeek commented 6 years ago

I'm also getting the cURL error 3 in Laravel 5.5, even after clearing cache &cookies and computer is connected. Look into this please.

abiodunsulaiman694 commented 6 years ago

You might want to check if you have cURL enabled on your machine. My error was automatically resolved when I switched environment. For me, I had to switch from my cloud environment to localhost, and it worked right away.

Thirdwrist commented 6 years ago

The same error on 5.6, running locally on Laragon

abiodunsulaiman694 commented 6 years ago

Run: php artisan vendor:publish --provider="Unicodeveloper\Paystack\PaystackServiceProvider" And confirm that the file paystack.php is in your config directory

Thirdwrist commented 6 years ago

@abiodunsulaiman694 I have already published it and set my environment variables as well before now.

dreigningking commented 5 years ago

Its August 2019. I got this error.. cURL error 3: malformed (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) I'm using laravel 5.8. Has anyone solved this issue?

mrbarnk commented 5 years ago

@reigningkingforever check if paystack.php file is active and the code below is there.

`<?php

return [

/**
 * Public Key From Paystack Dashboard
 *
 */
'publicKey' => getenv('PAYSTACK_PUBLIC_KEY'),

/**
 * Secret Key From Paystack Dashboard
 *
 */
'secretKey' => getenv('PAYSTACK_SECRET_KEY'),

/**
 * Paystack Payment URL
 *
 */
'paymentUrl' => getenv('PAYSTACK_PAYMENT_URL'),

/**
 * Optional email address of the merchant
 *
 */
'merchantEmail' => getenv('MERCHANT_EMAIL'),

];`

Keania-Eric commented 4 years ago

I am having the same issue today I am using laravel 5.7

Keania-Eric commented 4 years ago

https://medium.com/@olushola251/how-to-solve-curl-error-3-url-malformed-in-unicodedeveloper-paystack-laravel-package-5792d3bc675a

I found that medium post helpful cause it fixed it

daweng1 commented 4 years ago

The php artisan vendor:publish --provider="Unicodeveloper\Paystack\PaystackServiceProvider" created a paystack.php file in unicodeveloper/laravel-paystack/resources/config instead of config directory. I just copied it from there and pasted it in the config directory.