laravel-paystack icon indicating copy to clipboard operation
laravel-paystack copied to clipboard

Curr error 3 in Laravel 5.5

Open librallaw opened this issue 8 years ago • 13 comments

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

librallaw avatar Oct 16 '17 05:10 librallaw

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

wehjey avatar Oct 19 '17 09:10 wehjey

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

abiodunsulaiman694 avatar Oct 29 '17 16:10 abiodunsulaiman694

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.

codenaz avatar Oct 29 '17 17:10 codenaz

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.

dapperGeek avatar Jan 19 '18 07:01 dapperGeek

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.

abiodunsulaiman694 avatar Jan 19 '18 07:01 abiodunsulaiman694

The same error on 5.6, running locally on Laragon

Thirdwrist avatar Jul 16 '18 00:07 Thirdwrist

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

abiodunsulaiman694 avatar Jul 16 '18 08:07 abiodunsulaiman694

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

Thirdwrist avatar Jul 16 '18 08:07 Thirdwrist

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?

dreigningking avatar Aug 02 '19 10:08 dreigningking

@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'),

];`

mrbarnk avatar Aug 10 '19 20:08 mrbarnk

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

Keania-Eric avatar Oct 30 '19 14:10 Keania-Eric

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

Keania-Eric avatar Oct 30 '19 14:10 Keania-Eric

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.

daweng1 avatar Jul 04 '20 22:07 daweng1