Having same error but i use Paypal. Cannot add payment method.
Also I have paypal enabled but the “add payment method” button only shows credit card as an option, which then fails with error 500. PP payment do work for invoices.
I updated today to latest version and issue persists.
production.ERROR: Symfony\Component\HttpFoundation\Response::setContent(): Argument #1 ($content) must be of type ?string, App\PaymentDrivers\PayPalRestPaymentDriver given, called in /home/banayrlg/invoice.xxxxxx.com/vendor/laravel/framework/src/Illuminate/Http/Response.php on line 72 {“userId”:36,“exception”:"[object] (TypeError(code: 0): Symfony\Component\HttpFoundation\Response::setContent(): Argument #1 ($content) must be of type ?string, App\PaymentDrivers\PayPalRestPaymentDriver given, called in /home/banayrlg/invoice.xxxx.com/vendor/laravel/framework/src/Illuminate/Http/Response.php on line 72 at /home/banayrlg/invoice.xxxx.com/vendor/symfony/http-foundation/Response.php:449)
Payfast is set up correctly, once the user/client clicks pay now it collects personal info then redirects and error 500. I assume it is something being blocked either ports or something any ideas?
In case it helps anyone, I noticed when you are creating the API key in PayPal, there are checkboxes to enable the additional options for Venmo and PayPal. This works in the customer portal to allow payment by credit/debit, paypal, and Venmo. Also make sure you are adding the key to your production environment not your sandbox.
However, I’m also getting the 500 error on trying to add a saved payment method and found a help document saying to recreate the API key as there needs additional permissions. I tried enabling “vault” for saved payments in my new API key but I’m still getting the 500 error when trying to add a payment method??
Thanks for the reply! No error in the Invoice Ninja system logs. No error on my server. Console on the page where I’m getting the error only includes: Failed to load resource: the server responded with a status of 500 (Internal Server Error)
If you see a 500 error in the app the details will be logged to either the web server error logs or the application error logs in the storage/logs folder.
I dug a little deeper in my server files (invoice ninja is installed at a subdomain, so it was in a different spot) I replaced my actual domain with “MYDOMAIN”
[2025-10-09 18:13:37] production.ERROR: Symfony\Component\HttpFoundation\Response::setContent(): Argument #1 ($content) must be of type ?string, App\PaymentDrivers\PayPalRestPaymentDriver given, called in /home/MYDOMAIN/vendor/laravel/framework/src/Illuminate/Http/Response.php on line 82 {“userId”:2,“exception”:"[object] (TypeError(code: 0): Symfony\Component\HttpFoundation\Response::setContent(): Argument #1 ($content) must be of type ?string, App\PaymentDrivers\PayPalRestPaymentDriver given, called in /home/MYDOMAIN/vendor/laravel/framework/src/Illuminate/Http/Response.php on line 82 at /home/MYDOMAIN/vendor/symfony/http-foundation/Response.php:420)
[stacktrace]