Menu
Put an authorize.net Simple Checkout button on your DNN site
Last Post 22 May 2015 04:24 PM by Mark Buelsing. 0 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
Author Messages
Mark BuelsingUser is Offline
New Member
New Member
Posts:61

--
22 May 2015 04:24 PM Quote Reply  
Authorize.net creates your Simple Checkout button in the form of a form tag - and that cannot be used on a DNN page. This method of making it work is a little convoluted but does nevertheless work.

Create a html page, put it in the root of your site, name it whatever you like. I suggest "PaymentPage.html"

In the HTML of that page, enter the following line in the body section, this code will break the user payment page out of the frame it is in.
<base target="_blank">

Then include the code for the Simple Checkout button like so:

<base target="_blank">
<form> name="PrePage" method = "post" action = "https://Simplecheckout.authorize.net/payment/CatalogPayment.aspx">
<input type = "hidden" name = "LinkId" value ="xxxxxxx-xxxxx-xxxxxx-xxxxxxx" /> <input type = "submit" value = "Pay Now!" /> </form>

Save this file.

Then go back to your DNN page and in an html module, add an iframe that points to your html page similar to this.

<iframe src="https://letitshine.biz/portals/0/PaymentPage.html"></iframe>

Save.

Now you should have a paynow button showing on your DNN page. The paynow button is actually coming from the form tag on the PaymentPage.html file that is showing in an iframe. When you click the button. The base target tag breaks you out of the iframe while it takes you to the Authorize.net Simple Checkout page. Success!


Quick Reply
toggle
  Username:
Subject:
Body:
Security Code:
CAPTCHA image
Enter the code shown above in the box below.

Submit

Powered by Active Forums