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
BMCreateButton API Operation
46
BMCreateButton Response
The response contains an ID if the button is hosted on PayPal, and code for HTML in a
website and for a link in email.
BMCreateButton Response Fields
BMCreateButton Errors
Field Description
WEBSITECODE HTML code for web pages
EMAILLINK Code for URL for the Hosted Solution checkout flow
HOSTEDBUTTONID ID of a Hosted Solution token
Error
Code Short Message Long Message Correcting This Error...
10001 Internal Error Internal Error
11923 Invalid Argument The button image value specified is
invalid.
11924 Invalid Argument The button image URL specified is
invalid.
11925 Invalid Argument The button type specified is invalid.
11926 Invalid Data One of the parameters specified using
ButtonVar is invalid.
11927 Invalid Argument The buy now button text specified is
invalid.
11928 Invalid Argument The email or merchant ID specified is
invalid.
11929 Invalid Data A cart button must have an item name and
amount specified.
11931 Invalid Argument The subscription button text specified is
invalid.
11932 Invalid Data You must specify a corresponding number
of entries for option names and selections.
11933 Invalid Data You cannot skip index numbers for option
selections. Option selections must be
specified sequentially.