Integration Guide

Table Of Contents
61
Protecting Buttons by Using Encrypted Website Payments
Setting Up Certificates Before Using Encrypted Website Payments
Using Encrypted Website Payments to Protect Your Payment Buttons
Encrypted Website Payments includes Java and Microsoft Windows software to protect the
payment buttons that you generate or write manually. Download the software from the
following location after logging in to PayPal:
https://www.paypal.com/us/cgi-
bin/webscr?cmd=p/xcl/rec/ewp-code
After you download and extract the software, copy your private key, public certificate, p12 file
and the PayPal public certificate to the folder where the software is located.
1. Prepare an input file of Hosted Solution variables and values for each encrypted button that
you want to generate. Each variable and value must be on a separate line, as in the
following example.
N OTE: The cert_id variable identifies the public certificate you uploaded to PayPal
website.
cert_id=Z24MFU6DSHBXQ
cmd=_xclick
business=sales@company.com
item_number=1234
custom=sc-id-789
amount=500.00
currency_code=USD
tax=41.25
shipping=20.00
address_override=true
address1=123 Main St
city=Austin
state=TX
zip=94085
country=US
no_note=1
cancel_return=http://www.company.com/cancel.htm
2. Run the encryption software using the appropriate syntax, as shown below:
Java: PPEncrypt CertFile PrivKeyFile PPCertFile InputFile
OutputFile [Sandbox]
Microsoft Windows: java ButtonEncryption CertFile PKCS12File
PPCertFile Password InputFile OutputFile [Sandbox]