Pass the user's locale along to PayPal. If it is supported, then the checkout screen on PayPal will be in the user's locale. Fixes bug #12119.
This commit is contained in:
parent
b21a6e331b
commit
3c0cf0f1a5
3 changed files with 5 additions and 0 deletions
|
|
@ -191,6 +191,7 @@ PayPal API spit back.
|
|||
sub processPayment {
|
||||
my ( $self, $transaction ) = @_;
|
||||
|
||||
my $i18n = WebGUI::International->new($self->session);
|
||||
my $form = $self->payPalForm(
|
||||
METHOD => 'DoExpressCheckoutPayment',
|
||||
PAYERID => $self->session->form->process('PayerId'),
|
||||
|
|
@ -198,6 +199,7 @@ sub processPayment {
|
|||
AMT => $self->getCart->calculateTotal,
|
||||
CURRENCYCODE => $self->get('currency'),
|
||||
PAYMENTACTION => 'SALE',
|
||||
LOCALECODE => $i18n->getLanguage->{locale},
|
||||
);
|
||||
my $response = LWP::UserAgent->new->post( $self->apiUrl, $form );
|
||||
my $params = $self->responseHash($response);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue