Forums / Setup & design / VISA integration with shop

VISA integration with shop

Author Message

Siw Helen Thorslund

Sunday 01 May 2005 5:10:02 am

What is the best solution for integrating VISA with a shop i eZ publish?

www.VZT.no ( http://www.VZT.no )
VZT References ( http://http://vzt.no/index.php/vzt_eng/referanser )
VZT Extensions ( http://vzt.no/index.php/vzt_eng/extensions )
www.MediaBase.no ( http://www.MediaBase.no )

Xavier Dutoit

Sunday 01 May 2005 7:43:31 am

depends of what you want and your budget. Have a look at the payment providers already integrated with ez (paypal, worldpay and a few others if I'm right).

X+

P.S. Paypal is probably the cheaper

http://www.sydesy.com

Siw Helen Thorslund

Sunday 01 May 2005 8:17:38 am

I just put up a test-shop with PayPal.

My site is in Norwegian with currency NOK. It is right that PayPal will not accept this?

Only: Canadian Dollar, Euro, Pound Sterling, U.S. Dollar, Yen and Australian Dollar?

Anyone that have tried this integrated with a currency not on the list from PayPal?

www.VZT.no ( http://www.VZT.no )
VZT References ( http://http://vzt.no/index.php/vzt_eng/referanser )
VZT Extensions ( http://vzt.no/index.php/vzt_eng/extensions )
www.MediaBase.no ( http://www.MediaBase.no )

Siw Helen Thorslund

Monday 02 May 2005 2:27:25 am

Anyone that have tried this integrated with a currency not on the list from PayPal?

www.VZT.no ( http://www.VZT.no )
VZT References ( http://http://vzt.no/index.php/vzt_eng/referanser )
VZT Extensions ( http://vzt.no/index.php/vzt_eng/extensions )
www.MediaBase.no ( http://www.MediaBase.no )

Frederik Holljen

Monday 02 May 2005 4:35:05 am

Siw, did you look at our paynet integration?
http://ez.no/products/paynet_gateway

Siw Helen Thorslund

Monday 02 May 2005 4:39:17 am

Yes, I looked at Paynet, and it looks interesting.

You will need this to support Norwegian Kroner (NOK)?

www.VZT.no ( http://www.VZT.no )
VZT References ( http://http://vzt.no/index.php/vzt_eng/referanser )
VZT Extensions ( http://vzt.no/index.php/vzt_eng/extensions )
www.MediaBase.no ( http://www.MediaBase.no )

Petter Arneson

Friday 02 September 2005 5:54:23 am

Im trying to integrate PayPal as well.
I noticed that when the request is sent to PayPal (sandbox) it was a generated url something like this:

https://www.sandbox.paypal.com/cgi-bin/....&amount=299&currency_code=NOK

Maybe there is a way to generate a identical link with currency in euro, and calculate the amount in euro. Something like this:

https://www.sandbox.paypal.com/cgi-bin/....&amount=38&currency_code=EUR

I have included the eurofxref extension in my installation. With this I can calculate the correct price like this:

Price in NOK: {$node.object.data_map.price.content.price}

{def $ini_file=ezini('RegionalSettings', 'Locale')|append('.ini')}
Locale: {$ini_file}

{def $currency_short_name=ezini('Currency', 'ShortName', $ini_file)}
Currency short name: {$currency_short_name}

{let rates=fetch( 'eurofxref', 'fxref' )}
	{def $price_norwegian=$node.object.data_map.price.content.price}
	{* def $euro=$rates.fx.$currency_short_name|110n( 'number' ) *}
	{def $euro=$rates.fx.NOK|110n( 'number' )}
	{def $price_euro=div($price_norwegian, $euro)}

	Price in Euro: {$price_euro|l10n('clean_currency')}

{/let}

As you can see I'm also trying to fetch the currency short name from the share/locale folder, so this could be dynamic, but it won't fetch the settings.

I've tried to locate where the url is generated, but this is done somewhere in the kernel, and I'm not sure how to do this correctly.

Does someone have a solution to this, or any ideas?

-Thanks

www.vzt.no

Petter Arneson

Monday 05 September 2005 2:47:17 pm

Have anybody tried generating their own request string for communicating with PayPal?

Or have any idea if this is possible or not?

www.vzt.no

Petter Arneson

Wednesday 14 September 2005 6:11:33 am

Doh!
The url is generated in the PayPal extension.
The idea worked fine so far, exept for the timeout in the callback.

www.vzt.no

eZ debug

Timing: Jan 20 2025 20:46:09
Script start
Timing: Jan 20 2025 20:46:09
Module start 'content'
Timing: Jan 20 2025 20:46:09
Module end 'content'
Timing: Jan 20 2025 20:46:09
Script end

Main resources:

Total runtime0.1339 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.0075 587.7109180.8359
Module start 'content' 0.00750.0059 768.5469105.9922
Module end 'content' 0.01340.1204 874.5391533.6484
Script end 0.1338  1,408.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00332.4469200.0002
Check MTime0.00130.9513200.0001
Mysql Total
Database connection0.00080.625110.0008
Mysqli_queries0.092168.80101410.0007
Looping result0.00120.88541390.0000
Template Total0.120089.610.1200
Template load0.00080.613210.0008
Template processing0.119289.005610.1192
Override
Cache load0.00060.422710.0006
Sytem overhead
Fetch class attribute can translate value0.00070.521910.0007
XML
Image XML parsing0.00020.184510.0002
General
dbfile0.00271.9860200.0001
String conversion0.00000.004530.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