Extending Paypal Extension to work in Multple Currencies

Author Message

Stuart Fenton

Wednesday 24 January 2007 11:53:56 am

I have been working with multiple currencies and extended the papal extension to accommodate them.

However there are many parts of the gateway that just don't support multiple currencies.

For example when Paypal send the transaction back to ez the 'mc_currency' contain the currency of the transaction, which ez denied as it only looks at the $locale to figure out what currency is acceptable. It doesn't look at the currency of the order, and in fact this information is not saved in the ezOrder object or any other part of the order.

I assume to make the Paypal extension work in multiple currencies I will need to write my own payment gateway based on the Paypal extension.

Then extend the ezOrder object to save the currency so I can test it when it comes back from Paypal.

In the meantime I have simple removed checking for currency as the client gets his email from Paypal and can check before shipping.

Not a great solution.

Has anyone else tried multi currency support within multiple languages where each language can choose between currencies?

For example a translation in Spanish may want to pay in Euros if there in Europe and in Dollars if there in South America.

Regards
Fats

-- Stuart

stuart@grandmore.com
http://www.grandmore.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 01:25:46
Script start
Timing: Jan 31 2025 01:25:46
Module start 'layout'
Timing: Jan 31 2025 01:25:46
Module start 'content'
Timing: Jan 31 2025 01:25:46
Module end 'content'
Timing: Jan 31 2025 01:25:46
Script end

Main resources:

Total runtime0.0226 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.3906151.2422
Module start 'layout' 0.00510.0040 739.6328220.7500
Module start 'content' 0.00910.0120 960.3828997.8672
Module end 'content' 0.02110.0015 1,958.250029.9922
Script end 0.0226  1,988.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002712.0251140.0002
Check MTime0.00114.9173140.0001
Mysql Total
Database connection0.00093.957810.0009
Mysqli_queries0.002510.879330.0008
Looping result0.00000.066410.0000
Template Total0.00104.510.0010
Template load0.00083.476510.0008
Template processing0.00021.011010.0002
Override
Cache load0.00062.504410.0006
General
dbfile0.00031.255480.0000
String conversion0.00000.027440.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