Jump to content

Question

Posted

Just the process of switching from paypal to stripe. 

 

When putting a live transaction through i get 

 

Oh noes!

Cannot use object of type stdClass as array on line 303 in /var/www/vhosts/mydomain.co.uk/httpdocs/components/gateways/merchant/stripe_gateway/stripe_gateway.php

 

 

Server error logs

 

PHP Fatal error: Cannot use object of type stdClass as array in /var/www/vhosts/mydomain.co.uk/httpdocs/components/gateways/merchant/stripe_gateway/stripe_gateway.php on line 303, referer: https://mydomain.co.uk/admin/clients/makepayment/168/14913/
 
2016-04-03 20:28:02 Error 62.64.201.23 PHP Fatal error: Uncaught exception 'UnknownException' with message 'Invalid callback Session::sessionWrite, cannot access private method Session::sessionWrite()' in Unknown:0, referer: https://mydomain.co.uk/admin/clients/makepayment/168/14913/
 
2016-04-03 20:28:02 Error 62.64.201.23 Stack trace:, referer: https://mydomain.co.uk/admin/clients/makepayment/168/14913/
 
2016-04-03 20:28:02 Error 62.64.201.23 #0 [internal function]: UnknownException::setErrorHandler(2, 'Invalid callbac...', 'Unknown', 0, NULL), referer: https://mydomain.co.uk/admin/clients/makepayment/168/14913/
 
2016-04-03 20:28:02 Error 62.64.201.23 #1 {main}, referer: https://mydomain.co.uk/admin/clients/makepayment/168/14913/
 
2016-04-03 20:28:02 Error 62.64.201.23 thrown in Unknown on line 0, referer: https://mydomain.co.uk/admin/clients/makepayment/168/14913/

5 answers to this question

Recommended Posts

  • 0
Posted

We should be able to fix the fatal error you encountered in CORE-2153.

 

However, Stripe thinks you have invalid authentication credentials. You should double-check that your API key is correct, e.g., doesn't contain any unnecessary spaces, etc.

  • 0
Posted
Hi Tyson 

 

I have checked and checked again. I have even typed the Live Secret Key manually. Below is the logs from blesta

 

Input from the logs ( i have changed the user info to protect the client)

 


a:3:{s:6:"amount";i:100;s:8:"currency";s:3:"gbp";s:4:"card";a:10:{s:6:"number";s:16:"xxxxxxxxxxxxxxxx";s:9:"exp_month";s:2:"xx";s:8:"exp_year";s:4:"xxxx";s:4:"name";s:13:"BOB ";s:13:"address_line1";s:16:"1 My Address";s:13:"address_line2";s:0:"";s:11:"address_zip";s:6:"AB123CD";s:13:"address_state";s:3:"ABC";s:15:"address_country";s:3:"GBR";s:3:"cvc";s:0:"";}}

 

Output

  • 0
Posted

I wonder if Blesta is unable to communicate with Stripe. Is port 443 egress open at the firewall? CURL SSL in your PHP? Looks like stripe's API supports SSLv3, TLSv1.0, TSLv1.1, TLSv1.2.. which is pretty surprising - should be able to connect if your server supports any of those.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...