Disable/Hide 'Add payment method' in client portal

Hey there!

First of all some basics:

InvoiceNinja Version v5.6.23-C123
Hosting type self-hosted
Runtime Docker
Operating System Debian 11
InvoiceNinja proxied True
Proxy Type Traefik
$ docker compose ps
NAME                 IMAGE                              COMMAND                  SERVICE              CREATED             STATUS              PORTS
invoiceninja         invoiceninja/invoiceninja:latest   "docker-entrypoint s…"   invoiceninja         5 minutes ago       Up 5 minutes        9000/tcp
nginx-invoiceninja   nginx                              "/docker-entrypoint.…"   nginx-invoiceninja   5 minutes ago       Up 5 minutes        80/tcp

I’d like to know if there is a posibility to hide or disable the button Add payment method in the client portal. I am a small entrepreneur (I hope that’s the correct translation) and I do not want my customers to pay via credit card.


P.S.

The button does not work in my setup. So even if I wanted to allow adding credit cards, it would not be possible. When trying to add a payment method, I get a whitepage - that’s it.

nginx-invoiceninja  | 2023-07-28T09:01:33.404328028Z 172.18.0.2 - - [28/Jul/2023:09:01:33 +0000] "GET /client/payment_methods/create?method=1 HTTP/1.1" 200 5 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "<X-REAL-IP>"
invoiceninja        | 2023-07-28T09:01:33.411791583Z 172.19.0.4 -  28/Jul/2023:09:01:33 +0000 "GET /index.php" 200
nginx-invoiceninja  | 2023-07-28T09:01:34.254467681Z 172.18.0.2 - - [28/Jul/2023:09:01:34 +0000] "GET /flutter_service_worker.js?v=5.6.23 HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" "<X-REAL-IP>"

I do not know what the HTTP 304 should mean in this context.

HTTP 304

304 Not Modified

The HTTP 304 Not Modified client redirection response code indicates that there is no need to retransmit the requested resources. It is an implicit redirection to a cached resource. This happens when the request method is a safe method, such as GET or HEAD, or when the request is conditional and uses an If-None-Match or an If-Modified-Since header.

The response must not contain a body and must include the headers that would have been sent in an equivalent 200 OK response: Cache-Control, Content-Location, Date, ETag, Expires, and Vary.

Source: 304 Not Modified - HTTP | MDN

Thanks in advance
@Access-InTech

Hi,

Try setting “Capture card” to “Off” on the settings tab when editing the payment gateway.

I’m sorry, but I don’t know where to find Capture card:


Settings and Limits/Fees are both empty (nothing set)

Okay, adding a new payment gateway with type Credit Card contains the setting you have mentioned.
In my case, I’ve deleted all payment gateways I do not need/want.

It looks like you’re using a custom gateway which doesn’t support capturing cards.

@david can you please advise?

1 Like

Hey there,

any ideas how to fix this?

Best regards
@Access-InTech

Some more words because I’ve asked the same question in another post…

@david do you have any thoughts?

1 Like