Marketplace
>
createCheckoutSession
xStripe

createCheckoutSession

v
0.0.1
Latest Version
Likes
0
Installations
0
1
Views
0
1

Overview

Add an endpoint on your server that creates a Checkout Session. A Checkout Session controls what your customer sees in the Stripe-hosted payment page such as line items, the order amount and currency, and acceptable payment methods.

Usage

### How this function works This functions return an Stripe Checkout Session URL. The function requires to pass the stripe `priceId` and the `quantity` in the request. ### What do need to know - you need to pass the `priceId` and `quantity` when you call the function. - `priceId` is required, `quantity` defaults to 1 - this functions depends on [addNewUserToStripe](https://app.functions.store/app/marketplace/rainbow/addNewUserToStripe) to be installed and the should share the same `STRIPE_CUSTOMERS_COLLECTION_PATH` values - the request should be authenticated
Cost
FREE
Cost
Version
0.0.1
Language
JAVASCRIPT
Created At
Updated At
Workspace
xStripe
Tags
stripe
checkout
session
© 2023 Function Store