feat: add gateway-neutral payment package
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
component RefundButton {
|
||||
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