01 logo

Case Study - Implementing a Marketplace

By Indrajit Roy / 7 min read

By Logic Square TechnologiesPublished 5 years ago • 3 min read

Introduction

We implemented a system that allows multiple co-working spaces to list their properties and allow renters to book seats at these co-working spaces.

We used Stripe Connect to implement payments including distributing the payment to the vendor/space owner after deducting a configurable platform share.

There are a number of important issues we handled in implementing this as a robust system that can work well in the real world with multiple edge case scenarios being handled.

We used an open-source npm package developed by our team to implement large parts of the payment system.

Before we dive deep in different modules, let us first discuss the types of users in our system:

  • User/Renter - They are the main users of the system, they can book any co-working space available for booking in our system.
  • Provider - These users can list their properties for renters to book, they also get the ability to preview the booking status of their listed properties in the system.
  • Sub Provider - These users are invited by providers to manage their listed properties in the system.
  • Admin - They are the moderators of the system. Users, providers, and sub-providers can contact admin regarding any query.

Credits

Huddlespot is just a platform and its ultimate goal is to connect the renter and the provider seamlessly. Sometimes users may face unsatisfactory experience with his/her booking made through our system. The system has to rely on the provider for co-working space booking experiences. Sometimes, to compensate for the unsatisfactory experiences faced by any events outside the system, the administrator can add credits to the user’s account which can be redeemed in their next booking made through the Huddlespot app. Credits can also be earned by inviting new users to Huddlespot platform. Referrer gets a fixed amount of credit set by the administrator which is credited to their Huddlespot account at the initiation of the invitee’s first booking. There is a weekly settlement of accounts by the system admin. This is to compensate the providers when credits are used by the renter towards paying for any booking of their property by the user.

Cancellations

After booking a co-working space from the system, there may be situations where the user may want to cancel the booking due to some reason. Considering both the user and the provider, cancellation charges change dynamically depending on the time left for the booking starting to start at the time of cancellation. The cancellation charge is deducted from the total booking amount and the remaining balance is refunded to the user using the stripe refund module. If the booking involved credits, then after deduction of cancellation charge the remaining credit is reverted back to the user account. To simplify this, we have divided it into 4 categories -

  • The booking cancellation time is less than 24 hours than the starting time - In this scenario, if the user cancels the booking then he/she will face high cancellation charges as it is not possible for the provider to get a replacement in such a short period.
  • The booking cancellation time is more than 24 hours but less than 48 hours than the starting time - In this scenario, if the user cancels the booking then he/she will face cancellation charges but less than the previous one. Even though it is difficult for the provider to get a replacement, the system is designed to consider on behalf of both the user and the provider.
  • The booking cancellation time is more than 48 hours but less than 1 week than the starting time - In this scenario, if the user cancels the booking then he/she will face low cancellation charges and the provider gets sufficient time to get replacement as well as a part of the actual booking amount in form cancellation charges.
  • The booking cancellation time is more than 1 week than the starting time - In this scenario, if the user cancels the booking then no cancellation charge is applied while cancellation.

This doesn’t stop here, booking cancellation charge percentage changes depending on the type of duration opted for while booking the seats at the coworking space.

The above scenarios are based on if the user cancels the booking. The system also accepts cancellation which can be initiated by the administrator or the provider/sub provider of the property. In such cases, the booking amount is fully refunded to the user. In addition, the system admin may reward credits to the user as a token for the convenience caused to them by a short notice cancelation by the provider.

Read more...

how to

About the Creator

Logic Square Technologies

Logic Square Technologies is a leading company in digital services like - Digital Marketing, SEO, Web and App Development that provides services in the USA.

Explore our top services:

- Web & App Development Services

- SEO Services

Enjoyed the story? Support the Creator.

Subscribe for free to receive all their stories in your feed.

Subscribe For Free

Reader insights

Comments

There are no comments for this story

Be the first to respond and start the conversation.

Sign in to comment
    Written by Logic Square Technologies