Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accept.js on NPM? #37

Open
acomito opened this issue Jun 16, 2018 · 6 comments
Open

accept.js on NPM? #37

acomito opened this issue Jun 16, 2018 · 6 comments
Labels

Comments

@acomito
Copy link

acomito commented Jun 16, 2018

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

@MtarantoOa
Copy link

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!

@acomito
Copy link
Author

acomito commented Jul 11, 2018

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.

@MtarantoOa
Copy link

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

@acomito
Copy link
Author

acomito commented Jul 11, 2018

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

@damsorian
Copy link

any update for this?

@damienwebdev
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants