Feature #9736
openFeature #9602: New Tenant Onboarding Flow
Feature #9605: Company Onboarding Flow
Convert Registration Payment to Stripe Subscription
100%
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.
Subtasks
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.