Merge branch 'feature/stripe-embedded-onboarding'

This commit is contained in:
jackiettran
2026-01-02 18:27:16 -05:00
8 changed files with 243 additions and 39 deletions

View File

@@ -64,6 +64,22 @@ class StripeService {
}
}
static async createAccountSession(accountId) {
try {
const accountSession = await stripe.accountSessions.create({
account: accountId,
components: {
account_onboarding: { enabled: true },
},
});
return accountSession;
} catch (error) {
logger.error("Error creating account session", { error: error.message, stack: error.stack });
throw error;
}
}
static async createTransfer({
amount,
currency = "usd",