sdk-node icon indicating copy to clipboard operation
sdk-node copied to clipboard

accept.js on NPM?

Open acomito opened this issue 6 years ago • 6 comments

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

acomito avatar Jun 16 '18 12:06 acomito

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!

MtarantoOa avatar Jul 11 '18 13:07 MtarantoOa

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 avatar Jul 11 '18 13:07 acomito

@acomito thanks fo rthe answer. If you add the scritpt tag on the index how your typescript work?

MtarantoOa avatar Jul 11 '18 14:07 MtarantoOa

@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.

acomito avatar Jul 11 '18 14:07 acomito

any update for this?

damsorian avatar Dec 04 '19 16:12 damsorian

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

damienwebdev avatar Jan 17 '20 03:01 damienwebdev