Forums / Install & configuration / eZ Sips discussions

eZ Sips discussions

Author Message

Pascal Specht

Wednesday 05 September 2007 8:11:07 am

This is the place to share technical details or questions concerning the eZ Sips extension from Martin Harispuru
(see http://ez.no/community/contribs/workflow/ezsips)

Pascal Specht

Wednesday 05 September 2007 8:18:33 am

I don't understand how the shop/confirmorder page would get called anymore...

I followed your advice and now have only one workflow attached to the shop before confirmorder...but I don't get it right: What I want is that the person would see the page shop/confirmorder (the final basket with total amount etc) before going to the bank...
But as soon as I put the workflow in place, this page gets replaced by the small page that reads the credit card choice.

How do you get it so that the user would still see the confirmorder page with your extension ?

Thanks in advance,
Pascal

H-Works Agency

Wednesday 05 September 2007 10:49:18 am

The usual process order is : shop -> basket -> confirm order -> ezsips.

Shipping handler is applied in both basket & confirmorder stage.

Solve you problem by applying to "shop/checkout -> before" and not "shop/confirmorder"...as its sayed in my readme file.

EZP is Great

Pascal Specht

Thursday 06 September 2007 12:00:23 am

Hi Martin,

Thanks a lot... My question was indeed silly, for some (non)reason I used shop/confirmorder instead of shop/checkout which is of course wrong. That also solved my problem with the two workflows! And I certainly have read your readme to quickly, it was of course described there.

Again thanks,
Pascal

BTW: I will have to write a similar extension for the CIC bank, which does not use SIPS, but euro-information. The probable timeframe is around october this year. I'll keep you informed on this and will post it as a contribution. I hope I can reuse your framework as much as possible, so that the mechanisms will be the same.

This page resumes the different APIs in France, at the end:
https://www.liaison-ssl.com/~liaisonweb/index.php4?page=paiement_cb

Again thanks for helping me out,
Pascal

Pascal Specht

Monday 10 September 2007 8:30:09 am

Hi Martin,

I just noticed that since I added the eZ-Sips extension, there are no more e-mail order confirmations sent. It's very easy to reproduce: if I remove the workflow that triggers the extension, I get the e-mails, if I put it back, the e-mails don't get sent.

Is this something you were aware off?

Thanks in advance,
Pascal

Pascal Specht

Thursday 13 September 2007 2:03:12 am

Hi Martin,

I solved the problem that order confirmations aren't sent out by adding a call to <b>eZShopOperationCollection::sendOrderEmails()</b> in your handleResponse( ) function. I also modified the code to write the transaction information not directly into data_text_1, but into the <transaction> tag of any XML data already stored in data_text_1. In fact I keep customer shipping/billing adresses already there, on a per order basis.
For the records, here's my code:

				/* original code 
				$order->setAttribute('data_text_1', $paymentInfos);
				$order->store();
				*/
				eZShopOperationCollection::sendOrderEmails($orderID);

				$xml = new eZXML();
				$xmlDoc =& $order->attribute( 'data_text_1' );
				if( $xmlDoc != null )
				{
					$dom =& $xml->domTree( $xmlDoc );
					if ($dom) 
					{
						$items =& $dom->elementsByName( "transaction" );
						for( $i = 0, $c = count( $items ); $c > $i ; $i++)
						{
							$element = $items[$i];
							if ( count( $element->Children ) > 0 )
							{
								 foreach( array_keys( $element->Children ) as $key )
								 {
									 $child =& $element->Children[$key];
									 $child->setContent($paymentInfos);
								 }
							}
						}
					}
				}
				$order->setAttribute( 'data_text_1', $dom->toString() );
				$order->store();

Best regards,
Pascal

H-Works Agency

Sunday 30 September 2007 5:44:37 am

Hi Pascal,

In fact i didn't notice the fact email weren't sent anymore, thanx for the code.

Your technique for recording payment datas looks way more flexible than mine.

Did you understood the use of the paymentObject concept ? Does ezSips module could be better by using the paymentObject concept ? (i try to use it during developpement but didn't succeed by lack of documentation about how it works).

I will add your modifications to the extension & republish...as soon as ez.no has re-enabled contribution self-edit :p

Martin

EZP is Great

H-Works Agency

Monday 08 October 2007 2:02:24 am

Improvement on payment data recording :

I am working on an improved technique for recording order extra data, based on Pascal idea.

All ezorder extra datas will be holded into "data_text_1" field under an xml structure like this one :

<?xml version="1.0" encoding="utf-8"?>
  <ezorder>
     <group id="ezsips" name="Payment Datas">
        <elem id="transID" name="Transaction ID" value="9384938493849384" />
        <elem id="certifID" name="Certification ID" value="1873837437563756" />
     </group>
     <group id="ezdelivery" name="Delivery">
        <elem id="trackID" name="Tracking ID" value="1873837437563756" />
        <elem id="delAddr" name="Delivery address">
               53 H-Street Av. SD CAL - 5th floor right
        </elem>
        <elem id="extra" name="Extra delivery infos">
               Please deliver before midnight
        </elem>
    </group>
</ezorder>

EZP is Great

Pascal Specht

Monday 08 October 2007 2:18:18 am

Hi Martin,

Nice to see this. By the way, I didn't see any need for me to look into the paymentObject so far, as your extension worked for me. The options I will need to do in the future are: being able to use cheque AND credit card payments on user's choice, and adding CIC's payment method. I'll keep you informed.

Pascal

H-Works Agency

Monday 08 October 2007 2:34:34 am

Hi pascal,

I agree it would be useful to be able to include ezsips into a multi-payment.

Otherwise i will publish a cybermut payment gateway soon.

EZP is Great

Pascal Specht

Wednesday 31 October 2007 3:24:48 am

Hi Martin,

You were talking about publishing Cybermut... Is this work already in progress? Do you have an idea on when you plan to be finished?

I already did Cybermut (but not with eZ Publish) a year ago and I still have working code, so if you need anything from me, let me know!

Best regards,
</Pascal>

H-Works Agency

Wednesday 31 October 2007 3:37:25 am

Hi

I am planning to create the Cybermut module for the end of november 07.

I don't have the SDK from cybermut already but some friends told me its not very far from SIPS.

Anyway i would be glad to take a look at the code you made.

EZP is Great

eZ debug

Timing: Jan 18 2025 11:35:12
Script start
Timing: Jan 18 2025 11:35:12
Module start 'content'
Timing: Jan 18 2025 11:35:13
Module end 'content'
Timing: Jan 18 2025 11:35:13
Script end

Main resources:

Total runtime0.8906 sec
Peak memory usage4,096.0000 KB
Database Queries221

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0137 588.8438180.8359
Module start 'content' 0.01370.7325 769.6797666.7031
Module end 'content' 0.74620.1443 1,436.3828348.4375
Script end 0.8905  1,784.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4751210.0002
Check MTime0.00150.1737210.0001
Mysql Total
Database connection0.00140.153410.0014
Mysqli_queries0.770786.54002210.0035
Looping result0.00270.30232190.0000
Template Total0.850995.520.4254
Template load0.00200.224220.0010
Template processing0.848995.315520.4244
Template load and register function0.00010.012110.0001
states
state_id_array0.00120.132410.0012
state_identifier_array0.00120.139520.0006
Override
Cache load0.00230.2623820.0000
Sytem overhead
Fetch class attribute can translate value0.00110.120130.0004
Fetch class attribute name0.00150.1709140.0001
XML
Image XML parsing0.00140.156230.0005
class_abstraction
Instantiating content class attribute0.00010.0074240.0000
General
dbfile0.00350.3900340.0001
String conversion0.00000.000730.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
12content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
12content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
21content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 59
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs