sdk-node
sdk-node copied to clipboard
accept.js on NPM?
Is there are accept.js module on npm or do we have to do it in a script tag?
<script type="text/javascript"
src="https://jstest.authorize.net/v1/Accept.js"
charset="utf-8">
</script>
https://developer.authorize.net/api/reference/features/acceptjs.html
Hi,
I want to use the library on my angular 2 application. How do I import the js?
import * as Accept from './../libs/Accept.js';
Have to import like that on my typescript?
Thanks!
For my react app, I had to keep the script tag in <head>
and use it as a global. I didn't see an npm package (for the client side library). It caused issues if it was in the body.
@acomito thanks fo rthe answer. If you add the scritpt tag on the index how your typescript work?
@MtarantoOa I don't use typescript so I'm not sure. Sounds like a common issue so I'd hope there's a general solution not related to AuthorizeNet.
any update for this?
In case you use Angular, we're going to be providing a lib for Accept,js that you can use in your apps....
https://github.com/graycoreio/daffodil/pull/566/files