🚨 Announcing Vendure v2 Beta

PaymentMethod

PaymentMethod

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

Signature

class PaymentMethod extends VendureEntity implements ChannelAware, HasCustomFields {
  constructor(input?: DeepPartial<PaymentMethod>)
  @Column({ default: '' }) name: string;
  @Column({ default: '' }) code: string;
  @Column({ default: '' }) description: string;
  @Column() enabled: boolean;
  @Column('simple-json', { nullable: true }) checker: ConfigurableOperation | null;
  @Column('simple-json') handler: ConfigurableOperation;
  @ManyToMany(type => Channel)
    @JoinTable()
    channels: Channel[];
  @Column(type => CustomPaymentMethodFields)
    customFields: CustomPaymentMethodFields;
}

Extends

Implements

Members

constructor

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

name

property
type:
string

code

property
type:
string

description

property
type:
string

enabled

property
type:
boolean

checker

property
type:
ConfigurableOperation | null

handler

property
type:
ConfigurableOperation

channels

property
type:
Channel[]

customFields

property
type:
CustomPaymentMethodFields