Client ID
newtowncentre
Web Links
Customer Portal: https://app.newtowncentre.org/customer
Room Hire Booking (public view): https://app.newtowncentre.org/customer/booking
Admin Portal: https://app.newtowncentre.org/provider
DNS records maintained by Brendan King [email protected]
Web App Setup
BookingControllerV2
Lockers
Lockers are setup as bookable resources (ActivityCategory) on the booking calendar under venue id #3.
Locker fees are added to the WebBookingTransaction invoice as “add-on” fees.
Locker pricing is configured in the customer properties under the prefix
LOCKER_FEE_
e.g. LOCKER_FEE_LOCKER1=3
where LOCKER1 is the booking resource id.
See
NewtownCentreBookingController.getLockerFee(resourceId)
Cancel a Booking
Booking cancellation is done by the BookingCommonController via
/secure/customer/booking/private/cancel-booking?id=1234
where 1234 is the booking Activity id.
The controller then calls
WebBookingService_cancelWebBookingSelfCancellation(webBookingId)
to perform the cancellation on the backend. User-initiated cancellation is configured to do the following
- enforce cancellation policy (e.g. not allowed to cancel close to booking date)
- send notification email to hirer
- issue refund (if any)
- soft-delete activity record, marked as cancelled
For Newtown Centre, the booking cancellation is performed by a custom handler called
NewtownCentreWebBookingCancellationHandler
Direct Debit Payment Option
The Direct Debit option is different to the Credit Card payment option. Unlike credit card payment which is a one-off instant online payment, DD option will schedule debit every 4 weeks.
DD option is only available for long term recurring bookings. The requirements are:
-
- Must be a recurring booking.
-
- Must have 10 or more repeating instances in the entire recurring booking.
- The first and last date must be more than 4 weeks or longer apart.
The 3rd point above is to disallow DD for short term recurring bookings, e.g. a daily recurring booking that goes for 10 days should not be allowed to pay by DD.
For more details see:
-
- BookingFormValidator
- BookingControllerV2.checkDirectDebitMinBookCount(…)
- BookingControllerV2.checkDirectDebitMinDaysStartToFinish(…)
NewtownCentreDirectDebitJob
This job is responsible for the billing of recurring bookings that are on Direct Debit. It runs every 10 min. It looks for WebBookingTransactions that has “nextDebitDate” on today.
For a new recurring booking the first “nextDebitDate” will be the date of the first booking activity then every 4 weeks thereafter.
GenerateCreditNotesForBondJob
This job runs 2am daily. It is responsible for handling bonds that are ready for release.
Stripe Payment – Test Credit Card
For Stripe payment in test mode: use card number 5454545454545454 and any future date and ccv.