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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreThe Store Module does not work with PAYPALThe Store Module does not work with PAYPAL
Previous
 
Next
New Post
12/6/2006 6:38 PM
 
eclayf wrote

Allan, how do you use POST data in DNN as the whole page is enclosed in a

'form '/form' tag


...another part of the puzzle...
Add a Text/HTML control to your form and paste this code into it...
<input onclick="this.form.action='https://www.sandbox.paypal.com/cgi-bin/webscr';this.form.submit();" alt="Add to Cart" src="https://www.sandbox.paypal.com/en_US/i/btn/x-click-butcc.gif" name="submit" border="0" type="image">
<img alt="" src="https://www.sandbox.paypal.com/en_US/i/btn/x-click-butcc.gif" border="0" height="1" width="1">
<input value="1" name="add" type="hidden">
<input value="_cart" name="cmd" type="hidden">
<input value="me@mysite.com" name="business" type="hidden">
<input value="My Site" name="item_name" type="hidden">
<input value="0000" name="item_number" type="hidden">
<input value="99" name="amount" type="hidden">
<input value="1" name="no_shipping" type="hidden">
<input value="http://mycompany.com" name="return" type="hidden">
<input value="http://mycompany.com" name="cancel_return" type="hidden">
<input value="1" name="no_note" type="hidden">
<input value="EUR" name="currency_code" type="hidden">
<input value="IE" name="lc" type="hidden">
<input value="PP-BuyNowBF" name="bn" type="hidden">
 
New Post
12/7/2006 3:01 PM
 
If you mean "How do I add these hidden fields to my form?", then you do the following:

1.  Write a simple helper function like so:

private void AddHiddenField(string name, string value)
        {
            HtmlInputHidden htmlHidden = new HtmlInputHidden();
            htmlHidden.ID = name;
            htmlHidden.Name = name;
            htmlHidden.Value = value;
            Page.Form.Controls.Add(htmlHidden);
        }

2.  Add your name/value pair like so...

AddHiddenField("cmd", "_cart");
AddHiddenField("upload", "1");
AddHiddenField("business", _settings.PayPalID);
...Etc

If I've misunderstood your question please let me know.
 
New Post
3/25/2007 1:21 PM
 
I've fixed this bug adding the PayPal variable rm=2 (...&rm=2) in get string.
In this way PayPal call the return url with post method.
----------------------------------------------------
Paolo Labellarte
Software e Consulenza
mail: paolo@labellarte.it
web: http://www.labellarte.it
----------------------------------------------------
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreThe Store Module does not work with PAYPALThe Store Module does not work with PAYPAL


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