PayPal Website Payments Standard - 2012 User Manual

Button Manager API (SOAP)
Last updated: April 2012
Button Manager SOAP API Document Number: 10090.en_US-201204
© 2012 PayPal, Inc. All rights reserved. PayPal is a registered trademark of PayPal, Inc. The PayPal logo is a trademark of PayPal, Inc. Other trademarks and brands are the property of their respective owners. The information in this document belongs to PayPal, Inc. It may not be used, reproduced or disclosed without the written approval of PayPal, Inc. Copyright © PayPal. All rights reserved. PayPal S.à r.l. et Cie, S.C.A., Société en Commandite par Actions. Registered office: 22-24 Boulevard Royal, L­2449, Luxembourg, R.C.S. Luxembourg B 118 349 Consumer advisory: The PayPal™ payment service is regarded as a stored value facility under Singapore law. As such, it does not require the approval of the Monetary Authority of Singapore. You are advised to read the terms and conditions carefully.
Notice of non-liability: PayPal, Inc. is providing the information i n this document t o you “AS-IS” with all faults. PayPal, Inc. makes no warranties of any kind (whether express, implied or statutory) with respect to the information co ntained herein. PayPal, Inc. assumes no liability for damages (whether direct or indirect), caused by errors or omissions, or resulting from the use of this document or the information contained in this document or resulting f rom the application or use of the product or service described herein. PayPal, Inc. reserves the right to make changes to any information herein without further notice.
Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Chapter 1 PayPal Payments Standard Button Manager API Overview . 7
Button Manager Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Generated Button Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Button Hosting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Hosted Button Manipulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Inventory Management Using Hosted Buttons. . . . . . . . . . . . . . . . . . . . . . . . 11
Inventory Management for Digital Downloads . . . . . . . . . . . . . . . . . . . . . . . . 11
Button Manager API Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Hosted Solution Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Granting Third-Party Permission for APIs . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Chapter 2 Using the Button Manager API With SOAP . . . . . . . . . 15
Specifying HTML Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Creating a Button Using SOAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Tracking Inventory for a Button Using SOAP . . . . . . . . . . . . . . . . . . . . . . . . 18
Chapter 3 Button Manager API Reference . . . . . . . . . . . . . . . 19
BMCreateButton API Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
BMCreateButton Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
BMCreateButton Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
BMCreateButton Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
BMUpdateButton API Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
BMUpdateButton Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
BMUpdateButton Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
BMUpdateButton Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
BMButtonSearch API Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
BMButtonSearch Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
April 2012 3
Contents
BMButtonSearch Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
BMButtonSearch Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
BMGetButtonDetails API Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
BMGetButtonDetails Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
BMGetButtonDetails Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
BMGetButtonDetails Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
BMManageButtonStatus API Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
BMManageButtonStatus Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
BMManageButtonStatus Response . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
BMManageButtonStatus Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
BMSetInventory API Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
BMSetInventory Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
BMSetInventory Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
BMSetInventory Errors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
BMGetInventory API Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
BMGetInventory Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
BMGetInventory Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
BMGetInventory Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Appendix A HTML Variables for PayPal Payments Standard . . . . . .55
Technical HTML Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
HTML Variables for Individual Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
HTML Variables for Payment Transactions . . . . . . . . . . . . . . . . . . . . . . . . . 62
HTML Variables for Shopping Carts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
HTML Variables for Recurring Payments Buttons . . . . . . . . . . . . . . . . . . . . . . 65
HTML Variables for Displaying PayPal Checkout Pages . . . . . . . . . . . . . . . . . . 71
HTML Variables for Filling Out PayPal Checkout Pages Automatically . . . . . . . . . . . 74
HTML Variables for the Instant Update API . . . . . . . . . . . . . . . . . . . . . . . . . 75
4 April 2012

Preface

This document describes the Button Manager API for SOAP.

Intended Audience

This document is intended for merchants and developers implementing PayPal Payment Standard (previously known as Website Payments Standard) buttons using an API.

Revision History

Revision history for Button Manager API (SOAP).
TABLE P.1 Revision History
Date Description
04/03/12 Updated references to Website Payments Standard and Website Payments Pro to
PayPal Payments Standard and PayPal Payments Pro, respectively. 02/13/12 Maintenance release. 05/10/10 Added information about installment plans, automatic billin g, and subscribe
buttons. 02/03/10 Added error code. 01/11/10 Added download key information and updated for version 61.0. 06/03/09 Added HTML Variable appendi x and updated for version 57.0. 03/31/09 Initial draft.
Button Manager SOAP API April 2012 5
Revision History
6 April 2012 Button Manager SOAP API
1

