PayPalApiInputFields

Class InputFields.

Defined (1)

The class is defined in the following location(s).

/classes/lib/PayPal/Api/InputFields.php  
  1. class InputFields extends PayPalModel 
  2. /** 
  3. * Enables the buyer to enter a note to the merchant on the PayPal page during checkout. 
  4. *  
  5. * @param bool $allow_note 
  6. *  
  7. * @return $this 
  8. */ 
  9. public function setAllowNote($allow_note) 
  10. $this->allow_note = $allow_note; 
  11. return $this; 
  12.  
  13. /** 
  14. * Enables the buyer to enter a note to the merchant on the PayPal page during checkout. 
  15. * @return bool 
  16. */ 
  17. public function getAllowNote() 
  18. return $this->allow_note; 
  19.  
  20. /** 
  21. * Determines whether or not PayPal displays shipping address fields on the experience pages. Allowed values: `0`, `1`, or `2`. When set to `0`, PayPal displays the shipping address on the PayPal pages. When set to `1`, PayPal does not display shipping address fields whatsoever. When set to `2`, if you do not pass the shipping address, PayPal obtains it from the buyer's account profile. For digital goods, this field is required, and you must set it to `1`.  
  22. *  
  23. * @param int $no_shipping 
  24. *  
  25. * @return $this 
  26. */ 
  27. public function setNoShipping($no_shipping) 
  28. $this->no_shipping = $no_shipping; 
  29. return $this; 
  30.  
  31. /** 
  32. * Determines whether or not PayPal displays shipping address fields on the experience pages. Allowed values: `0`, `1`, or `2`. When set to `0`, PayPal displays the shipping address on the PayPal pages. When set to `1`, PayPal does not display shipping address fields whatsoever. When set to `2`, if you do not pass the shipping address, PayPal obtains it from the buyer's account profile. For digital goods, this field is required, and you must set it to `1`.  
  33. * @return int 
  34. */ 
  35. public function getNoShipping() 
  36. return $this->no_shipping; 
  37.  
  38. /** 
  39. * Determines whether or not the PayPal pages should display the shipping address and not the shipping address on file with PayPal for this buyer. Displaying the PayPal street address on file does not allow the buyer to edit that address. Allowed values: `0` or `1`. When set to `0`, the PayPal pages should not display the shipping address. When set to `1`, the PayPal pages should display the shipping address. 
  40. *  
  41. * @param int $address_override 
  42. *  
  43. * @return $this 
  44. */ 
  45. public function setAddressOverride($address_override) 
  46. $this->address_override = $address_override; 
  47. return $this; 
  48.  
  49. /** 
  50. * Determines whether or not the PayPal pages should display the shipping address and not the shipping address on file with PayPal for this buyer. Displaying the PayPal street address on file does not allow the buyer to edit that address. Allowed values: `0` or `1`. When set to `0`, the PayPal pages should not display the shipping address. When set to `1`, the PayPal pages should display the shipping address. 
  51. * @return int 
  52. */ 
  53. public function getAddressOverride() 
  54. return $this->address_override; 
  55.