Forums / Developer / New Protx VSP Payment Gateway Extension development

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.

eZ debug

Timing: Jan 18 2025 01:02:44
Script start
Timing: Jan 18 2025 01:02:44
Module start 'content'
Timing: Jan 18 2025 01:02:45
Module end 'content'
Timing: Jan 18 2025 01:02:45
Script end

Main resources:

Total runtime1.0426 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0094 587.8594180.8125
Module start 'content' 0.00940.8958 768.6719547.4375
Module end 'content' 0.90530.1373 1,316.1094332.7422
Script end 1.0426  1,648.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3937210.0002
Check MTime0.00150.1431210.0001
Mysql Total
Database connection0.00170.160110.0017
Mysqli_queries0.962592.31781940.0050
Looping result0.00210.20281920.0000
Template Total0.993295.320.4966
Template load0.00210.198920.0010
Template processing0.991195.055420.4955
Template load and register function0.00010.013110.0001
states
state_id_array0.00410.395810.0041
state_identifier_array0.00200.187920.0010
Override
Cache load0.00170.1673280.0001
Sytem overhead
Fetch class attribute can translate value0.00120.117530.0004
Fetch class attribute name0.00100.092250.0002
XML
Image XML parsing0.00430.408130.0014
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00890.8538340.0003
String conversion0.00000.000930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs