Re: USAepay cc payment processor

2008-07-12 Thread Chris Moffitt
I'm not familiar with this particular processor but on the surface it looks
like a similar process to what you would use for Authorize.net. You can see
how we use this particular processor in Satchmo -
http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/payment/modules/authorizenet

Line #82 in processor.py is where the post and response code happens.

Hopefully this helps you out.

-Chris

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



USAepay cc payment processor

2008-07-12 Thread Bobby Roberts

Hi group.  I'm now successfully dinging credit cards using https
posting over to USAepay.com.  It's working great.  I've got a question
though that i'm not sure how to handle and general guidance is greatly
appreciated.

I pass two parameters to them called UMredirAccept and UMredirDecline
for urls to redirect to on the appropriate response they send back to
me.

After talking with them, they will be using that url and posting back
data to me directly in the URL.

So I have some questions that I can't seem to figure out.

first let's look at the view i've built:

###
import urllib

def DoChargeCard (request):
  UMredirApproved = "http://www.mysite.com/paynow/approved.html;
#these are included in DataToSend
  UMredirDeclined = "http://www.mysite.com/paynow/declined.html;
#these are included in DataToSend

  DataToSend = urllib.urlencode({

[snip ]
})

  DataPacket = urllib.urlopen("http://www.somesite.com/
gate",DataToSend)

###

I've snipped the boring build for the data to pass but it's a simple
https post that sends data over to usaepay.com.

Here are a few things i'm running into:

first they will pass variables back with data in them to the url(s)
above.  As I understand it they will send the response back to:

http://www.mysite.com/paynow/approved.html?approvecode=xx=blah...

I'm having trouble figuring out how to rip those variables and values
out of the url in django/python.


secondly if you look in the view above... i don't do anything after I
post over to the website.  As a result i'm getting a traceback for
"didn't return an HttpResponse object".  The reason is i'm stuck and
have no idea what to do from this point on.

now my understanding is that the cc processor redirects to a URL we
provide so what http response would i put in there since they are (i
guess) controlling the browser after the post?

Secondly, how would i parse the results being appended to the url  as
described above.


Many thanks.

I'm very confused here.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---