This PR changes the way we handle the event registration. Starting with 2015 we need to collect a registration fee of 10,- € per ticket.
The registration process needs to be changed, so that user need to pay for their ticket before they receive their ticket.
As the number of tickets is limited per day, a new ticket state needs to be introduced: payment-pending which states that a ticket is reserved for a user but has not been paid. Only if the payment is recorded within 3 days the tickets will be marked paid and the user will receive them via email. If the tickets are not paid withing 3 days the registration and the unpaid tickets will be deleted thus freeing up ticket slots. If there are more registrations than available tickets the next registration from the waiting list is processed and tickets for this registration are created as payment-pending and the user is notified to initiate the payment.
[x] After payment has been recorded, mark ticket paid and send ticket to user
[ ] Deal with partially fulfilled registrations (there may be a case where someone has a reservation for two tickets, but does not confirm his reservation. Once he does only then tickets are created and there might not be tickets for both days).
This PR changes the way we handle the event registration. Starting with 2015 we need to collect a registration fee of 10,- € per ticket.
The registration process needs to be changed, so that user need to pay for their ticket before they receive their ticket.
As the number of tickets is limited per day, a new ticket state needs to be introduced:
payment-pending
which states that a ticket is reserved for a user but has not been paid. Only if the payment is recorded within 3 days the tickets will be markedpaid
and the user will receive them via email. If the tickets are not paid withing 3 days the registration and the unpaid tickets will be deleted thus freeing up ticket slots. If there are more registrations than available tickets the next registration from the waiting list is processed and tickets for this registration are created aspayment-pending
and the user is notified to initiate the payment.Testing
You can test this PR on https://bcrm.coderbyheart.de/. You can use your personal email address for buying tickets.
On Paypal use these credentials during the checkout: Login:
demo-kunde@barcamp-rheinmain.de
Password:2_Y2BFr7
Todo
payment-pending
andpaid
(Tickets are created, but not active, thus not send to user).paid
and send ticket to user