Is there an example for how to rewrite the simple Checkout button form post code as a link?
for example:
Convert
<form name="PrePage" method = "post" action = "https://Simplecheckout.authorize.net/payment/CatalogPayment.aspx"> <input type = "hidden" name = "LinkId" value ="9627a9fc-80a9-4656-a11d-3283f10962fb" /> <input type = "image" src="//content.authorize.net/images/buy-now-blue.gif" /> </form>
to
<a href="https://Simplecheckout.authorize.net/payment/CatalogPayment.aspx">buy now</a>
โ05-26-2012 07:22 AM
Sure, you can have the form be entirely hidden (remove the submit button and make sure the form is styled to inline and no margins) and then submit it using onclick. Something like <a href="" onclick="document.forms.myformname.submit();">buy now</a>.
โ05-26-2012 05:37 PM
Can someone expand on this solution? i.e. make it easier to understand. I have this problem and it's hard to imagine it still hasn't been solved.
A simple hyperlink - instead of a button - that connects to my Simple Checkout donate page.
Thanks for your help.
โ08-27-2017 07:56 AM - edited โ08-27-2017 07:57 AM
<a href="#" onclick="document.forms.PrePage.submit();">buy now</a>. <form name="PrePage" method = "post" action = "https://scotest.authorize.net/payment/CatalogPayment.aspx">
<input type = "hidden" name = "LinkId" value ="cdf825b2-0ac5-4b3e-9c0c-dca1139e771d" /> </form>
Change the LinkId value to your own and your form action to https://simplecheckout.authorize.net/payment/CatalogPayment.aspx for live.
Do you feel me?
โ08-27-2017 09:06 AM - edited โ08-27-2017 09:13 AM