I did figure out what the issue is . . . and, yes, it's something stupid. I committed out the CACHE_PREFIX and CACHE_TIMEOUT settings as I was debugging. I came to the realization that the key that the card number was saved in the keycache was not the same key that it was saved with. As I was scratching my head on that, I noted warnings about those settings not being set. So I set those back and *boom* everything worked.
So keycache needs those (duplicated and, perhaps, decprecated) settings. If you don't have them set, you can't send card information to Authorize.net. That should be in the documentation somewhere. On Fri, Jul 1, 2011 at 8:53 AM, Chris Moffitt <[email protected]> wrote: > The payment module is pretty simple. You could add some debugging > statements in the processor.py file and see if you're getting the right cc# > passed to you. > > -Chris > > > On Fri, Jul 1, 2011 at 5:00 AM, Mike Hostetler > <[email protected]>wrote: > >> Actually, looking at the log, it does send a card number (albeit not >> complete). It also had x_test_request=False but I think it should be True. >> >> 2011-06-30 22:13:45,785 INFO About to send a request to authorize.net: >> https://secure.authorize.net/gateway/transact.dll >> >> x_login=6g7ce8CWr&x_version=3.1&x_delim_char=%7C&x_method=CC&x_type=AUTH_CAPTURE&x_delim_data=TRUE&x_relay_response=FALSE&x_tran_key=9Vj32fUr3gL9R6DV& >> *x_test_request=False*&x_exp_date=1%2F2012&*x_card_num=1111* >> &x_amount=9.47&x_card_code=REDACTED&x_invoice_num=13_test_063011_88646&x_city=Omaha&x_address=140+Smith+Cir&x_country=US&x_state=NE&x_first_name=Mike&x_last_name=Hostetler&x_zip=68144&x_email=mike% >> 40squarepegsystems.com&x_phone=402-981-2648 >> >> >> >> On Thu, Jun 30, 2011 at 10:53 PM, Chris Moffitt <[email protected]>wrote: >> >>> I just did a quick test and it seems to work for me. We haven't done >>> anything in this area recently. >>> >>> What cache are you using, maybe try restarting that... Not sure what the >>> issue is. >>> >>> -Chris >>> >>> On Thu, Jun 30, 2011 at 10:20 PM, Mike Hostetler < >>> [email protected]> wrote: >>> >>>> I had an older tip of Satchmo running, and I just recently upgraded to >>>> the latest tip because of the PostgreSQL changes Chris did. And now my >>>> test >>>> Authorize.net payments don't go through anymore. They used to. >>>> >>>> The reason is always "Credit card number is required" although I'm >>>> giving it the test credit card number. I do not see the card in the log. >>>> >>>> where did it go? My log file follows: >>>> >>>> 2011-06-30 22:13:45,708 INFO (Extra logging) Capturing payment on order >>>> #13 >>>> 2011-06-30 22:13:45,714 INFO (Extra logging) Capturing payment for Order >>>> #13: Mike Hostetler >>>> 2011-06-30 22:13:45,729 INFO (Extra logging) Using test connection. >>>> 2011-06-30 22:13:45,738 INFO (Extra logging) standard charges >>>> configuration: {'x_login': u'6g7ce8CWr', 'x_version': '3.1', >>>> 'x_delim_char': >>>> '|', 'x_method': 'CC', 'x_type': 'AUTH_CAPTURE', 'x_delim_data': 'TRUE', >>>> 'x_relay_response': 'FALSE', 'x_tran_key': u'9Vj32fUr3gL9R6DV', >>>> 'x_test_request': False} >>>> 2011-06-30 22:13:45,742 INFO (Extra logging) standard charges >>>> configuration: {'x_city': u'Omaha', 'x_address': u'14620 Frances Cir', >>>> 'x_country': u'US', 'x_state': u'NE', 'x_first_name': u'Mike', >>>> 'x_last_name': u'Hostetler', 'x_zip': u'68144', 'x_email': >>>> u'[email protected]', 'x_phone': u'402-981-2648'} >>>> 2011-06-30 22:13:45,784 INFO (Extra logging) standard charges >>>> transactionData: {'x_exp_date': '1/2012', 'x_card_num': u'1111', >>>> 'x_amount': >>>> Decimal('9.47'), 'x_card_code': 'REDACTED', 'x_invoice_num': >>>> '13_test_063011_88646'} >>>> 2011-06-30 22:13:45,785 INFO About to send a request to authorize.net: >>>> https://secure.authorize.net/gateway/transact.dll >>>> >>>> x_login=6g7ce8CWr&x_version=3.1&x_delim_char=%7C&x_method=CC&x_type=AUTH_CAPTURE&x_delim_data=TRUE&x_relay_response=FALSE&x_tran_key=9Vj32fUr3gL9R6DV&x_test_request=False&x_exp_date=1%2F2012&x_card_num=1111&x_amount=9.47&x_card_code=REDACTED&x_invoice_num=13_test_063011_88646&x_city=Omaha&x_address=140+Smith+Cir&x_country=US&x_state=NE&x_first_name=Mike&x_last_name=Hostetler&x_zip=68144&x_email=mike% >>>> 40squarepegsystems.com&x_phone=402-981-2648 >>>> 2011-06-30 22:13:46,102 INFO (Extra logging) Authorize response: >>>> 3|2|33|(TESTMODE) Credit card number is >>>> required.|000000|P|0|13_test_063011_88646||9.47|CC|auth_capture||Mike|Hostetler||14620 >>>> Frances >>>> Cir|Omaha|NE|68144|US|402-981-2648||[email protected]|Mike|Hostetler||140 >>>> Smith >>>> Cir|Atlanta|GA|30297|US||||||469413D7A16F4C722912921521A013F7|||||||||||||||||||||||||||||| >>>> 2011-06-30 22:13:46,102 DEBUG record_failure for None >>>> 2011-06-30 22:13:46,106 INFO Recording a payment failure: order #13, >>>> code 2 >>>> message=(TESTMODE) Credit card number is required. >>>> 2011-06-30 22:13:46,112 INFO (Extra logging) Returning success=False, >>>> reason=2, response_text=(TESTMODE) Credit card number is required. >>>> 2011-06-30 22:13:46,120 INFO Processing Credit Cards transaction with >>>> AUTHORIZENET >>>> Order 13 >>>> Results=False >>>> Response= >>>> Reason=(TESTMODE) Credit card number is required. >>>> >>>> >>>> >>>> -- >>>> Mike Hostetler >>>> SquarePeg Systems >>>> http://www.squarepegsystems.com >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Satchmo users" group. >>>> To post to this group, send email to [email protected]. >>>> To unsubscribe from this group, send email to >>>> [email protected]. >>>> For more options, visit this group at >>>> http://groups.google.com/group/satchmo-users?hl=en. >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Satchmo users" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/satchmo-users?hl=en. >>> >> >> >> >> -- >> Mike Hostetler >> SquarePeg Systems >> http://www.squarepegsystems.com >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Satchmo users" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/satchmo-users?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Satchmo users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/satchmo-users?hl=en. > -- Mike Hostetler SquarePeg Systems http://www.squarepegsystems.com -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
