Skip to content

Commit

Permalink
add comments on supported shipping preference values
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-luc committed Feb 7, 2018
1 parent f3f97e2 commit ac84fde
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Message/RestPurchaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,22 @@ public function getShippingPreference()
return $this->getParameter('shippingPreference');
}

/**
* Set the shipping preference
*
* Supported values:
* 'NO_SHIPPING': redacts shipping address fields from the PayPal pages.
* Recommended value to use for digital goods.
* 'GET_FROM_FILE': Get the shipping address selected by the buyer on PayPal pages.
* 'SET_PROVIDED_ADDRESS' (not yet fully supported by the library since shipping address can't be provided):
* Use the address provided by the merchant. Buyer is not able to change the address on the PayPal pages.
* If merchant doesn't pass an address, buyer has the option to choose the address on PayPal pages.
*
* @param string $value
* @return bool.
* @link https://developer.paypal.com/docs/api/orders/#definition-application_context
* @link https://www.paypalobjects.com/api/checkout.js
*/
public function setShippingPreference($value)
{
return $this->setParameter('shippingPreference', $value);
Expand Down

0 comments on commit ac84fde

Please sign in to comment.