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
45
Integrating Your Website Using API
BMCreateButton API Operation
BMCreateButton API Operation
Use the BMCreateButton API operation to create Hosted Solution checkout button.
BMCreateButton Request
BMCreateButton Response
BMCreateButton Errors
BMCreateButton Request
The request fields specify the characteristics of your button, which include associated menu
items related to the button. You can specify up to 5 menu items, each of which can include up
to 10 possible selections.
BMCreateButton Request Fields
N OTE: The values you pass must not contain any of these special characters (){}<>\";
Field Description
METHOD (Required)
BMCreateButton
BUTTONCODE (Optional) The kind of button code to create. It is one of the following values:
TOKEN - A secure button, not stored on PayPal, used only to initiate the
Hosted Solution checkout flow; default for Pay Now button. Since version
65.2
ENCRYPTED - An encrypted button, not stored on PayPal
CLEARTEXT - An unencrypted button, not stored on PayPal
BUTTONTYPE (Required) The kind of button you want to create.
PAYMENT - Pay Now button; since version 65.2
L_BUTTONVAR
n (Optional) HTML standard button variables