cal/packages/app-store/stripepayment
Efraín Rochín d6fb0df64f
perf: tRPC procedures and middleware refactor (#8419)
* trpc procedures an middleware refactor

* allow use sessionMiddleware without a req object

* sync with the new tRPC structure

* tRPC refactor on routing form app

* import Prisma from @prisma/client

* Lazy load apps from appstore

* remove unrelated changes

* Add types for PaymentService

* type fixes

* Merge branch 'main' into roae85/cal-1514-set-the-user-session-only-on-the

* fix typo

* remove console.log

* remove explicit types from apstore object

* linter fixes

---------

Co-authored-by: Keith Williams <keithwillcode@gmail.com>
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
2023-05-09 19:27:05 +00:00
..
api Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
components Remove Intl.Provider (#8208) 2023-04-19 21:38:06 +00:00
lib perf: tRPC procedures and middleware refactor (#8419) 2023-05-09 19:27:05 +00:00
static #4252 Use vercel og to generate og images for meetings and apps. (#4943) 2022-10-18 11:46:22 -06:00
_metadata.ts chore/AppStore: Remove deprecated imageSrc and make the paths relative in logo (#8479) 2023-04-26 12:03:34 +01:00
DESCRIPTION.md chore/AppStore: Remove deprecated imageSrc and make the paths relative in logo (#8479) 2023-04-26 12:03:34 +01:00
index.ts feat/payment-service-6438-cal-767 (#6677) 2023-02-08 13:36:22 -07:00
LICENSE App Store (#1869) 2022-03-23 15:00:30 -07:00
package.json Upgrades prisma / Syncs packages (#6044) 2022-12-15 15:56:48 -07:00
README.md App Store (#1869) 2022-03-23 15:00:30 -07:00
zod.ts Stripe add the ability to place hold on cards (#8022) 2023-04-11 23:44:14 +02:00

Enterprise Edition

Welcome to the Enterprise Edition ("/ee") of Cal.com.

The /ee subfolder is the place for all the Pro features from our hosted plan and enterprise-grade features such as SSO, SAML, ADFS, OIDC, SCIM, SIEM, HRIS and much more.

WARNING: This package is copyrighted (unlike our main repo). You are not allowed to use this code to host your own version of app.cal.com without obtaining a proper license first

Setting up Stripe

  1. Create a stripe account or use an existing one. For testing, you should use all stripe dashboard functions with the Test-Mode toggle in the top right activated.
  2. Open Stripe ApiKeys save the token starting with pk_... to NEXT_PUBLIC_STRIPE_PUBLIC_KEY and sk_... to STRIPE_PRIVATE_KEY in the .env file.
  3. Open Stripe Connect Settings and activate OAuth for Standard Accounts
  4. Add <CALENDSO URL>/api/integrations/stripepayment/callback as redirect URL.
  5. Copy your client*id (ca*...) to STRIPE_CLIENT_ID in the .env file.
  6. Open Stripe Webhooks and add <CALENDSO URL>/api/integrations/stripepayment/webhook as webhook for connected applications.
  7. Select all payment_intent events for the webhook.
  8. Copy the webhook secret (whsec_...) to STRIPE_WEBHOOK_SECRET in the .env file.