Skip to content

commercetools-paynl API

Everything the package exports, by the path you import it from. Open an export for its signature and options.

@evolve-framework/commercetools-paynl

PaynlPaymentAdapter and its options, configuration and client.

Classes

PaynlPaymentAdapterPay.nl as a commercetools payment provider.
import { PaynlPaymentAdapter } from "@evolve-framework/commercetools-paynl";

Extends BasePaymentAdapter

new PaynlPaymentAdapter(options: PaynlPaymentAdapterOptions)
OptionTypeDescription
clientFactoryClientFactory

Pre-configured commercetools ClientFactory, used to build a system request builder for commercetools reads/writes.

configPaynlConfig

Pay.nl credentials and runtime settings used by the SDK and routes.

Types

PaynlConfig
import { type PaynlConfig } from "@evolve-framework/commercetools-paynl";
export type PaynlConfig = {
credentials: {
atCode: string;
apiToken: string;
serviceId: string;
serviceSecret: string;
};
serverUrl: string;
environment: string;
paymentLogos?: Record<string, string>;
componentName?: string;
};
PaynlCredentials
import { type PaynlCredentials } from "@evolve-framework/commercetools-paynl";
export type PaynlCredentials = {
atCode: string;
apiToken: string;
serviceId: string;
serviceSecret: string;
};

@evolve-framework/commercetools-paynl/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-paynl/testing";
const mswServer: SetupServer

Not listed: 1 options types. They appear as the tables under the constructors and functions they type.