Stripe is marking as paid without asking for card data

Hi,

I am getting error on stripe payments, when select credit card to pay and filling out fields like postal and address, clicking on continue redirecting it to completed without asking for any card data or charging client somehow.

When i get back to invoice, the same invoice is there as unpaid.

PayPal is working fine, only the issue with stripe at the moment.

INSPECT ELEMENTS::

Got following error while inspect elements on pay now button at invoices page

Uncaught ReferenceError: Livewire is not defined
https://xxx/billing/public/client/invoices/payment:494

URL to livewire showng is: https://xxx/vendor/livewire/livewire.js?id=90730a3b0e7144480175

But URL suppose to be /billing/ not within root directory

cron command still showing not processed, even i ran over terminal as root and got no error there
I have php 8.1 and version: v5.6.3-C120
PHP memory limit 512 tried with 1024 too.
System health has no issues.
cloudflare active with SSL status to “Full”
installed it via softaculour cpanel, cent os 7.

Hi,

@david do you have any suggestions?

Also i am keep getting ERROR 500 while saving any setting on admin area.

Are there any details about the 500 error in storage/logs?

[2023-06-20 07:28:26] production.ERROR: Allowed memory size of 536870912 bytes exhausted (tried to allocate 36864 bytes) {“userId”:1,“exception”:"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Allowed memory size of 536870912 bytes exhausted (tried to allocate 36864 bytes) at /home/xx/public_html/billing/app/Http/Controllers/SelfUpdateController.php:76)
[stacktrace]
#0 {main}
“}
[2023-06-20 07:49:59] production.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘invoice_task_item_description’ in ‘field list’ (SQL: update companies set convert_products = 0, fill_products = 1, update_products = 1, show_product_details = 1, client_can_register = 0, custom_surcharge_taxes1 = 0, custom_surcharge_taxes2 = 0, custom_surcharge_taxes3 = 0, custom_surcharge_taxes4 = 0, enable_product_cost = 0, enable_product_quantity = 1, default_quantity = 1, portal_domain = https://xxx/billing, slack_webhook_url = ?, google_analytics_key = ?, enable_shop_api = 1, mark_expenses_invoiceable = 0, mark_expenses_paid = 0, invoice_expense_documents = 0, auto_start_tasks = 0, invoice_task_timelog = 1, invoice_task_documents = 0, show_tasks_table = 0, is_disabled = 0, default_task_is_date_based = 0, enable_product_discount = 0, calculate_expense_tax_by_amount = 0, expense_inclusive_taxes = 0, oauth_password_required = 0, invoice_task_datelog = 1, show_task_end_date = 0, markdown_enabled = 0, use_comma_as_decimal_place = 0, report_include_drafts = 0, convert_rate_to_client = 1, markdown_email_enabled = 1, stop_on_unpaid_recurring = 0, use_quote_terms_on_conversion = 0, enable_applying_payments = 0, track_inventory = 0, stock_notification = 1, invoice_task_project = 0, report_include_deleted = 0, invoice_task_lock = 0, convert_payment_currency = 0, convert_expense_currency = 0, notify_vendor_when_paid = 0, invoice_task_hours = 0, calculate_taxes = 0, invoice_task_item_description = 0, invoice_task_project_header = 0, companies.updated_at = 2023-06-20 07:49:59.042324 where id = 1) {“userId”:1,“exception”:”[object] (Illuminate\Database\QueryException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘invoice_task_item_description’ in ‘field list’ (SQL: update companies set convert_products = 0, fill_products = 1, update_products = 1, show_product_details = 1, client_can_register = 0, custom_surcharge_taxes1 = 0, custom_surcharge_taxes2 = 0, custom_surcharge_taxes3 = 0, custom_surcharge_taxes4 = 0, enable_product_cost = 0, enable_product_quantity = 1, default_quantity = 1, portal_domain = https://xxx/billing, slack_webhook_url = ?, google_analytics_key = ?, enable_shop_api = 1, mark_expenses_invoiceable = 0, mark_expenses_paid = 0, invoice_expense_documents = 0, auto_start_tasks = 0, invoice_task_timelog = 1, invoice_task_documents = 0, show_tasks_table = 0, is_disabled = 0, default_task_is_date_based = 0, enable_product_discount = 0, calculate_expense_tax_by_amount = 0, expense_inclusive_taxes = 0, oauth_password_required = 0, invoice_task_datelog = 1, show_task_end_date = 0, markdown_enabled = 0, use_comma_as_decimal_place = 0, report_include_drafts = 0, convert_rate_to_client = 1, markdown_email_enabled = 1, stop_on_unpaid_recurring = 0, use_quote_terms_on_conversion = 0, enable_applying_payments = 0, track_inventory = 0, stock_notification = 1, invoice_task_project = 0, report_include_deleted = 0, invoice_task_lock = 0, convert_payment_currency = 0, convert_expense_currency = 0, notify_vendor_when_paid = 0, invoice_task_hours = 0, calculate_taxes = 0, invoice_task_item_description = 0, invoice_task_project_header = 0, companies.updated_at = 2023-06-20 07:49:59.042324 where id = 1) at /home/xx/public_html/billing/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760)
[stacktrace]
#0 /home/xx/public_html/billing/vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate\Database\Connection->runQueryCallback(‘update compani...', Array, Object(Closure)) #1 /home/xx/public_html/billing/vendor/laravel/framework/src/Illuminate/Database/Connection.php(577): Illuminate\\Database\\Connection->run('update compani…’, Array, Object(Closure))
#2 /home/xx/public_html/billing/vendor/laravel/framework/src/Illuminate/Database/Connection.php(510): Illuminate\Database\Connection->affectingStatement(‘update compani...', Array) #3 /home/xx/public_html/billing/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3357): Illuminate\\Database\\Connection->update('update compani…’, Array)
#4 /home/xx/public_html/billing/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(1011): Illuminate\Database\Query\Builder->update(Array)
#5 /home/xx/public_html/billing/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1214): Illuminate\Database\Eloquent\Builder->update(Array)
#6 /home/xx/public_html/billing/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1131): Illuminate\Database\Eloquent\Model->performUpdate(Object(Illuminate\Database\Eloquent\Builder))
#7 /home/xx/public_html/billing/app/Utils/Traits/CompanySettingsSaver.php(98): Illuminate\Database\Eloquent\Model->save()
#8 /home/xx/public_html/billing/app/Repositories/CompanyRepository.php(48): App\Models\Company->saveSettings(Object(stdClass), Object(App\Models\Company))
#9 /home/xx/public_html/billing/app/Http/Controllers/CompanyController.php(423): App\Repositories\CompanyRepository->save(Array, Object(App\Models\Company))
#10 /home/xx/public_html/billing/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\CompanyController->update(Object(App\Http\Requests\Company\UpdateCompanyRequest), Object(App\Models\Company))
#11 /home/xx/public_html/billing/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate\Routing\Controller->callAction(‘update’, Array)
#12 /home/xx/public_html/billing/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\CompanyController), ‘update’)
#13 /home/xx/public_html/billing/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#14 /home/xx/public_html/billing/vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate\Routing\Route->run()

It looks like your database is missing a column, it may help to run php artisan migrate

I ran that and it fixed the error 500, thank you so much.

We’re still with the stripe error

@david @ben any thoughts?

i tested on chrome where i am logged in as admin too (before was trying private tab firefox) and noticed when click on continue button it tried to load a frame but instead it loaded home directory content with many errors.

seems like htaccess issues or somethin, following is inspect pic and both root and /billing htaccess codes:

ROOT htaccess:

‘’‘’’

Enable Rewrite Engine

RewriteEngine On

Force non-SSL to SSL

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Redirect www to non-www

RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,R=301]

Remove .html extension from URLs

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/?$ $1.html [L]

Set all error pages to 404.html

ErrorDocument 400 /404.html
ErrorDocument 401 /404.html
ErrorDocument 403 /404.html
ErrorDocument 404 /404.html
ErrorDocument 500 /404.html

php – BEGIN cPanel-generated handler, do not edit

Set the “ea-php81” package as the default “PHP” programming language.

AddHandler application/x-httpd-ea-php81 .php .php8 .phtml # php -- END cPanel-generated handler, do not edit

Disable .htaccess rules for the “billing” directory

RewriteEngine On RewriteCond %{REQUEST_URI} !^/billing/$ [NC] RewriteRule ^ - [S=1]

BEGIN cPanel-generated php ini directives, do not edit

Manual editing of this file may result in unexpected behavior.

To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)

For more information, read our documentation

‘’‘’‘’

/billing directory (where invoice ninja is installed)

‘’‘’‘’‘’‘’’

RewriteEngine On RewriteRule "^.env" - [F,L] # RewriteRule "^storage" - [F,L] RewriteRule ^(.well-known)($|/) - [L]

RewriteRule ^(.*)$ public/$1 [L]

# INTERNET EXPLORER

----------------------------------------------------------------------

| Iframes cookies |

----------------------------------------------------------------------

