From 26e05108ee80001c61b578a1e082b45a0fa9aac7 Mon Sep 17 00:00:00 2001 From: Sourov Biswas <79559219+itsourov@users.noreply.github.com> Date: Thu, 23 Mar 2023 17:38:53 +0600 Subject: [PATCH] added callback for closing payment window Many developers including me faced this issue when we used the example code from this repo there was an error showing in the console when the user is closing the payment window. added the missing callback. --- php/payment.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/php/payment.php b/php/payment.php index 251b912..ebb0ebf 100644 --- a/php/payment.php +++ b/php/payment.php @@ -102,6 +102,9 @@ bKash.execute().onError(); } }); + }, + onClose: function() { + alert('closed') } });