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
Integrating Your Website Using API
Using the Button Manager API with Hosted Solution Checkout
40
Using the Button Manager API with Hosted Solution Checkout
To create a checkout button on your website, you call the BMCreateButton API operation.
When the buyer clicks on the checkout button, PayPal initiates the Hosted Solution checkout
flow.
You must decode the response from the BMCreateButton API. For information about URL
encoding, refer to the
Name-Value Pair API Developer Guide.
There are two options in the response to initiate the Hosted Solution payment flow:
Using URL Returned in the Response (Recommended)
Using Form POST
Using URL Returned in the Response (Recommended)
Using the URL identified in the response as EMAILLINK, you can redirect the buyer and
initiate the payment flow.
Example of TOKEN
EMAILLINK=https://www.paypal.com/cgi-bin/webscr?cmd=_s-
xclick&hosted_button_id=HSS-
2MTCOLOp9LoPGdFYsYclhbGyjJVNrMHO&HOSTEDBUTTONID=HSS-
2MTCOLOp9LoPGdFYsYclhbGyjJVNrMHO&TIMESTAMP=2010-09-
15T00:30:35Z&CORRELATIONID=2fc9a340a2356&ACK=Success&VERSION=65.0&BUILD=150
0269