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
- ChannelAware
- HasCustomFields
Members
constructor
(input?: DeepPartial<PaymentMethod>) => PaymentMethod
name
string
code
string
description
string
enabled
boolean
checker
ConfigurableOperation | null
handler
ConfigurableOperation
channels
Channel[]
customFields
CustomPaymentMethodFields