PHP Class PayPal\PayPalAPI\BMCreateButtonRequestType

Inheritance: extends PayPal\EBLBaseComponents\AbstractRequestType
Show file Open project: paypal/merchant-sdk-php Class Usage Examples

Public Properties

Property Type Description
$ButtonCode string button code. optional Must be one of the following: hosted, encrypted or cleartext
$ButtonCountry string Button Country. Optional Must be valid ISO country code
$ButtonImage string Button image to use. Optional Must be one of: REG, SML, or CC
$ButtonImageURL string Button URL for custom button image. Optional Character length and limitations: 127 single-byte alphanumeric characters
$ButtonLanguage string Button language code. Optional Character length and limitations: 3 single-byte alphanumeric characters
$ButtonSubType string Button sub type. optional for button types buynow and cart only Must Be either PRODUCTS or SERVICES
$ButtonType string Type of Button to create. Required Must be one of the following: BUYNOW, CART, GIFTCERTIFICATE. SUBSCRIBE, PAYMENTPLAN, AUTOBILLING, DONATE, VIEWCART or UNSUBSCRIBE
$ButtonVar string Button Variable information At least one required recurring Character length and limitations: 63 single-byte alphanumeric characters
$BuyNowText string Text to use on Buy Now Button. Optional Must be either BUYNOW or PAYNOW
$OptionDetails OptionDetailsType
$SubscribeText string Text to use on Subscribe button. Optional Must be either BUYNOW or SUBSCRIBE
$TextBox string Details of each option for the button. Optional

Public Methods

Method Description
toXMLString ( )

Method Details

toXMLString() public method

public toXMLString ( )

Property Details

$ButtonCode public property

button code. optional Must be one of the following: hosted, encrypted or cleartext
public string $ButtonCode
return string

$ButtonCountry public property

Button Country. Optional Must be valid ISO country code
public string $ButtonCountry
return string

$ButtonImage public property

Button image to use. Optional Must be one of: REG, SML, or CC
public string $ButtonImage
return string

$ButtonImageURL public property

Button URL for custom button image. Optional Character length and limitations: 127 single-byte alphanumeric characters
public string $ButtonImageURL
return string

$ButtonLanguage public property

Button language code. Optional Character length and limitations: 3 single-byte alphanumeric characters
public string $ButtonLanguage
return string

$ButtonSubType public property

Button sub type. optional for button types buynow and cart only Must Be either PRODUCTS or SERVICES
public string $ButtonSubType
return string

$ButtonType public property

Type of Button to create. Required Must be one of the following: BUYNOW, CART, GIFTCERTIFICATE. SUBSCRIBE, PAYMENTPLAN, AUTOBILLING, DONATE, VIEWCART or UNSUBSCRIBE
public string $ButtonType
return string

$ButtonVar public property

Button Variable information At least one required recurring Character length and limitations: 63 single-byte alphanumeric characters
public string $ButtonVar
return string

$BuyNowText public property

Text to use on Buy Now Button. Optional Must be either BUYNOW or PAYNOW
public string $BuyNowText
return string

$OptionDetails public property

public OptionDetailsType,PayPal\PayPalAPI $OptionDetails
return OptionDetailsType

$SubscribeText public property

Text to use on Subscribe button. Optional Must be either BUYNOW or SUBSCRIBE
public string $SubscribeText
return string

$TextBox public property

Details of each option for the button. Optional
public string $TextBox
return string