ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Here is the setting:
I'm providing an advertising service online using a keyword system. The system is set so that the customer may purchase the keyword using Paypal after the keyword is searched and available.
Once the customer has selected the the available Keyword they want to use, the system requires for the return-URL of the landing ordering page to be able to capture the value of the "keyword" using the GET method.
Here's the issue:
We're unable to figure out how to set the order form so that on Paypal, it will reflect the purchasing of the specific keyword. Since there are thousands upon thousands of possible keyword combinations, it's not like we can create a shopping cart for keywords. If anyone could point us in the right direction it would be a blessing. Thanks in advance.
Passing the keyword around as a get variable would be quite dangerous since the GET is visible and can be easily modified. For something like this I would suggest that you store the purchases in a cart and associate the purchases with a hash string (MD5 is probably good enough) Reserve the keywords for a fixed period of time if a payment is made within that time all well and good, otherwise release the contents of the cart for others to purchase.
Passing the keyword around as a get variable would be quite dangerous since the GET is visible and can be easily modified. For something like this I would suggest that you store the purchases in a cart and associate the purchases with a hash string (MD5 is probably good enough) Reserve the keywords for a fixed period of time if a payment is made within that time all well and good, otherwise release the contents of the cart for others to purchase.
Thanks Graemef,
I got in touch with the company who provided the initial code and they mentioned I needed to add a code similar to this: <input type="hidden" name="item_name" value="Broadcast" | <?=$keyword?> on the order form for paypal. I tried it and I'm getting an error. Do I need to make the paypal order form in PHP?
Try changing it to:
<input type="hidden" name="item_name" value="Broadcast" | <?php echo $keyword ?>
So long as the form is a .php file then this should be properly processed by the php engine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.