srmklive / laravel-paypal

Laravel plugin for processing payments through PayPal.
https://laravel-paypal-demo.srmk.info/
MIT License
1.05k stars 316 forks source link

papyal_link is null #229

Closed snax4a closed 6 years ago

snax4a commented 6 years ago

Hello when doing expressCheckout my paypal_link is null i FIlled in api username, api password and api secret in .env file but dont know what to fill in api certificate so i left this blank

So im getting: Object of class Illuminate\Routing\Redirector could not be converted to string Im using sandbox

snax4a commented 6 years ago

i noticed that if i set validate_ssl in paypal.php it works i mean it redirects me to paypal, when i should use this validate_ssl? only on production where i have SSL installed?

srmklive commented 6 years ago

Refer to closed issues section. It has been addressed in #101, #102 etc

snax4a commented 6 years ago

I saw that but it still cant help me i set up api credentials from my business paypal sandbox account i cloned your demo project and i get this error. You guys only redirect to other issues but there is no answer, i read all of them. Thats how looks my .env file PAYPAL_SANDBOX_API_USERNAME=csgolombard-facilitator-1_api1.gmail.com PAYPAL_SANDBOX_API_PASSWORD=D6DRXKVF7QQRFL4D PAYPAL_SANDBOX_API_SECRET=At-lD.ebJxipTWa3Fr92PQtDSOt8ApuMSnj.-edcwDL79wqIDj3q1PGp

i also tried with your demo api credentials, the same error, maybe its some problem with my OS i use windows

snax4a commented 6 years ago

maybe there is problem with paypal account i just created sandbox account in sandbox > accounts section but you say i need some express checkout account

there is also some BrainTree SDK access token but dont know what is it used for

friana commented 5 years ago

Hi everyone,

I currently develop web-app that requires online payment. As I research about Paypal integration in Laravel I saw this laravel plugin for processing payments through PayPal. But after I clone it I had encounter the same issue.

I tried dd($response) , I get this response

array:3 [▼ "type" => "error" "message" => "" "paypal_link" => null ]

To solve the issue I changed some configuration at paypal.php I add validate_ssl => false,

Paypal issues

Note: Make sure that the following are consider before you apply the validate_ssl

Paypal issues1

I hope it will help you. Thanks

tomas8801 commented 4 years ago

after hours of finding the solution I got it, thanks!!

Punjtani commented 3 years ago

Thanks @friana after hours of finding the solution I got it, thanks!!

hrr2000 commented 3 years ago

Thanks @friana

82solutions commented 2 years ago

array:3 [▼ "type" => "error" "message" => "" "paypal_link" => null ] this issue not resolve in my code