Merge branch 'feature/stripe-embedded-onboarding'
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user