Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > BlueVoda Website Builder Forums > BlueVoda Tips, Tricks and Shortcuts

Notices

BlueVoda Tips, Tricks and Shortcuts Know a great BlueVoda (or Web design) tip or trick? Share it with the world here. Become famous for your brilliance! Please, No Questions or Problems!

Closed Thread
 
Thread Tools
  #1  
Old 04-10-2007, 06:54 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Custom generated PayPal Button

Hi everyone,

i have been recently asked by some members how you can create a custom generated PayPal Buy Now button. These buttons are extremely useful and are the basis of customized payments. Ok, let's see how you do this. We will suppose here that you want to create a button where amount and item description are user defined. The same technique can be used to customize any other parameter that a PayPal button allows for, as Currency, shipping etc. A working example can be seen in my own payments page, in http://www.dbtechnosystems.com/payment_general.php

For this tutorial, we will asume that the page (which needs to be in php) is called "payment.php"

Ok, lets see the steps one by one:

1. Creating the main button code:
Go in your PayPal account, and create a button with the charatteristics you like. As we said, we will customize Item description and amount, so don't care about these two things, you can place there as amount "10" and as description: "example description". You will get a code like

Quote:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="you@yoursite.com">
<input type="hidden" name="item_name" value="example description">
<input type="hidden" name="item_number" value="">
<input type="hidden" name="amount" value="10">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://www.yoursite.com/returnpage.php">
<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" src="https://www.paypal.com/en_US/i/btn/x-click-but02.gif" border="0" name="submit" alt="Make your payments with PayPal. It is free, secure, effective.">
<img alt="" border="0" src="https://www.paypal.com/it_IT/i/scr/pixel.gif" width="1" height="1">
</form>
Now, change these two lines as follows:


Quote:
<input type="hidden" name="item_name" value="<? echo $item_name; ?>">
<input type="hidden" name="amount" value="<? echo $amount; ?>">
Ok, add this code in the begining:

Quote:
<?
if ($amount != 0){
?>
and the following one at the end:

Quote:
<?
}
?>
At this point the entire button code will be:

Quote:
<?
if ($amount != 0){
?>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="you@yoursite.com">
<input type="hidden" name="item_name" value="="<? echo $item_name; ?>">
<input type="hidden" name="item_number" value="">
<input type="hidden" name="amount" value="="<? echo $amount; ?>">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://www.yoursite.com/returnpage.php">
<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" src="https://www.paypal.com/en_US/i/btn/x-click-but02.gif" border="0" name="submit" alt="Make your payments with PayPal. It is free, secure, effective.">
<img alt="" border="0" src="https://www.paypal.com/it_IT/i/scr/pixel.gif" width="1" height="1">
</form>
<?
}
?>
Add a html box, more or less the same size as the button that you want to create, in your page, and paste the code in it. Place the html box where you want it to appear.

Step 2. Create the form that will customize the button: this is a very simple form, with two fields: "amount", and "item_name". Please use exactly these names, as they are the same that PayPal uses. Add a submit button. Set the form action in "payment.php" so the page will submit to itself, the method to "POST", the encoding type to "multipart / form data".

Double click the amount field and the initial value to be

<? echo $amount; ?>

Double click the item_name field and set the initial value to be <? echo $item_name; ?>

Ok, the form part is finished.

Step 3. Go to Page html, and paste the following code in the Start of page Tag:

Quote:
<?
$item_name = $_POST['item_name'];
$amount = $_POST['amount'];
?>
Now, set your page extension to be php when published, save, and publish.

That's all, have fun!!

Warning: this trick asumes that you use a NON ENCRYPTED PayPal buy now button. Ad Davidindalicia has correctly stated in a post furher down, the code results clear to whoever views the source code. So, anyone can see the return page link. Conclusion: do NOT use this trick to generate a PayPal Button for downloadable products, unless you have a script that will verify the payment before allowing the download link(s) to appear in the return page.
This trick is intended for customized payments, where the return page is simply a thank you page (you send the product yourself, either per email, if it is an electronic product, or phisically ship it, if it is a real product), or for those cases where the product is a downloadable one, but the download link is protected by a payment verification code as described above.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #2  
Old 04-10-2007, 06:57 AM
aconstas1's Avatar
Lieutenant Colonel
 
