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

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 19 2025 04:28:12
Script start
Timing: Jan 19 2025 04:28:12
Module start 'layout'
Timing: Jan 19 2025 04:28:12
Module start 'content'
Timing: Jan 19 2025 04:28:13
Module end 'content'
Timing: Jan 19 2025 04:28:13
Script end

Main resources:

Total runtime0.9014 sec
Peak memory usage4,096.0000 KB
Database Queries79

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 590.2891152.6250
Module start 'layout' 0.00580.0031 742.914139.4453
Module start 'content' 0.00890.8912 782.3594689.1172
Module end 'content' 0.90010.0013 1,471.476620.7891
Script end 0.9014  1,492.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3653160.0002
Check MTime0.00130.1475160.0001
Mysql Total
Database connection0.00130.148010.0013
Mysqli_queries0.829091.9611790.0105
Looping result0.00080.0855770.0000
Template Total0.869296.420.4346
Template load0.00210.229020.0010
Template processing0.867196.195820.4336
Template load and register function0.00010.010710.0001
states
state_id_array0.00080.087010.0008
state_identifier_array0.00150.164320.0007
Override
Cache load0.00180.1992470.0000
Sytem overhead
Fetch class attribute can translate value0.00050.058040.0001
Fetch class attribute name0.00190.2074120.0002
XML
Image XML parsing0.00180.194740.0004
class_abstraction
Instantiating content class attribute0.00000.0035150.0000
General
dbfile0.00110.1246280.0000
String conversion0.00000.000940.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
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/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: 33
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs