summaryrefslogtreecommitdiffhomepage
path: root/cloud/app/src/component/workspace/payment-section.tsx
diff options
context:
space:
mode:
authorJay V <[email protected]>2025-09-16 19:53:18 -0400
committerJay V <[email protected]>2025-09-16 19:53:18 -0400
commit65ced674321811127c5720273b1c004eb0e185c5 (patch)
treec274be49e8e5b3d90f06bf67aae5e0de21c072d0 /cloud/app/src/component/workspace/payment-section.tsx
parent9f46068c5708d7e83163cd06b40c27ed46d4712f (diff)
downloadopencode-65ced674321811127c5720273b1c004eb0e185c5.tar.gz
opencode-65ced674321811127c5720273b1c004eb0e185c5.zip
ignore: zen
Diffstat (limited to 'cloud/app/src/component/workspace/payment-section.tsx')
-rw-r--r--cloud/app/src/component/workspace/payment-section.tsx35
1 files changed, 35 insertions, 0 deletions
diff --git a/cloud/app/src/component/workspace/payment-section.tsx b/cloud/app/src/component/workspace/payment-section.tsx
index 61054b0fc..8cdceebc3 100644
--- a/cloud/app/src/component/workspace/payment-section.tsx
+++ b/cloud/app/src/component/workspace/payment-section.tsx
@@ -19,9 +19,44 @@ const downloadReceipt = action(async (workspaceID: string, paymentID: string) =>
export function PaymentSection() {
const params = useParams()
+ // ORIGINAL CODE - COMMENTED OUT FOR TESTING
const payments = createAsync(() => getPaymentsInfo(params.id))
const downloadReceiptAction = useAction(downloadReceipt)
+ // DUMMY DATA FOR TESTING
+ // const payments = () => [
+ // {
+ // id: "pi_3QK1x2FT9vXn4A6r1234567890",
+ // paymentID: "pi_3QK1x2FT9vXn4A6r1234567890",
+ // timeCreated: new Date(Date.now() - 86400000 * 1).toISOString(), // 1 day ago
+ // amount: 2100000000, // $21.00 ($20 + $1 fee)
+ // },
+ // {
+ // id: "pi_3QJ8k7FT9vXn4A6r0987654321",
+ // paymentID: "pi_3QJ8k7FT9vXn4A6r0987654321",
+ // timeCreated: new Date(Date.now() - 86400000 * 15).toISOString(), // 15 days ago
+ // amount: 2100000000, // $21.00
+ // },
+ // {
+ // id: "pi_3QI5m1FT9vXn4A6r5678901234",
+ // paymentID: "pi_3QI5m1FT9vXn4A6r5678901234",
+ // timeCreated: new Date(Date.now() - 86400000 * 32).toISOString(), // 32 days ago
+ // amount: 2100000000, // $21.00
+ // },
+ // {
+ // id: "pi_3QH2n9FT9vXn4A6r3456789012",
+ // paymentID: "pi_3QH2n9FT9vXn4A6r3456789012",
+ // timeCreated: new Date(Date.now() - 86400000 * 47).toISOString(), // 47 days ago
+ // amount: 2100000000, // $21.00
+ // },
+ // {
+ // id: "pi_3QG7p4FT9vXn4A6r7890123456",
+ // paymentID: "pi_3QG7p4FT9vXn4A6r7890123456",
+ // timeCreated: new Date(Date.now() - 86400000 * 63).toISOString(), // 63 days ago
+ // amount: 2100000000, // $21.00
+ // },
+ // ]
+
return (
payments() &&
payments()!.length > 0 && (