Angular8 从angular component.html运行外部javascript脚本

Angular8 从angular component.html运行外部javascript脚本,angular8,Angular8,https://paymentgateway.interswitchgroup.com/paymentgateway/public/js/webpay.js' 数据isw trans amount='10000' 数据isw客户参考号='1581329633259' 数据isw customer callback='customCallback'延迟> 这段代码是由我的支付网关提供给我的。它在一个普通的html文件上工作得非常好。 我将此块添加到angular component.html中,但

https://paymentgateway.interswitchgroup.com/paymentgateway/public/js/webpay.js' 数据isw trans amount='10000' 数据isw客户参考号='1581329633259' 数据isw customer callback='customCallback'延迟>

这段代码是由我的支付网关提供给我的。它在一个普通的html文件上工作得非常好。
我将此块添加到angular component.html中,但angular删除了脚本标记。我怎样才能解决这个问题。感谢

“数据isw trans amount='10000'数据isw customer ref='1581329633259'数据isw customer callback='customCallback'defer>”您在此处发布的脚本似乎不完整且不正确。请您发布正确且完整的脚本/代码,或者如果您没有,请让您的支付网关为您提供相同的脚本/代码。谢谢Varun,请参阅下面的完整脚本:“数据isw trans amount='10000'数据isw customer ref='1581429958334'数据isw customer callback='customCallback'>函数customCallback(响应){console.log(response);}脚本只在我的页面上加载了一个按钮,整个支付由网关处理