Changeset 468 for trunk/lib/PayPal.inc.php
- Timestamp:
- Feb 20, 2014 3:03:59 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:mergeinfo
set to
/branches/eli_branch merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/lib/PayPal.inc.php
r396 r468 33 33 34 34 // General object parameters. 35 var$_params = array(35 private $_params = array( 36 36 'paypal_url' => 'https://www.paypal.com/cgi-bin/webscr', 37 37 'test_mode' => false, … … 39 39 40 40 // Options used for specific buttons and links. 41 var$_default_button_options = array();41 private $_default_button_options = array(); 42 42 43 43 // Array of buttons created by newButton(). 44 var$_buttons = array();44 private $_buttons = array(); 45 45 46 46 // Store the response from the last IPN. 47 var$_ipn_response;47 private $_ipn_response; 48 48 49 49 /** … … 52 52 * @param bool $test_mode Use PayPal sandbox for testing. 53 53 */ 54 function PayPal($test_mode=false)54 public function __construct($test_mode=false) 55 55 { 56 56 if ($test_mode) { … … 95 95 * @return bool True on success, false on failure. 96 96 */ 97 function setButtonDefaults($type, $options)97 public function setButtonDefaults($type, $options) 98 98 { 99 99 $app =& App::getInstance(); … … 127 127 * @return bool True on success, false on failure. 128 128 */ 129 function newButton($type, $name, $options=null)129 public function newButton($type, $name, $options=null) 130 130 { 131 131 $app =& App::getInstance(); … … 162 162 * @return mixed Link of button, or false on failure. 163 163 */ 164 function getLink($name)164 public function getLink($name) 165 165 { 166 166 $app =& App::getInstance(); … … 196 196 * @param string $name Name of button for which to generate link. 197 197 */ 198 function printLink($name)198 public function printLink($name) 199 199 { 200 200 echo $this->getLink($name); … … 208 208 * @param string $name Name of button to print. 209 209 */ 210 function printButton($name)210 public function printButton($name) 211 211 { 212 212 ?> … … 234 234 * @param array $params Array of parameters (key => val pairs). 235 235 */ 236 function setParam($params)236 public function setParam($params) 237 237 { 238 238 $app =& App::getInstance(); … … 253 253 * @return mixed Configured parameter value. 254 254 */ 255 function getParam($param)255 public function getParam($param) 256 256 { 257 257 $app =& App::getInstance(); … … 272 272 * @return bool True if valid, false if invalid. 273 273 */ 274 function incomingIPNRequest()274 public function incomingIPNRequest() 275 275 { 276 276 if ($_SERVER['REQUEST_METHOD'] == 'POST' … … 290 290 * @return bool True on success, false on failure. 291 291 */ 292 function processIPN()292 public function processIPN() 293 293 { 294 294 $app =& App::getInstance(); … … 351 351 * @return bool True if response contains VERIFIED, false otherwise. 352 352 */ 353 function verifiedIPN()353 public function verifiedIPN() 354 354 { 355 355 $app =& App::getInstance(); … … 380 380 } // End of class. 381 381 382 ?>
Note: See TracChangeset
for help on using the changeset viewer.