TS
createPaymentMethodManager(
  type: string
): Promise<
  | ICardPaymentMethodManager
  | INativePaymentMethodManager
  | IRedirectPaymentMethodManager
  | IKlarnaPaymentMethodManager
  | IAchPaymentMethodManager
  | null
>

There are five types of manager that can be returned by this function, depending on the type provided as first argument: Card, Native, Redirect, Klarna Payment Method and ACH.

In case the the type specified is not supported, the function will return null instead.

Card

TS
createPaymentMethodManager(
	type: "PAYMENT_CARD",
	options?: PaymentMethodManagerOptions
): Promise<ICardPaymentMethodManager | null>

Create an instance of the ICardPaymentMethodManager, which can be used to manage credit card payments.

Parameters

Returns

Native

TS
createPaymentMethodManager(
	type: "PAYPAL" | "GOOGLE_PAY" | "APPLE_PAY",
): Promise<INativePaymentMethodManager | null>

Create an instance of the INativePaymentMethodManager, which can be used to manage native payment methods like PayPal, Google Pay, and Apple Pay.

Parameters

Returns

Redirect

TS
createPaymentMethodManager(
	type: PaymentMethodType,
): Promise<IRedirectPaymentMethodManager | null>

Create an instance of the IRedirectPaymentMethodManager, which can be used to manage redirect-based payment methods.

Parameters

Returns

Klarna

TS
createPaymentMethodManager(
	type: "KLARNA",
	options?: KlarnaPaymentMethodManagerOptions
): Promise<IKlarnaPaymentMethodManager | null>

Create an instance of the IKlarnaPaymentMethodManager, which can be used to manage Klarna specific payment methods which also require an extra form and user interaction.

Parameters

Returns

ACH

TS
createPaymentMethodManager(
	type: "STRIPE_ACH",
	options?: AchPaymentMethodManagerOptions
): Promise<IAchPaymentMethodManager | null>

Create an instance of the IAchPaymentMethodManager, which can be used to manage ACH payment methods which also require an extra form and the mandate confirmation.

Parameters

Returns