When adding the payment method in the invoice ninja billing portal, we get
She gets the 500 | Server error.
On debug mode is active, we get see:
For better readability, in text format
in /var/www/ninja/storage/framework/views/07a752448d331c4e99b19cc64552cec815c34aea.php (line 3)
<?php $__env->startSection('gateway_head'); ?>
<meta name="stripe-publishable-key" content="<?php echo e($gateway->getPublishableKey()); ?>">
<meta name="stripe-account-id" content="<?php echo e($gateway->company_gateway->getConfigField('account_id')); ?>">
<meta name="stripe-secret" content="<?php echo e($intent->client_secret); ?>">
<meta name="only-authorization" content="true">
<meta name="stripe-token" content="">
<?php $__env->stopSection(); ?>
Call to a member function getConfigField() on null (View: /var/www/ninja/resources/views/portal/ninja2020/gateways/stripe/credit_card/authorize.blade.php)
Debian container running:
Thanks for reporting this!
cc @david @ben
I have a fix for this in the next release.
No change with php artisan view:clear
I am currently using 5.1.53-C47.
Do you think will help to update to an already released version?
This is what happened…
I have downloaded the v5-stable files from the Github and replace the ones I had.
I only kept .env and config/*
Then PHP artesian optimize and the problem is gone.
Now, the only thing not working that I am aware of is the history of recurring invoices, but that is a topic for another thread.
In my case, it is trying to access a non-existing view. I have tried the recommended steps except that i already am on a “fresh” install from yesterday:
[previous exception] [object] (Error(code: 0): Call to a member function getConfigField() on null at myninja/storage/framework/views/d119336452f806ead635ed1daf48bc294fab6fd1.php:2)
However forcing the customer to add their banking details (i assume?) is not so userfriendly anyway – i only want to have an easy display of my banking details (and the invoice number) when using the subscription feature… in case a customer does not want to use a suggested payment provider.
Maybe there is something i am not realizing yet tho. cc @hillel
Maybe you can configure a client portal message?
I couldn’t find any suitable option for what i wanted to archive, but it made me realize that a custom online-payment provider pretty much does the job, as there i can gather the needed information for invoice generation