Integration Guide

Table Of Contents
HTML Form Basics for PayPal Payments Standard
Specifying the Kind of Payment Button – cmd
13
408 June 2012 PayPal Payments Standard Integration Guide
Specifying the Kind of Payment Button – cmd
The cmd variable is always required in a FORM. Its value determines which PayPal Payments
Standard checkout experience you are using to obtain payment.
Allowable Values for the cmd HTML Variable
The input tag looks like one of the following:
Buy Now buttons<INPUT TYPE="hidden" name="cmd" value="_xclick">
Shopping cart buttons<INPUT TYPE="hidden" name="cmd" value="_cart">
Buy Gift Certificate buttons<INPUT TYPE="hidden" name="cmd" value="_oe-
gift-certificate">
Subscribe buttons<INPUT TYPE="hidden" name="cmd" value="_xclick-
subscriptions">
Automatic Billing buttons<INPUT TYPE="hidden" name="cmd"
value="_xclick-auto-billing">
Installment Plan buttons<INPUT TYPE="hidden" name="cmd"
value="_xclick-payment-plan">
Donate buttons<INPUT TYPE="hidden" name="cmd" value="_donations">
IMPORTANT: These INPUT tags are required exactly as shown above. Do not alter them.
Value of cmd Description
_xclick The button that the person clicked was a Buy Now button.
_cart For shopping cart purchases. The following variables specify the kind
of shopping cart button that the person clicked:
add – Add to Cart buttons for the PayPal Shopping Cart
display – View Cart buttons for the PayPal Shopping Cart
upload – The Cart Upload command for third-party carts
_oe-gift-certificate The button that the person clicked was a Buy Gift Certificate button.
_xclick-subscriptions The button that the person clicked was a Subscribe button.
_xclick-auto-billing The button that the person clicked was an Automatic Billing button.
_xclick-payment-plan The button that the person clicked was an Installment Plan button.
_donations The button that the person clicked was a Donate button.
_s-xclick The button that the person clicked was protected from tampering by
using encryption, or the button was saved in the merchant’s PayPal
account. PayPal determines which kind of button was clicked by
decoding the encrypted code or by looking up the saved button in the
merchant’s account.