Forums / General / ezpaypal currency is blank

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