Skip to content

Stripe Product Setup

Benson Cho edited this page Jun 26, 2024 · 3 revisions

Overview

This page should reflect the keys/values in the file server\src\business-layer\utils\StripeProductMetadata.ts.

Keys For Products

Key Description Possible Values
membership_type Used when creating products in stripe for memberships uoa_returning or uoa_new or other_returning or other_new
lodge_pricing_type Whether or not to charge the user $40 or $60 based for a booking - only single fridays or saturday nights cost $60 normal or single_friday_or_saturday

Keys For Checkout Sessions (is NOT controlled through stripe dashboard)

Key Description Possible Values
checkout_type Used when creating a checkout session with createCheckoutSession in server\src\business-layer\services\StripeService.ts. booking or membership
booking_slot Serialized array of booking_slot ids, for retrieval on webhook e.g ["ef40TsK5emACG5K08j2n", "Zx0hVyCax6YhTl9PRcTq"]
start_date a date string that indicates the first date (inclusive) for the booking session 27/04/2021
end_date a date string that indicates the last date (inclusive) for the booking session 27/04/2021

How to set up metadata in stripe

After clicking the Add Product button in the Product Catalog of the Stripe dashboard,

image

Fill in the appropriate key with one of the given values from the above table (take care to note not all keys are to be used for product creation).