how do I do a clickable link as a buy method (merchant website). Not a button, but for example: "Click Here to purchase" – and this link goes straight to the paypal payment screen.
Get all the PayPal info for what you want here:
PayPal’s Custom Payment Pages: An Overview – https://www.paypal.com/us/cgi-bin/webscr?cmd=p/mer/cowp_summary-outside
Ron
Related posts:




March 27th, 2010 at 6:47 pm
Assuming you use Php…
Your calling payment page (your "checkout"):
<form name=’spaypal’ action=\"https://www.paypal.com/uk/cgi-bin/webscr\" method=\"post\" target=\"_blank\">"
// the call to paypal:
<a href = ‘ ‘ onclick = ‘ js_send(document.forms["spaypal"]); return false;’ >Go to Paypal</a>
// the hidden value you MUST include to paypal:
‘<input type="hidden" name="cmd" value="_xclick">’
‘<input type="hidden" name="business" value="’.$PPbusiness.’">’
‘<input type="hidden" name="item_name" value="Global Purchase/Payment">’
‘<input type="hidden" name="currency_code" value="EUR">’
‘<input type="hidden" name="amount" id="amount" value="’.$total.’">’
‘<input type="hidden" name="return" value="’.$PPreturn.’">’
‘<input type="hidden" name="cancel_return" value="’.$PPcancel.’">’
</form>
//The variables
//$PPbusiness is your paypal account name
//$PPreturn is your URL file when the transaction is complete and successful (saying thank you!)
//$PPcancel is you URL file when the transaction fails for any reason
(saying sorry!)
// $total: the total value of the purchase…
// somewhere in the headers:
<script>
function js_send(theForm)
{
theForm.submit();
}
… extracted from my AJAX system, so the syntax may have to be reviewed! But that’s the idea…
References :
March 27th, 2010 at 7:26 pm
Get all the PayPal info for what you want here:
PayPal’s Custom Payment Pages: An Overview – https://www.paypal.com/us/cgi-bin/webscr?cmd=p/mer/cowp_summary-outside
Ron
References :
http://www.google.com/search?q=+paypal+payment+code&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a