Allow cookies to be set from iframes in Internet Explorer.

Header set P3P "policyref=\"/w3c/p3p.xml\", CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\""

# MEDIA TYPES AND CHARACTER ENCODINGS

----------------------------------------------------------------------

| Character encodings |

----------------------------------------------------------------------

Serve all resources labeled as text/html or text/plain

with the media type charset parameter set to UTF-8.

AddDefaultCharset utf-8

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Serve the following file types with the media type charset

parameter set to UTF-8.

AddCharset utf-8 .atom \ .bbaw \ .css \ .geojson \ .js \ .json \ .jsonld \ .manifest \ .rdf \ .rss \ .topojson \ .vtt \ .webapp \ .webmanifest \ .xloc \ .xml

# WEB PERFORMANCE

----------------------------------------------------------------------

| Compression |

----------------------------------------------------------------------

# Force compression for mangled headers.
# https://developer.yahoo.com/blogs/ydn/pushing-beyond-gzipping-25601.html

<IfModule mod_setenvif.c>
    <IfModule mod_headers.c>
        SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
        RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
    </IfModule>
</IfModule>

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Map certain file types to the specified encoding type in order to
# make Apache serve them with the appropriate `Content-Encoding` HTTP
# response header (this will NOT make Apache compress them!).

# If the following file types wouldn't be served without the appropriate
# `Content-Enable` HTTP response header, client applications (e.g.:
# browsers) wouldn't know that they first need to uncompress the response,
# and thus, wouldn't be able to understand the content.

# xhttpd.apache.org/docs/current/mod/mod_mime.html#addencoding

<IfModule mod_mime.c>
    AddEncoding gzip              svgz
</IfModule>

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Compress all output labeled with one of the following media types.

# IMPORTANT: For Apache versions below 2.3.7 you don't need to enable
# `mod_filter` and can remove the `<IfModule mod_filter.c>` & `</IfModule>`
# lines as `AddOutputFilterByType` is still in the core directives.

<IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE "application/atom+xml" \
                                  "application/javascript" \
                                  "application/json" \
                                  "application/ld+json" \
                                  "application/manifest+json" \
                                  "application/rdf+xml" \
                                  "application/rss+xml" \
                                  "application/schema+json" \
                                  "application/vnd.geo+json" \
                                  "application/vnd.ms-fontobject" \
                                  "application/x-font-ttf" \
                                  "application/x-web-app-manifest+json" \
                                  "application/xhtml+xml" \
                                  "application/xml" \
                                  "font/opentype" \
                                  "image/svg+xml" \
                                  "image/x-icon" \
                                  "text/cache-manifest" \
                                  "text/css" \
                                  "text/html" \
                                  "text/javascript" \
                                  "text/plain" \
                                  "text/vtt" \
                                  "text/x-component" \
                                  "text/xml"
</IfModule>

‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’

now for no reason, getting 404 error on all old and new invoices link and also while just created and about to email someone.

404 error gone itself, (seems very unstable/un trustful) but the main stripe issue still remains…

i am expecting help on stripe issue guys

I’m not able to help with that issue but Ive tagged the developers who can help. I’m sure they’ll reply when they’re online.

1 Like

Your URL path to the assets such as livewire.js is invalid, you’ll need to update the path to include “billing”

ok, i know that path is wrong it needs to be corrected but where/how to?

env, htaccess and all other has correct data already.

don’t you have any idea on this guys? who’ll have then?

so no support guys?

still seeking for help…

@david do you have any other ideas?

Sorry, no other suggestions.