ewngs / szamlazz.js

Node.js client for Szamlazz.hu
MIT License
37 stars 33 forks source link

Would it be possbile to integrate more PaymentMethods? #69

Closed villszer closed 2 months ago

villszer commented 2 months ago

My users are paying with Barion but there is no option in the PaymentMethod for that.

ert78gb commented 2 months ago

Based on the szamlazz.hu documentation the PaymentMethod is an extendable field.

When you create an new invoice just create a new PaymentMethod like

const invoice = new Invoice({
  ...
  paymentMethod: new PaymentMethod('my method', 'comment of my method'),
  ...
})
villszer commented 2 months ago

Wow, thank you very much, that sounds really good! Will try it.