alepha@docs:~/framework/docs/packages/@alepha-commerce$
cat checkout.md | pretty
1 min read
Last commit:

#@alepha/commerce - Checkout

#Installation

npm install @alepha/commerce

#Overview

Turns a cart into a paid order.

Depends on the cart module and on alepha/api/payments, which owns the intent lifecycle and the PSP adapters. Registers hosted-redirect payment by default - the one handoff every PSP supports - leaving an embedded card field to a substitution:

ts
1alepha.with({2  provide: CheckoutPaymentProvider,3  use: EmbeddedCheckoutPayment,4});

#API Reference

#Providers