Integration Guide
Table Of Contents
- Website Payments Pro Hosted Solution Integration Guide
- About This Guide
- Intended Audience
- Revision History
- Documentation Feedback
- Getting Started with Website Payments Pro Hosted Solution
- Integrating Your Website Using HTML
- Customising Your PayPal Payment Page
- Integrating iFrame in Your Website
- Integrating Your Website Using API
- Testing Your Integration in Sandbox
- Order Processing
- Protecting Buttons by Using Encrypted Website Payments
- Public Key Encryption Used by Encrypted Website Payments
- Setting Up Certificates Before Using Encrypted Website Payments
- Generating Your Private Key Using OpenSSL
- Generating Your Public Certificate Using OpenSSL
- Uploading Your Public Certificate to Your PayPal Account
- Downloading the PayPal Public Certificate from the PayPal Website
- Removing Your Public Certificate
- Using Encrypted Website Payments to Protect Your Payment Buttons
- Blocking Unprotected and Non-encrypted Website Payments
- Optional API Operations
- Moving from Website Payments Standard to Hosted Solution
- Error Messages
- Currency Codes
- Index
Testing Your Integration in Sandbox
Testing Your Integration and Settings
Testing Your Integration and Settings
The following sections contain information for testing your integration and modifying the look
and feel of your payment page in the Sandbox environment.
Testing Your Integration
Testing Your Settings
Testing Your Integration
To test your integration in the Sandbox environment, follow the steps specified in “Simple
Hosted Solution Integration” on page 15. For testing purposes, you must make the following
changes in the Form POST:
1. Change the URL to point to the Sandbox environment.
From:
<form action="https://securepayments.paypal.com/acquiringweb"
method="post">
<input type="hidden" name="cmd" value="_hosted-payment">
to:
<form action="https://securepayments.sandbox.paypal.com/acquiringweb"
method="post">
<input type="hidden" name="cmd" value="_hosted-payment">
2. Change the business value to the Secure Merchant ID value that is specified at the top
of the Profile page of the Sandbox Test Site.
Accordingly, the Form POST for testing purposes will be:
<form action="https://securepayments.sandbox.paypal.com/acquiringweb"
method="post">
<input type="hidden" name="cmd" value="_hosted-payment">
<input type="hidden" name="subtotal" value="50">
<input type="hidden" name="business" value="HNZ3QZMCPBAAA">
<input type="hidden" name="paymentaction" value="sale">
<input type="hidden" name="return"
value="https://yourwebsite.com/receipt_page.html">
<input type="submit" name="METHOD" value="Pay Now">
</form>
N OTE: For 3-D Secure, when prompted for credit card information on the payment page, enter
01/11 or 01/current year +1 for the expiry date.