cancel
Showing results for 
Search instead for 
Did you mean: 

Convert simple checkour buttons to hyper link

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>

 

 

jpmoran
Member
3 REPLIES 3

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

TJPride
Expert

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.

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

Powered by NexWebSites.com -
Certified Authorize.net developers