MAKING AN API REQUEST CALL USING PHP, CURL AND A CLIENT SIDE SSL CERTIFICATE
$30-250 USD
Closed
Posted almost 5 years ago
$30-250 USD
Paid on delivery
We need someone to review our source codes in order to be able to send a client side SSL certificate in PHP code using curl.
We have PHP codes that use curl and RestTemplate to send parameters to an endpoint provided by a partner. In order to successfully connect with the endpoint, our partner has provided us with server SSL certificate that we should use while making the API calls to the endpoint. Below is the source code in php-curl:
PHP CURL
$base_url = 'xxxx';
$username = 'xxx';
$password = 'xxxxx’;
$xml_input = "<ns2:paymentRequest xmlns:ns2=\"xxxxx">\n<ns2:rraRef>$variable</ns2:rraRef>\n<ns2:amount>$variable</ns2:amount>\n <ns2:bankAccount>$variable</ns2:bankAccount>\n<ns2:providerTransactionId>$variable</ns2:providerTransactionId>\n</ns2:paymentRequest>";
// Request headers
$headers = array(
'Content-Type: application/xml'
);
$ch = curl_init($base_url);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_input);
$result = curl_exec($ch);
The SSL certificate is in .crt format. If you need a different format other than .crt, you may advise us so that we get you the file from our partners. Note that the API request must be done from a specific server whose IP address has been whitelisted by our partner. We shall provide you with the access to this server for testing purposes.
Consider that the source codes must be in PHP and Java spring
We expect this task to be completed in 48 hours.
HI,
I can assist you with API REQUEST CALL.
Here is a sampling of the few of my work contained at my portfolio:
https://www.freelancer.com/u/extreamcode.html
This is a placehoolder bid, I would be able to quote final price and time after discussion.
I highly value professionalism and hold myself strictly accountable to my clients. I aim to form a long-term working relationship.
Please, let me know what is needed to secure this bid!
Thank you for your consideration.
Asad Sajjad
Just give us the chance to prove ourselves.......
We have some questions to clarify,please reply us so we could discuss the project in details.
Thanks & Regards
Moumita
Hi, i hope you're doing well.
I've just read your project's description and i would like to help you with it.
I'm an experienced web developer with the necessary PHP, cURL, HTTP and SSL layer skills for getting this job done.
Responsibility and quality guaranteed,
Torricelli
Hello dear
How are you?
I read your requirement carefully
I am very interested in your post project.
I am sure i can give you great result.
I have rich experience on it.
so please discuss more detail via chat.
looking forward to working with you .
best regards
Hi
I have seen the document file and the CURL code you have, you should pass the ssl certificate as well in your curl code
I'm ready to help you with it and available to start right now to get that done within next 48 hours depending on your partner's fast response
Please feel free to have a quick chat with me.
Hello,
I have reviewed the details given in the description and will do it in 24 hours but needs to discuss it in further details before getting started.
let's discuss it in further details over the chat, waiting for your response Thank you
Regards
Umer Hayat
Hi,
I am expert web scraper developer in PHP and Python with more than 5 year experience
I have experience integrating with banks and airline companies in PHP framework like ECSHope and ThinkPHP
Pls contact me for details so we can discuss how to do this job.
Thanks so much!
hi sir,
I can fix this.
but I need to use .pem file for it. and I will surely complete this in less than 48 hours.
PM me for more details.
I just need that milestone is to be created.
you can release it after I complete the work.