Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Google Checkout in Text/HtmlGoogle Checkout in Text/Html
Previous
 
Next
New Post
3/25/2008 3:24 PM
 

I am trying to change the below code so that it will work in a text/html module.  It a google check out button.  I have code to place a paypal button in the text/html module but the same method doesn't seem to work for google checkout buttons.

<form action="https://checkout.google.com/cws/v2/Merchant/123456789/checkoutForm" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm">
    <input name="item_name_1" type="hidden" value="Wireless AutoSwitch 10"/>
    <input name="item_description_1" type="hidden" value="Wireless AutoSwitch for Windows XP"/>
    <input name="item_quantity_1" type="hidden" value="1"/>
    <input name="item_price_1" type="hidden" value="4.95"/>
    <input name="item_currency_1" type="hidden" value="USD"/>
    <input name="_charset_" type="hidden" value="utf-8"/>
    <input alt="" src="https://checkout.google.com/buttons/buy.gif?merchant_id=123456789&amp;w=121&amp;h=44&amp;style=white&amp;variant=text&amp;loc=en_US" type="image"/>
</form>

 

Any help would be appreciated.  Thanks

 
New Post
3/25/2008 8:48 PM
 

Hello, OT but i would love to see or understand how you have the paypal code working in this module as i have had trouble with it latley and can not get it to work now, so any tips would be great, I was thinking i may need to move to Google but your having troubles with that one.

Pete

 
New Post
3/25/2008 9:15 PM
 

For paypal this works:

You can do this with a simple javascript trick.

Step 1. Remove the <Form> </Form> tags from your PayPal "Buy Now" code.

Step 2. Add 
          onClick="this.form.action='https://www.paypal.com/cgi-bin/webscr';   
                      this.form.submit();" 

      to the buy now input button.

Step 3. Paste what is left into the html module
 
What it does is change the action for the Form that is already embedded into the DotNetNuke default.aspx page.


Here is an an example:
 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="payments@snapsis.com">
<input type="hidden" name="item_name" value="Buy John a Beer">
<input type="hidden" name="item_number" value="Beer">
<input type="hidden" name="amount" value="1.00">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="image"
   onClick="this.form.action='https://www.paypal.com/cgi-bin/webscr';this.form.submit();"

src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">

reference:    http://blogs.snapsis.com/PermaLink,guid,94277650-bd4c-445f-badf-b84646ecc8eb.aspx

 

I tried the above with google checkout and it didn't work.

 
New Post
3/26/2008 1:30 AM
 

Thanks Sase, you help is appreciated, if i find an answer for G will let you know

Pete

 
New Post
4/21/2008 9:46 PM
 

The reason that doesn't work for Google is all the extra parameters. You could potentially use Javascript and after a few hours makes the Form look like the form it's supposed to.

But that is a waste of time (I know, I was trying that).

Another solution I had was to make a module that redirects to an ASPX using response.redirect. That would work perfectly. However... while I was doing Yoga I started to think about it and the...

The real solution is, as always, elegant and tiny. Use an Iframe. Make your inner form, the one that goes to Google Checkout, target to _parent. That is all. It works so nicely. I only wish I could get my time back for my Javascript solution.

Best,
Daniel

DVDs4theSAT
SAT Tutoring you can rewind

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Google Checkout in Text/HtmlGoogle Checkout in Text/Html


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out