Jump to content
  • 0

Paypal To Stripe Switch


richwalker

Question

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/
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
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

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...