New Protx VSP Payment Gateway Extension development

Author Message

Mark Emms

Monday 01 September 2008 1:26:01 am

Does anyone have exemplar scripts which closely match this payment process that they would let me refer to?

This is my first payment gateway extension and I could do with a few pointers (in fact it is my first proper extension at all) . This is where I've got to:

Protx VSP uses a multi-stage process as follows:
1. Send a POST request for a payment url (which includes customer details etc).
2. Protx POSTs back a url with some security information (e.g. key and transaction id etc)
3. User is redirected to the Protx site for card details to be collected and where 3-D authorisation is appropriate for the user to be redirected tto their bank and back again etc.
4. Protx site then POSTs back transaction status and further security information and requests a redirection URL for the user to be transfered to (POST is to a preconfigured URL).
5. Protx then redirects to that URL and the process is complete.

So I think I need 2 scripts and a database table:

A. A script to put together the original POST and then redirect the user to Protx
B. A script to handle the POST request from Protx
C. Database holding all required information relating to Protx and having a foreign key linking to the eZ Order recording system.

I do not want to redesign the wheel! So obviously I have had a good look at the existing Protx extension which as far as I can tell will not work at all with Protx VSP. Some of it is useful for script A (thank you Stuart!).

Fortunately Protx have produced exemplar PHP code in a kit they publish - it does everything from putting products in the basket onwards in its own database structure so in theory I recognise this should be a relatively simple task however if anyone can save me a bit of time I'd be really pleased!

Help most fervently appreciated!!

Thanks

Neo Pixel

Thursday 02 April 2009 2:58:32 am

Have you made any headway with this extension?

I need to use PROTX as a payment processor on a members only website.

Asking stupid questions so you don't have to!

Mark Emms

Thursday 02 April 2009 3:21:32 am

In the end I had to pay for development of this extension so it now exists!

At this stage I am working towards offering it as a product for sale at a cost to help me recover my own expenses.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 04:08:16
Script start
Timing: Jan 18 2025 04:08:16
Module start 'layout'
Timing: Jan 18 2025 04:08:16
Module start 'content'
Timing: Jan 18 2025 04:08:17
Module end 'content'
Timing: Jan 18 2025 04:08:17
Script end

Main resources:

Total runtime0.8405 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 589.4922152.6406
Module start 'layout' 0.00450.0026 742.132839.4766
Module start 'content' 0.00720.8321 781.6094542.3438
Module end 'content' 0.83930.0013 1,323.953112.1250
Script end 0.8405  1,336.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3564160.0002
Check MTime0.00130.1546160.0001
Mysql Total
Database connection0.00060.065610.0006
Mysqli_queries0.793594.4026570.0139
Looping result0.00070.0797550.0000
Template Total0.814196.920.4071
Template load0.00180.219120.0009
Template processing0.812396.634120.4061
Template load and register function0.00010.011410.0001
states
state_id_array0.00070.086510.0007
state_identifier_array0.00110.127920.0005
Override
Cache load0.00160.1878280.0001
Sytem overhead
Fetch class attribute can translate value0.00050.063520.0003
Fetch class attribute name0.00100.114350.0002
XML
Image XML parsing0.00090.101620.0004
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00080.1001230.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs