fix(payment): compile shipped payment components
This commit is contained in:
1 parent
10771f1a2b
commit
c578bc0f92
7 files changed
+27
-7
No files matched your search
@@ -1,4 +1,9 @@
|
||||
component RefundButton {
|
||||
props { paymentId: string refundable: number partial?: boolean = false action?: string = "/api/payments/refund" }
|
||||
props {
|
||||
paymentId: string
|
||||
refundable: number
|
||||
partial?: boolean = false
|
||||
action?: string = "/api/payments/refund"
|
||||
}
|
||||
view { <form method="post" action={action}><input type="hidden" name="paymentId" value={paymentId} /><label>Reason<input name="reason" required /></label>{#if partial}<label>Amount<input name="amount" type="number" min="1" max={refundable} /></label>{/if}<button type="submit">Refund</button></form> }
|
||||
}
|
||||
Reference in new issue
Block a user