Your account is limited to posting only in the Pre-Sales Questions forum.
Support forum access is limited to members with a purchase history.

If you are working on behalf of another member, please contact us with the name of the license holder and we will upgrade your account.
   
 
PayPal fr not us?
Posted: 19 June 2012 03:59 AM   [ Ignore ]
Circled in the Yearbook
RankRankRank
Total Posts:  701
Joined  2010-04-08

Using PayPal Express I get sent to https://www.paypal.com/us how c,an I make it so I’m sent to https://www.paypal.com/fr?

Thanks guy’s!

Profile
 
 
Posted: 19 June 2012 07:34 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10256
Joined  2008-09-29

Try adding the language to the checkout form;

{exp:cartthrob:checkout_form return="" }
<input type="hidden" value="language" name="FR" /> 
{gateway_fields}

<input type="submit" value="Checkout" />

{/exp:cartthrob:checkout_form} 

 

We have some code to set PayPal’s “LOCALECODE” to FR if the language in the order is set to French. The initial URL’s always the same, but I think PayPal sets the customer’s redirect based on the LOCALECODE that’s sent.

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 20 June 2012 12:09 AM   [ Ignore ]   [ # 2 ]
Circled in the Yearbook
RankRankRank
Total Posts:  701
Joined  2010-04-08

Hi Chris, the code made no difference. If I manually change the url once at at paypal from us to fr I get paypal full in French.

Profile
 
 
Posted: 20 June 2012 07:25 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10256
Joined  2008-09-29

I’m assuming you’re on CT 2.1x?

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 20 June 2012 09:34 AM   [ Ignore ]   [ # 4 ]
Circled in the Yearbook
RankRankRank
Total Posts:  701
Joined  2010-04-08

2.1.3

Profile
 
 
Posted: 23 June 2012 04:54 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  10256
Joined  2008-09-29

Try putting this after the gateway_fields variable instead of before it.


<input type=“hidden” value=“language” name=“FR” />

The key thing is that the language for the order gets set to FR. If it’s set to FR, the LOCALECODE for PayPal should get set to FR, and that’s what determines the language displayed.

 Signature 

We’re moving away from the forums, though not entirely and not immediately. Lack of support lately is coincidental to that. Unfortunately we’ve had a bad month with it, but we do not forsee that we will have any continued problems with support through our portal going forward, or on forums while we’re still transitioning. We will send out a newsletter and make additional notifications through twitter and other outlets over the coming weeks.

Moving forward; things returning to normal.

Profile
 
 
Posted: 23 June 2012 04:55 AM   [ Ignore ]   [ # 6 ]
Circled in the Yearbook
RankRankRank
Total Posts:  701
Joined  2010-04-08

Tried that already, no joy :(

Profile
 
 
Posted: 23 June 2012 07:09 AM   [ Ignore ]   [ # 7 ]
Circled in the Yearbook
RankRankRank
Total Posts:  701
Joined  2010-04-08

Does this link help https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECCustomizing - scroll down to changing the locale. I looked in cartthrob_paypal_exprexx.php and it looks like it’s trying to read <input type=“hidden” value=“language” name=“FR” /> and then set LOCALECODE to FR.

Profile
 
 
Posted: 25 June 2012 01:49 AM   [ Ignore ]   [ # 8 ]
Circled in the Yearbook
RankRankRank
Total Posts:  701
Joined  2010-04-08

Hi Chris, does <input type=“hidden” value=“language” name=“FR” /> change the PayPal site language to French when you test it?

Profile
 
 
Posted: 26 June 2012 09:58 AM   [ Ignore ]   [ # 9 ]
Circled in the Yearbook
RankRankRank
Total Posts:  701
Joined  2010-04-08

Polite bump. Got 3 sites in French ready to go all with the same problem.

Profile
 
 
Posted: 26 June 2012 10:11 AM   [ Ignore ]   [ # 10 ]
Administrator
Avatar
RankRank
Total Posts:  465
Joined  2008-09-30

What are your shipping settings on your CartThrob->Payments->PayPal page?

I did some testing and it looks like you need to have it set to “Let PayPal handle shipping addresses” for the language variable and LOCALECODE to have an affect. Otherwise, the redirect appears to be based on your shipping country code.

Profile
 
 
Posted: 26 June 2012 10:27 AM   [ Ignore ]   [ # 11 ]
Circled in the Yearbook
RankRankRank
Total Posts:  701
Joined  2010-04-08

I change to “Let PayPal handle shipping addresses” and have <input type=“hidden” value=“language” name=“FR” /> above gateway_fields (also tried below) and PayPal still comes up in French.

In your testing you can actually get it to come up in French?

Profile
 
 
Posted: 26 June 2012 10:29 AM   [ Ignore ]   [ # 12 ]
Circled in the Yearbook
RankRankRank
Total Posts:  701
Joined  2010-04-08

<input type=“hidden” value=“language” name=“FR” /> should actually be <input type=“input” value=“FR” name=“language” />. Now it’s working smile

Profile
 
 
Posted: 26 June 2012 10:33 AM   [ Ignore ]   [ # 13 ]
Administrator
Avatar
RankRank
Total Posts:  465
Joined  2008-09-30

Oh man, I didn’t even notice the incorrect input name/value. When I tested it, I had keyed it in the correct way. So you’re good to go now?

Profile
 
 
Posted: 26 June 2012 10:34 AM   [ Ignore ]   [ # 14 ]
Circled in the Yearbook
RankRankRank
Total Posts:  701
Joined  2010-04-08

Yes, thanks for the help.

Profile