Paypal REST Issue

I’m fairly new to InvoiceNinja and the use of API’s, so please bear with me.

I self host Invoice Ninja v5.10.29-M164 using docker. I set up Paypal REST API initially, and it was working, but something changed in the last week and I’m struggling to understand what. Right now when a user in the client portal attempts to add a credit card the following error displays “500 — Server Error Check storage/logs for more details”

I started the stack with debug on and pulled the attached log, but I’m unsure how to fix it. I can’t tell if it’s something I configured wrong with Paypal or if it’s something in my docker configuration.

Any help is greatly appreciated!

That looks odd.

Is the app working otherwise? I am unable to recreate the issue.

Can you advise the PHP version you are using

Hey David!

App is working great otherwise. I actually just set up Stripe API instead last night and it worked. I’ve tried PayPal Rest API and PayPal NVP/SOAP but neither has worked.

PHP 8.2.23

Just to confirm, when you say add a payment method.

Do you mean trying to pay an invoice?

Can you try disabling all the payment methods except paypal, and see if you can go through the full payment flow.

Correct!

Client Portal > Payment Method > Add Payment Method > Credit Card

I created another API ID/Secret on my Paypal Business account, and added a payment gateway in InvoiceNinja (Health check was SUCCESS), then archived any other payment methods, tested and got the same 500 error back again.

Which version are you on? I don’t think payment method is supported until a payment is made with paypal.