This blog post elaborates on the recent addition of user billing form in Eventyay which is an open source event management solution which allows users to buy & sell tickets, organize events & promote their brand, developed by FOSSASIA. As this project moves forward with the implementation of event invoices coming up,. In the past few weeks, I have collaborated with fellow developers in planning the integration of event invoice payments and this is a necessary step for the same due to its involvement in order invoice templates. This implementation focuses on event invoices billing ( the calculated amount an event organiser has to pay to the platform for their event’s revenue ).
This form includes basic details like contact details, tax ID, billing location and additional information (if any). The following is a specimen of this form :
First step of this form creation is to employ the account/billing/payment-info route for serving the relevant model data to the frontend.
Since the field additions have been done in the user schema in the server side, the corresponding changes have to made in the ember user model as well.
This form has a speciality. Instead of using the current user information directly, it uses an intermediate object and employs manipulation in current user record only when the submit button is clicked. This has been implemented in the following way :
The usual form validations are employed as expected in this one too and works well in storing the invoice based information.
Related Work and Code Repository