Integration Guide

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