alepha@docs:~/framework/docs/packages/@alepha-commerce$
cat checkout.md | pretty1 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
AddressRulesProvider- Per-country address rules for the EU.CheckoutPaymentProvider- Bridges a checkout session to a payment rail.EmbeddedCheckoutPayment- Takes payment in a card field hosted on our own page.OrderDocumentsProvider- What documents exist for an order - invoice numbers, in practice.RedirectCheckoutPayment- Takes payment by sending the browser to the PSP's hosted page.ShippingQuoteProvider- Where the checkout asks what delivery costs.VatNumberChecker- Asks whether a VAT number exists. Abstract so a shop can use its own source