Join Date: Mar 2007
Posts: 593
Default Re: Custom generated PayPal Button

Thanks Naval. Just another one of those treasures that you wont find anywhere else.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old 04-10-2007, 07:06 AM
aconstas1's Avatar
Lieutenant Colonel
 
Join Date: Mar 2007
Posts: 593
Default Re: Custom generated PayPal Button

Does this work if I add the appropriate hidden fields and code to an encrypted button that I generate with PayPal?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old 04-10-2007, 08:26 AM
aconstas1's Avatar
Lieutenant Colonel
 
Join Date: Mar 2007
Posts: 593
Default Re: Custom generated PayPal Button

sorry another question, can you make item_name required with ABVFP or will the name extension mess up the PayPal side of it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old 04-10-2007, 02:37 PM
davidundalicia's Avatar
General & Forum Moderator
 
Join Date: Mar 2006
Location: Mallorca, Spain
Posts: 6,437
Default Re: Custom generated PayPal Button

NavalDesign,

Would it not be a good idea to advise anyone that uses this tip, that they will also need a method of confirming payment BEFORE directing the client to the actual download page?

If members use this tip as it is, then the return page is visible after the paypal button has been generated and BEFORE the payment has been made......
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old 04-10-2007, 06:11 PM
aconstas1's Avatar
Lieutenant Colonel
 
Join Date: Mar 2007
Posts: 593
Default Re: Custom generated PayPal Button

The buttons i generate do not grab the correct item_name
my field is correctly named and has the correct initial value
my button html also has the correct code in the value
What else could cause this?

my payment php page is HERE
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old 04-10-2007, 06:27 PM
aconstas1's Avatar
Lieutenant Colonel
 
Join Date: Mar 2007
Posts: 593
Default Re: Custom generated PayPal Button

I dont know what I did, but apparently where the fields appear in html versus the button has something to do with functionality. Also i had copied and pasted the amount code and just changed the item_number name which made my amount field be entered for the item_name during button generation. I had to delete the line in the HTML code in the button and retype the line for the item_name value without copying and pasting. I dont know why this would have effected the functionality of my form and button generation, but it did.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old 04-10-2007, 06:37 PM
davidundalicia's Avatar
General & Forum Moderator
 
Join Date: Mar 2006
Location: Mallorca, Spain
Posts: 6,437
Default Re: Custom generated PayPal Button

Alex, when I tested your button it generated the button with the correct text in the item-name.

But the return page could not be found...maybe you should check the spelling of your return link.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
Old 04-10-2007, 07:14 PM
aconstas1's Avatar
Lieutenant Colonel
 
Join Date: Mar 2007
Posts: 593
Talking Re: Custom generated PayPal Button

Quote:
Originally Posted by davidundalicia
Alex, when I tested your button it generated the button with the correct text in the item-name.

But the return page could not be found...maybe you should check the spelling of your return link.
hehe yes i got it working, and it didn't find the return yet because I'm still building it. :p
Thanks for watching out for me though.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #10  
Old 04-10-2007, 08:55 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

Quote:
Originally Posted by aconstas1
Does this work if I add the appropriate hidden fields and code to an encrypted button that I generate with PayPal?
No, you need to use a NON encrypted button.

Can you make the "item_name" required ?

Yes, but a differents version would be needed, with a second page, which would check the amount and item name, and if the amount is not null, will chek the item name to see if it is null, and if yes, it will give an error message. If both are null, it will redirect to the same initial page.

The button is correctly generated in your page.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #11  
Old 04-10-2007, 09:00 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

Quote:
Originally Posted by davidundalicia
NavalDesign,

