Paypal as Optional

Author Message

Mohammad Tufail

Monday 25 May 2009 12:13:08 am

Hi,

I want paypal in my ezpublish site as optional payment gateway i.e on confirm order page there should be a checkbox "Pay via Paypal" if it is selected the payment should be done via paypal else the normal flow should be executed.

Anyone has idea?

--
Regards,

Björn Dieding@xrow.de

Monday 25 May 2009 2:36:16 am

I would create something like a void payment gateway in addition ... like "pay by invoice"

http://svn.projects.ez.no/xrowecommerce/trunk/extension/xrowecommerce/classes/gateways/

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Mohammad Tufail

Thursday 28 May 2009 3:20:12 am

hi,

can you explain it a little further?

Björn Dieding@xrow.de

Thursday 28 May 2009 11:57:57 am

you create a this new payment gateway that basicly does nothing...

then on the page where the shop users select the gateway you will have then a option list wiht two options

- Pay via Paypal
- Pay by Invoice / Advance Payment

That way you circumvent the fact that you need to rewrite the gateway workflow for what you need to archive.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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 31 2025 04:23:57
Script start
Timing: Jan 31 2025 04:23:57
Module start 'layout'
Timing: Jan 31 2025 04:23:57
Module start 'content'
Timing: Jan 31 2025 04:23:57
Module end 'content'
Timing: Jan 31 2025 04:23:57
Script end

Main resources:

Total runtime0.0151 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.0156151.1953
Module start 'layout' 0.00500.0029 739.210936.6328
Module start 'content' 0.00790.0056 775.843894.1250
Module end 'content' 0.01350.0015 869.968833.9922
Script end 0.0150  903.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002717.6392140.0002
Check MTime0.00117.3390140.0001
Mysql Total
Database connection0.00085.203910.0008
Mysqli_queries0.002818.560430.0009
Looping result0.00000.099710.0000
Template Total0.00117.410.0011
Template load0.00095.941510.0009
Template processing0.00021.454510.0002
Override
Cache load0.00064.235310.0006
General
dbfile0.001610.669080.0002
String conversion0.00000.166240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs