From 9ced895772ebecb2fa330ae2eecd42060abf2a7b Mon Sep 17 00:00:00 2001
From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com>
Date: Wed, 29 Nov 2023 18:15:14 +0000
Subject: WIP
---
src/components/ProductPayPalButtons.astro | 150 ++++++++++++++++++++++++++++++
1 file changed, 150 insertions(+)
create mode 100644 src/components/ProductPayPalButtons.astro
(limited to 'src/components/ProductPayPalButtons.astro')
diff --git a/src/components/ProductPayPalButtons.astro b/src/components/ProductPayPalButtons.astro
new file mode 100644
index 0000000..952e6a8
--- /dev/null
+++ b/src/components/ProductPayPalButtons.astro
@@ -0,0 +1,150 @@
+---
+import env from '$lib/env';
+import type Price from '$types/Price';
+
+interface Props {
+ successPageUrl: string;
+ productDescription: string;
+ shortDescription: string;
+ totalPrice: Price;
+}
+
+const { successPageUrl, productDescription, shortDescription, totalPrice } = Astro.props;
+
+const PAYPAL_CLIENT_ID =
+ env.ENVIRONMENT === 'prod' ? env.PAYPAL_LIVE_CLIENT_ID : env.PAYPAL_SANDBOX_CLIENT_ID;
+---
+
+
+
+
+
+
--
cgit v1.2.3