Need some work done? Post a Project Today
In need of building a dynamic form for selling tickets. each customer can buy one or more tickets, but each ticket must be assigned the personal details, including name, date of birth, gender, id, and phone. Depending on the number of tickets, it will dynamically calculate the total value, plus an additional donation can be added to the total value. Everytime a passenger is added/removed, the total purchase value will be recomputed. The id will be validated by calling a REST web service for obtaining the passengers fname/lname and status. If status is OK, the id will be accepted, if not rejected. The result of the we service call will be in JSON format.
Once all fields are properly entered (plus few additional simple text, drop-down, radiobox fields), and validated, the user can proceed to next page. At this point, the data will be written to the database, with an unpaid status. Depending if the user selected paypal or credit card option, the next page will be used to finalize the payment. If paypal, the system will lead to the standard paypal page (with descriptions properly filled up ) payment await for confirmation from paypal, and update the status in db accordingly, plus show a purchase confirmation / thank you page. If credit card option is selected, a payment form will be presented so user can enter credit card, exp date, cvv code, billing address, along with a summary of what is been purchased, including description and cost. A confirmation email shall be sent to user with a summary of the order.