Skip to content

Commit 6dd63e9

Browse files
authored
Merge pull request refly-ai#807 from refly-ai/feat/stripe-consent-collection
feat(api): add consent collection to subscription creation
2 parents bc4916f + baefa9a commit 6dd63e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/api/src/modules/subscription/subscription.service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ export class SubscriptionService implements OnModuleInit {
153153
customer: customerId || undefined,
154154
customer_email: !customerId ? userPo?.email : undefined,
155155
allow_promotion_codes: true,
156+
consent_collection: {
157+
terms_of_service: 'required',
158+
},
156159
});
157160

158161
await this.prisma.$transaction([

0 commit comments

Comments
 (0)