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:
$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(
$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.
20 freelancers are bidding on average $166 for this job
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