PayPal Payments Standard Button Manager API Overview

The PayPal Payments Standard (previously known as Website Payments Standard) Button Manager API lets you programatically create, manage, edit, and delete PayPal Payment Standard buttons, which are the same kind of buttons that you can create from the PayPal Profile. Hosted buttons created by this API reside on PayPal and can use all features, including inventory management; however, you can use this API to create code for non-hosted S tandard buttons as well.
Button Manager IntroductionGenerated Button CodeButton HostingHosted Button ManipulationInventory Management Using Hosted ButtonsInventory Management for Digital DownloadsButton Manager API SummaryHosted Solution LinksGranting Third-Party Permission for APIs

Button Manager Introduction

You should consider creating and managing your buttons with the Button Manager API when you are creating more than just a few PayPal Payment Standard buttons or when you manage buttons for others; for example, if you provide a shopping cart for merchants.
The Button Manager API enables you to manage PayPal Payment Standard buttons programatically in the same way that you can manage them on PayPal from the My Saved Buttons page of your Profile.
NOTE: You can access your My Saved Buttons page on PayPal by choosing My Saved
Buttons from the Profile’s My selling tools. If no buttons exist, the menu item is Create New Button.
You can use the API to create these Website Payment Standard and Hosted Sole Solution buttons:
Buy NowAdd to Cart and View CartDonateBuy Gift Certificate
Button Manager SOAP API April 2012 7
PayPal Payments Standard Button Manager API Overview
1

Generated Button Code

Subscribe and UnsubscribePay Now (Hosted Sole Solution only)Installment PlanAutomatic Billing
The following buttons are some of those that you can create using the Button Manager API:
Generated Button Code
When you create a button, PayPal responds by generating code that you can paste into your web page or document.
The generated code includes:
HTML code for including the button in web pagesURL link code for adding buttons to email and documents that support links
NOTE: Not all merchants in every country can use all the buttons that can be created. For
example, German merchants cannot use Subscribe buttons even though they can be
8 April 2012 Button Manager SOAP API
PayPal Payments Standard Button Manager API Overview
Generated Button Code
created through the API. If you can create the button for the specified country using
Create PayPal payment button on PayPal, your merchant will be able to use the button.
This example shows the PayPal code for displaying a hosted Add to Cart button to sell a wireless mouse:
<form target="paypal" action=" https://www.sandbo x.paypal.com/cgi­bin/webscr" method="post"> <input type="hidden" name="cmd " value="_s-xclick "> <input type="hidden" name="hos ted_button_id" val ue="19218"> <table> <tr><td><input type="hidden" n ame="on0" value="Color">Color</td></tr>< tr><td><select nam e="os0"> <option value="Red">Red $10. 00 <option value="Blue">Blue $8 .00 <option value="Green">Green $12.00 </select> </td></tr> <tr><td><input type="hidden" n ame="on1" value="Size">Size</td></tr><tr ><td><select name="os1"> <option value="Small">Small <option value="Large">Large </select> </td></tr> </table> <input type="hidden" name="cur rency_code" value= "USD"> <input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt=""> <img alt="" border="0" src="https://www.sandbox.paypa l.com/en_US/i/scr/pix el.gif" width="1" height="1"> </form>
1
When you display a web page with this code, this button appears:
PayPal-generated code for a link would be as follows:
https://www.sandbox.paypal.com /cgi-bin/webscr?cm d=_s­xclick&hosted_button_id=19218
For a link, PayPal does not generate code for options.
Button Manager SOAP API April 2012 9
PayPal Payments Standard Button Manager API Overview
1

Button Hosting

