Reprogram PHP script into VB Script or Classic ASP
$30-250 USD
Paid on delivery
The project is straightforward, I need someone who can rewrite and test this script from PHP into Classic ASP. This script is needed on my website to create a payment with this 3rd party payment service provider. They don't have this pluging-code script available in classic ASP so I need someone who can write this for me. The rest of the project I can do myself. This PHP script is a 100% working script (I have tested myself), but because of security reasons I have hidden the API key and email address in this stage. When accepting this project please let me know that you have read this by using the word `apple` in your response. Thank you.
<?php
$api = new PayProApi('YOU-GET-THIS-KEY-AFTER-ACCEPTING-PROJECT'); // The real API key you will get after we agreed about the project
$api->command = 'create_product_payment';
$api->set_param('product_id', '88340');
$api->set_param('consumer_email', 'type-here-a-real-email-address');
$api->set_param('psp_code', '0021');
$api->set_param('test_mode', 'true'); // Remove this when testing is done!
$returned = $api->execute();
echo $returned['return']['payment_url'];
header('Location: ' . $returned['return']['payment_url']);
class PayProApi {
var $command;
var $params = array();
var $apikey;
function __construct($apikey, $command=null, $params=null) {
$this->apikey = $apikey;
$this->command = $command;
if (is_array($params)) {
$this->params = $params;
}
}
function execute() {
$data_to_post = array(
"apikey" => $this->apikey,
"command" => $this->command,
"params" => json_encode($this->params)
);
$url = '[login to view URL]';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_to_post);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
$params = array();
return $response;
}
function set_param($param, $value) {
$this->params[$param] = $value;
}
?>
Project ID: #32616775
About the project
Awarded to:
Do you want to convert CURL into classic ASP or the upper part which is ensapsulating the curl part?
12 freelancers are bidding on average $133 for this job
Hi, I have read description of your project and understand it. I can write this php script into classic ASP with full functionality. I am full stack developer having 8+yrs of experience. I am available to start work no More
start immediately Hope you doing well I am software developer having 10+years experience in web development more then 100+ website I have made. I enjoy being challenged and engaging with projects that require me to wor More
Hi, I am interested in your offer as a developer with 10 years of experience. I wanna do my best for you with my experience and diligent efforts. For a cheap price, you'll get more than you want in a short period of More
Hello, I am very interested in your project. I am an expert who have 8 years of experience in software development. I have solid skills and experiences in ASP.NET, .NET, C++. So I could absolutely help you to build mod More
------- Website Expert is Here ------- I have read your project Reprogram PHP script into VB Script or Classic ASP description. I have done similar projects in past. Let's have a quick discussion so I can show you some More
Hi, I'm a full-stack web developer with over 9 years of experience. I saw your article and have a few concerns about your project. I'd be happy to talk more about it. Gratitude!
Hi There, I read out your project details and I am willing to work with you. Will easily work on your given code with PHP into ASP and clear the issue of PayPal pro Regards, Ali Khan
Hey there, I have 4 years of working experience in web technologies and I have a strong working knowledge of every possible framework which is in the market. In terms of client-end I know: WordPress, JavaScript, HTML, More
Hello, I am very experienced vb/asp developer. I can complete your project in short time and small budget. please message me, I will show you my ability to satisfy you. I am ready to start now, thanks