feat(payment): expose secure APIs and themed pages

This commit is contained in:
Clintchiz committed 2026-08-28 09:59:07 +05:30
1 parent dd8d6ecc3b
commit 2d77f5457c
15 files changed
+654 -13

No files matched your search

@@ -0,0 +1,15 @@
import PaymentMethodList from "./PaymentMethodList.wrn"
component PaymentMethodsPage {
props {
methods: array = []
title?: string = "Payment methods"
description?: string = "Manage provider-vaulted payment methods."
emptyLabel?: string = "No saved payment methods."
}
view {
<section class="wrn-payment-page">
<header class="wrn-payment-page__header"><div><span class="wrn-payment-page__eyebrow">{title}</span><h1>{title}</h1><p>{description}</p></div></header>
<div class="wrn-payment-panel">{#if methods.length}<PaymentMethodList methods={methods} />{:else}<div class="wrn-payment-empty">{emptyLabel}</div>{/if}</div>
</section>
}
}