feat(payment): expand Stripe methods and checkout handoff

This commit is contained in:
Codex
2026-07-28 16:27:03 +08:00
parent fcb2492118
commit aee35353a3
42 changed files with 1151 additions and 92 deletions
+18
View File
@@ -0,0 +1,18 @@
import type {
CheckoutHandoffCreateResponse,
CheckoutIntent,
} from "@/data/schemas/auth";
import { getAuthRepository } from "@/data/repositories/auth_repository";
import type { Result } from "@/utils/result";
export function createCheckoutHandoff(
checkoutIntent: CheckoutIntent,
): Promise<Result<CheckoutHandoffCreateResponse>> {
return getAuthRepository().createCheckoutHandoff(checkoutIntent);
}
export function consumeCheckoutHandoff(
handoffToken: string,
): Promise<Result<CheckoutIntent>> {
return getAuthRepository().consumeCheckoutHandoff(handoffToken);
}