allways show receipt
This commit is contained in:
@@ -7,12 +7,14 @@ interface PaymentVerificationBoxProps {
|
||||
order: Order
|
||||
isVerifyingPayment: boolean
|
||||
onVerifyPayment: () => void
|
||||
showVerifyButton: boolean
|
||||
}
|
||||
|
||||
const PaymentVerificationBox: FC<PaymentVerificationBoxProps> = ({
|
||||
order,
|
||||
isVerifyingPayment,
|
||||
onVerifyPayment,
|
||||
showVerifyButton,
|
||||
}) => {
|
||||
const payment = order.payments?.[0]
|
||||
const isCreditCard = order.paymentMethod?.method === PaymentMethodEnum.CreditCard
|
||||
@@ -53,12 +55,14 @@ const PaymentVerificationBox: FC<PaymentVerificationBoxProps> = ({
|
||||
</div>
|
||||
)}
|
||||
|
||||
<Button
|
||||
label='تایید پرداخت'
|
||||
onClick={onVerifyPayment}
|
||||
isloading={isVerifyingPayment}
|
||||
className='bg-green-600 hover:bg-green-700 w-full'
|
||||
/>
|
||||
{showVerifyButton && (
|
||||
<Button
|
||||
label='تایید پرداخت'
|
||||
onClick={onVerifyPayment}
|
||||
isloading={isVerifyingPayment}
|
||||
className='bg-green-600 hover:bg-green-700 w-full'
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user