Skip to content

Commit 96e3d31

Browse files
author
Vladislav Veselinov
committed
-- add notify url to express checkout
1 parent e59f24b commit 96e3d31

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/Omnipay/Common/Message/AbstractRequest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,16 @@ public function setCancelUrl($value)
272272
return $this->setParameter('cancelUrl', $value);
273273
}
274274

275+
public function getNotifyUrl()
276+
{
277+
return $this->getParameter('notifyUrl');
278+
}
279+
280+
public function setNotifyUrl($value)
281+
{
282+
return $this->setParameter('notifyUrl', $value);
283+
}
284+
275285
public function getResponse()
276286
{
277287
if (null === $this->response) {

src/Omnipay/PayPal/Message/ExpressAuthorizeRequest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public function getData()
2727
$data['PAYMENTREQUEST_0_CURRENCYCODE'] = $this->getCurrency();
2828
$data['PAYMENTREQUEST_0_INVNUM'] = $this->getTransactionId();
2929
$data['PAYMENTREQUEST_0_DESC'] = $this->getDescription();
30+
$data['PAYMENTREQUEST_0_NOTIFYURL'] = $this->getNotifyUrl();
31+
3032

3133
// pp express specific fields
3234
$data['SOLUTIONTYPE'] = $this->getSolutionType();

0 commit comments

Comments
 (0)