Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions auto-analyst-frontend/app/api/trial/start/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,15 @@ export async function POST(request: NextRequest) {
trial_end: trialEndTimestamp,
expand: ['latest_invoice.payment_intent'],
payment_behavior: 'default_incomplete',
default_payment_method: setupIntent.payment_method as string,
payment_settings: {
save_default_payment_method: 'on_subscription',
},
trial_settings: {
end_behavior: {
missing_payment_method: 'cancel'
}
},
metadata: {
userId: userId || 'anonymous',
planName: metadata.planName || planName || 'Standard',
Expand Down
4 changes: 2 additions & 2 deletions auto-analyst-frontend/lib/credits-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export interface TrialConfig {
* Trial period configuration - Change here to update across the entire app
*/
export const TRIAL_CONFIG: TrialConfig = {
duration: 2,
duration: 15,
unit: 'minutes',
displayText: '2-Minute Free Trial',
displayText: '15-Minute Free Trial',
credits: 500
}

Expand Down
Loading