
39
Integrating Your Website Using API
Using the Button Manager API with Hosted Solution Checkout
<input type="hidden" name="subtotal" value="1">
<input type="image"
src="https://www.paypal.com/en_GB/i/btn/btn_paynow_LG.gif" border="0"
name="submit" alt="PayPal — The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif"
width="1" height="1">
</form>
NOTE: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 7, “Protecting Buttons by Using Encrypted Website
Payments
Example of Initiating Hosted Solution Checkout
The example shows the NVP parameters using BUTTONCODE=TOKEN for creating a URL to
initiate the Hosted Solution checkout flow. Refer to
Table 5.1 for more information about the
parameters in the example.
TABLE 5.1 API Credentials
Parameter Value
USER
(Required) Your PayPal API Username
PWD
(Required) Your PayPal API Password
VERSION
(Required) Version number of the NVP API service, such as 80.0
SIGNATURE
(Optional) Your PayPal API signature string. If you use an API certificate,
do not include this parameter.
Kommentare zu diesen Handbüchern