feat: clean up the stripe payment integration

This commit is contained in:
Ahmed Bouhuolia
2024-09-21 09:18:39 +02:00
parent f5a1d68c52
commit 11c56c75a4
18 changed files with 3144 additions and 484 deletions

View File

@@ -14,6 +14,11 @@ interface AccountSessionResponse {
client_secret: string;
}
/**
* Generates a new Stripe checkout session for the provided link ID.
* @param {CreateCheckoutSessionValues} values - The values required to create a checkout session.
* @returns {Promise<CreateCheckoutSessionResponse>} The response containing the checkout session details.
*/
export const useCreateStripeAccountSession = (
options?: UseMutationOptions<
AccountSessionResponse,