Integration Guide

Table Of Contents
5
Integrating Your Website Using
API
Using the Button Manager API, you can programmatically create the checkout button that
initiates the Hosted Solution checkout flow on your website. You create the checkout button
dynamically when the buyer attempts to checkout on your website. When the buyer clicks on
your checkout button, you call the BMCreateButton API operation to create a checkout
button and display it on your web page. When the buyer clicks on this checkout button, he or
she is redirected to the PayPal payment page where he or she can complete the payment. You
can use 3-D Secure functionality on the PayPal payment page.
HTML variables control the presentation of the PayPal payment pages, the information
contained on the pages, and pages to which your buyer can be returned to when leaving the
payment pages. For a list of HTML variables, refer to “HTML Variables” on page 17.
For complete information on the Button Manager API, refer to the
Button Manager API (NVP)
or
Button Manager API (SOAP).
N OTE: Using the Button Manager API, you can programmatically create the checkout button,
but not manage, edit, or delete it.
Button Hosting
For Hosted Solution, using BUTTONTYPE=PAYMENT, you can create the following kinds of
checkout buttons:
Token buttons (BUTTONCODE=TOKEN) are not stored on PayPal. They are dynamic and
initiate the Hosted Solution checkout flow. The parameters associated with this kind of
button are secure. They have a lifetime of approximately two hours, if not used.
Encrypted buttons (BUTTONCODE=ENCRYPTED) are not stored on PayPal. The
parameters associated with this kind of button are encrypted. You must update the web
pages that use an encrypted button each time the button or the associated information
changes.
Clear text buttons (BUTTONCODE=CLEARTEXT) are not stored on PayPal. The
parameters associated with this kind of button are not encrypted. They can be used
dynamically because you can change the value of a parameter anytime. However, if you
use them, recognize the risk that sensitive information can be altered or stolen.
N OTE: Hosted buttons (BUTTONCODE=HOSTED) are not supported for Hosted Solution and
will return an error if used.
For more information about Button Manager API usage, refer to “BMCreateButton API
Operation” on page 45.