PackagesPayment providers

Payment providers

Pluggable payment providers implementing the PaymentProvider interface — Stripe, Easypay, and Ifthenpay.

All payment providers implement the same PaymentProvider interface from @prood/types. The checkout state machine and @prood/commerce factory work with any registered provider.

Available providers

ProviderRegionMethodsDoc
StripeInternationalCards, plus Apple Pay and Google Pay where you've enabled them, via the Payment ElementStripe
EasypayPortugalMultibanco, MB WAY, cardEasypay
IfthenpayPortugalMultibanco, MB WAY, cardIfthenpay

How providers are loaded

Drag to pan · Scroll to zoom

Credentials exist only per store, in the dashboard. There is no environment fallback. A session uses one provider: the first the store has connected and turned on, in the order Stripe, Easypay, Ifthenpay. See Payment integration guide.

Interface

Every provider implements:

MethodPurpose
createSession()Start a charge, Checkout Session or reference
confirmSession()Verify after redirect or async completion
refund()Full or partial refund
verifyWebhook()Validate provider signature on webhook payload