T O P I C R E V I E W |
rmmarsh |
Posted - 03 Dec 2007 : 18:48:46 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). |
5 L A T E S T R E P L I E S (Newest First) |
s.dav |
Posted - 07 Dec 2007 : 11:13:58 The end of January 2008 |
rmmarsh |
Posted - 07 Dec 2007 : 03:43:14 How long before the next version is available? |
s.dav |
Posted - 06 Dec 2007 : 09:06:39 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. |
rmmarsh |
Posted - 06 Dec 2007 : 02:58:03 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? |
s.dav |
Posted - 05 Dec 2007 : 09:17:53 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..
|