Answer the question
In order to leave comments, you need to log in
How to send a request to PHP via Curl using a certificate?
There is documentation for the QIWI API on card payments - https://developer.qiwi.com/en/topup-card/#ssl-auth
Generated a certificate on the server in a folder called /ssl at the root of the domain.
Now the question is how to send a request via CURL in php
The kivy documentation only lists an example like this:
[email protected]:~/station$ openssl s_client -connect private-api.qiwi.com/xml/topup.jsp:443 -showcerts -CAfile ./CA/our_CA -cert ./my_cert -key ./private_key.pem
Answer the question
In order to leave comments, you need to log in
Write the certificate in php.ini in the curl section for example
https://www.php.net/manual/en/curl.configuration.p...
CURLOPT_CAINFO and CURLOPT_SSL_VERIFYPEER at https://www.php.net/manual/en/function.curl-setopt.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question