Question: Stripe Is Not Working

Stripe Is Not Working

JR

Jim Robbins

Asked

Hello, we are unable to process a payment using Stripe. When swiping a cc or inputting a cc manually, we are presented with a page that says “This page isn’t working”. We have tried this on several different browsers with the same result. Everything else seems to be working just fine. Not being able to accept a credit card is a huge issue. Please Help!

Extra: On version 4.1.1 We have tried with ModSecurity on and off with the same result. We don’t have a folder named storage or logs.

Additional: I noticed the Secret and Private key are being cut off in settings. I have tried removing the sk_live_ and pk_live_ and we receive the same result. If the whole keys are included it removes the last 5. Maybe this will help narrow this down.

  • MS

    Mian Saleem

    Answered

    Hello,

    I am sorry the v4 don’t have log enabled. Please change log_threshold to 1 in the app/config/config.php and then try to perform the action again. Lastly check the latest log file in the app/logs/ folder.

    Yes, that is very helpful. Please change the length for the columns.

    ALTER TABLE `tec_settings` 
    MODIFY COLUMN `stripe_secret_key` varchar(1000) DEFAULT NULL,
    MODIFY COLUMN `stripe_publishable_key` varchar(1000) DEFAULT NULL;
    

    After this, please try to save the keys again.

    Thank you

  • JR

    Jim Robbins

    Answered

    Hello,

    I have completed what you instructed. Same issue. Below is the error received from the error log. Please let me know how to proceed.

    ERROR - 2025-10-20 12:31:19 --> Severity: error --> Exception: array_key_exists(): Argument #2 ($array) must be of type array, Stripe\Util\CaseInsensitiveArray given /vendor/stripe/stripe-php/lib/ApiRequestor.php 402

    NOTE: This was tested with mod-security enabled and then disabled. Same result and same error message above.

    Please advise…

    Thank you.

  • MS

    Mian Saleem

    Answered

    Hello,

    Version 4 can only be used with php 8.0

    For latest version of php please install and start using v5.

    I recommend you start using v5 as it will get updates. If any feature is missing in v5, let us know we will add.

    Thank you

  • MS

    Mian Saleem

    Answered

    Hello,

    For v5, please install it with subdomain as you need to set the root path to puhcli folder.

    Please let me know the server details in private reply to check.

    Thank you

  • Login to Reply