Integration Guide

Table Of Contents
43
Integrating Your Website Using API
Using the Button Manager API with Hosted Solution Checkout
N OTE: The PayPal payment page displays a button identified as Pay Now to complete the
checkout flow. The Pay Now button on the PayPal page is different than the Pay Now
button created by the BMCreateButton API operation on the review page. You may
need to change the URL for the latter in BUTTONIMAGEURL to avoid confusion.If a
URL is not specified in BUTTONIMAGEURL, then the default Pay Now is used for the
button.
Encrypting Buttons Using Public and Private Key
Using Encrypted Website Payments helps secure payment buttons that you generate or write
manually. Encrypted Website Payments protects the HTML button code that contains pricing
information by encrypting it. HTML button code that you protect by using Encrypted Website
Payments cannot be altered by malicious third parties to create fraudulent payments. For
detailed information, refer to Chapter 8, “Protecting Buttons by Using Encrypted Website
Payments
Example of Initiating Hosted SolutionCheckout
The example shows the NVP parameters using BUTTONCODE=TOKEN for creating a URL to
initiate the Hosted Solution checkout flow.
...
BUTTONCODE=TOKEN
BUTTONTYPE=PAYMENT
BUTTONIMAGEURL=https://www.paypal.com/en_US/i/btn/btn_billing.gif
L_BUTTONVAR0=subtotal=11
L_BUTTONVAR1=tax=2
L_BUTTONVAR2=shipping=3
L_BUTTONVAR3=handling=4
L_BUTTONVAR4=first_name=Bob
L_BUTTONVAR5=last_name=Jones
L_BUTTONVAR6=address1=Gardens
L_BUTTONVAR7=address2=99343
L_BUTTONVAR8=city=Paris
L_BUTTONVAR9=state=Alsace
L_BUTTONVAR10=zip=75002
L_BUTTONVAR11=country=FR
L_BUTTONVAR12=billing_first_name=BobBilling
L_BUTTONVAR13=billing_last_name=JonesBilling
L_BUTTONVAR14=billing_address1=5088 - 061 Craven Hill Gardens
L_BUTTONVAR15=billing_address2=Apt# 199343
L_BUTTONVAR16=billing_city=Wolverhampton
L_BUTTONVAR17=billing_state=West Midlands
L_BUTTONVAR18=billing_zip=W12 4LQ
L_BUTTONVAR19=billing_country=GB
L_BUTTONVAR20=night_phone_a=408
L_BUTTONVAR21=night_phone_b=398
L_BUTTONVAR22=night_phone_c=3065