Button Hosting
The Button Manager API can create four kinds of buttons: hosted, encrypted, clear text, and token buttons. Buttons that you can view on the My Saved Buttons page of your PayPal profile are called hosted buttons.
Hosted buttons are stored on PayPal. The parameters associated with this kind of button
are secure. Hosted buttons provide the greatest flexibility because you can instruct PayPal to change
them dynamically, and PayPal maintains information about their state, such as the inventory level associated with the button.
NOTE: You cannot use hosted buttons with Hosted Sole Solution; you should use token
buttons instead.
Encrypted buttons are not stored on PayPal. The parameters associated with this kind of
button are encrypted. Encrypted buttons are similar to hosted buttons with regard to secure operation; however,
you must update the web pages that use an encrypted button each time the button or its associated information changes. You should use an encrypted button only if a hosted button cannot be used.
Clear text buttons are not stored on PayPal. The parameters associated with this kind of
button are not encrypted. Clear text buttons are not hosted and are not encrypted. They can be used dynamically
because you can change the value of a parameter “on the fly.” However, if you use them, recognize the risk that sensitive information can be altered or stolen.
Token buttons are not stored on PayPal. They are only used with Hosted Solution and the
parameters associated with this kind of button are secure. Token buttons are dynamic and initiate the Hosted Solution checkout flow. They have a
lifetime of approximately 2 hours if not used.

Hosted Button Manipulation

When you create a hosted button, the response includes an ID that allows you to manipulate the button using the Button Manager API. Do not confuse a hosted button with a button used as part of Hosted Solution, which is a product that supports token, encrypted, and cleartext buttons.
With hosted buttons, you can:
Get a list of all hosted buttons, which lets you identify buttons for further programmatic
manipulation
Get details about a hosted button, which lets you to identify the parameters and values
associated with a button
10 April 2012 Button Manager SOAP API
PayPal Payments Standard Button Manager API Overview

Inventory Management Using Hosted Buttons

Update a hosted button, which lets you to change individual parameters, such as price, in a
hosted button
Manage hosted button status; currently, you can only delete a button Get and set inventory information associated with the button
Inventory Management Using Hosted Buttons
You can get or set the inventory level for the item associated with a hosted button. You can also track inventory on options within an item, such as color or size.
If you enable inventory management for a button, PayPal tracks inventory for you and also lets your buyer know if the item is sold out. You can specify inventory tracking on an item-by-item basis, and also by option, such as color or size, within the item.
An e-mail alerts you if inventory falls below the threshold you specify. If an item is sold out, you can specify whether or not to accept a payment anyway. Optionally, you can specify a URL where your buyer’s browser is redirected if the item is sold out.
1
You can also enable profit and loss tracking for an item or option associated with a button. If you enable this feature, you must provide the cost of the item or option. PayPal then calculates your gross profit, which is the selling price of the item less the specified cost.

Inventory Management for Digital Downloads

If you use hosted buttons, you can chose to specify a list of download key s, which are keys that you define and are associated with the item being sold. These keys are useful when you want to sell digital goods with a key to enable access.
T o use this feature, you set the inventory for the button to include one or more download keys, up to a maximum of 1,000 keys. These keys are then available when you get the inventory for a button.
For example, when a customer orders software or music, you could obtain an unused key from the list of download keys and email it to your customer so they can download the item. You are responsible for choosing the appropriate key from the list and how it is used. PayPal only stores the inventory of keys and does not track how a specific key is used, although PayPal does provide options for making this process simpler.
When you specify the inventory for a button, you can specify the usage of download keys:
Whether the keys you specify should be appended to the current list of keys or whether the
list of keys should be replaced, which allows you to replen ish the list of keys or replace the list entirely
Whether the list of keys are to be reused or not
If you do not reuse keys, PayPal will also notify you when the item is “sold out,” meaning that there are no more keys available.
Button Manager SOAP API April 2012 11
PayPal Payments Standard Button Manager API Overview
1

Button Manager API Summary

Button Manager API Summary
The Button Manager API is available for both NVP and SOAP.
API Operation Description
BMCreateButton Create button code BMUpdateButton Update a hosted button BMManageButtonStatus Delete a button BMGetButtonDetails Obtain information about the parameters associated with a button BMButtonSearch Obtain a list of all buttons BMGetInventory Obtain the inventory levels associated with a button BMSetInventory Specify the inventory levels associated with a button

Hosted Solution Links

Hosted Solution links are URLs you create with the Button Manager API to initiate the Hosted Solution checkout flow.
NOTE: Although you can use the Button Manager API to create buttons that initiate the
Hosted Solution checkout flow, do not confuse a button for Hosted Solution with hosted buttons that you also create with the Button Manager API.
You create the Hosted Solution checkout link dynamically when your buyer attempts to check out. For example, when your buyer clicks your check out button, you call the BMCreateButton API operation to create the link and then redirect the buyer’s browser to PayPal using the link. The buyer then pays on the PayPal Hosted Solution page. After making the payment, PayPal returns the buyer to the page you specified when you created the link.

