10000 Added language as parameter, so it easier to get correct language whe… · thephpleague/omnipay-netaxept@6d74f07 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6d74f07

Browse files
committed
Added language as parameter, so it easier to get correct language when you using agreements (paypal, mobilepay, vipps etc) with netsaxept
1 parent a15ab75 commit 6d74f07

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/Message/PurchaseRequest.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ public function setPassword($value)
3232
return $this->setParameter('password', $value);
3333
}
3434

35+
public function getLanguage()
36+
{
37+
return $this->getParameter('language');
38+
}
39+
40+
public function setLanguage($value)
41+
{
42+
return $this->setParameter('language', $value);
43+
}
44+
3545
public function getData()
3646
{
3747
$this->validate('amount', 'currency', 'transactionId', 'returnUrl');
@@ -44,6 +54,7 @@ public function getData()
4454
$data['currencyCode'] = $this->getCurrency();
4555
$data['amount'] = $this->getAmountInteger();
4656
$data['redirectUrl'] = $this->getReturnUrl();
57+
$data['language'] = $this->getLanguage();
4758

4859
if ($this->getCard()) {
4960
$data['customerFirstName'] = $this->getCard()->getFirstName();
@@ -72,4 +83,4 @@ public function getEndpoint()
7283
{
7384
return $this->getTestMode() ? $this->testEndpoint : $this->liveEndpoint;
7485
}
75-
}
86+
}

0 commit comments

Comments
 (0)
0