* app initialization * btcpay-calcom payment * include logo and images * resolve comments * include USD and webhook cleaning * currency display * fix type error * payment service create error * type error fix * icon update * bot feedback update * Remove console * Remove currency suffix in price * fix coderRabbit comment * resolve extra comments * Use repositories and declarative installation ocode for app * use PrismaBookingPaymentRepository as well as fix UI view * Avoid fetching booking just for title which is already passed to create fn in handlePayment * fix type issues * return 200 if payment is already processed --------- Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Co-authored-by: Hariom Balhara <hariombalhara@gmail.com> Co-authored-by: Omar López <zomars@me.com>
20 lines
583 B
TypeScript
20 lines
583 B
TypeScript
import type { AppDeclarativeHandler } from "@calcom/types/AppHandler";
|
|
|
|
import { createDefaultInstallation } from "../../_utils/installation";
|
|
import appConfig from "../config.json";
|
|
|
|
const handler: AppDeclarativeHandler = {
|
|
appType: appConfig.type,
|
|
variant: appConfig.variant,
|
|
slug: appConfig.slug,
|
|
supportsMultipleInstalls: false,
|
|
handlerType: "add",
|
|
redirect: {
|
|
url: "/apps/btcpayserver/setup",
|
|
},
|
|
createCredential: ({ appType, user, slug, teamId }) =>
|
|
createDefaultInstallation({ appType, user: user, slug, key: {}, teamId }),
|
|
};
|
|
|
|
export default handler;
|