Would it not be a good idea to advise anyone that uses this tip, that they will also need a method of confirming payment BEFORE directing the client to the actual download page?

If members use this tip as it is, then the return page is visible after the paypal button has been generated and BEFORE the payment has been made......
David, you are correct. But this is NOT intended for a downloadable product payment. Usually downloadable products have a fixed description and price. It is intended for a customized service payment, where the return page is simply a thank you page.

However, you are correct, and i shall place the correct warning in my initial post.

Thanks.

You know my opinion on paid for downloads: no links, no risk. The thank you page (in my opinion) MUST have a payment verification script.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #12  
Old 04-10-2007, 09:51 PM
davidundalicia's Avatar
General & Forum Moderator
 
Join Date: Mar 2006
Location: Mallorca, Spain
Posts: 6,437
Default Re: Custom generated PayPal Button

As a method of paying for a service without a downloadable product, then once again your expertise and contribution is highly commendable and I shall use this myself..............Thanks George.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #13  
Old 04-10-2007, 11:02 PM
Karen Mac's Avatar
General & Forum Moderator
 
Join Date: Apr 2006
Location: X marks the spot
Posts: 8,474
Send a message via MSN to Karen Mac
Default Re: Custom generated PayPal Button

When copy and pasting from other sources on the web like webpages or forums, its a good idea to to first copy into notepad, then recopy the notepad code to your actual application. Very often you pick up some erroneous code or figures that may or not be visible to you, but generally notepad will eliminate that.

Alternately, could you not just make your own button and just change the URL to your .gif instead of the secured one at paypal?

Quote:
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but02.gif" border="0" name="submit" alt="Make your payments with PayPal. It is free, secure, effective.">
or will it give a pop up error?

Karen
__________________
KMAC Enterprise
Missouri Free Classified Ads
Charming Noveltees~Sports Logos Charms

I've learned that artificial intelligence is no match for natural stupidity!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #14  
Old 04-10-2007, 11:09 PM
aconstas1's Avatar
Lieutenant Colonel
 
Join Date: Mar 2007
Posts: 593
Default Re: Custom generated PayPal Button

I'm using this to allow my customers to pay me their monthly bills via web site instead of me having to go collect or them mail it in. Excellent addition to the web site.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #15  
Old 04-10-2007, 11:19 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

Quote:
Originally Posted by Karen Mac
When copy and pasting from other sources on the web like webpages or forums, its a good idea to to first copy into notepad, then recopy the notepad code to your actual application. Very often you pick up some erroneous code or figures that may or not be visible to you, but generally notepad will eliminate that.

Alternately, could you not just make your own button and just change the URL to your .gif instead of the secured one at paypal?



or will it give a pop up error?

Karen
Hi KAren,

yes, you can change the image source. No problem
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #16  
Old 04-20-2007, 04:00 PM
Captain
 
Join Date: Dec 2006
Location: Westren NY
Posts: 218
Send a message via ICQ to Windameer Farm
Default Re: Custom generated PayPal Button

Hello,

Can I get some help with this and a form I'm trying to connect it to please. the for url is www.windameer.com/feltitemsforsale.php .

Thanks Jolen
__________________
www.advertise.windameer.com - Add a Banner for your site or sites for free.

www.windameersfleamarket4u.com - Buy Sell Trade with Windameer's Flea Market 4U ( 1 Year Free for BV sites)

www.windameer.com - Come see our Angora Goats.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #17  
Old 04-20-2007, 05:15 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

Quote:
Originally Posted by Windameer Farm
Hello,

Can I get some help with this and a form I'm trying to connect it to please. the for url is www.windameer.com/feltitemsforsale.php .

Thanks Jolen
Here is the procedure that you should have followed:

The form submits. So your button should NOT have "Generate" but should have a label like "Calculate cost". Then, you should have a script, in the cost calculation page, that will receive the form details, email you the order details, calculate the cost, and, if the amount is >0, create the button code (which will also make the button visible). As it is now, it only submits to the "action.php" page, and then it doesn't do anything.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #18  
Old 04-20-2007, 06:38 PM
Captain
 
