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();
}}
>