commercetools-stripe API
Everything the package exports, by the path you import it from. Open an export for its signature and options.
@evolve-framework/commercetools-stripe
StripePaymentAdapter and its options, configuration and client.
Classes
StripePaymentAdapterStripe as a commercetools payment provider, offering card, iDEAL, Bancontact, PayPal and Klarna as the active payment method configuration enables them.
import { StripePaymentAdapter } from "@evolve-framework/commercetools-stripe";Extends BasePaymentAdapter
new StripePaymentAdapter(options: StripePaymentAdapterOptions)| Option | Type | Description |
|---|---|---|
clientFactory | ClientFactory | Pre-configured commercetools |
config | StripeConfig | Stripe credentials and runtime settings used by the SDK and routes. |
Functions
createStripeClient
import { createStripeClient } from "@evolve-framework/commercetools-stripe";function createStripeClient(config: StripeConfig): Stripe| Option | Type | Description |
|---|---|---|
apiKey | string | Stripe secret API key (sk_*). |
account | string | Stripe connected account id used when issuing API calls. |
webhookSecret | string | Endpoint signing secret (whsec_*) used to validate webhook signatures. |
serverUrl | string | Externally reachable base URL of this service; used to build redirect URLs. |
Returns Stripe
Types
MetaData
import { type MetaData } from "@evolve-framework/commercetools-stripe";export type MetaData = { targetId: string; targetType: string; paymentId: string; paymentMethodArgs?: string;};@evolve-framework/commercetools-stripe/testing
An MSW server with the mocked commercetools project, for testing a service that uses the adapter.
Constants
mswServer
import { mswServer } from "@evolve-framework/commercetools-stripe/testing";const mswServer: SetupServerNot listed: 2 options types. They appear as the tables under the constructors and functions they type.

