-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CURL error : 60 ssl certificate problem #371
Comments
I am also facing same problem. Fatal error: Uncaught WpOrg\Requests\Exception: cURL error 60: SSL certificate problem: unable to get local issuer certificate in /var/www/html/php-razorpay/vendor/rmccue/requests/src/Transport/Curl.php on line 490 WpOrg\Requests\Exception: cURL error 60: SSL certificate problem: unable to get local issuer certificate in /var/www/html/php-razorpay/vendor/rmccue/requests/src/Transport/Curl.php on line 490 while creating order I am struggling with this problem during development from last few days. I try to update all cacert.pem file. But fail to get result. I am using http as well as https for localhost. |
This is the issue on Razorpay server side. No response from razorpay team. |
Finally found the solution. Follow the below solution to fix the error. Download the latest certificate from razorpay and add inside your vendor razorpay code Add the certificate in to the bottom of the file : vendor/razorpay/razorpay/libs/Requests-2.0.4/certificates/cacert.pem Path : vendor/razorpay/razorpay/src/request.php
Change the code to
After these two changes it will work. If any one need help let me know |
@infohappycoders Brother is this any possibility to use sdk function to make call by using Oauth2.0 accessToken ? |
Could you please provide more information. We are using api call by razorpay key and secret. Oauth no needed |
@infohappycoders I just want to init a client of Razorpay php SKD by using Oauth2.0 access token instead of Basic Oauth which uses key and secret.. |
hope you understand if not then please tell me i will provide more info about it.. |
@infohappycoders Thanks for the solution. |
Please download the latest repository version from git. I think you are using very older version. Just download the latest version here and replace razorpay folder. It's need minimum php version 7.3 |
Sorry , You need to check with Razorpay support team. |
Thanks it is working for me now. |
Happy to hear 😊 |
Okay thanks for coordinating. |
still working with cakePHP too |
Steps to reproduce the behavior
I'm getting below error on order create.
PHP 7.3
LARAVEL 5.6
Razorpay latest library
Error :
CURL error 60: SSL certificate problem: unable to get local issuer certificate
I have already added the whitelisted key .
Expected behavior
Curl failed due to SSL verify issue
Actual behavior
Curl get response when order create
Code snippets
No response
Php version
7.3
Library version
2.8.4
Additional Information
No response
The text was updated successfully, but these errors were encountered: