Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

New implementation - september 2012 #1

Merged
merged 1 commit into from

2 participants

@mociepka

No description provided.

@kayluhb kayluhb merged commit c1be7bf into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 2, 2013
  1. @mociepka
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 1 deletion.
  1. +1 −0  authorizenet/helpers.py
  2. +4 −1 authorizenet/utils.py
View
1  authorizenet/helpers.py
@@ -30,4 +30,5 @@ def get_response(self, data):
response_list = re.split("(?<!\\\\)\%s" % c, response)
response_list = map(lambda s: s.replace("\\%s" % c, c),
response_list)
+ response_list[0] = response_list[0].split('.')[0]
return response_list
View
5 authorizenet/utils.py
@@ -29,7 +29,10 @@ def extract_form_data(form_data):
'x_delim_char': getattr(settings, 'AUTHNET_DELIM_CHAR', "|"),
'x_relay_response': "FALSE",
'x_type': "AUTH_CAPTURE",
- 'x_method': "CC"
+ 'x_method': "CC",
+ 'x_market_type': getattr(settings, 'AUTHNET_MARKET_TYPE', '2'),
+ 'x_device_type': '8',
+ 'x_response_format': '1'
}
Something went wrong with that request. Please try again.