Granting Third-Party Permission for APIs

If you allow a shopping cart or another party to create buttons on your behalf, you must grant the party permission to execute Button Manager API operations for you.
To grant third-party permissions
1. Log in to your PayPal account.
2. Select My Account Profile.
3. Click API Access from the Profile Summary.
4. Click Grant API Permission.
12 April 2012 Button Manager SOAP API
PayPal Payments Standard Button Manager API Overview
Granting Third-Party Permission for APIs
5. Click Configure a custom API authorization.
6. Enter your Partner API username, as specified by your shopping cart or third party.
7. Check each Button Manager API you want to provide access to:
8. Click Submit.
1
Button Manager SOAP API April 2012 13
PayPal Payments Standard Button Manager API Overview
1
Granting Third-Party Permission for APIs
14 April 2012 Button Manager SOAP API
Using the Button Manager API
2
With SO AP
These examples show basic Button Manager API capabilities. The examples show how to create buttons and set inventory levels.
Specifying HTML VariablesCreating a Button Using SOAPTracking Inventory for a Button Using SOAP

Specifying HTML Variables

When you create or update a button using the Button Manager API, you must specify the same HTML variables that you specify when creating any PayPal Payments Standard button. Although you can use the ButtonVar field to specify any HTML variables, some variables are commonly used in specific ways.
The following table provides additional information about some of these variables:
HTML Variable Notes
item_name Name or description of item. Must be specified for Add to Cart buttons.
Character length and limitations: 127 single-byte alphanumeric characters.
amount The price or amount of the item. Required for Add to Cart buttons. May not
be used when a dropdown with price (L_OPTION0PRICE Limitations: Value must be a positive number. No currency symbol. Must have two decimal places, decimal separator must be a period (.), and the optional thousands separator must be a comma (,).
a3 Price of subscription. Must be specified for Subscribe buttons. Value must be
a positive number. No currency symbol. Must have two decimal places, decimal separator must be a period (.), and the optional thousands separator must be a comma (,).
p3 Regular billing cycl e. Must be specified for Subscribe buttons. Limitations:
Must be a positive integer greater than 0 and less than or equal to 30
t3 Regular billing cycle units. Must be specified for Subscribe buttons. shopping_url URL where recipients can shop and redeem gift certificates. Required for Gift
Certificate buttons. Character length and limitations: 255 single-byte alphanumeric characters
n) is defined.
Button Manager SOAP API April 2012 15
Using the Button Manager API With SOAP
2

Creating a Button Using SOAP

