Integration Guide

Table Of Contents
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