Join Date: Dec 2006
Location: Westren NY
Posts: 218
Send a message via ICQ to Windameer Farm
Default Re: Custom generated PayPal Button

Quote:
Originally Posted by navaldesign
Here is the procedure that you should have followed:

The form submits. So your button should NOT have "Generate" but should have a label like "Calculate cost". Then, you should have a script, in the cost calculation page, that will receive the form details, email you the order details, calculate the cost, and, if the amount is >0, create the button code (which will also make the button visible). As it is now, it only submits to the "action.php" page, and then it doesn't do anything.
Thank you Navaldesign. I think this one is a bit over my head :). I'm goignt o put it on hold for now and finish the rest of the web pages. maybe by then i'll deside on what to do with this.

Thank you for your help and i'm useing alot of your tips well rebuilding :)
Jolen
__________________
www.advertise.windameer.com - Add a Banner for your site or sites for free.

www.windameersfleamarket4u.com - Buy Sell Trade with Windameer's Flea Market 4U ( 1 Year Free for BV sites)

www.windameer.com - Come see our Angora Goats.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #19  
Old 04-20-2007, 06:50 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

It is really very simple.
You create a page that you will name "action" and publish as php. In the Start of Page (of the html code of the page) you will paste the same script that you will find in the Forms Tutorial Part 1. This will email the order details to you. Then, you will have a html box, with the code that will create the PayPal button.

If you want, create this page, as you want it visually, and send me the .bvp file, i will place the code and send it back to you ready for publishing.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #20  
Old 04-20-2007, 07:00 PM
Captain
 
Join Date: Dec 2006
Location: Westren NY
Posts: 218
Send a message via ICQ to Windameer Farm
Default Re: Custom generated PayPal Button

Ok I'll do that and send it to you thanks.
__________________
www.advertise.windameer.com - Add a Banner for your site or sites for free.

www.windameersfleamarket4u.com - Buy Sell Trade with Windameer's Flea Market 4U ( 1 Year Free for BV sites)

www.windameer.com - Come see our Angora Goats.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #21  
Old 04-20-2007, 09:29 PM
Captain
 
Join Date: Dec 2006
Location: Westren NY
Posts: 218
Send a message via ICQ to Windameer Farm
Default Re: Custom generated PayPal Button

Quote:
Originally Posted by navaldesign
It is really very simple.
You create a page that you will name "action" and publish as php. In the Start of Page (of the html code of the page) you will paste the same script that you will find in the Forms Tutorial Part 1. This will email the order details to you. Then, you will have a html box, with the code that will create the PayPal button.

If you want, create this page, as you want it visually, and send me the .bvp file, i will place the code and send it back to you ready for publishing.
Thank you I made it and sent it to you threw you web site. sorry i sent the wrong one the frist time.
__________________
www.advertise.windameer.com - Add a Banner for your site or sites for free.

www.windameersfleamarket4u.com - Buy Sell Trade with Windameer's Flea Market 4U ( 1 Year Free for BV sites)

www.windameer.com - Come see our Angora Goats.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #22  
Old 05-26-2007, 06:18 AM
Sergeant First Class
 
Join Date: Dec 2006
Posts: 57
Send a message via Yahoo to cct9105
Smile Re: Custom generated PayPal Button

Hi Navaldesign,

I did a form with check box choices which amount a customer can donate and I want to integrate the with paypal so they can pay using visa/mastercard if they click "make donation". To give you an idea what I am doing pls. go to
http://www.millarefoundation.com/dform.html

Thanks and I appreciate your help.

janeth
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #23  
Old 05-26-2007, 07:01 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

