|
1 | | -# Node.js Sample Code for Authorize.Net SDK |
| 1 | +# Node.js Sample Code for the Authorize.Net SDK |
| 2 | +<!-- [](https://travis-ci.org/AuthorizeNet/sample-code-node) --> |
2 | 3 |
|
3 | | -This repository contains working code samples which demonstrate Node.js integration with the Authorize.Net Node.js SDK (https://github.com/AuthorizeNet/sdk-node). |
4 | | -The samples are organized just like our API, which you can also try out directly here: http://developer.authorize.net/api/reference |
| 4 | +This repository contains working code samples which demonstrate Node.js integration with the [Authorize.Net Node.js SDK](https://github.com/AuthorizeNet/sdk-node). |
| 5 | + |
| 6 | +The samples are organized into categories and common usage examples, just like our [API Reference Guide](http://developer.authorize.net/api/reference). Our API Reference Guide is an interactive reference for the Authorize.Net API. It explains the request and response parameters for each API method and has embedded code windows to allow you to send actual requests right within the API Reference Guide. |
5 | 7 |
|
6 | 8 |
|
7 | 9 | ## Using the Sample Code |
8 | 10 |
|
9 | | -The samples are all completely independent and self-contained so you can look at them to get a gist of how the method works, you can use the snippets to try in your own sample project, or you can run each sample from the command line. |
| 11 | +The samples are all completely independent and self-contained. You can analyze them to get an understanding of how a particular method works, or you can use the snippets as a starting point for your own project. |
| 12 | + |
| 13 | +You can also run each sample directly from the command line. |
10 | 14 |
|
11 | | -## Running the Samples |
12 | | -### Clone this repository. |
| 15 | +## Running the Samples From the Command Line |
| 16 | +* Clone this repository: |
| 17 | +``` |
| 18 | + $ git clone https://github.com/AuthorizeNet/sample-code-node.git |
13 | 19 | ``` |
14 | | - $ git clone https://github.com/AuthorizeNet/sample-code-nodejs.git |
15 | | -``` |
16 | | -### Install the SDK |
| 20 | +* Install the [Authorize.Net Node.js SDK](https://www.github.com/AuthorizeNet/sdk-node). |
17 | 21 | ``` |
18 | 22 | $ npm install authorizenet |
19 | 23 | ``` |
20 | | - |
21 | | -### Run Sample Code |
| 24 | +* Run the individual samples by name. For example: |
| 25 | +``` |
| 26 | + $ node PaymentTransactions\[CodeSampleName] |
| 27 | +``` |
| 28 | +e.g. |
22 | 29 | ``` |
23 | 30 | $ node PaymentTransactions\authorize-credit-card.js |
24 | 31 | ``` |
0 commit comments