PayPal Currency Issue

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

PayPal Currency Issue

Gaurav kalia
Hi All

I am facing a problem with PayPal. I have configured my store to use GBP Currency and I can see all the price listed in GBP in the application but when I try to pay with Paypal at the very last step after login it take me to Paypal website and there currency get changed to Dollars.

I have checked the patch and applied it but still I am facing the same problem.

https://issues.apache.org/jira/browse/OFBIZ-3335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Please suggest

Regards

Gaurav
Reply | Threaded
Open this post in threaded view
|

Re: PayPal Currency Issue

BJ Freeman
check your paypal website settings
they override what ofbiz sends.


kaliagaurav sent the following on 7/13/2010 2:26 AM:

>
> Hi All
>
> I am facing a problem with PayPal. I have configured my store to use GBP
> Currency and I can see all the price listed in GBP in the application but
> when I try to pay with Paypal at the very last step after login it take me
> to Paypal website and there currency get changed to Dollars.
>
> I have checked the patch and applied it but still I am facing the same
> problem.
>
> https://issues.apache.org/jira/browse/OFBIZ-3335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>
> Please suggest
>
> Regards
>
> Gaurav
Reply | Threaded
Open this post in threaded view
|

Re: PayPal Currency Issue

Gaurav kalia
Thanks for the reply.

I will cross check my PayPal settings.

regards

Gaurav
Reply | Threaded
Open this post in threaded view
|

Re: PayPal Currency Issue

Gaurav kalia
In reply to this post by BJ Freeman
Hi All

I have cross checked my paypal website setting, everything seems to be fine. I was not able to find any place stating Dollar.

If any body haev any idea about setting currency type for paypal either in paypal account or in ofbiz settings. please let me know


Regards

Gaurav
Reply | Threaded
Open this post in threaded view
|

Re: PayPal Currency Issue

rajsaini
Hi Gaurav,

Which version of OFBiz are you using? There was a problem in the past
and I think at that time currency was hard coded. In the current code
currency sent to paypal is taken from the OrderHeader Entity. You can
look into the PayplaEvents for more details.

Thanks,

Raj

Currency is picked from the order header
On 15/07/10 17:02, kaliagaurav wrote:

> Hi All
>
> I have cross checked my paypal website setting, everything seems to be fine.
> I was not able to find any place stating Dollar.
>
> If any body haev any idea about setting currency type for paypal either in
> paypal account or in ofbiz settings. please let me know
>
>
> Regards
>
> Gaurav
>    

Reply | Threaded
Open this post in threaded view
|

Re: PayPal Currency Issue

Gaurav kalia
Hi Raj

I am using version 9.04 and I have applied patch to this class.

https://issues.apache.org/jira/browse/OFBIZ-3335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

If I still need to make any other change then please let me know.

Regards

Gaurav
Reply | Threaded
Open this post in threaded view
|

Re: PayPal Currency Issue

rajsaini
Hi Gaurav,

Only other thing I think you will need is your store currency setting
and this should work fine.

Regards,

Raj

On 15/07/10 18:11, kaliagaurav wrote:

> Hi Raj
>
> I am using version 9.04 and I have applied patch to this class.
>
> https://issues.apache.org/jira/browse/OFBIZ-3335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>
> If I still need to make any other change then please let me know.
>
> Regards
>
> Gaurav
>    

Reply | Threaded
Open this post in threaded view
|

Re: PayPal Currency Issue

Gaurav kalia
Hi Raj

I will check that as well. But in my application i can see all the prices coming in GBP. it only changes when we get directed to paypal website.

Thanks

Gaurav
Reply | Threaded
Open this post in threaded view
|

Re: PayPal Currency Issue

rajsaini
You need to send a currencyUom to the paypal. This CurrencyUoM  set into
the PaypalEvents class. In your code this defaults to USD. That is the
reason in your application prices are in GBP and when it goes to Paypal
it is converted to USD as that is the default for Paypal.

Thanks,

Raj

On 15/07/10 18:42, kaliagaurav wrote:
> Hi Raj
>
> I will check that as well. But in my application i can see all the prices
> coming in GBP. it only changes when we get directed to paypal website.
>
> Thanks
>
> Gaurav
>    

Reply | Threaded
Open this post in threaded view
|

Re: PayPal Currency Issue

Gaurav kalia
Hi Raj

If I am not wrong "currencyuom" get configured in general.properties. I have changed

currency.uom.id.default=USD

to

currency.uom.id.default=GBP

Is there any other place where I need to configure this.

Please suggest

Regards
Gaurav
Reply | Threaded
Open this post in threaded view
|

Hard space in catalog name

David van der Staak
Hi,

I'm trying to add a hardspace in the catalog name, the name that is
visible on the front end. However, when I type the $nbsp; in the name it
gets changed to $nbsp&#59; which shows it as the literal string
$nbsp; in the browser. I'm trying to make the name not wrap, as I rather
have it breaking out of the box then breaking the entire layout (which
is what happens now).

TL;DR How to add a hard space in catalog name?

Regards,

David

Reply | Threaded
Open this post in threaded view
|

Re: Hard space in catalog name

BJ Freeman
as we move to internationalize content that may not be the best way.
have you looked at CSS as way to accomplish this.
create a style.

David van der Staak sent the following on 7/15/2010 7:38 AM:

> Hi,
>
> I'm trying to add a hardspace in the catalog name, the name that is
> visible on the front end. However, when I type the $nbsp; in the name it
> gets changed to$nbsp&#59; which shows it as the literal string
> $nbsp; in the browser. I'm trying to make the name not wrap, as I rather
> have it breaking out of the box then breaking the entire layout (which
> is what happens now).
>
> TL;DR How to add a hard space in catalog name?
>
> Regards,
>
> David
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Hard space in catalog name

Bruno Busco
In reply to this post by David van der Staak
Hi David,
shouldn't you use   instead of $nbsp; ?

-Bruno


2010/7/15 David van der Staak <[hidden email]>

> Hi,
>
> I'm trying to add a hardspace in the catalog name, the name that is
> visible on the front end. However, when I type the $nbsp; in the name it
> gets changed to &#36;nbsp&#59; which shows it as the literal string
> $nbsp; in the browser. I'm trying to make the name not wrap, as I rather
> have it breaking out of the box then breaking the entire layout (which
> is what happens now).
>
> TL;DR How to add a hard space in catalog name?
>
> Regards,
>
> David
>
>
Reply | Threaded
Open this post in threaded view
|

Re: PayPal Currency Issue

Gaurav kalia
In reply to this post by Gaurav kalia
Hi All

I have checked the logs and in logs the currency getting passed to paypal is USD instead of GBP and there is some reference to baseCurrencyUomId as well.

Please suggest

regards
Gaurav
Reply | Threaded
Open this post in threaded view
|

Re: PayPal Currency Issue

BJ Freeman
looking at the code paypal currency is gotten from the cart.
the cart gets it from general.properties
"currency.uom.id.default"
which defaults to USD if none is set.


kaliagaurav sent the following on 7/19/2010 8:27 AM:

>
> Hi All
>
> I have checked the logs and in logs the currency getting passed to paypal is
> USD instead of GBP and there is some reference to baseCurrencyUomId as well.
>
> Please suggest
>
> regards
> Gaurav
Reply | Threaded
Open this post in threaded view
|

Re: PayPal Currency Issue

Gaurav kalia
Hi BJ Freeman