HTML Variable Notes
no_note Must be specified for Subscribe buttons. Enables a subscriber to not be
prompted to include a note with the subscription, a function which PayPal subscriptions does not support. This variable must be included, and the value must be set to 1.
business Secure Merchant ID or Email Address. When omitted, defaults to the secure
merchant ID of the merchant. If an email address is specified then it the following requirements apply:
A merchant or 3rd Party calling the API directly may specify an
unregistered email and create an unencrypted button only.
A 3rd Party calling the API on behalf of a registered merchant must specify
an email address associated with the merchant account.
Character length and limitations: 127 single-byte characters.
item_number Item number or ID. Character length and limitations: 127 single-byte
alphanumeric characters.
lc If specified, it overrides the value set in the ButtonCode field.
For a complete list of HTML variables and complete information, see HTML Variables for
PayPal Payments Standard.
Creating a Button Using SOAP
The example sets up a SOAP request message to create a button.
<com.paypal.soap.api.BMCreateBut tonRequestType> <buttonType> <__value__> <m__value>CART</m__value> </__value__> </buttonType> <buttonCode> <__value__> <m__value>HOSTED</m__value > </__value__> </buttonCode> <buttonSubType> <__value__> <m__value>PRODUCTS</m__val ue> </__value__> </buttonSubType> <buttonVar> <string>business=XX-usbiz@paypal. com</string> <string>item_name=Item-123</strin g>
16 April 2012 Button Manager SOAP API
Using the Button Manager API With SOAP
Creating a Button Using SOAP
<string>item_number=#1234</s tring> <string>shipping=0.50</string> <string>tax_rate=2.50</string> <string>address1=</string> <string>state=</string> <string>city=</string> <string>zip=</string> <string>no_shipping=0</string> <string>address_override=0</strin g> </buttonVar>
<optionDetails> <com.paypal.soap.api.Option DetailsType> <optionName>DD1</optionName> <optionSelectionDetails> <com.paypal.soap.api.Optio nSelectionDetailsT ype> <optionSelection>AAAA</o ptionSelection> <price>1.55</price> </com.paypal.soap.api.OptionSelection DetailsType> <com.paypal.soap.api.Optio nSelectionDetailsT ype> <optionSelection>BBBB</o ptionSelection> <price>10.55</price> </com.paypal.soap.api.OptionSelection DetailsType> <com.paypal.soap.api.Optio nSelectionDetailsT ype> <optionSelection>CCCCC</ optionSelection> <price>10.55</price> </com.paypal.soap.api.OptionSelection DetailsType> </optionSelectionDetails> </com.paypal.soap.api.OptionDetai lsType>
<com.paypal.soap.api.Option DetailsType> <optionName>DD2</optionName> <optionSelectionDetails> <com.paypal.soap.api.Optio nSelectionDetailsT ype> <optionSelection>XXXX</o ptionSelection> </com.paypal.soap.api.OptionSelection DetailsType> <com.paypal.soap.api.Optio nSelectionDetailsT ype> <optionSelection>ZZZZ</o ptionSelection> </com.paypal.soap.api.OptionSelection DetailsType> </optionSelectionDetails> </com.paypal.soap.api.OptionDetai lsType> </optionDetails>
<buttonImage> <__value__> <m__value>REG</m__value> </__value__> </buttonImage> <buttonImageURL></buttonImag eURL>
2
Button Manager SOAP API April 2012 17
Using the Button Manager API With SOAP
2

Tracking Inventory for a Button Using SOAP

<buyNowText> <__value__> <m__value>BUYNOW</m__value > </__value__> </buyNowText> <subscribeText> <__value__> <m__value>SUBSCRIBE</m__value> </__value__> </subscribeText> <buttonCountry> <__value__> <m__value>US</m__value> </__value__> </buttonCountry> <buttonLanguage></buttonLan guage>
</com.paypal.soap.api.BMCreateBu ttonRequestType>
Tracking Inventory for a Button Using SOAP
The example shows the SOAP parameters that enable tracking of inventory and profit and loss for a button.
<com.paypal.soap.api.BMSetInve ntoryRequestType> <hostedButtonID>41</hostedButtonI D> <trackInv>1</trackInv> <trackPnl>1</trackPnl> <itemTrackingDetails> <itemNumber>234234</itemNu mber> <itemQty>10</itemQty> <itemAlert>2</itemAlert> <itemCost>4</itemCost> </itemTrackingDetails> <soldoutURL>http://www.Y ourSoldOutLandingPage.html</soldoutURL> </com.paypal.soap.api.BMSetInv entoryRequestType>
18 April 2012 Button Manager SOAP API
3

Button Manager API Reference

The Button Manager API enables you to programatically create, edit, and delete PayPal Payments Standard buttons hosted on PayPal, and track product inventory associated with these buttons. You can also create non-hosted buttons with the Button Manager API; however, only hosted buttons support button maintenance and inventory management.
BMCreateButton API OperationBMUpdateButton API OperationBMButtonSearch API OperationBMGetButtonDetails API OperationBMManageButtonStatus API OperationBMSetInventory API OperationBMGetInventory API Operation

BMCreateButton API Operation

