googlePay popup when i close payment sheet of stripe when i use customFlow true

150 Views Asked by At

i am using stripe for my payment method in my react-native app, in the "initPayment" i add customFlow with value true, the problem is when i want to cancel and close the modal, googlePay popup even if i closed the payment sheet and not choosing googlePay enter image description here

i tried this but not working :

const handleModalClose = () => {
    toggleHandler();
    if (addnotification) {
      addnotification({
        message: 'Payment sheet closed',
        type: 'info',
      });
    }
  };

 return (
    <DDKModal animationType="slide" isFullscreen requestCloseHandler={() => {
      handleModalClose();
    }}
    >
0

There are 0 best solutions below