Changeset 2817 for trunk/system/libraries/drivers/Payment/Paypal.php
- Timestamp:
- 06/11/2008 08:24:54 AM (5 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/drivers/Payment/Paypal.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/drivers/Payment/Paypal.php
r2593 r2817 31 31 'RETURNURL' => FALSE, 32 32 'CANCELURL' => FALSE, 33 'PAYPALURL' => FALSE,34 35 'PAYMENTACTION' => FALSE,36 33 37 34 'CURRENCYCODE' => FALSE, // default is USD - only required if other currency needed … … 57 54 'CURRENCYCODE' => '', // default is USD - only required if other currency needed 58 55 'MAXAMT' => '', 59 60 'PAYMENTACTION' => '', // 'Sale', 'Authorization' or 'Order' see: https://www.paypal.com/en_US/ebook/PP_NVPAPI_DeveloperGuide/Appx_fieldreference.html#255785361 56 62 57 // USERACTION defaults to 'continue' … … 132 127 'METHOD' => 'DoExpressCheckoutPayment', 133 128 'TOKEN' => '', // this token is retrieved from the response to the setExpressCheckout call 134 'PAYMENTACTION' => '', // 'Sale', 'Authorization' or 'Order' see: https://www.paypal.com/en_US/ebook/PP_NVPAPI_DeveloperGuide/Appx_fieldreference.html#2557853135 129 'PAYERID' => '', 136 130 'AMT' => '', // payment amount - MUST include decimal point followed by two further digits … … 218 212 219 213 $this->test_mode = $config['test_mode']; 214 $this->api_connection_fields['PAYPALURL'] = 'https://www.paypal.com/webscr&cmd=_express-checkout&token='; 220 215 221 216 if ($this->test_mode) … … 226 221 227 222 $this->api_connection_fields['ENDPOINT'] = $config['SANDBOX_ENDPOINT']; 228 $this->api_connection_fields['PAYPALURL'] = $config['SANDBOX_PAYPALURL'];223 $this->api_connection_fields['PAYPALURL'] = 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token='; 229 224 } 230 225 … … 248 243 { 249 244 case 'amount': 250 $key = 'AMT';251 break;245 $key = 'AMT'; 246 break; 252 247 default: 253 248 }