There are some mistakes in your form:
1. The page must be php and not html.
2. The form has no action at all. The action should be the page itself: "dform.php"
3. Encoding type: it is set to text / plain, must be multipart / form data
4. You need Radio buttons, not checkboxes because only one ammount should be chosen.
5. These radio buttons should have the same Group name (at the moment they are unnamed)
6. You do NOT have the "If "statement so hat the button will only appear after a selection has been made.
7. You did not define any item name, item value etc when creating the button. Also no return page. Did you create it in PayPal, or did you use BV's PayPal tool?
8. You did not replace the item name and value (which do not exist) with the php code as per tutorial.
Please read again and follow the instructions.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #24  
Old 05-26-2007, 12:53 PM
Sergeant First Class
 
Join Date: Dec 2006
Posts: 57
Send a message via Yahoo to cct9105
Smile Re: Custom generated PayPal Button

Thank you for you reply. I redo and I'll be back. I had my paypal account already but I used the paypal in the BV that's why I don't know how can to link it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #25  
Old 06-05-2007, 07:13 PM
Sergeant First Class
 
Join Date: Dec 2006
Posts: 57
Send a message via Yahoo to cct9105
Smile Re: Custom generated PayPal Button

Hi Navaldesign,

I'm back seeking help again, I used the radiobutton, now how can I pass the value selected to the paypal form. to complete the transaction. I know nothing about HTML.
Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #26  
Old 06-05-2007, 09:08 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

The radio button group name should be "amount" so the amount is passed to the script. If you do so, the value selected will be automatically be passed to the script. Just follow the initial instructions in post #1 in this same thread, replacing the text box with the radio buttons group.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #27  
Old 06-24-2007, 05:29 AM
Sergeant First Class
 
Join Date: Dec 2006
Posts: 57
Send a message via Yahoo to cct9105
Smile Re: Custom generated PayPal Button

Hi Navaldesign,

I'm back, still trying to finish my paypal form but I couldn't get it, if you have a few minutes kindly check www.millarefoundation.com/payment.php and point me where did I go wrong.

Thanks and appreciate your effort.
__________________
janeth
www.millarefoundation.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #28  
Old 06-24-2007, 07:48 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

Your Radio buttons should have, as value, the amount corresponding to each one. They are null right now
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #29  
Old 07-01-2007, 10:22 AM
Sergeant First Class
 
Join Date: Dec 2006
Posts: 57
Send a message via Yahoo to cct9105
Smile Re: Custom generated PayPal Button

Hi Navaldesign,

I'm back again, sorry for taking so long quite busy on everything, if you have spare time kindly check what I did and give you fine suggestion.
Thanks and I really appreciate your help I learn a lot from you.

I just have another question on HMTL though, how can I insert a line in between text.

http://www.millarefoundation/payment.php
__________________
janeth
www.millarefoundation.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #30  
Old 07-01-2007, 11:43 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

Yes, your script works, though i would have added some code so that the visitor doesn't have to make two selections one for description and one for amount. However, these are personal choices. Good work.

Not sure what you mean "insert a line in text". You mean a Fine Feed ? if that is the case, suppose you need to display the following text:

This is line one

This is line three because there is an empty line.

The code is:

<font style="font-size:13px" color="#000000" face="Verdana">This is line one<br>
<br>
This is line three because there is an empty line.</font>

As you see the two <br> 's cause the CR from line one to line two and yet to line three.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #31  
Old 07-01-2007, 02:57 PM
Sergeant First Class
 
Join Date: Dec 2006
Posts: 57
Send a message via Yahoo to cct9105
Smile Re: Custom generated PayPal Button

Hi Navaldesign,

Thanks, I though of that if a visitor chooses the a certain the description will be selected automatically but I don't know how to do it, second, how can I keep the button to a selected one.

I do appreciate your help seems your are the guru. :))

janeth
__________________
janeth
www.millarefoundation.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #32  
Old 07-03-2007, 08:52 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

Quote:
Originally Posted by cct9105 View Post
Hi Navaldesign,

