Handling credit cards
If anyone has any sample code for handling credit card payments under Zope I'd be interested in having a look. -- John
On Tue, 2004-09-21 at 18:12, John Poltorak wrote:
If anyone has any sample code for handling credit card payments under Zope I'd be interested in having a look.
Hello John... I got an application working (in production). How much do you know about handling CC via internet? Most of the work is done by the service providers. Bascially, it consists of a webform. It has specific fields you need to fill Ie. TotalAmount, TaxAmount, OrderId, etc... So you build up the URL, Add the field values, And do a redirect to it... At the providers SSL site, my client fills in his CC info, and if all goes good, the providers calls my Zope application back certain fields CCTranId, OrderId, etc... If the CC fails, the provider call back another portion of my zope with the appropiate fields FalureReason, OrderId, etc... It's really rather simple stuff, and fully explained in the PDF Manuals, provided when I opened my merchant account. You do know that you need a special CC account to handle internet CC? A normal CC account are not allowed to do this! Most banks have a provider they are set up with and get reduced rates (costs per transcation, etc) hope this helped... Jerry
1.) Is there any way to tell if the conflict errors I see in event.log are Read or Write Conflict Errors? 2.) Is there any way to get event.log to produce more information on these conflicts? Right now I get the URL that is raising the error, but no function name (beyond what is in the URL) or line number. --Sean
-----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org]On Behalf Of Jerome R. Westrick Sent: Tuesday, September 21, 2004 1:19 PM To: zope@zope.org Subject: Re: [Zope] Handling credit cards
On Tue, 2004-09-21 at 18:12, John Poltorak wrote:
If anyone has any sample code for handling credit card payments
under Zope
I'd be interested in having a look.
Hello John...
I got an application working (in production).
How much do you know about handling CC via internet? Most of the work is done by the service providers.
Bascially, it consists of a webform. It has specific fields you need to fill Ie. TotalAmount, TaxAmount, OrderId, etc...
So you build up the URL, Add the field values, And do a redirect to it...
At the providers SSL site, my client fills in his CC info, and if all goes good, the providers calls my Zope application back certain fields CCTranId, OrderId, etc...
If the CC fails, the provider call back another portion of my zope with the appropiate fields FalureReason, OrderId, etc...
It's really rather simple stuff, and fully explained in the PDF Manuals, provided when I opened my merchant account.
You do know that you need a special CC account to handle internet CC? A normal CC account are not allowed to do this! Most banks have a provider they are set up with and get reduced rates (costs per transcation, etc)
hope this helped...
Jerry
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
1.) Is there any way to tell if the conflict errors I see in event.log are Read or Write Conflict Errors?
I think they are all write conflicts, but don't quote me on it.
2.) Is there any way to get event.log to produce more information on these conflicts? Right now I get the URL that is raising the error, but no function name (beyond what is in the URL) or line number.
<eventlog> level BLATHER <logfile> path $INSTANCE/log/event.log </logfile> </eventlog> will set the logging level to the level required for traceback information --Sean
1.) Is there any way to tell if the conflict errors I see in event.log are Read or Write Conflict Errors?
I think they are all write conflicts, but don't quote me on it.
No - when you set the event log level to BLATHER - you can see which are Read Conflicts and which are Write Conflicts
Sean Hastings wrote at 2004-9-21 13:36 -0400:
1.) Is there any way to tell if the conflict errors I see in event.log are Read or Write Conflict Errors?
I posted a patch to distinguish between both kinds of errors.
2.) Is there any way to get event.log to produce more information on these conflicts?
The patch provides all information that is available in the exception. It (but not always) often contains OID, class, serials.
Right now I get the URL that is raising the error, but no function name (beyond what is in the URL) or line number.
I fear this information would need another patch, at the same place where the patch mentioned above changes. -- Dieter
Thanks - I will check out the patch. I understand that MVCC will eliminate Read Conflicts and is scheduled for Zope 2.8 which will be in alpha any day now. Is there a patch available right now to use MVCC in 2.7.X? --Sean
-----Original Message----- From: Dieter Maurer [mailto:dieter@handshake.de] Sent: Friday, September 24, 2004 2:59 PM To: Sean Hastings Cc: zope@zope.org Subject: Re: [Zope] Conflict Errors
Sean Hastings wrote at 2004-9-21 13:36 -0400:
1.) Is there any way to tell if the conflict errors I see in event.log are Read or Write Conflict Errors?
I posted a patch to distinguish between both kinds of errors.
2.) Is there any way to get event.log to produce more information on these conflicts?
The patch provides all information that is available in the exception. It (but not always) often contains OID, class, serials.
Right now I get the URL that is raising the error, but no function name (beyond what is in the URL) or line number.
I fear this information would need another patch, at the same place where the patch mentioned above changes.
-- Dieter
On Fri, 2004-09-24 at 17:09, Sean Hastings wrote:
Thanks - I will check out the patch.
I understand that MVCC will eliminate Read Conflicts and is scheduled for Zope 2.8 which will be in alpha any day now.
Is there a patch available right now to use MVCC in 2.7.X?
Yes and no. Yes: I believe Dieter Maurer has implemented a flavor of MVCC for the ZODB that ships with Zope 2.7 (although I'm not quite sure where to find it). No: the MVCC implementation that will ship with Zope 2.8 cannot be used with Zope 2.7 because it depends on bits that depend on being able to pickle new-style Python classes, which the ZODB that ships with Zope 2.7 cannot do. - C
Chris McDonough wrote at 2004-9-24 18:36 -0400:
... Yes: I believe Dieter Maurer has implemented a flavor of MVCC for the ZODB that ships with Zope 2.7
True.
(although I'm not quite sure where to find it).
You cannot. It is not published... It affects lots of files in ZODB and ZEO. This means, it would be a complex patch -- likely to fail for simple modifications in the Zope core. Moreover, I could not easily extract it. This is because our ZODB version contains lots of other modifications (and some fixes). -- Dieter
participants (5)
-
Chris McDonough -
Dieter Maurer -
Jerome R. Westrick -
John Poltorak -
Sean Hastings