Forums / Developer / eZCrew: Request on guidelines for development future payment gateway adoptions

eZCrew: Request on guidelines for development future payment gateway adoptions

Author Message

Björn Dieding@xrow.de

Thursday 24 June 2004 7:38:02 am

trunk\kernel\shop\paymentgateways\doc\examples\paypal\paypalgateway.html

Hi,

I just found out that you published a payment gateway abstraction interface.

Well, I have the following questions adn noticed possible problems. I guess others might have them too. It would be nice if you could answer them.

1.) Current Development
trunk\kernel\shop\paymentgateways\doc\examples\paypal\paypalgateway.html
As mentioned in the doc from above all gateway adoptions have to be placed inside an extension.
Following questions resolve out of this issue:
- Who is suppossed to manage the gateways?
- Will the extension ezpaypal reside in the trunk or on the pubsvn? Can you place it there?
- When should the community start to bring up implementations upon this interface layout? Excluding/including ezpaypal?

2.) Future Development
Payment gateways have different abilities.
They can be used for single item purchases, subscriptions, refunds, payouts
Some payment gateways also have capabilities that have a higher interact with the system like AVS (Address Verifiction Service).

Important:
At current design the eZPaypalGateway includes code that makes it only useable with eZOrders (single item purchase only).
I would highly recommend introducing a layout that can reflect those ablilities.

- How do you think should those adoptors reflect those capabilities/abilities of payment gateways?
- How will eZ handle handle those issues in the future?

Current state:
eZPaymentGateway
(parent)->eZRedirectGateway
(parent)->(parent)->eZPaypalGateway (single Item only)

My Suggestion could look like this:
eZPaymentGateway
(parent)->eZAuthorizeNETGateway ( is very abstract, but powerfull )
(parent)->eZPaypalGateway ( is very abstract, but powerfull )
-hold definitions does the actual/avialable processing near to the gateway.
-e.g Paypal has SingleItem,Subcription,Refund and others

eZGatewayProcessing (processes and action like bill customer, signup customer(for subcriptions) )
(parent)->eZSOAPGatewayProcessing
(parent)->(parent)->eZAuthorizeNETSingleItemProcessing ( single Item )
(parent)->(parent)->eZAuthorizeNETSingleItemProcessing ( subscription unmanaged! )
(parent)->(parent)->eZPaypalRefundProcessing ( refunding )
(parent)->eZRedirectGatewayProcessing
(parent)->(parent)->eZPaypalSingleItemProcessing ( single Item )
(parent)->(parent)->eZPaypalSubcriptionProcessing ( subscription managed! - IPN )

eZPaymentGateway::execute() <- Gets data about type of process and selceced Gateway

Processing Callbacks:
eZPaymentGatewayCallback <- Gets data about the seleced Gateway gives it to eZPaymentGateway to find the callback type ( single Item ) and it will be processed by e.g. eZPaypalSingleItemProcessing

Conclusion:
I do not see how the current design does respect other needs of a payment gateway, it should be changed. I think we will double of code if we continue like this. If you respect those needs now, you won't have to rewrite lots of code in the future.

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/

eZ debug

Timing: Jan 18 2025 20:56:39
Script start
Timing: Jan 18 2025 20:56:39
Module start 'content'
Timing: Jan 18 2025 20:56:39
Module end 'content'
Timing: Jan 18 2025 20:56:39
Script end

Main resources:

Total runtime0.1685 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 588.0938180.7813
Module start 'content' 0.00790.0075 768.875094.0234
Module end 'content' 0.01540.1530 862.8984529.5000
Script end 0.1684  1,392.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00352.0930200.0002
Check MTime0.00150.8846200.0001
Mysql Total
Database connection0.00070.439310.0007
Mysqli_queries0.117869.95101410.0008
Looping result0.00140.82181390.0000
Template Total0.152690.610.1526
Template load0.00080.461810.0008
Template processing0.151890.109810.1518
Override
Cache load0.00050.321710.0005
Sytem overhead
Fetch class attribute can translate value0.00080.473710.0008
XML
Image XML parsing0.00030.191110.0003
General
dbfile0.00704.1255200.0003
String conversion0.00000.004830.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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