Code Lover
Code Lover

Reputation: 8368

PayPal Donation button by Email ID

I want to get paypal button with default amount value by user email ID. So it will automatically use User Email ID registered with the website.

Upvotes: 0

Views: 168

Answers (1)

Drew Angell
Drew Angell

Reputation: 26056

If I understand you correctly, you just need to make sure you're using a non-hosted button from PayPal so that you can see the values and dynamically set the business parameter based on the logged in user.

There are disadvantages to this, though, as people could see the form code, copy it, adjust it, and submit bogus values to your system. You could use IPN to help catch false orders, but it can be a hassle.

I would recommend using the Express Checkout API if you're familiar with web services. This ia a nice and secure way of doing what you need.

Upvotes: 1

Related Questions