Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 PayPal and D.H.E.?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rmmarsh
Super User

USA
396 Posts

Posted - 03 Dec 2007 :  18:48:46  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
Currently, I have .aspx pages that will send a GUID code via email to the purchasers of my program, which is then used by them to unlock the program's features (validate the license).

Since I am converting my site to html using D.H.E., what do I replace the code-behind (which is currently written in C#) with? Basically, I still need to send the GUID to the user when it has been paid for (through PayPal).

s.dav
Site Admin

Italy
3364 Posts

Posted - 05 Dec 2007 :  09:17:53  Show Profile  Visit s.dav's Homepage  Reply with Quote
You can maintain your current code for activation by placing an HTML box into the Registration page of your site. The code-behind has to be maintained ;-)
Or you can upload your .aspx original pages to your site and link them with D.H.E..

Regards, Davide
Go to Top of Page

rmmarsh
Super User

USA
396 Posts

Posted - 06 Dec 2007 :  02:58:03  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
OK.. how about if I want to send the data to PayPal, which sends me back a confirmation page which I must check the variables and respond back to PayPal. What I do after sending the variables back to PayPal is up to me and I have that figured out.

Now, my questions are:

1. How do I send the variables (5 or 6 of them) to PayPal with the submit button? (a sample would be nice)
2. How do I put my PHP code in D.H.E. on the PayPal confirmation page? (do I just have one big "HTML" bit of code, (but it's really PHP) and then export the page as PHP?) If so, does it go in the body?
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 06 Dec 2007 :  09:06:39  Show Profile  Visit s.dav's Homepage  Reply with Quote
1- In my order page I placed an HTML box with a <form tag inside but you can make it using form and text D.H.E. object in this way:

a) create the form object, set the action to "https://www.paypal.com/cgi-bin/webscr" and the method to "post"
b) you have to place some standard paypal fields into the form like "cmd","redirect_cmd","business" (this should be your paypal mail account),"item_name","currency_code" and some others

2- your PHP code can be placed anywhere in the D.H.E. page; I personally place the header code in the header section of the page (scripts) and the other in the body.
If the body code doesn't require a box (HTML BOX) I place the code using the "Body Top Code" property of the D.H.E. page.
If you PHP code can execute redirections you MUST place it before everything in the "Page Top Code" section.
The page MUST have the .php extension in order to run.

The next version will have PayPal buttons so maybe an example is not useful now.

Regards, Davide
Go to Top of Page

rmmarsh
Super User

USA
396 Posts

Posted - 07 Dec 2007 :  03:43:14  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
How long before the next version is available?
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 07 Dec 2007 :  11:13:58  Show Profile  Visit s.dav's Homepage  Reply with Quote
The end of January 2008

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000