User Guide
Table Of Contents
- Website Payments Standard Button Manager API (SOAP)
- Preface
- Intended Audience
- Revision History
- Website Payments Standard Button Manager API Overview
- Using the Button Manager API
- Button Manager API Reference
- HTML Variables for Website Payments Standard
Button Manager SOAP API June, 2009 9
Website Payments Standard Button Manager API Overview
Button Hosting
<form target="paypal" action="https://www.sandbox.paypal.com/cgi-
bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="19218">
<table>
<tr><td><input type="hidden" name="on0"
value="Color">Color</td></tr><tr><td><select name="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" name="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="currency_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.paypal.com/en_US/i/scr/pixel.gif" width="1"
height="1">
</form>
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?cmd=_s-
xclick&hosted_button_id=19218
For a link, PayPal does not generate code for options.
Button Hosting
Buttons that you can view on the My Saved Buttons page of your PayPal profile are called
hosted buttons because they reside on PayPal. The API can create three kinds of buttons:
hosted, encrypted, and clear text.