ubicloud/views
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
..
account Remove role="form" attribute on form tags 2025-09-09 02:36:02 +09:00
admin Show ubid search form only for authenticated users 2025-09-27 21:50:20 +03:00
auth Remove role="form" attribute on form tags 2025-09-09 02:36:02 +09:00
components Move rename postgres database to Danger Zone in web UI 2025-09-17 01:43:20 +09:00
email Make EmailRenderer a Roda app using the mailer plugin 2025-02-05 10:16:51 -08:00
github Handle csrf tags implicitly using form method in Clover 2025-09-06 01:06:18 +09:00
inference Remove role="form" attribute on form tags 2025-09-09 02:36:02 +09:00
kubernetes-cluster Add UI for K8s Nodepool Scaling 2025-09-30 13:07:32 +03:00
layouts Omit "Integrations" sidebar heading if Github app is not configured 2025-09-17 01:42:06 +09:00
networking Allow authorization methods to accept objects in addition to ids 2025-09-18 02:56:28 +09:00
object Abstract postgres show page logic to be reusable by other objects 2025-08-30 01:25:25 +09:00
postgres Add VictoriaMetrics.client_for_project and PostgresServer.victoria_metrics_client 2025-09-27 02:10:55 +09:00
private-location Allow authorization methods to accept objects in addition to ids 2025-09-18 02:56:28 +09:00
project Add Pay Now button to unpaid invoices 2025-10-01 18:52:48 +03:00
vm Allow authorization methods to accept objects in addition to ids 2025-09-18 02:56:28 +09:00
cli.erb Handle errors raised by String#shellsplit in web shell 2025-09-18 06:44:42 +09:00
error.erb Revert "Revert "Update error response title with PascalCase type"" 2024-04-25 00:06:04 -07:00