Skip to content

Commit 74e56e8

Browse files
authored
Update README.md
1 parent 73eb482 commit 74e56e8

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ To install AuthorizeNet
2424
Get a sandbox account at https://developer.authorize.net/sandbox
2525
Set your API credentials:
2626

27-
````python
27+
```python
2828
merchantAuth = apicontractsv1.merchantAuthenticationType()
2929
merchantAuth.name = 'YOUR_API_LOGIN_ID'
3030
merchantAuth.transactionKey = 'YOUR_TRANSACTION_KEY'
31-
````
31+
```
3232

3333

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

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

39-
````python
39+
```python
4040
from authorizenet import apicontractsv1
4141
from authorizenet.apicontrollers import *
4242
from decimal import *
@@ -73,13 +73,13 @@ if (response.messages.resultCode=="Ok"):
7373
else:
7474
print "response code: %s" % response.messages.resultCode
7575

76-
````
76+
```
7777
### Setting Production or Sandbox Environments
7878
To set the environment use the setenvironment method on the controller before executing. E.g. for the example above:
79-
````python
79+
```python
8080
# Defaults to constants.SANDBOX for sandbox testing
8181
createtransactioncontroller.setenvironment(constants.PRODUCTION)
82-
````
82+
```
8383

8484
## Building and Testing Source Code
8585

@@ -98,8 +98,7 @@ Run the following to get pyxb and nosetests:
9898
Testing
9999
--------------------------------------
100100
- Tests available are: unit tests, mock tests, sample code
101-
- use nosetests to run all unittests
102-
`
103-
>nosetests
104-
`
101+
- use nosetests to run all unittests
102+
103+
`>nosetests`
105104

0 commit comments

Comments
 (0)
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