Skip to main content

Forcer Paypal en FR

More
13 years 16 hours ago #125991 by erickb
Forcer Paypal en FR was created by erickb
-- HikaShop version -- : 221
-- Joomla version -- : 2514

J'ai Paypal (...../www.paypal.com/cgi-bin/webscr) qui affiche irrégulièrement en FR ou EN alors que la langue du site est uniquement en FR sans choix de changement
Comment puis je forcer paypal en FR ? avec quelle variable ?
dans plugins/hikashoppayment/paypal/paypal.php je trouve

$notify_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment='.$this->name.'&tmpl=component&lang='.$this->locale . $this->url_itemid;

et plus loin

$lang = JFactory::getLanguage();
$locale = strtolower(substr($lang->get('tag'), 0, 2));




merci

Please Log in or Create an account to join the conversation.

More
13 years 14 hours ago #126011 by Jerome
Replied by Jerome on topic Forcer Paypal en FR
Bonjour,

L'url de notification est uniquement pour HikaShop, cela n'influs donc pas le comportement de paypal.
Paypal s'occupe lui même de déterminer la langue à afficher.

Cordialement,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
13 years 14 hours ago #126012 by erickb
Replied by erickb on topic Forcer Paypal en FR
ok merci

Please Log in or Create an account to join the conversation.

More
13 years 11 hours ago - 13 years 11 hours ago #126025 by erickb
Replied by erickb on topic Forcer Paypal en FR
la variable lc et country existe developer.paypal.com/webapps/developer/d...ndard_htmlvariables/

j'ai modifié paypal.php en ajoutant

$vars = array(
'cmd' => '_ext-enter',
'redirect_cmd' => '_cart',
'upload' => '1',
'business' => $this->payment_params->email,
'receiver_email' => $this->payment_params->email,
'invoice' => $order->order_id,
'currency_code' => $this->currency->currency_code,
'return' => $return_url,
'notify_url' => $notify_url,
'cancel_return' => $cancel_url,
'undefined_quantity' => '0',
'test_ipn' => $debug,
'no_shipping' => $this->payment_params->no_shipping,
'no_note' => !@$this->payment_params->notes,
'charset' => 'utf-8',
'rm' => (int)@$this->payment_params->rm,
'bn' => 'HikariSoftware_Cart_WPS',
'lc' => 'FR',
'country' => 'FR'
);


et ça marche
ça serait un plus d'ajouter cette variable dynamique selon la langue de l'utilisateur
Last edit: 13 years 11 hours ago by erickb.

Please Log in or Create an account to join the conversation.

More
13 years 11 hours ago #126030 by Jerome
Replied by Jerome on topic Forcer Paypal en FR
Bonjour,

TODO list mise à jour.

cordialement

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: erickb

Please Log in or Create an account to join the conversation.

More
13 years 11 hours ago #126036 by erickb
Replied by erickb on topic Forcer Paypal en FR
et n'oublie pas la possibilité d'un paiement diffèré comme sur atos

dans paypal_end.php
<input type="hidden" name="paymentaction" value="authorization" />

et ca marche tres bien

Please Log in or Create an account to join the conversation.

Time to create page: 0.231 seconds
Powered by Kunena Forum