GithubHelp home page GithubHelp logo

Comments (8)

drewisme avatar drewisme commented on July 20, 2024

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.

dennben78 avatar dennben78 commented on July 20, 2024

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.

drewisme avatar drewisme commented on July 20, 2024

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.

dennben78 avatar dennben78 commented on July 20, 2024

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.

drewisme avatar drewisme commented on July 20, 2024

What is the response from production? Production will only work with a valid credit card.

from authorizesauce.

dennben78 avatar dennben78 commented on July 20, 2024

[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.

dennben78 avatar dennben78 commented on July 20, 2024

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.

ugkarthik avatar ugkarthik commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.