Thanks, I though of that if a visitor chooses the a certain the description will be selected automatically but I don't know how to do it, second, how can I keep the button to a selected one.

I do appreciate your help seems your are the guru. :))

janeth
Depending on your form, the script has to be adapted. Have a look at this example: http://www.dbtechnosystems.com/Tips/radio_payment.php

If you like it, contact me and i will send you the file.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #33  
Old 07-03-2007, 02:50 PM
Sergeant First Class
 
Join Date: Dec 2006
Posts: 57
Send a message via Yahoo to cct9105
Smile Re: Custom generated PayPal Button

Thank you very much, Navaldesign, you are such a nice person, very helpful. I love to have a copy of what you did.
__________________
janeth
www.millarefoundation.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #34  
Old 07-03-2007, 04:44 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

Contact me through my form so i can email the file to you.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #35  
Old 07-08-2007, 05:14 AM
Sergeant First Class
 
Join Date: Dec 2006
Posts: 57
Send a message via Yahoo to cct9105
Smile Re: Custom generated PayPal Button

Hi Navaldesign,

I did fillout your form, iyour reply form is very nice,how did you make in table format. Thanks and I'll be happy if you can share it.
__________________
janeth
www.millarefoundation.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #36  
Old 07-08-2007, 07:19 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

This is a bit complicated. It requires sending html email and hardcoding the mail content. I do that on a professional basis.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #37  
Old 07-10-2007, 08:54 PM
Sergeant First Class
 
Join Date: Dec 2006
Posts: 57
Send a message via Yahoo to cct9105
Smile Re: Custom generated PayPal Button

Thanks a lot with code you sent though but have a fe problem, I cant go through my paypal account it always say incorect formatted amount item. I tried everything that I know but still do the same, maybe I missing sonething on the HTML I'm not sure. Kindly take a look again on your spare time pls.

www.millarefoundation.com/payment.php

for my prevous question: Yes, I agree with that it is a complicated one and I noticed also the one that you created on the payment.php is a hardcoded amount. I hope will learn more as I am venturing myself in website development.

I really appreciate your willingness to help.
__________________
janeth
www.millarefoundation.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #38  
Old 07-10-2007, 08:57 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

Hi

check your paypal button code. Also, you could change he settings in the form so that the radio buttons start from 1 instead of 0 . This way it will NOT default to the first choice as it does now. In that case make the first radio NOT selected
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #39  
Old 07-15-2007, 05:22 AM
Sergeant First Class
 
Join Date: Dec 2006
Posts: 57
Send a message via Yahoo to cct9105
Smile Re: Custom generated PayPal Button

Hi Navaldesign,

I finally finished my form, just a few error on the quotation part o the html, you are an angel in finishing this portion of the website.

Thank you very much.
__________________
janeth
www.millarefoundation.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #40  
Old 08-08-2007, 07:36 PM
Private First Class
 
Join Date: Aug 2007
Posts: 5
Default Re: Custom generated PayPal Button

My turn to ask for help with this button. Can you look at www.vacations-afloat.com/payments.html and tell me where i am going wrong. I can't figure out how to make the initial value work without displaying their values.

Thanks for your anticipated help

Michael

michael@vacations-afloat.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #41  
Old 08-08-2007, 09:00 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

You have published the page as html. Please read the instructions, you need to publish it as php
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #42  
Old 08-12-2007, 09:40 AM
Private First Class
 
Join Date: Aug 2007
Posts: 5
Default Re: Custom generated PayPal Button

Thanks for that, the mistake was in the menu buttons which were pointing at an .html page and not the .php one.

Next question, we sell vactaions and therefore each transaction is a different value, hence the need for your custom button. We also sell in 3 currencies, US Dollars, British Pounds and Euros, can I add the ability to select currency to the cutom buton? If so how do i do tis?

Many thanks
Michael
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #43  
Old 08-12-2007, 08:39 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

