Comments (8)
Here's the article about error code:
https://support.authorize.net/authkb/index?page=content&id=A612&actp=LIST
Are you using the most recent version 0.5.0? If not, you need to upgrade. Authorize.net stopped supporting HTTP GET for AIM transactions. This was updated to HTTP POST in 0.5.0.
If you still have an issue on the most recent version can you provide some details?
- Python version
- Sandbox or Production
- If this is happening on sandbox, can you provide your request payload?
from authorizesauce.
Yeah I upgraded to authorizesauce .5.0 and no change.
python ==2.7.5
SANDBOX and PRODUCTION are affected the same way.
What's the easiest way to capture the payload?
from authorizesauce.
Looks like this might be related to #46.
Can you print "self.url" and "params" before line 79 in "/Library/Python/2.7/site-packages/authorize/apis/transaction.py"? I can try to reproduce the issue.
from authorizesauce.
UPDATE: before you had asked about the version, I had thought I was at the tip but I was at 0.4 for whatever reason I didn't see .0.5 til you mentioned it. So originally I was on 0.3 and upgraded to .4 with no change. I upgraded to .5 and now SANDBOX works, but PRODUCTION is still broken.
Here is the payload info you requested:
LIVE TRANSACTION
URL: 'https://secure.authorize.net/gateway/transact.dll'
params:
x_login=5E9JxJqXXXX&x_type=AUTH_CAPTURE&x_card_num=4111111111111111&x_amount=30.00&x_card_code=154&x_tran_key=7V2y5xXXXXXXXXXX&x_version=3.1&x_first_name=denny+2&x_exp_date=12-2021&x_delim_data=TRUE&x_delim_char=%3B&x_test_request=FALSE'
TEST TRANSACTION
URL 'https://test.authorize.net/gateway/transact.dll'
params
'x_login=9XbVU3pXXXX&x_type=AUTH_CAPTURE&x_card_num=4111111111111111&x_amount=30.00&x_card_code=555&x_tran_key=9999b425h9GXXXXX&x_version=3.1&x_first_name=denny+2&x_exp_date=12-2018&x_delim_data=TRUE&x_delim_char=%3B&x_test_request=TRUE'
from authorizesauce.
What is the response from production? Production will only work with a valid credit card.
from authorizesauce.
[Thu Jul 13 20:00:27 2017] [error] Error response code returned from API. <class 'authorize.exceptions.AuthorizeResponseError'> - This transaction cannot be accepted for processing. full_response={'cvv_response': '', 'authorization_code': '', 'response_code': '3', 'amount': '15.00', 'transaction_type': 'auth_capture', 'avs_response': 'P', 'response_reason_code': '66', 'response_reason_text': 'This transaction cannot be accepted for processing.', 'transaction_id': '0'}
It is working in my sandbox fully if I mimic production settings completely. WHat version of six is required? There must be some conflict somewhere in my pip requirements?
This is pip freeze of my production environment:
apns==2.0.1
AuthorizeSauce==0.5.0
chardet==2.2.1
Django==1.7
django-crontab==0.6.0
django-extensions==1.6.1
django-inspect==0.4.1
django-messages-extends==0.4
django-ssl-redirect==1.0
djangorestframework==2.4.4
djrill==1.3.0
docopt==0.6.1
docutils==0.7
egenix-mx-base==3.1.3
gcm==0.3
-e git+https://github.com/pwdyson/inflect.py@d4e57f041394bb246d8f9c360c20c19e44eeda03#egg=inflect
iniparse==0.4
iotop==0.6
IPy==0.75
javapackages==1.0.0
kitchen==1.1.1
lxml==3.2.1
MySQL-python==1.2.5
mysqlclient==1.3.10
netifaces==0.10.4
ngxtop==0.0.2
numpy==1.5.0
oauthlib==0.7.1
olefile==0.44
PIL==1.1.7
Pillow==2.5.3
policycoreutils-default-encoding==0.1
psycopg2==2.5.4
pycrypto==2.3
pycurl==7.19.0
pygpgme==0.3
PyJWT==0.3.0
pyliblzma==0.5.3
pyparsing==1.5.6
python-gcm==0.1.5
python-openid==2.2.5
pyxattr==0.5.1
reportlab==2.4
requests==2.4.3
requests-oauthlib==0.4.2
seobject==0.1
sepolicy==1.1
six==1.10.0
suds==0.4
suds-jurko==0.6
tabulate==0.7.2
Unidecode==0.4.17
urlgrabber==3.10
virtualenv==12.0.7
yum-metadata-parser==1.1.4
This is my requirements.txt (for pip) in production (which I will change authorizesauce to .5.0 when complete)
AuthorizeSauce==0.4.1
Django==1.7
MySQL-python==1.2.5
Pillow==2.5.3
PyJWT==0.3.0
Unidecode==0.04.17
apns==2.0.1
argparse==1.2.1
django-crontab==0.6.0
django-messages-extends==0.4
djangorestframework==2.4.4
djrill==1.3.0
oauthlib==0.7.1
python-gcm==0.1.5
python-openid==2.2.5
requests==2.4.3
requests-oauthlib==0.4.2
six==1.8.0
suds==0.4
wsgiref==0.1.2
from authorizesauce.
DEVELOPMENT environment PIP FREEZE (I notice my django version got bumped up by something):
adium-theme-ubuntu==0.3.4
apns==2.0.1
AuthorizeSauce==0.5.0
chardet==2.2.1
Django==1.8.6
django-crontab==0.6.0
django-extensions==1.8.1
django-inspect==0.3.2
django-messages-extends==0.4
django-ssl-redirect==1.0
djangorestframework==2.4.4
djrill==1.3.0
docopt==0.6.1
docutils==0.7
gcm==0.3
inflect==0.2.5
iniparse==0.4
IPy==0.75
kitchen==1.1.1
lxml==3.8.0
MySQL-python==1.2.5
mysqlclient==1.3.10
netifaces==0.10.4
ngxtop==0.0.2
oauthlib==0.7.1
olefile==0.44
Pillow==2.5.3
pycrypto==2.3
pycurl==7.43.0
PyJWT==0.3.0
pyparsing==1.5.6
python-apt==1.1.0b5
python-gcm==0.1.5
python-openid==2.2.5
pytz==2017.2
PyXB==1.2.5
reportlab==2.4
requests==2.4.3
requests-oauthlib==0.4.2
six==1.10.0
sqlparse==0.2.3
suds==0.4
suds-jurko==0.6
tabulate==0.7.2
ubuntuone-client-data==14.4
Unidecode==0.4.17
unity-lens-photos==1.0
virtualenv==12.0.7
from authorizesauce.
Hi,
Add the SSl Header in the settings,
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
All requests should be in Https
from authorizesauce.
Related Issues (20)
- Handle unicode characters in user details HOT 1
- Is the transaction status API supported ? HOT 1
- list index out of range in authorize->apis->transaction.py, line 26 (Parsing response) HOT 3
- from authorize import AuthorizeClient, CreditCard, Address ImportError: cannot import name AuthorizeClient HOT 2
- How to submit phone number and description when capturing card? HOT 3
- 'AuthorizeSavedCard' object has no attribute 'recurring' HOT 1
- Provide email address along with address data HOT 1
- Will these Authorize.NET changes affect this package? HOT 1
- Submitting Invoice Number with Transaction HOT 2
- Authorize.net Technical Updates
- Recurring payments on savedcard HOT 1
- User Authentication Failed HOT 1
- Re: Version of LT that also applies a modifier key #121 HOT 2
- <urlopen error [Errno -2] Name or service not known> HOT 2
- POST requests for transaction calls HOT 8
- Order Information
- AuthorizeConnectionError HOT 10
- Exception: (550, 'Unknown') HOT 10
- Authorize.Net error. E00027: A duplicate transaction has been submitted.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from authorizesauce.