Skip to content

standardize readme format and info across repos #81

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

Merged
merged 16 commits into from
Jul 6, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update README.md
  • Loading branch information
adavidw authored Mar 28, 2017
commit 74e56e87f5b50ac55a394a86c4a35662c3b4f877
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ To install AuthorizeNet
Get a sandbox account at https://developer.authorize.net/sandbox
Set your API credentials:

````python
```python
merchantAuth = apicontractsv1.merchantAuthenticationType()
merchantAuth.name = 'YOUR_API_LOGIN_ID'
merchantAuth.transactionKey = 'YOUR_TRANSACTION_KEY'
````
```


## Usage
See our sample code repository at https://github.com/AuthorizeNet/sample-code-python

For the simplest "Hello World" example, paste this into a file called charge-credit-card.py and run:

````python
```python
from authorizenet import apicontractsv1
from authorizenet.apicontrollers import *
from decimal import *
Expand Down Expand Up @@ -73,13 +73,13 @@ if (response.messages.resultCode=="Ok"):
else:
print "response code: %s" % response.messages.resultCode

````
```
### Setting Production or Sandbox Environments
To set the environment use the setenvironment method on the controller before executing. E.g. for the example above:
````python
```python
# Defaults to constants.SANDBOX for sandbox testing
createtransactioncontroller.setenvironment(constants.PRODUCTION)
````
```

## Building and Testing Source Code

Expand All @@ -98,8 +98,7 @@ Run the following to get pyxb and nosetests:
Testing
--------------------------------------
- Tests available are: unit tests, mock tests, sample code
- use nosetests to run all unittests
`
>nosetests
`
- use nosetests to run all unittests

`>nosetests`

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy