Reprogram PHP script into VB Script or Classic ASP

Completed Posted 2 years ago Paid on delivery
Completed 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;

}

?>

PHP ASP VBScript eCommerce

Project ID: #32616775

About the project

12 proposals Remote project Active 2 years ago

Awarded to:

WebInfoSolutions

Do you want to convert CURL into classic ASP or the upper part which is ensapsulating the curl part?

$30 USD in 1 day
(232 Reviews)
7.9

12 freelancers are bidding on average $133 for this job

alihassan321

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

$250 USD in 3 days
(71 Reviews)
6.2
gtnt20905baroli

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

$100 USD in 3 days
(37 Reviews)
5.2
vovakovalkov80

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

$200 USD in 7 days
(12 Reviews)
5.3
lazarpetrovic111

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

$140 USD in 7 days
(3 Reviews)
5.0
ayazkhanfiaz

------- 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

$120 USD in 2 days
(8 Reviews)
3.7
rahildevelopment

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!

$140 USD in 1 day
(1 Review)
2.9
VRTECHSOL

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

$140 USD in 7 days
(6 Reviews)
2.3
mkastukevich

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

$100 USD in 5 days
(1 Review)
2.0
trostnickovo

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

$80 USD in 1 day
(0 Reviews)
0.0