@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 12 lines 381 Bytes
Raw
1 import { Payments } from "@bank/domain/Settlement/Payments.external";
2 import * as Effect from "effect/Effect";
3
4 /**
5 * A stand-in adapter for a payment processor. Swap it for a Stripe HTTP
6 * adapter in production.
7 */
8 export const StripePayments = Payments.toLayer(
9 Effect.succeed({
10 refund: ({ settlementId }) => Effect.succeed({ refundId: `re_${settlementId}` }),
11 }),
12 );