Update Payment Experience API to v1.3

This commit is contained in:
mrak and stevecoffey
2016-10-10 10:45:55 -07:00
parent d51a8d39ac
commit 3f909f7f5e
8 changed files with 186 additions and 63 deletions

View File

@@ -14,12 +14,13 @@ use PayPal\Common\PayPalModel;
* @property string brand_name
* @property string logo_image
* @property string locale_code
* @property string return_url_label
* @property string note_to_seller_label
*/
class Presentation extends PayPalModel
{
/**
* A label that overrides the business name in the PayPal account on the PayPal pages.
*
* A label that overrides the business name in the PayPal account on the PayPal pages. Character length and limitations: 127 single-byte alphanumeric characters.
*
* @param string $brand_name
*
@@ -32,7 +33,7 @@ class Presentation extends PayPalModel
}
/**
* A label that overrides the business name in the PayPal account on the PayPal pages.
* A label that overrides the business name in the PayPal account on the PayPal pages. Character length and limitations: 127 single-byte alphanumeric characters.
*
* @return string
*/
@@ -42,8 +43,7 @@ class Presentation extends PayPalModel
}
/**
* A URL to logo image. Allowed vaues: `.gif`, `.jpg`, or `.png`.
*
* 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.
*
* @param string $logo_image
*
@@ -56,7 +56,7 @@ class Presentation extends PayPalModel
}
/**
* A URL to logo image. Allowed vaues: `.gif`, `.jpg`, or `.png`.
* 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.
*
* @return string
*/
@@ -66,8 +66,7 @@ class Presentation extends PayPalModel
}
/**
* Locale of pages displayed by PayPal payment experience.
*
* 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`.
*
* @param string $locale_code
*
@@ -80,7 +79,7 @@ class Presentation extends PayPalModel
}
/**
* Locale of pages displayed by PayPal payment experience.
* 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`.
*
* @return string
*/
@@ -89,4 +88,50 @@ class Presentation extends PayPalModel
return $this->locale_code;
}
/**
* A label to use as hypertext for the return to merchant link.
*
* @param string $return_url_label
*
* @return $this
*/
public function setReturnUrlLabel($return_url_label)
{
$this->return_url_label = $return_url_label;
return $this;
}
/**
* A label to use as hypertext for the return to merchant link.
*
* @return string
*/
public function getReturnUrlLabel()
{
return $this->return_url_label;
}
/**
* A label to use as the title for the note to seller field. Used only when `allow_note` is `1`.
*
* @param string $note_to_seller_label
*
* @return $this
*/
public function setNoteToSellerLabel($note_to_seller_label)
{
$this->note_to_seller_label = $note_to_seller_label;
return $this;
}
/**
* A label to use as the title for the note to seller field. Used only when `allow_note` is `1`.
*
* @return string
*/
public function getNoteToSellerLabel()
{
return $this->note_to_seller_label;
}
}