Skip to content

Commit 233099e

Browse files
committed
Updates for next version & Update README.md with latest versions
1 parent 1fbd4db commit 233099e

File tree

2 files changed

+19
-35
lines changed

2 files changed

+19
-35
lines changed

Diff for: README.md

+17-32
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
# Authorize.Net Python SDK
22

3-
[![Travis CI Status](https://travis-ci.org/AuthorizeNet/sdk-python.svg?branch=master)](https://travis-ci.org/AuthorizeNet/sdk-python)
4-
[![Coverage Status](https://coveralls.io/repos/github/AuthorizeNet/sdk-python/badge.svg?branch=master)](https://coveralls.io/github/AuthorizeNet/sdk-python?branch=master)
5-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/AuthorizeNet/sdk-python/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/AuthorizeNet/sdk-python/?branch=master)
3+
[![Authorize.net Python CI](https://github.com/AuthorizeNet/sdk-python/actions/workflows/python-workflow.yml/badge.svg?branch=master)](https://github.com/AuthorizeNet/sdk-python/actions/workflows/python-workflow.yml)
64
[![PyPI](https://img.shields.io/pypi/v/authorizenet.svg)](https://badge.fury.io/py/authorizenet)
75

86

97
## Requirements
10-
* For Python 2, Python 2.7 or greater
11-
* For Python 3, Python 3.4 or later
8+
* Python 3.6 or later
129
* OpenSSL 1.0.2 or greater
1310
* An Authorize.Net account (see _Registration & Configuration_ section below)
1411

15-
_Note: Our goal is ensuring this SDK is compatible with Python 2.7+, 3.4+ and PyPy, but at the moment we're primarily testing against Python 2.7._
16-
12+
_Note: Support for Python 2.x and Python <=3.5 has been discontinued, due to EOL of the Python package._
1713
### Contribution
1814
- If you need information or clarification about Authorize.Net features, create an issue with your question. You can also search the [Authorize.Net developer community](https://community.developer.authorize.net/) for discussions related to your question.
1915
- Before creating pull requests, please read [the contributors guide](CONTRIBUTING.md).
@@ -39,9 +35,9 @@ After you have your credentials, load them into the appropriate variables in you
3935

4036
#### To set your API credentials for an API request:
4137
```python
42-
merchantAuth = apicontractsv1.merchantAuthenticationType()
43-
merchantAuth.name = 'YOUR_API_LOGIN_ID'
44-
merchantAuth.transactionKey = 'YOUR_TRANSACTION_KEY'
38+
merchantAuth = apicontractsv1.merchantAuthenticationType()
39+
merchantAuth.name = 'YOUR_API_LOGIN_ID'
40+
merchantAuth.transactionKey = 'YOUR_TRANSACTION_KEY'
4541
```
4642

4743
Never include your API Login ID and Transaction Key directly in a file in a publicly accessible portion of your website. As a best practice, define the API Login ID and Transaction Key in a constants file, and reference those constants in your code.
@@ -50,7 +46,7 @@ Never include your API Login ID and Transaction Key directly in a file in a publ
5046
Authorize.Net maintains a complete sandbox environment for testing and development purposes. The sandbox environment is an exact replica of our production environment, with simulated transaction authorization and settlement. By default, this SDK is configured to use the sandbox environment. To switch to the production environment, use the `setenvironment` method on the controller before executing. For example:
5147
```python
5248
# For PRODUCTION use
53-
createtransactioncontroller.setenvironment(constants.PRODUCTION)
49+
createtransactioncontroller.setenvironment(constants.PRODUCTION)
5450
```
5551

5652
API credentials are different for each environment, so be sure to switch to the appropriate credentials when switching environments.
@@ -61,14 +57,14 @@ Python SDK uses the logger _'authorizenet.sdk'_. By default, the logger in the S
6157
A sample logger configuration is given as below:
6258

6359
```python
64-
import logging
65-
logger = logging.getLogger('authorizenet.sdk')
66-
handler = logging.FileHandler('anetSdk.log')
67-
formatter = logging.Formatter('%(asctime)s %(name)-12s %(levelname)-8s %(message)s')
68-
handler.setFormatter(formatter)
69-
logger.addHandler(handler)
70-
logger.setLevel(logging.DEBUG)
71-
logger.debug('Logger set up for Authorizenet Python SDK complete')
60+
import logging
61+
logger = logging.getLogger('authorizenet.sdk')
62+
handler = logging.FileHandler('anetSdk.log')
63+
formatter = logging.Formatter('%(asctime)s %(name)-12s %(levelname)-8s %(message)s')
64+
handler.setFormatter(formatter)
65+
logger.addHandler(handler)
66+
logger.setLevel(logging.DEBUG)
67+
logger.debug('Logger set up for Authorizenet Python SDK complete')
7268
```
7369

7470

@@ -103,19 +99,8 @@ When using the SDK to submit Chase Pay transactions, consider the following poin
10399
## Building & Testing the SDK
104100

105101
### Requirements
106-
- python 2.7
107-
- pyxb 1.2.5
108-
109-
Run the following to get pyxb and nosetests:
110-
- pip install pyxb==1.2.5
111-
- pip install nose
112-
- pip install lxml
113-
114-
### Running the SDK Tests
115-
- Tests available are: unit tests, mock tests, sample code
116-
- use nosetests to run all unittests
117-
118-
`>nosetests`
102+
- Python 3.6
103+
- PyXB-X
119104

120105
### Testing Guide
121106
For additional help in testing your own code, Authorize.Net maintains a [comprehensive testing guide](http://developer.authorize.net/hello_world/testing_guide/) that includes test credit card numbers to use and special triggers to generate certain responses from the sandbox environment.

Diff for: setup.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# Versions should comply with PEP440. For a discussion on single-sourcing
1818
# the version across setup.py and the project code, see
1919
# https://packaging.python.org/en/latest/single_source_version.html
20-
version='1.1.4',
20+
version='1.1.5',
2121

2222
description='Authorize.Net Python SDK',
2323

@@ -48,8 +48,7 @@
4848

4949
# Specify the Python versions you support here. In particular, ensure
5050
# that you indicate whether you support Python 2, Python 3 or both.
51-
'Programming Language :: Python :: 2.7',
52-
'Programming Language :: Python :: 3.4'
51+
'Programming Language :: Python :: >=3.6'
5352
],
5453

5554
# What does your project relate to?

0 commit comments

Comments
 (0)