PHP Class PayPal\Api\Presentation

Parameters for style and presentation.
Inheritance: extends PayPal\Common\PayPalModel
Show file Open project: paypal/rest-api-sdk-php Class Usage Examples

Public Methods

Method Description
getBrandName ( ) : string A label that overrides the business name in the PayPal account on the PayPal pages. Character length and limitations: 127 single-byte alphanumeric characters.
getLocaleCode ( ) : string The locale of pages displayed by PayPal payment experience. A valid value is AU, AT, BE, BR, CA, CH, CN, DE, ES, GB, FR, IT, NL, PL, PT, RU, or US. A 5-character code is also valid for languages in specific countries: da_DK, he_IL, id_ID, ja_JP, no_NO, pt_BR, ru_RU, sv_SE, th_TH, zh_CN, zh_HK, or zh_TW.
getLogoImage ( ) : string A URL to the logo image. A valid media type is .gif, .jpg, or .png. The maximum width of the image is 190 pixels. The maximum height of the image is 60 pixels. PayPal crops images that are larger. PayPal places your logo image at the top of the cart review area. PayPal recommends that you store the image on a secure (HTTPS) server. Otherwise, web browsers display a message that checkout pages contain non-secure items. Character length and limit: 127 single-byte alphanumeric characters.
getNoteToSellerLabel ( ) : string A label to use as the title for the note to seller field. Used only when allow_note is 1.
getReturnUrlLabel ( ) : string A label to use as hypertext for the return to merchant link.
setBrandName ( string $brand_name ) A label that overrides the business name in the PayPal account on the PayPal pages. Character length and limitations: 127 single-byte alphanumeric characters.
setLocaleCode ( string $locale_code ) The locale of pages displayed by PayPal payment experience. A valid value is AU, AT, BE, BR, CA, CH, CN, DE, ES, GB, FR, IT, NL, PL, PT, RU, or US. A 5-character code is also valid for languages in specific countries: da_DK, he_IL, id_ID, ja_JP, no_NO, pt_BR, ru_RU, sv_SE, th_TH, zh_CN, zh_HK, or zh_TW.
setLogoImage ( string $logo_image ) A URL to the logo image. A valid media type is .gif, .jpg, or .png. The maximum width of the image is 190 pixels. The maximum height of the image is 60 pixels. PayPal crops images that are larger. PayPal places your logo image at the top of the cart review area. PayPal recommends that you store the image on a secure (HTTPS) server. Otherwise, web browsers display a message that checkout pages contain non-secure items. Character length and limit: 127 single-byte alphanumeric characters.
setNoteToSellerLabel ( string $note_to_seller_label ) A label to use as the title for the note to seller field. Used only when allow_note is 1.
setReturnUrlLabel ( string $return_url_label ) A label to use as hypertext for the return to merchant link.

Method Details

getBrandName() public method

A label that overrides the business name in the PayPal account on the PayPal pages. Character length and limitations: 127 single-byte alphanumeric characters.
public getBrandName ( ) : string
return string

getLocaleCode() public method

The locale of pages displayed by PayPal payment experience. A valid value is AU, AT, BE, BR, CA, CH, CN, DE, ES, GB, FR, IT, NL, PL, PT, RU, or US. A 5-character code is also valid for languages in specific countries: da_DK, he_IL, id_ID, ja_JP, no_NO, pt_BR, ru_RU, sv_SE, th_TH, zh_CN, zh_HK, or zh_TW.
public getLocaleCode ( ) : string
return string

getLogoImage() public method

A URL to the logo image. A valid media type is .gif, .jpg, or .png. The maximum width of the image is 190 pixels. The maximum height of the image is 60 pixels. PayPal crops images that are larger. PayPal places your logo image at the top of the cart review area. PayPal recommends that you store the image on a secure (HTTPS) server. Otherwise, web browsers display a message that checkout pages contain non-secure items. Character length and limit: 127 single-byte alphanumeric characters.
public getLogoImage ( ) : string
return string

getNoteToSellerLabel() public method

A label to use as the title for the note to seller field. Used only when allow_note is 1.
public getNoteToSellerLabel ( ) : string
return string

getReturnUrlLabel() public method

A label to use as hypertext for the return to merchant link.
public getReturnUrlLabel ( ) : string
return string

setBrandName() public method

A label that overrides the business name in the PayPal account on the PayPal pages. Character length and limitations: 127 single-byte alphanumeric characters.
public setBrandName ( string $brand_name )
$brand_name string

setLocaleCode() public method

The locale of pages displayed by PayPal payment experience. A valid value is AU, AT, BE, BR, CA, CH, CN, DE, ES, GB, FR, IT, NL, PL, PT, RU, or US. A 5-character code is also valid for languages in specific countries: da_DK, he_IL, id_ID, ja_JP, no_NO, pt_BR, ru_RU, sv_SE, th_TH, zh_CN, zh_HK, or zh_TW.
public setLocaleCode ( string $locale_code )
$locale_code string

setLogoImage() public method

A URL to the logo image. A valid media type is .gif, .jpg, or .png. The maximum width of the image is 190 pixels. The maximum height of the image is 60 pixels. PayPal crops images that are larger. PayPal places your logo image at the top of the cart review area. PayPal recommends that you store the image on a secure (HTTPS) server. Otherwise, web browsers display a message that checkout pages contain non-secure items. Character length and limit: 127 single-byte alphanumeric characters.
public setLogoImage ( string $logo_image )
$logo_image string

setNoteToSellerLabel() public method

A label to use as the title for the note to seller field. Used only when allow_note is 1.
public setNoteToSellerLabel ( string $note_to_seller_label )
$note_to_seller_label string

setReturnUrlLabel() public method

A label to use as hypertext for the return to merchant link.
public setReturnUrlLabel ( string $return_url_label )
$return_url_label string