feat: stripe connect atom (#16190)
* update stripe service * init endpoints for stripe connect atom * update stripe controller * update stripe service * add generic function to create app credential * update stripe controller * update stripe service * add handler to construct redirectUrl * restructure files for better readibility * better naming * replace STRIPE_PRIVATE_KEY with STRIPE_API_KEY * fix naming * remove unused query param * frontend for stripe connect atom * custom hooks for stripe connect atom * abstract response schema into separate file * fixup * input dto for stripe controller * update stripe module * update endpoints module to include stripe module * updatte stripe module * fixups and add check endpoint to stripe controller * add method to check stripe account * add helper fn to get on error return value * update stripe connect atom * custom hook to check user stripe credentials * add stripe connect to atom exports * update stripe connect styling * add qs stringify package * translations for stripe connect atom * updaet typing * update output dtos for stripe endpoints * add error message * fix merge conflicts * add stripe connect atom to atom exports * add query param for error rediect link * add handler for onCheck success and error redirect link * update index value * fix merge conflicts * fixup * resolve merge conflicts * war with merge conflicts * update examples app --------- Co-authored-by: Morgan <[email protected]>
This commit is contained in:
1 parent
f46c3c65fb
commit
c88811aeee
17 files changed
+522
-7
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { Navbar } from "@/components/Navbar";
|
||||
import { Inter, Poppins } from "next/font/google";
|
||||
|
||||
import { GcalConnect, Connect } from "@calcom/atoms";
|
||||
import { Connect, StripeConnect } from "@calcom/atoms";
|
||||
|
||||
const inter = Inter({ subsets: ["latin"] });
|
||||
const poppins = Poppins({ subsets: ["latin"], weight: ["400", "800"] });
|
||||
@@ -20,7 +20,7 @@ export default function Home(props: { calUsername: string; calEmail: string }) {
|
||||
To get started, connect your google calendar.
|
||||
</p>
|
||||
<div className="flex flex-row gap-4">
|
||||
<GcalConnect
|
||||
<Connect.GoogleCalendar
|
||||
redir="http://localhost:4321/calendars"
|
||||
className="h-[40px] bg-gradient-to-r from-[#8A2387] via-[#E94057] to-[#F27121] text-center text-base font-semibold text-transparent text-white hover:bg-orange-700"
|
||||
/>
|
||||
@@ -33,6 +33,13 @@ export default function Home(props: { calUsername: string; calEmail: string }) {
|
||||
isMultiCalendar={true}
|
||||
className="h-[40px] bg-gradient-to-r from-[#8A2387] via-[#E94057] to-[#F27121] text-center text-base font-semibold text-transparent text-white hover:bg-orange-700"
|
||||
/>
|
||||
<StripeConnect
|
||||
className="h-[40px] bg-gradient-to-r from-[#E94057] via-[#E94057] to-[#E94057] text-center text-base font-semibold text-transparent text-white hover:bg-orange-700"
|
||||
errorRedir="http://localhost:4321/availability"
|
||||
onCheckSuccess={() => {
|
||||
console.log("stripe account connected successfully".toLocaleUpperCase());
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="hidden lg:block">
|
||||
|
||||
Reference in new issue
Block a user