protx extension failing to complete stock checkout

Author Message

stephen Gazard

Tuesday 26 February 2008 5:05:05 am

Hello,

I've got a site which uses the protx payment extension to process the payments. It used to work on another server, but since being moved from other hosts to the our server, something goes wrong.

<b>Here's what works:</b>
1) details entered on site of order and information regarding the order
2) redirection to protx and payment successfully taken

<b>What should happen</b>
protx returns details to the site, and then the site (example url below), and then the user is redirected to www.site.com/index.php/site/order/123 where 123 is an order name

<b>Failure occurs in the next step.</b>
when protx redirects back to the main site, it goes to www.site.com/index.php/site/protx/callback?crypt=some_really_long_string
<i>As far as I can tell, this is correct behaviour</i>. Given that /index.php/* redirects internally to /index.php?/* I've had to add the following code to get it to refresh so that the crypt variable is available as $_GET['CRYPT']. The following is placed as the first item of code to be run in /extension/protx/modules/protx/callback.php

// in case the url was returned in an unsuitable fashion.  Don't even bother processing further:
if(!isset($_GET['crypt'])){
// replace the '?' with '&' and cause an HTTP redirect to the correct url which will work
@header("Location: ".preg_replace("/(callback)\?(crypt)/i","\\1&\\2",$_SERVER['REQUEST_URI']));

}

that gives www.site.com/index.php/site/protx/callback<b>&</b>crypt=some_really_long_string

However, It's still failing, and from what I can tell it's something to do with 'simplestockcheck' (it complains sometimes of not having a correct orderid (which is determined from the decrypted crypt once looked up in the database.

has anyone had experience with this and figured out a resolution. I think it must be some configuration option I'm missing

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 05:11:33
Script start
Timing: Jan 18 2025 05:11:33
Module start 'layout'
Timing: Jan 18 2025 05:11:33
Module start 'content'
Timing: Jan 18 2025 05:11:34
Module end 'content'
Timing: Jan 18 2025 05:11:34
Script end

Main resources:

Total runtime0.5081 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.0391152.6406
Module start 'layout' 0.00590.0029 740.679739.4766
Module start 'content' 0.00890.4978 780.1563411.3672
Module end 'content' 0.50660.0015 1,191.52348.1250
Script end 0.5081  1,199.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.6723160.0002
Check MTime0.00150.2863160.0001
Mysql Total
Database connection0.00060.111610.0006
Mysqli_queries0.468392.1509460.0102
Looping result0.00040.0816440.0000
Template Total0.474093.320.2370
Template load0.00280.541620.0014
Template processing0.471292.736720.2356
Template load and register function0.00030.050210.0003
states
state_id_array0.00110.224010.0011
state_identifier_array0.00150.292920.0007
Override
Cache load0.00230.4568170.0001
Sytem overhead
Fetch class attribute can translate value0.00090.174910.0009
Fetch class attribute name0.00070.134610.0007
XML
Image XML parsing0.00010.022410.0001
class_abstraction
Instantiating content class attribute0.00000.000810.0000
General
dbfile0.00070.1391100.0001
String conversion0.00000.001840.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
1content/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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs