Payflow Link info
Here is the section of the confirm.php code that deals with linking up to Payflow Link (NOT PRO).
<div class="eC_Simple_DesertSpice_Verdana">
<div class="eC_CheckoutFormWrapper">
<form name="checkout_PFP_LnkCmp_Hid" action="https://payflowpro.paypal.com/transaction" method="post">
<table class="eC_ButtonWrapper" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<input type="hidden" name="LOGIN" id="LOGIN" value="cardassoc2" />
<input type="hidden" name="PARTNER" id="PARTNER" value="VeriSign" />
<input type="hidden" name="VENDOR" id="VENDOR" value="VeriSign" />
<input type="hidden" name="AMOUNT" id="AMOUNT" value="<?php echo $eCart1->GrandTotal() ?>" />
<input type="hidden" name="TYPE" id="TYPE" value="S" />
<input type="hidden" name="SHIPAMOUNT" id="SHIPAMOUNT" value="" />
<input type="hidden" name="TAX" id="TAX" value="" />
<input type="hidden" name="DESCRIPTION" id="DESCRIPTION" value="<?php echo $eCart1->TotalColumn("FullDetails") ?>" />
<input type="hidden" name="NAME" id="NAME" value="<?php echo((isset($_POST["firstname"]))?$_POST["firstname"]:"") ?> <?php echo((isset($_POST["lastname"]))?$_POST["lastname"]:"") ?>" />
<input type="hidden" name="ADDRESS" id="ADDRESS" value="<?php echo((isset($_POST["street1"]))?$_POST["street1"]:"") ?>" />
<input type="hidden" name="CITY" id="CITY" value="<?php echo((isset($_POST["city"]))?$_POST["city"]:"") ?>" />
<input type="hidden" name="STATE" id="STATE" value="<?php echo((isset($_POST["state_province"]))?$_POST["state_province"]:"") ?>" />
<input type="hidden" name="ZIP" id="ZIP" value="<?php echo((isset($_POST["postcode"]))?$_POST["postcode"]:"") ?>" />
<input type="hidden" name="PHONE" id="PHONE" value="<?php echo((isset($_POST["phone"]))?$_POST["phone"]:"") ?>" />
<input type="hidden" name="FAX" id="FAX" value="<?php echo((isset($_POST["fax"]))?$_POST["fax"]:"") ?>" />
<input type="hidden" name="EMAIL" id="EMAIL" value="<?php echo((isset($_POST["email"]))?$_POST["email"]:"") ?>" />
<input type="hidden" name="NAMETOSHIP" id="NAMETOSHIP" value="<?php echo((isset($_POST["shipping_firstname"]))?$_POST["shipping_firstname"]:"") ?> <?php echo((isset($_POST["shipping_lastname"]))?$_POST["shipping_lastname"]:"") ?>" />
<input type="hidden" name="ADDRESSTOSHIP" id="ADDRESSTOSHIP" value="<?php echo((isset($_POST["shipping_street1"]))?$_POST["shipping_street1"]:"") ?>" />
<input type="hidden" name="CITYTOSHIP" id="CITYTOSHIP" value="<?php echo((isset($_POST["shipping_city"]))?$_POST["shipping_city"]:"") ?>" />
<input type="hidden" name="STATETOSHIP" id="STATETOSHIP" value="<?php echo((isset($_POST["shipping_state_province"]))?$_POST["shipping_state_province"]:"") ?>" />
<input type="hidden" name="ZIPTOSHIP" id="ZIPTOSHIP" value="<?php echo((isset($_POST["shipping_postcode"]))?$_POST["shipping_postcode"]:"") ?>" />
<input type="hidden" name="COUNTRYTOSHIP" id="COUNTRYTOSHIP" value="<?php echo((isset($_POST["shipping_country"]))?$_POST["shipping_country"]:"") ?>" />
<input type="hidden" name="PHONETOSHIP" id="PHONETOSHIP" value="<?php echo((isset($_POST["shipping_phone"]))?$_POST["shipping_phone"]:"") ?>" />
<input type="hidden" name="FAXTOSHIP" id="FAXTOSHIP" value="<?php echo((isset($_POST["shipping_fax"]))?$_POST["shipping_fax"]:"") ?>" />
<input type="hidden" name="EMAILTOSHIP" id="EMAILTOSHIP" value="<?php echo((isset($_POST["shipping_email"]))?$_POST["shipping_email"]:"") ?>" />
<input type="hidden" name="COUNTRY" id="COUNTRY" value="" />
<input type="hidden" name="COMMENT1" id="COMMENT1" value="" />
<input type="hidden" name="COMMENT2" id="COMMENT2" value="" />
<input type="hidden" name="CUSTID" id="CUSTID" value="" />
<input type="hidden" name="DLNUM" id="DLNUM" value="" />
<input type="hidden" name="INVOICE" id="INVOICE" value="" />
<input type="hidden" name="PONUM" id="PONUM" value="" />
<input type="hidden" name="USER1" id="USER1" value="" />
<input type="hidden" name="USER2" id="USER2" value="" />
<input type="hidden" name="USER3" id="USER3" value="" />
<input type="hidden" name="USER4" id="USER4" value="" />
<input type="hidden" name="USER5" id="USER5" value="" />
<input type="hidden" name="USER6" id="USER6" value="" />
<input type="hidden" name="USER7" id="USER7" value="" />
<input type="hidden" name="USER8" id="USER8" value="" />
<input type="hidden" name="USER9" id="USER9" value="" />
<input type="hidden" name="USER10" id="USER10" value="" />
<input type="image" alt="Modify information" value="Modify information" src="WA_eCart/Images/Desert Spice/Btn5_EN_modifyinformation.gif" onclick="history.back();return false;"/><input type="image" name="Submit_order" id="Submit_order" value="Checkout" alt="Submit order" src="WA_eCart/Images/Desert Spice/Btn5_EN_submitorder.gif" />
</td>
</tr>
</table>
</form>
</div>
</div>
This code:
action="https://payflowpro.paypal.com/transaction" method="post">
the site should be: payflowlink.paypal.com
Then the next error is in how the fields populate to enter the username and other necessary information to access the site.
This code:
<input type="hidden" name="PARTNER" id="PARTNER" value="VeriSign" />
<input type="hidden" name="VENDOR" id="VENDOR" value="VeriSign" />
Should be:
<input type="hidden" name="PARTNER" id="PARTNER" value="PayPal" />
NO VENDOR REQUIRED. (second line needs to be deleted).
If you don't make these corrections it WILL NOT connect to Payflow link.
hope that helps.
I will do a separate post for the usps shipping thing. since there's a limit.