Conversion of PHP code into APEX

Suljettu Julkaistu 6 vuotta sitten Maksettu toimituksen yhteydessä
Suljettu Maksettu toimituksen yhteydessä

I have and PHP code for integrating with Pay Pal Payflow. Anyone who can give me its APEX alternative or convert the code into apex. Iwill be thankful.

<?php

session_start();

global $environment;

$environment = "sandbox";

require_once('[url removed, login to view]');

echo '<p>Payflow direct credit card processing - basic demo</p>';

if(empty($_POST)) {

?>

<form method="post">

Manager:

<br/>Partner: <input type="text" name="PARTNER" value="PayPal"/>

<br/>Vendor: <input type="text" name="VENDOR" value="goofy2000us"/>

<br/>User: <input type="text" name="USER" value="PayFlowPro"/>

<br/>Password: <input type="text" name="PWD" value="test1234"/>

<br/>

<br/>Amount:<input type="text" name="AMT" value="1.23"/>

<br/>Credit card:<input type="text" name="CREDITCARD" value="5105105105105100"/>

<br/>Expiration date: <input type="text" name="EXPDATE" value="1220"/>

<br/>Card security code: <input type="text" name="CVV2" value="123"/>

<br/>CURRENCY: <input type="text" name="CURRENCY" value="USD"/>

<br/>First name: <input type="text" name="BILLTOFIRSTNAME" value="John"/>

<br/>Last name: <input type="text" name="BILLTOLASTNAME" value="Doe"/>

<br/>Address: <input type="text" name="BILLTOSTREET" value="123 Main St."/>

<br/>City: <input type="text" name="BILLTOCITY" value="San Jose"/>

<br/>State: <input type="text" name="BILLTOSTATE" value="CA"/>

<br/>Zip: <input type="text" name="BILLTOZIP" value="95101"/>

<br/>Country: <input type="text" name="BILLTOCOUNTRY" value="US"/>

<br/>Silent Tran: <input type="text" name="SILENTTRAN" value="TRUE"/>

<br/>Secure ID: <input type="text" name="createsecuretoken" value="Y"/>

<br/><input type="submit" value="Pay Now"/>

</form>

<?php

} else {

$request = array(

"PARTNER" => $_POST['PARTNER'],

"VENDOR" => $_POST['VENDOR'],

"USER" => $_POST['USER'],

"PWD" => $_POST['PWD'],

"TENDER" => "C",

"TRXTYPE" => "A",

"CURRENCY" => $_POST['CURRENCY'],

"AMT" => $_POST['AMT'],

"ACCT" => $_POST['CREDITCARD'],

"EXPDATE" => $_POST['EXPDATE'],

"CVV2" => $_POST['CVV2'],

"BILLTOFIRSTNAME" => $_POST['BILLTOFIRSTNAME'],

"BILLTOLASTNAME" => $_POST['BILLTOLASTNAME'],

"BILLTOSTREET" => $_POST['BILLTOSTREET'],

"BILLTOCITY" => $_POST['BILLTOCITY'],

"BILLTOSTATE" => $_POST['BILLTOSTATE'],

"BILLTOZIP" => $_POST['BILLTOZIP'],

"BILLTOCOUNTRY" => $_POST['BILLTOCOUNTRY'],

);

//Run request and get the response

$response = run_payflow_call($request);

pre($request, "Request");

pre($response, "Response");

}

Java PayPal API PHP

Projektin tunnus: #14998286

Tietoa projektista

2 ehdotusta Etäprojekti Aktiivinen 6 vuotta sitten

2 freelanceria on tarjonnut keskimäärin $23 tähän työhön

raiakanksha49

Hello sir/ma'am.. I have gone through your project domain..and i want to complete your project. I have 7 years of experience and i can complete your project within your budget.. Thankyou!..

$30 USD 2 päivässä
(45 arvostelua)
6.2