I have also configured "GBP" in general.properties and i have configured CurrencyUom to "GBP" in store setting where it say "Localisation"  but still not working :(

Please suggest

Thanks

gaurav
Reply | Threaded
Open this post in threaded view
|

Re: PayPal Currency Issue

BJ Freeman
it helps if you include the complete thread
I don't know if you answered this yet.
what branch/release of ofbiz are you using.
if it is svn what version.


kaliagaurav sent the following on 7/19/2010 8:53 AM:

>
> Hi BJ Freeman
>
> I have also configured "GBP" in general.properties and i have configured
> CurrencyUom to "GBP" in store setting where it say "Localisation"  but still
> not working :(
>
> Please suggest
>
> Thanks
>
> gaurav
Reply | Threaded
Open this post in threaded view
|

Re: PayPal Currency Issue

aswath narayana
In reply to this post by Gaurav kalia
Hi Gaurav,
You have to send the currency code parameter to paypal.
Please verify if the patch is applied correctly.
or you can hardcode like this temporarily in paypalevents.java  - line:157,
function: callPayPal.
parameter.put("currency_code", "GBP").

Don't forget to do 'ant build'.

good luck,
-Aswath

On Thu, Jul 15, 2010 at 7:35 PM, kaliagaurav <[hidden email]>wrote:

>
> Hi Raj
>
> If I am not wrong "currencyuom" get configured in general.properties. I
> have
> changed
>
> currency.uom.id.default=USD
>
> to
>
> currency.uom.id.default=GBP
>
> Is there any other place where I need to configure this.
>
> Please suggest
>
> Regards
> Gaurav
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/PayPal-Currency-Issue-tp2287192p2290201.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: PayPal Currency Issue

Gaurav kalia
Hi Aswath

I have applied this patch below

https://issues.apache.org/jira/browse/OFBIZ-3335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

And I can confirm that those two lines are there in my code. But I have not build it. Just a doubt if I do "ant build" the configuration I have done will get over write or not.

Because I have added few catalogs and products and created some stores as well.

Please suggest

Thanks

Gaurav

On Tuesday 20 July 2010 10:56 AM, aswath narayana [via OFBiz] wrote:
Hi Gaurav,
You have to send the currency code parameter to paypal.
Please verify if the patch is applied correctly.
or you can hardcode like this temporarily in paypalevents.java  - line:157,
function: callPayPal.
parameter.put("currency_code", "GBP").

Don't forget to do 'ant build'.

good luck,
-Aswath

On Thu, Jul 15, 2010 at 7:35 PM, kaliagaurav <[hidden email]>wrote:

>
> Hi Raj
>
> If I am not wrong "currencyuom" get configured in general.properties. I
> have
> changed
>
> currency.uom.id.default=USD
>
> to
>
> currency.uom.id.default=GBP
>
> Is there any other place where I need to configure this.
>
> Please suggest
>
> Regards
> Gaurav
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/PayPal-Currency-Issue-tp2287192p2290201.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>



View message @ http://ofbiz.135035.n4.nabble.com/PayPal-Currency-Issue-tp2287192p2294946.html
To unsubscribe from Re: PayPal Currency Issue, click here.


Reply | Threaded
Open this post in threaded view
|

Re: PayPal Currency Issue

aswath narayana
This is a java file change, hence you have to do 'ant build'.  Then you do
'ant run'.  This should be fine and will not override any of your catalogs
and products.

As usual, first, do this in your development machine, and then you can apply
the change to test and prod machine.

-Aswath

On Tue, Jul 20, 2010 at 1:26 PM, kaliagaurav <[hidden email]>wrote:

>
> Hi Aswath
>
> I have applied this patch below
>
>
> https://issues.apache.org/jira/browse/OFBIZ-3335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>
> And I can confirm that those two lines are there in my code. But I have
> not build it. Just a doubt if I do "ant build" the configuration I have
> done will get over write or not.
>
> Because I have added few catalogs and products and created some stores
> as well.
>
> Please suggest
>
> Thanks
>
> Gaurav
>
> On Tuesday 20 July 2010 10:56 AM, aswath narayana [via OFBiz] wrote:
> > Hi Gaurav,
> > You have to send the currency code parameter to paypal.
> > Please verify if the patch is applied correctly.
> > or you can hardcode like this temporarily in paypalevents.java  -
> > line:157,
> > function: callPayPal.
> > parameter.put("currency_code", "GBP").
> >
> > Don't forget to do 'ant build'.
> >
> > good luck,
> > -Aswath
> >
> > On Thu, Jul 15, 2010 at 7:35 PM, kaliagaurav <[hidden email]
> > </user/SendEmail.jtp?type=node&node=2294946&i=0>>wrote:
> >
> > >
> > > Hi Raj
> > >
> > > If I am not wrong "currencyuom" get configured in general.properties. I
> > > have
> > > changed
> > >
> > > currency.uom.id.default=USD
> > >
> > > to
> > >
> > > currency.uom.id.default=GBP
> > >
> > > Is there any other place where I need to configure this.
> > >
> > > Please suggest
> > >
> > > Regards
> > > Gaurav
> > > --
> > > View this message in context:
> > >
> >
> http://ofbiz.135035.n4.nabble.com/PayPal-Currency-Issue-tp2287192p2290201.html
> > <
> http://ofbiz.135035.n4.nabble.com/PayPal-Currency-Issue-tp2287192p2290201.html?by-user=t
> >
> > > Sent from the OFBiz - User mailing list archive at Nabble.com.
> > >
> >
> >
> > ------------------------------------------------------------------------
> > View message @
> >
> http://ofbiz.135035.n4.nabble.com/PayPal-Currency-Issue-tp2287192p2294946.html
> >
> > To unsubscribe from Re: PayPal Currency Issue, click here
> > < (link removed) =>.
> >
> >
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/PayPal-Currency-Issue-tp2287192p2295074.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
12