PaymentMethod

PaymentMethod

A PaymentMethod is created automatically according to the configured PaymentMethodHandlers defined in the PaymentOptions config.

Signature

class PaymentMethod extends VendureEntity {
  constructor(input: DeepPartial<PaymentMethod>)
  @Column() code: string;
  @Column() enabled: boolean;
  @Column('simple-json') configArgs: ConfigArg[];
  createPayment(order: Order, metadata: PaymentMetadata) => ;
}

Members

constructor

method
type:
(input: DeepPartial<PaymentMethod>) => PaymentMethod

code

property
type:
string

enabled

property
type:
boolean

configArgs

property
type:
ConfigArg[]

createPayment

method
type:
(order: Order, metadata: PaymentMetadata) =>
alpha