feat: HitPay Payment App (#17213)

* Build HitPay app

* Deleted a lint comment

* Add redirect for iframe

* Fix type check error

* Fixed issue of payment pending

* Update hitpay package.json

* fix: fix lint issue in KeyInput and update zod

* fix: fix issue of parsing string to number

* fix: add default hitpay API links

* fix: resolve atoms build error

---------

Co-authored-by: kutsaniuk <[email protected]>
This commit is contained in:
Muhammad Aiman Sulaimanandkutsaniuk authored and GitHub committed 2025-01-20 15:36:23 +01:00
1 parent 5357228f72
commit 7131a1f015
39 files changed
+1464 -1

No files matched your search

@@ -41,6 +41,16 @@ const AlbyPaymentComponent = dynamic(
}
);
const HitpayPaymentComponent = dynamic(
() =>
import("@calcom/app-store/hitpay/components/HitpayPaymentComponent").then(
(m) => m.HitpayPaymentComponent
),
{
ssr: false,
}
);
const PaymentPage: FC<PaymentPageProps> = (props) => {
const { t, i18n } = useLocale();
const [is24h, setIs24h] = useState(isBrowserLocale24h());
@@ -159,6 +169,9 @@ const PaymentPage: FC<PaymentPageProps> = (props) => {
{props.payment.appId === "alby" && !props.payment.success && (
<AlbyPaymentComponent payment={props.payment} paymentPageProps={props} />
)}
{props.payment.appId === "hitpay" && !props.payment.success && (
<HitpayPaymentComponent payment={props.payment} />
)}
{props.payment.refunded && (
<div className="text-default mt-4 text-center dark:text-gray-300">{t("refunded")}</div>
)}