Referencing a file from 3rd party gateway server

Hello, I am trying to reference a .js file from a 3rd party service, however i am unsuccessful in calling a function from the file. Any ideas on how to implement this to wix?

<script src="https://ap-gateway.mastercard.com/checkout/version/57/checkout.js" data-error="errorCallback" data-cancel="cancelCallback"></script>