ezpaypal currency is blank

Author Message

philumo luan

Thursday 20 September 2007 9:39:16 pm

hi all

i use ezpaypal to charge on internet and the currency i use in my site is euro but when i charge at "paypal center" the currency is dollar , i find out the crrency paramenter is blank and i check on the file /share/locale/eng-GB.ini and ezpaypal/module/... is right . nothing wrong but why when i submit the currency is blank.

because my site is run at France so the currency which i use have to be euro.

pls help me

thanks you

Christophe Condomines

Monday 24 September 2007 2:14:52 am

Which ez version do you use?
Which language do you use? Are you sure the one you are using when doing the checkout process have the correct shortNameCurrency?

Microblau SL
http://www.microblau.net

Christophe Condomines

Monday 24 September 2007 4:59:03 am

One more thing: Did you authorize/activate the euro currency in your paypal account?

Microblau SL
http://www.microblau.net

philumo luan

Monday 24 September 2007 8:00:24 pm

thanks you

im using ezpublish 3.9.3
im using french language in my site
this is first time i do with ezpaypal so i dont know process...
pls explain more clearly for me , when i create my account on the paypal center i create with french so my currency is euro but the problem is:
when i submit information to paypal the link dont have any currency_code;
this is it: ...&$currency_code=&...

nothing strange in my code and ini file but i dont know why this value is blank

pls explain more clearly about this

thanks you

philumo luan

Monday 24 September 2007 8:29:37 pm

this is my link:
"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_ext-enter&redirect_cmd=_xclick&business=thomas.leiritz%40dirox.net&item_name=doll+1&custom=13&
amount=76&currency_code=&
first_name=luan&last_name=nguyen+minh&address1=abc&
zip=084&state=euro&city=abc&
image_url=http://127.0.0.1%2Fvar%2Fshop%2Fimages%2Fmylogo.png&cs=0&
page_style=&no_shipping=1&cn=Some+Label&no_note=0&lc=FR&
notify_url=http://127.0.0.1/jadm/index.php/fre/paypal/notify_url/&
return=http://127.0.0.1/jadm/index.php/fre/shop/checkout/&
cancel_return=http://127.0.0.1/jadm/index.php/fre/shop/basket"

this is my setting file:
[Currency]
Symbol=¤
Name=Euro
ShortName=EUR
DecimalSymbol=,
ThousandsSeparator=
FractDigits=2
PositiveSymbol=
NegativeSymbol=-
PositiveFormat=%p%q %c
NegativeFormat=%p%q %c

Christophe Condomines

Tuesday 25 September 2007 12:11:17 am

There is some changes between 3.9.2 and 3.9.3 to manage the currency of an order.
It seems that from 3.9.3 the currency is not retrieved anymore from the locale file.

Microblau SL
http://www.microblau.net

Christophe Condomines

Tuesday 25 September 2007 12:15:03 am

Ok, I just checked it: With 3.9.3, first you have to activate the currencies you want to use.
Go to the admin interface, WebShop settings and enable the currencies and also the preferred currency.
Tell us if this solves your problem with paypal.

Microblau SL
http://www.microblau.net

philumo luan

Tuesday 25 September 2007 12:20:26 am

i check my wbshop in admin interface and nothing strange

this is the information, i use france in my admin site :
"Devises" menu :
nom: EURO
code: EUR
symbol: ...
localisation: fre-FR
status: active
Taux automatique: N/A
Taux personnalisé: ...
Facteur : 1000000

"Devises preferee" menu:
EUR-Euro

that is it

Christophe Condomines

Tuesday 25 September 2007 12:33:27 am

<i>so what could i do with my project now, Christophe?</i>

Go to the admin interface, WebShop settings and enable the currencies and also the preferred currency.

<i>everything is done , it doesnt make sense if i start again everything.</i>

You don't have to start again, just configure the webshop.

<i>but the information you give me is real or not?</i>

Hey philumo, we only try to help you! We just checked a fresh 3.9.3 install and see these changes. You can directly check the php files in paypal extension and you will see the changes between 3.9.2 and 3.9.3.

Microblau SL
http://www.microblau.net

philumo luan

Tuesday 25 September 2007 12:41:29 am

sorry about my says because im so touched because i spend many time to do with this project.

i post all information in my admin webshop on above topic.

pls check and give me some idea, i do with webshop first time so i havent experiences to do with it much.

thanks you

Christophe Condomines

Tuesday 25 September 2007 1:07:34 am

Hi philumo,

You will have to wait a bit more before having your site working. I was setting a site like the one you described and it fails as you told.
Having a look into the mysql tables, the column for the currency code is empty in the database !!
Then, I looked for a bug at issues.ez.no, and there is one created the 17th of September exactly about your problem.

You should read and subscribe to the issue:

http://issues.ez.no/IssueView.php?Id=11454&activeItem=1

And, probably you will have to wait the next maintenance release to have paypal work.

Best regards.

Microblau SL
http://www.microblau.net

philumo luan

Tuesday 25 September 2007 1:40:15 am

thanks you Christophe

i check my code and change something and right now, it can send the currency value to paypal center

this is my way:
3.9.3 current(it dont run):
$currency = urlencode( $collection->attribute( 'currency_code' ) );

3.9.3 changed(it run):
$currency = urlencode( $locale->currencyShortName() );

i change code to get currency from locale file , dont get from db anymore

thanks you so much Christophe

this is my yahoo nickname: philumo

i hope i can have change to talk with you by yahoo chat.

thanks you again

Christophe Condomines

Tuesday 25 September 2007 1:50:32 am

<i>thanks you Christophe</i>

You're welcome :-)

<i>I change code to get currency from locale file , dont get from db anymore</i>

Ok, you are doing it like it was before in the release 3.9.2
It's a quick and dirty hack, but it will work for you.
Now, take care of this change for your further upgrades, probably the problem will be solved by the next maintenance release.

Regards.

Microblau SL
http://www.microblau.net

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 18 2025 21:02:06
Script start
Timing: Jan 18 2025 21:02:06
Module start 'layout'
Timing: Jan 18 2025 21:02:06
Module start 'content'
Timing: Jan 18 2025 21:02:06
Module end 'content'
Timing: Jan 18 2025 21:02:06
Script end

Main resources:

Total runtime0.0198 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.0088 587.9063152.6250
Module start 'layout' 0.00880.0038 740.531339.4453
Module start 'content' 0.01260.0048 779.9766105.2891
Module end 'content' 0.01750.0023 885.265650.3047
Script end 0.0198  935.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002914.6542140.0002
Check MTime0.00126.0068140.0001
Mysql Total
Database connection0.00167.997810.0016
Mysqli_queries0.003618.028730.0012
Looping result0.00000.135910.0000
Template Total0.00189.010.0018
Template load0.00104.936110.0010
Template processing0.00084.031410.0008
Override
Cache load0.00073.435910.0007
General
dbfile0.00031.432880.0000
String conversion0.00000.066240.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