Foodtruck Order — TypeScript Reference - v0.1.0
    Preparing search index...

    Narrow application port every checkout adapter implements.

    Adapters translate their provider protocol, authentication, formats, and error vocabulary into this contract. They never return provider-specific values, and the application never sees one.

    interface CheckoutGateway {
        charge(
            request: CheckoutRequest,
            context?: OperationContext,
        ): Promise<CheckoutResult>;
    }
    Index