×
Menu
Index

PayPal Add to Cart Button Dialog

PayPal Add to Cart 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 target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_cart" />
    <input type="hidden" name="add" value="1" />
    <input type="hidden" name="business" value="paypal@yourwebsite.com" />
    <input type="hidden" name="item_name" value="Item 1" />
    <input type="hidden" name="amount" value="29.95" />
    <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="wsbppbtn2" type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_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="wsbppbtn2" type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_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

Item Name

5. Item Name
Enter the item name.
6

Item ID

6. Item ID
Enter the item ID if any.
7

Price

7. Price
Enter the price of the product.
8

Currency

8. Currency
Select the currency of the price.
9

Shipping

9. Shipping
Set this to a flat shipping amount to apply to the transaction.
10

Tax

10. Tax
Set this to a flat tax amount to apply to the transaction.
11

Customize Button tab

11. Customize Button tab
12

Customize Checkout Page tab

12. Customize Checkout Page tab
13

Advanced Variables tab

13. Advanced Variables tab
14

OK button

14. OK button
Click OK to save the settings.
15

Cancel button

15. Cancel button
Cancel saving the settings.