Closed GoogleCodeExporter closed 8 years ago
e-commerce version: 3.1 23/10/2013 SilverStripe version: 3.1 from github When I click in button 'Place order and make payment' (Paypal) Error: [Strict Notice] Non-static method Controller::redirect() should not be called statically, assuming $this from incompatible context POST /en-us/checkout/OrderForm Line 107 in /var/www/vhosts/sendasoft.com/httpdocs/payment_paypal/code/PayPalExpressCheckout Payment.php Source 98 //sanity checks for credentials 99 if(!self::$API_UserName || !self::$API_Password || !self::$API_Signature){ 100 user_error('You are attempting to make a payment without the necessary credentials set', E_USER_ERROR); 101 } 102 $data = $this->Order()->BillingAddress()->toMap(); 103 $paymenturl = $this->getTokenURL($this->Amount->Amount,$this->Amount->Currency,$data); 104 $this->Status = "Pending"; 105 $this->write(); 106 if($paymenturl){ 107 Controller::redirect($paymenturl); //redirect to payment gateway 108 /* 109 $page = new Page(); 110 111 $page->Title = 'Redirection to PayPal...'; 112 $page->Logo = '<img src="' . self::$logo . '" alt="Payments powered by PayPal"/>'; 113 $page->Form = $this->PayPalForm(); Trace PayPalExpressCheckoutPayment->processPayment(Array,OrderForm) EcommercePayment.php:113 EcommercePayment::process_payment_form_and_return_next_step(Order,OrderForm,Array) OrderForm.php:186 OrderForm->processOrder(Array,OrderForm,SS_HTTPRequest) Form.php:367 Form->httpSubmission(SS_HTTPRequest) RequestHandler.php:288 RequestHandler->handleAction(SS_HTTPRequest,httpSubmission) RequestHandler.php:200 RequestHandler->handleRequest(SS_HTTPRequest,DataModel) RequestHandler.php:222 RequestHandler->handleRequest(SS_HTTPRequest,DataModel) Controller.php:153 Regards, Jose A.
Original issue reported on code.google.com by supp...@sendasoft.com on 23 Oct 2013 at 6:30
supp...@sendasoft.com
I think the upgrade to 3.1 has been completed now... (this was the problem I believe!)
Original comment by nfranc...@gmail.com on 27 Oct 2013 at 10:24
nfranc...@gmail.com
Original issue reported on code.google.com by
supp...@sendasoft.com
on 23 Oct 2013 at 6:30