Stripe checkout not working on PHP 8.0

  • Buzzy
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
2 years 1 month ago #154639 by Buzzy
When I click the button that should then go to the Stripe checkout it gives page not found with error:

ERROR 0 - array_key_exists(): Argument #2 ($array) must be of type array, Stripe\Util\CaseInsensitiveArray given in /var/www/beta.queerspirit.net/components/com_jdonation/payments/stripe/lib/ApiRequestor.php:402

On the same site running with php 7.4 it works fine.

Website is at  beta.queerspirit.net/about/donate/qsfesty-23 and is set as sandbox mode

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago #154640 by Mr. Dam
Replied by Mr. Dam on topic Stripe checkout not working on PHP 8.0
Hi,
You can submit ticket on category: Joom Donation and provide your site url with super admin account. We will help you to figure the cause of issue.
Thanks
Dam

Please Log in or Create an account to join the conversation.

More
1 year 11 months ago #155765 by spitjack
Replied by spitjack on topic Stripe checkout not working on PHP 8.0
I am wondering how this turned out. I am about to move a development update (J3 > J4.2.6, php 8.1.13) and want to make sure their successful campaign will survive the update. And should I make the update to Joomdonation on the development site? It's not running in the client's domain but my agency's, so I'm worried that this might disconnect the Stripe endpoint configuration still running on the live J3 site. The unpublished version we have is 5.9.8 but we'll upgrade to the latest version before installing.

__
a 'spit' is a rod upon which savory food was roasted, turned in ancient times by a worker called a 'jack', a middle English word for an ordinary laborer (eg jack of all trades, steeplejack, lumberjack). Today, this job is usually referred to as a 'pitmaster'.

Please Log in or Create an account to join the conversation.

  • Buzzy
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
1 year 11 months ago #155774 by Buzzy
Replied by Buzzy on topic Stripe checkout not working on PHP 8.0
The problem was sorted very quickly and I believe the downloads should now be updated with the fix. For testing I created a separate endpoint under 'test mode' on the Stripe website so could keep live and test sites seperated.
That said my issue was with php 8 running on a Joomla 3 site. However the support here is excellent so you should not run into unfix-able issues (probably!)
The following user(s) said Thank You: spitjack

Please Log in or Create an account to join the conversation.

More
1 year 11 months ago #155776 by Mr. Dam
Replied by Mr. Dam on topic Stripe checkout not working on PHP 8.0
Hi spitjack,
You can upgrade your site and Joom Donation without any problems.
Thanks
Dam
The following user(s) said Thank You: spitjack

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #161112 by Mark Hayden
Replied by Mark Hayden on topic Stripe checkout not working on PHP 8.0
What is the fix here ?
I have had to go to PHP v.8 for vBulletin and now I get the error listed above.
What do I need to upgrade ?
Thanks
Mark

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #161113 by Mark Hayden
Replied by Mark Hayden on topic Stripe checkout not working on PHP 8.0
Ok, the solution is as follows :

Re-download the Stripe package from your downloads area on this site.
Extract the contents of the zip file.
Locate the files and replace them with the new ones.

Mine were from Dec 2020 and replaced witht he ones from July 2023. This fixed my Stripe error.

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #161114 by Mr. Dam
Replied by Mr. Dam on topic Stripe checkout not working on PHP 8.0
Ok Mark
Thanks
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt