×
Menu
Index

PayPal Donation Button Dialog

PayPal Donation Button Dialog
1

PayPal Account

1. PayPal Account
Enter the PayPal Account.
2

Sandbox Account

2. Sandbox Account
Select this option if the PayPal account is a Sandbox account. A Sandbox account is used to test the process of payment before using the real account. You can check out this website https://developer.paypal.com.
3

Encrypt code

3. Encrypt code
Encrypt the payment details. In order to do this, you must have a PayPal account and you need to upload a public certificate to PayPal and get a certificate ID in return. Use the PayPal Encryption Key Manager to generate a public certificate to upload to PayPal. A form for submitting payment without encryption will look like this:
 
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_donations" />
    <input type="hidden" name="business" value="paypal@yourwebsite.com" />
    <input type="hidden" name="item_name" value="Donation Organization" />
    <input type="hidden" name="amount" value="10" />
    <input type="hidden" name="currency_code" value="USD" />
    <input type="hidden" name="cn" value="Add special instructions to the seller" />
    <input type="hidden" name="no_shipping" value="2" />
    <input id="wsbppbtn1" type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" name="submit" alt="" />
</form>
 
The encrypted form will look like this (Note: The real value will be much longer):
 
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
     <input type="hidden" name="cmd" value="_s-xclick" />
    <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIAGCSqGSIb3DQEHA6CAMIACAQAxggE6MIIBNgIBADCBnjCBmDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExETAPBgNVBAcTCFNhbiBKb
.........
FzGAAAAAAAAAAAAAA=-----END PKCS7-----" />
    <input id="wsbppbtn1" type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" name="submit" alt="" />
</form>
 
It will hide your PayPal account and also prevent the payment details from being manipulated.
4

Certificate ID

4. Certificate ID
Select the certificate ID from PayPal for this account if encryption of the PayPal button is needed.
5

Organization name / service

5. Organization name / service
Enter the organization name or service.
6

Donation ID

6. Donation ID
Enter the donation ID if any.
7

Amount

7. Amount
Enter the amount of the donation.
8

Currency

8. Currency
Select the currency of the amount.
9

Customize Button tab

9. Customize Button tab
10

Customize Checkout Page tab

10. Customize Checkout Page tab
11

Advanced Variables tab

11. Advanced Variables tab
12

OK button

12. OK button
Click OK to save the settings.
13

Cancel button

13. Cancel button
Cancel saving the settings.