@daffodil/authorizenet 0.74.0 → 0.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
# @daffodil/authorizenet
|
|
2
|
-
|
|
3
|
-
provides clear interfaces, models, services, and redux state for the frontend of an ecommerce store so that you don't have to.
|
|
4
|
-
|
|
5
|
-
The authorizenet module manages the acceptJs calls, state, selectors, and models for making a payment token request to authorize.net.
|
|
2
|
+
`@daffodil/authorizenet` manages the acceptJs calls, state, selectors, and models for making a payment token request to Authorize.net.
|
|
6
3
|
|
|
7
4
|
## Installation
|
|
5
|
+
To install `@daffodil/authorizenet`, use the following commands in the terminal.
|
|
6
|
+
|
|
7
|
+
Install with npm:
|
|
8
8
|
```
|
|
9
|
-
npm install @daffodil/authorizenet
|
|
9
|
+
npm install @daffodil/authorizenet --save
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Install with yarn:
|
|
10
13
|
```
|
|
14
|
+
yarn add @daffodil/authorizenet
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Getting started
|
|
18
|
+
`@daffodil/authorizenet` does most of the setup for you. All you need to do is:
|
|
19
|
+
|
|
20
|
+
1. Import the `DaffAuthorizeNetStateModule` into the root component of your application.
|
|
21
|
+
2. Provide your own `DaffAuthorizeNetDriver` or use the default one by importing `DaffAuthorizeNetDriverModule.forRoot()`.
|
|
11
22
|
|
|
12
23
|
## Usage
|
|
13
|
-
|
|
24
|
+
To configure your Authorize.net authentication details:
|
|
14
25
|
|
|
15
|
-
|
|
26
|
+
1. Provide a `DaffAuthorizeNetConfig` through the `DaffAuthorizeNetConfigToken` injection token.
|
|
27
|
+
2. Call the `DaffAuthorizeNetGenerateToken` action with a `DaffAuthorizeNetTokenRequest` to generate a payment nonce.
|
|
28
|
+
3. Access the payment nonce through the `DaffAuthorizeNetFacade`.
|
|
16
29
|
|
|
17
|
-
##
|
|
18
|
-
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
|
|
30
|
+
## Extensions and customizations
|
|
31
|
+
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.
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@daffodil/authorizenet","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/authorizenet"]}}},"version":"0.
|
|
1
|
+
{"name":"@daffodil/authorizenet","nx":{"targets":{"build":{"outputs":["{workspaceRoot}/dist/authorizenet"]}}},"version":"0.76.0","description":"An ecommerce package that has multi-platform support and state management features for managing authorize.net payments.","repository":{"type":"git","url":"https://github.com/graycoreio/daffodil"},"author":"Graycore LLC","license":"MIT","bugs":{"url":"https://github.com/graycoreio/daffodil/issues"},"publishConfig":{"directory":"../../dist/authorizenet"},"homepage":"https://github.com/graycoreio/daffodil","peerDependencies":{"@angular/common":"^17.0.0","@angular/core":"^17.0.0","@ngrx/effects":"^17.0.0","@ngrx/entity":"^17.0.0","@ngrx/store":"^17.0.0","@daffodil/core":"0.76.0","@daffodil/cart":"0.76.0","rxjs":"7.8.1"},"module":"fesm2022/daffodil-authorizenet.mjs","typings":"index.d.ts","exports":{"./package.json":{"default":"./package.json"},".":{"types":"./index.d.ts","esm2022":"./esm2022/daffodil-authorizenet.mjs","esm":"./esm2022/daffodil-authorizenet.mjs","default":"./fesm2022/daffodil-authorizenet.mjs"},"./driver":{"types":"./driver/index.d.ts","esm2022":"./esm2022/driver/daffodil-authorizenet-driver.mjs","esm":"./esm2022/driver/daffodil-authorizenet-driver.mjs","default":"./fesm2022/daffodil-authorizenet-driver.mjs"},"./state":{"types":"./state/index.d.ts","esm2022":"./esm2022/state/daffodil-authorizenet-state.mjs","esm":"./esm2022/state/daffodil-authorizenet-state.mjs","default":"./fesm2022/daffodil-authorizenet-state.mjs"},"./testing":{"types":"./testing/index.d.ts","esm2022":"./esm2022/testing/daffodil-authorizenet-testing.mjs","esm":"./esm2022/testing/daffodil-authorizenet-testing.mjs","default":"./fesm2022/daffodil-authorizenet-testing.mjs"},"./driver/in-memory":{"types":"./driver/in-memory/index.d.ts","esm2022":"./esm2022/driver/in-memory/daffodil-authorizenet-driver-in-memory.mjs","esm":"./esm2022/driver/in-memory/daffodil-authorizenet-driver-in-memory.mjs","default":"./fesm2022/daffodil-authorizenet-driver-in-memory.mjs"},"./driver/magento":{"types":"./driver/magento/index.d.ts","esm2022":"./esm2022/driver/magento/daffodil-authorizenet-driver-magento.mjs","esm":"./esm2022/driver/magento/daffodil-authorizenet-driver-magento.mjs","default":"./fesm2022/daffodil-authorizenet-driver-magento.mjs"},"./driver/testing":{"types":"./driver/testing/index.d.ts","esm2022":"./esm2022/driver/testing/daffodil-authorizenet-driver-testing.mjs","esm":"./esm2022/driver/testing/daffodil-authorizenet-driver-testing.mjs","default":"./fesm2022/daffodil-authorizenet-driver-testing.mjs"},"./state/testing":{"types":"./state/testing/index.d.ts","esm2022":"./esm2022/state/testing/daffodil-authorizenet-state-testing.mjs","esm":"./esm2022/state/testing/daffodil-authorizenet-state-testing.mjs","default":"./fesm2022/daffodil-authorizenet-state-testing.mjs"}},"sideEffects":false,"dependencies":{"tslib":"^2.3.0"}}
|