epic-6-snap-hybrid-complete #18
|
|
@ -31,7 +31,6 @@ export interface PaymentSheetProps {
|
|||
}
|
||||
|
||||
export function PaymentSheet({ merchantName = 'Simaya', orderId, amount, expireAt, customerName, children, showStatusCTA = true }: PaymentSheetProps) {
|
||||
const countdown = useCountdown(expireAt)
|
||||
const [expanded, setExpanded] = React.useState(true)
|
||||
return (
|
||||
<div className="max-w-md">
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ export function PaymentStatusPage() {
|
|||
|
||||
const statusText = data?.status ?? 'pending'
|
||||
const isFinal = ['settlement', 'capture', 'expire', 'cancel', 'deny', 'refund', 'chargeback'].includes(statusText)
|
||||
const isSuccess = statusText === 'settlement' || statusText === 'capture'
|
||||
function sanitizeUrl(u?: string) {
|
||||
return (u || '').replace(/[`\s]+$/g, '').replace(/^\s+|\s+$/g, '').replace(/`/g, '')
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue