Project

General

Profile

Edit Copy Actions

Feature #9736

open

Feature #9602: New Tenant Onboarding Flow

Feature #9605: Company Onboarding Flow

Convert Registration Payment to Stripe Subscription

Added by Pavan Kumar Murala 26 days ago. Updated 25 days ago.

Status:
Resolved
Priority:
Normal
Target version:
-
Start date:
07/09/2026
Due date:
07/10/2026 (25 days late)
% Done:

100%

Estimated time:
8:00 h
Spent time:

Description

Replace the current one-time Stripe payment during company registration with Stripe Subscription.
When a user selects a subscription plan:
Create or retrieve the Stripe Customer.
Create the Stripe Subscription using the selected priceId.
Save the subscription details in the database.
Activate the company after successful subscription.
Handle Stripe webhook events for:
Subscription Created
Invoice Paid
Payment Failed
Subscription Updated
Subscription Cancelled

Acceptance Criteria:

Registration uses recurring subscription instead of one-time payment.
Subscription details are stored successfully.
Company activation depends on successful subscription.
Webhooks update subscription status correctly.
Failed payments and subscription cancellations are handled appropriately.


Add

Subtasks


Add

Related issues

Updated by Pavan Kumar Murala 25 days ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Stripe automatically fires a checkout completion notification to our server.
The webhook handler captures this event, registers that the payment was successful, and maps the subscription ID and Stripe customer ID directly to the registered company account.
This triggers the automatic provisioning engine to prepare the company's POS database and account credentials.
The system compiles the order details (invoice number, plan code, billing cycle period, currency, and amount).
A PDF builder is executed to draw a formatted invoice receipt document on the fly.
The system fires an automated email notification to the customer containing a summary of the payment, with the generated receipt PDF attached as a file.
An internal database lock prevents duplicate emails from being dispatched for the same payment session.

Edit Copy Actions

Also available in: Atom PDF