You can add in the form ALL the parameters of the PayPal button: amount, item descriptin, item nr., amount, currency, etc. The code has to be changed acordingly, and the form fields must reflect the code elements. So, change the button code to :

Code:
<?
if ($amount != 0){
?> 
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="you@yoursite.com">
<input type="hidden" name="item_name" value="="<? echo $_POST['item_name']; ?>">
<input type="hidden" name="item_number" value="">
<input type="hidden" name="amount" value="="<? echo $_POST['amount']'; ?>">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://www.yoursite.com/returnpage.php">
<input type="hidden" name="currency_code" value="<? echo $_POST['currency'];?> ">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but02.gif" border="0" name="submit" alt="Make your payments with PayPal. It is free, secure, effective.">
<img alt="" border="0" src="https://www.paypal.com/it_IT/i/scr/pixel.gif" width="1" height="1">
</form>
<?
}
?>
and include, in the form, a drop down with the thre values : USD, GBP, EUR for the three currencies you need.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #44  
Old 08-14-2007, 05:00 PM
Private First Class
 
Join Date: Aug 2007
Posts: 5
Default Re: Custom generated PayPal Button

I am obviously being very stupid about this i now get an error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/xdqsufol/public_html/payments.php on line 280
Might be easier if i paid you to do this for us
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #45  
Old 08-14-2007, 05:38 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

Hi,

this is entirely up to you. If you wish you can contact me privately.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #46  
Old 09-10-2007, 04:24 PM
Frosty's Avatar
Private First Class
 
Join Date: Sep 2007
Location: Ontario - Canada
Posts: 8
Send a message via MSN to Frosty
Default Re: Custom generated PayPal Button

Quote:
Originally Posted by navaldesign View Post
David, you are correct. But this is NOT intended for a downloadable product payment. Usually downloadable products have a fixed description and price. It is intended for a customized service payment, where the return page is simply a thank you page.

However, you are correct, and i shall place the correct warning in my initial post.

Thanks.

You know my opinion on paid for downloads: no links, no risk. The thank you page (in my opinion) MUST have a payment verification script.
Fair enough, but im wondering what the code-lines would be then for a single item download so there's no messing around with amount, just "yes I want to download that file"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #47  
Old 09-10-2007, 05:47 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

I am not sure what you mean here. if you only want one item, at a fixed price, just create the correct PayPal button and add it in your sales page. The comment David had done, is that since you are using NON encrypted button code, this trick should NOT be used for downloadable products.

There are a few ways to have protection for your download link. The best, in my opinion, is to have a script that will check the payment, with PayPal, and if the payment is ok, it will display the download link ( attention: NOT the file name, just the link). Otherwise it will display an appropriate error messaGE.

I do have a script that allowes excactly this task: it is called IDC (Instant Download Cart) but it is a pro script and as such it is not free. If you are interested, you can contact me through my form.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #48  
Old 03-20-2008, 08:29 AM
yourgmsolutions's Avatar
Staff Sergeant
 
Join Date: Mar 2008
Location: San Diego, CA
Posts: 49
Default Re: Custom generated PayPal Button

I've been playing around with paypal buttons resently. and I founded very simple solution.
1. log in to your paypal account
2. select merchant tab
3. you'll see a dozen of options for buttons/carts/customizations
4. make selections and paypal will automatically generate html code for you
5. copy and then paste it on your web page
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #49  
Old 03-20-2008, 08:36 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Custom generated PayPal Button

Hi,

this is not to disappoint you, but this is not the subject of this thread. Creating the button code in the PayPal site is something well known to most users. It can also be done directly in BV. The question here is HOW the user will be able to modify the button properties (subcription and amount) directly on your webpage, when different services / prices are required.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #50  
Old 03-20-2008, 10:14 AM
yourgmsolutions's Avatar
Staff Sergeant
 
Join Date: Mar 2008
Location: San Diego, CA
Posts: 49
Default Re: Custom generated PayPal Button

sorry, my bad. I guess I missunderstood the point.
sorry again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 09:55 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203