Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Stripe SCA module installation error


Recommended Posts

Goodmorning everyone, my name is roberto and I have a shop with oscommerce since 2004. After many years with Banca Sella Gateway I decided to switch to Stripe.
I had the standard version of Stripe installed and everything worked perfectly. Now to install the sca version, I find this error in Admin:

Parse error: syntax error, unexpected '[', expecting ')' in /var/www/vhosts/mysite.com/httpdocs/includes/modules/payment/stripe_sca.php on line 356

which corresponds to:

$ this-> intent = \ Stripe \ PaymentIntent :: retrieve (["id" => $ stripe_payment_intent_id]);

did any of you get a similar error during installation?
Thank you very much


Edited by Robydem
Link to comment
Share on other sites

That sounds like you are using a very old version of PHP.  5.3 maybe?  If you can't update PHP, perhaps try an older version of Stripe SCA. 

You could try replacing the [ on that line with array( and the ] with ).  Not sure how many times you'd have to do that in the file though. 

Always back up before making changes.

Link to comment
Share on other sites

Hi Matt,
yes indeed this seems to be the problem.

I can't update PHp because there are too many applications that may stop working. Now I am trying to modify the various files and I see that there are many, even in the library folder. I'll let you know if I've solved it and in the meantime.

 thank you very much.

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   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.

  • Create New...