Added Payment QR Code model Close Funtionalies
This commit is contained in:
parent
32da3185c6
commit
59dab4d175
|
|
@ -1,6 +1,6 @@
|
|||
import { useEffect, useRef, useState, useImperativeHandle, forwardRef } from 'react';
|
||||
import { useDispatch } from 'react-redux';
|
||||
import { getPaymentStatusForBusinessUPI } from '../../../../Features/BookingScreen/BookingData/BookingData';
|
||||
import { getPaymentStatusForBusinessUPI, PostCancelPayment } from '../../../../Features/BookingScreen/BookingData/BookingData';
|
||||
|
||||
const PaymentGatewayEmbedded = forwardRef(({
|
||||
orderId,
|
||||
|
|
@ -65,6 +65,7 @@ const PaymentGatewayEmbedded = forwardRef(({
|
|||
|
||||
if (data.status === 'TIMEOUT') {
|
||||
// Stop polling and mark as timed out
|
||||
dispatch(PostCancelPayment({OrderId: orderId})).unwrap()
|
||||
setTimedOut(true);
|
||||
setShowTimeout(true);
|
||||
if (intervalRef.current) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue