Adyen Customcard component is not working sometimes in React

551 Views Asked by At

I am using adyen payment gateway's customcard component in my React JS project. When there are some dom updates in my parent component Adyen secure fields will not work correctly. I don't know why. Please refer the attached screenshots for reference. Is there any call back method to handle such kind of error or Is there any solution to this issue. enter image description here

enter image description here

1

There are 1 best solutions below

0
On

I think the problem is caused by the fact that you are trying to initialize the Adyen component more than once. This is a common problem especially when people are using Vue or React, make sure not to re-render the DOM element.