In each Insight UI component, we need to verify whether the customer has accepted the terms before proceeding with the payment.
Every component, except for the Card Input, contains a onBeforeOpen method. We must utilize this method to confirm the acceptance of terms. If this method returns false, the payment component will not initiate the UI.
For the Card Input, the validation should be conducted prior to invoking the createToken function.
In each Insight UI component, we need to verify whether the customer has accepted the terms before proceeding with the payment.
Every component, except for the Card Input, contains a
onBeforeOpen
method. We must utilize this method to confirm the acceptance of terms. If this method returnsfalse
, the payment component will not initiate the UI.For the Card Input, the validation should be conducted prior to invoking the
createToken
function.