Skip to content

[CAL-4350] Accept stripe coupons on booking payment #12462

@elliotblackburn

Description

@elliotblackburn

Is your proposal related to a problem?

I'm using Cal.com to help a family member run a small business. So far it's been very successful and the hosted version is great! Today they decided they need to give a discount to a customer but it doesn't seem like there's a way to do this with cal.com + stripe at the moment.

Describe the solution you'd like

I've had a look around the code and it looks like allow_promotion_codes is being set to true in some places which setup stripe checkout sessions, but for some reason coupons are not allowed on the booking payment page. I'm guessing it should just be a case of setting this property in the correct place for booking payments, but not knowing the code I'm struggling to find the right place.

Describe alternatives you've considered

The only alternative I can think of so far is to skip cal.com altogether for these bookings. They'd then generate a stripe payment link and enter the calendar invite manually. This would be fine for me, but would be a bit much for my family member and also means the clients booking get significantly less control.

I'm open to alternative solutions though!

Additional context

I'm very happy to contribute the code for this, it's been a while since I've worked in JS/TS though and I'm not all that familiar with the project layout an architecture. If someone can point me to where the checkout session is being setup in this case, I'd be happy to have a go at adding it in. As I understand, it should really just be a case of setting allow_promotion_codes to true.

Requirement/Document

None that I'm aware of.


House rules
  • If this issue has a 🚨 needs approval label, don't start coding yet. Wait until a core member approves feature request by removing this label, then you can start coding.
    • For clarity: Non-core member issues automatically get the 🚨 needs approval label.
    • Your feature ideas are invaluable to us! However, they undergo review to ensure alignment with the product's direction.

CAL-4350

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions