feat(payment): expand Stripe methods and checkout handoff
Docker Image / Build and Push Docker Image (push) Successful in 2m10s

This commit is contained in:
Codex
2026-07-28 16:27:03 +08:00
parent 2e402de15b
commit 59e4eac736
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);
}