BNB Payment Gateway Integration & Hotel Booking System Upgrade

The Pema by Realm

In progress · Started

Full-Stack / Payments / Booking Systems

The Pema by Realm booking interface with check-in and check-out dates, guest counts, and room search.
Screenshot 1 of 1: Room search & reservations

The Pema by Realm is upgrading its booking site so guests can pay through BNB and the hotel can keep payments, reservations and room availability in sync. I lead the three-person team and work across the interface and backend. The upgrade is still in progress.

Client & programme
The Pema by Realm, Thimphu
My role
Team lead & full-stack developer
Collaboration
Three-person development team
Project status
Upgrade & integration in progress

Adding payments to an existing booking site

The hotel already takes reservations through a guest website and manages rooms through an admin interface. It needed BNB international payments to fit that existing process.

A guest should see the same room details from listing to checkout, and the hotel needs to know whether a room is available and whether the payment succeeded.

My role in the booking and payment upgrade

I co-wrote the upgrade proposal with the other two developers. I lead the implementation and coordinate with the hotel, including on what we need to test before handover.

My development work covers payment integration, booking status, room management, availability checks and admin workflows.

Keeping room details up to date

Hotel staff should be able to add or update a room without a developer changing a separate page for it. We’re moving the booking screens towards room records managed through the admin interface.

That means guests should see the descriptions, photos, amenities, rates and capacity that hotel staff maintain.

Linking each payment to its reservation

In the planned flow, the server checks room availability before payment and verifies the provider’s result before a booking is treated as paid.

  1. Select and validate

    The guest selects a room and dates. The server validates the request and checks available inventory before the reservation can proceed.

  2. Prepare the transaction

    Booking details and a transaction reference connect the payment request to the corresponding reservation.

  3. Initiate payment

    The guest continues through the BNB-supported payment process, with the application tracking the pending transaction.

  4. Verify the result

    The backend verifies the provider’s result through its supported authoritative mechanism before treating the booking as paid.

  5. Update and communicate

    Booking and payment records reflect success, failure, or cancellation, and the guest receives a response appropriate to that result.

Checking availability on the server

We’re extending the existing Node.js, Express and MongoDB application. The site can show guests which dates to choose, but the server checks the request again before a booking can go ahead.

The test plan covers conflicting requests as well as ordinary bookings. Room and reservation changes remain restricted to authorised hotel staff.

Testing failed and cancelled payments

The plan covers room updates, date and availability checks, booking creation and protected admin actions. A successful, failed or cancelled payment should leave a record that hotel staff can understand.

We’ll also check the existing booking features affected by the changes before release and handover.

Implementation and release checks

The original plan listed November 2026 as the expected finish. Production testing and client acceptance are still pending in the project record. I don’t have a confirmed release date to share.

Technologies

Node.jsExpressJavaScriptMongoDBPayment Integration