@daffodil/authorizenet
manages the acceptJs calls, state, selectors, and models for making a payment token request to Authorize.net.
To install @daffodil/authorizenet
, use the following commands in the terminal.
Install with npm:
npm install @daffodil/authorizenet --save
Install with yarn:
yarn add @daffodil/authorizenet
@daffodil/authorizenet
does most of the setup for you. All you need to do is:
DaffAuthorizeNetStateModule
into the root component of your application.DaffAuthorizeNetDriver
or use the default one by importing DaffAuthorizeNetDriverModule.forRoot()
.To configure your Authorize.net authentication details:
DaffAuthorizeNetConfig
through the DaffAuthorizeNetConfigToken
injection token.DaffAuthorizeNetGenerateToken
action with a DaffAuthorizeNetTokenRequest
to generate a payment nonce.DaffAuthorizeNetFacade
.If you feel like what our services return just won't cut it for your business needs, no problem! All of the reducers, effects, selectors, actions, and facades are 100% reusable with a customized model and service. If @daffodil/authorizenet
doesn't provide all of the fields you require on the payment info that is passed to the cart, you can inject a custom service through the DaffAuthorizeNetDriver
token and extend the DaffAuthorizeNetTokenRequest
model with a custom model.