Jump to content
Larry Ullman's Book Forums

Dynamic Paypal Buttons


Recommended Posts

Hi all,

 

This is not a question. But if you want to create a button in PayPal that is dynamic and accepts values from your scripts, you may find this useful:

 

When creating a Button in your Business Account, there are 3 steps. Under Step 2 ("Track Inventory, profit & loss (optional)", un-tick "Save button at PayPal". Now the button you created, will not be hosted by PayPal and you can pass on values, e.g.:

 

<input type="hidden" name="email" value="<?php echo $_SESSION['email']; ?>">

 

PayPal offers of tonnes of information but it took me hours and quite some headache to figure this one out. I hope, others will at least benefit from my agony!

 

Regards,

 

 

Michael

Link to comment
Share on other sites

 Share

×
×
  • Create New...