Open bipindubey-technoark opened 3 years ago
I have noticed one thing it calls capture() but what if capture () is still pending and then we close the modal then it doesnt call the api which will save record in database
Can i disable background till the payment is completed or failed??
I am implented react-paypal-button-v2 in my project and it is working fine till yesterday. It is live from last 3 months but i get a issue from client that one of the user gets charged the money but the record is not saved on database. after doing R&D on it i found that this package calls capture() then it deducts the money but when i close the modal by clicking on somewhere outside the modal then it didnt call the onsuccess method which we call for storing transaction details in our detabase. This is the code
Here onSuccess(data,details) is to save transaction in my local database but it is not even called . Thanks