The best way to control Claude Code, Codex and more from any computer or phone
| 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 | ); |