PaymentMethod
PaymentMethod
A PaymentMethod is created automatically according to the configured PaymentMethodHandlers defined in the PaymentOptions config.
Signature
class PaymentMethod extends VendureEntity implements Translatable, ChannelAware, HasCustomFields {
    constructor(input?: DeepPartial<PaymentMethod>)
    name: LocaleString;
    @Column({ default: '' }) code: string;
    description: LocaleString;
    @OneToMany(type => PaymentMethodTranslation, translation => translation.base, { eager: true })
    translations: Array<Translation<PaymentMethod>>;
    @Column() enabled: boolean;
    @Column('simple-json', { nullable: true }) checker: ConfigurableOperation | null;
    @Column('simple-json') handler: ConfigurableOperation;
    @ManyToMany(type => Channel, channel => channel.paymentMethods)
    @JoinTable()
    channels: Channel[];
    @Column(type => CustomPaymentMethodFields)
    customFields: CustomPaymentMethodFields;
}
- 
Extends: VendureEntity
- 
Implements: Translatable,ChannelAware,HasCustomFields
constructor
method
(input?: DeepPartial<PaymentMethod>) => PaymentMethodname
property
LocaleStringcode
property
stringdescription
property
LocaleStringtranslations
property
Array<Translation<PaymentMethod>>enabled
property
booleanchecker
property
ConfigurableOperation | nullhandler
property
ConfigurableOperationchannels
property
Channel[]customFields
property
CustomPaymentMethodFields