Use the BMCreateButton API operation to create a PayPal Payments Standard button. You can create either a button that is hosted on PayPal or a non-hosted button.
BMCreateButton RequestBMCreateButton ResponseBMCreateButton 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.
Button Manager SOAP API April 2012 19
Button Manager API Reference
3
BMCreateButton API Operation
20 April 2012 Button Manager SOAP API
BMCreateButton Request Fields
Field Description
ButtonCode ebl:ButtonCodeType
(Optional) The kind of button code to create. It is one of the following values:
HO STED - A secure button stored on PayPal; default for all buttons except
View Cart, Unsubscribe, and Pay Now
EN CRYPTED - An encrypted button, not stored on PayPal; default for View
Cart button
CL EARTEXT - An unencrypted button, not stored on PayPal; default for
Unsubscribe button
TO KEN - A secure button, not stored on PayPal, used only to initiate the
Hosted Solution checkout flow; default for Pay Now button. Since version
65.1
ButtonType ebl:ButtonTypeType
(Required) The kind of button you want to create. It is one of the following values:
BU YNOW - Buy Now button CA RT - Add to Cart button GI FTCERTIFICATE - Gift Certificate button SU BSCRIBE - Subscribe button DO NATE - Donate button UN SUBSCRIBE - Unsubscribe button VI EWCART - View Cart button PA YMENTPLAN - Installment Plan button; since version 63.0 AU TOBILLING - Automatic Billing button; since version 63.0 PA YMENT - Pay Now button; since version 65.1
NOTE: Do not specify BUYNOW if BUTTONCODE=TOKEN; specify PAYMENT
instead. Do not specify PAYMENT if BUTTONCODE=HOSTED.
Button Manager API Reference
BMCreateButton API Operation
3
ButtonSubType ebl:ButtonSubTypeType
(Optional) The use of button you want to create. It is one of the following values:
PR ODUCTS - button is used to purchase products; default for Buy Now and
Add to Cart buttons
SE RVICES - button is used to purchase services
ButtonVar xs:string
(Optional) HTML standard button variables
Option Details Fields
Field Description
OptionName xs:string
(Optional) The menu name
Button Manager SOAP API April 2012 21
Button Manager API Reference
3
BMCreateButton API Operation
Field Description
OptionSelectionDetails ns:OptionSelectionDetailsType
(Optional) Menu items
Option Selection Details Fields
OptionSelection xs:string
(Optional) The menu item’s name
Price xs:string
(Optional) The price associated with the first menu item
NOTE: If you specify a price, you cannot set a button variable to amount.
OptionType ebl:OptionTypeListType
(Optional) The installment option type for an OPTION the following values:
FU LL - Payment in fullVA RIABLE - Variable installmentsEM I - Equal installments
NOTE: Only available for Installment Plan buttons.
nNAME, which is one of
PaymentPeriod ns:InstallmentDetailsType
(Optional) Information about an installment option
Installment Details
BillingPeriod ebl:BillingPeriodType
(Optional) The installment cycle unit, which is one of the following values:
No BillingPeriodType - None (default)Da yWe ekSe miMonthMo nthYe ar
BillingFrequency xs:int
(Optional) The installment cycle frequency in units, e.g. if the billing frequency is 2 and the billing period is Month, the billing cycle is every 2 months. The default billing frequency is 1.
TotalBillingCycles xs:int
(Optional) The total number of billing cycles, regardless of the duration of a cycle; 1 is the default
Amount xs:string
(Optional) The base amount to bill for the cycle.
22 April 2012 Button Manager SOAP API
ShippingAmount xs:string
(Optional) The shipping amount to bill for the cycle, in addition to the base amount.
TaxAmount xs:string
(Optional) The tax amount to bill for the cycle, in addition to the base amount.
Button Language Options
The button language must be compatible with the country identified by the country code.
Country Button Language Options
Button Manager API Reference
BMCreateButton API Operation
3
All countries not identified below Austria
Belgium
Canada
China (worldwide)
France
Germany
Hong Kong
Italy
Japan
en - English; defaultde - German; default
en - Englishen - English; default
nl - Dutchfr - French
en - English; defaultfr - French
en - English; defaultzh - Chinese
fr - French; defaulten - English
de - German; defaulten - English
zh - Chinese; defaulten - English
it - Italian; defaulten - English
ja - Japanese; defaulten - English
Mexico
Netherlands
Poland
Spain
es - Spanish; defaulten - English
nl - Dutch; defaulten - English
pl - Polish; defaulten - English
es - Spanish; defaulten - English
Button Manager SOAP API April 2012 23
Button Manager API Reference
3
BMCreateButton API Operation
Country Button Language Options
Switzerland
United States
de - German; defaultfr - Frenchen - English
en - English; defaultfr - Frenches - Spanishzh - Chinese

BMCreateButton Response

The response contains an ID if the button is hosted on PayPal, and code for HTML in a website and for a link in email.
BMCreateButton Response Fields
Field Description
Website xs:string
HTML code for web pages
Email xs:string
Code for email links, links in other documents that support external links, and links to the Hosted Solution checkout flow
24 April 2012 Button Manager SOAP API
Loading...
+ 54 hidden pages