ubicloud/views/project
Enes Cakir 8f286b147a Add Pay Now button to unpaid invoices
Unfortunately, credit cards sometimes encounter issues with offline
recurring payments because they require 3D Secure. Several customers
have experienced this problem.

Currently, we manually create payment links for them after the invoice
is finalized at the start of the month. Once they complete the payment,
we mark the invoice as paid.

To automate this, I've added a "Pay Now" button to unpaid invoices.
Clicking it creates a checkout session and redirects the customer to
Stripe’s hosted payment page. This uses logic similar to adding credit
cards, but instead of "setup" mode, we now use "payment" mode. On the
success URL, we check the status of the session and the invoice ID to
mark the invoice as paid.
2025-10-01 18:52:48 +03:00
..
access-control.erb Remove role="form" attribute on form tags 2025-09-09 02:36:02 +09:00
billing.erb Add Pay Now button to unpaid invoices 2025-10-01 18:52:48 +03:00
create.erb Handle csrf tags implicitly using form method in Clover 2025-09-06 01:06:18 +09:00
dashboard.erb Add Kubernetes card and tile to the console dashboard 2025-09-01 15:21:45 +02:00
index.erb Stop using serializer for project index web route 2025-08-26 02:08:44 +09:00
invoice.erb Switch from using [] to using member methods for when using the invoice serializer 2025-08-26 02:08:44 +09:00
show.erb Allow authorization methods to accept objects in addition to ids 2025-09-18 02:56:28 +09:00
tag-list.erb Remove role="form" attribute on form tags 2025-09-09 02:36:02 +09:00
tag.erb Remove role="form" attribute on form tags 2025-09-09 02:36:02 +09:00
token.erb Bump Forme version to 2.7.0 2025-09-18 02:28:59 +09:00
user-tabbar.erb Switch @project_data[:path] -> @project.path 2025-08-26 02:08:44 +09:00
user.erb Remove role="form" attribute on form tags 2025-09-09 02:36:02 +09:00