forked from LiveCarta/PayPal-PHP-SDK
Update Payment Experience samples
This commit is contained in:
@@ -13,6 +13,10 @@ $flowConfig = new \PayPal\Api\FlowConfig();
|
||||
$flowConfig->setLandingPageType("Billing");
|
||||
// The URL on the merchant site for transferring to after a bank transfer payment.
|
||||
$flowConfig->setBankTxnPendingUrl("http://www.yeowza.com/");
|
||||
// When set to "commit", the buyer is shown an amount, and the button text will read "Pay Now" on the checkout page.
|
||||
$flowConfig->setUserAction("commit");
|
||||
// Defines the HTTP method to use to redirect the user to a return URL. A valid value is `GET` or `POST`.
|
||||
$flowConfig->setReturnUriHttpMethod("GET");
|
||||
|
||||
// Parameters for style and presentation.
|
||||
$presentation = new \PayPal\Api\Presentation();
|
||||
@@ -22,7 +26,11 @@ $presentation->setLogoImage("http://www.yeowza.com/favico.ico")
|
||||
// A label that overrides the business name in the PayPal account on the PayPal pages.
|
||||
->setBrandName("YeowZa! Paypal")
|
||||
// Locale of pages displayed by PayPal payment experience.
|
||||
->setLocaleCode("US");
|
||||
->setLocaleCode("US")
|
||||
// A label to use as hypertext for the return to merchant link.
|
||||
->setReturnUrlLabel("Return")
|
||||
// A label to use as the title for the note to seller field. Used only when `allow_note` is `1`.
|
||||
->setNoteToSellerLabel("Thanks!");
|
||||
|
||||
// Parameters for input fields customization.
|
||||
$inputFields = new \PayPal\Api\InputFields();
|
||||
@@ -43,7 +51,9 @@ $webProfile->setName("YeowZa! T-Shirt Shop" . uniqid())
|
||||
// Parameters for style and presentation.
|
||||
->setPresentation($presentation)
|
||||
// Parameters for input field customization.
|
||||
->setInputFields($inputFields);
|
||||
->setInputFields($inputFields)
|
||||
// Indicates whether the profile persists for three hours or permanently. Set to `false` to persist the profile permanently. Set to `true` to persist the profile for three hours.
|
||||
->setTemporary(true);
|
||||
|
||||
// For Sample Purposes Only.
|
||||
$request = clone $webProfile;
|
||||
|
||||
Reference in New Issue
Block a user