Skip to content

Commit

Permalink
Added payment_code param processing to Notify
Browse files Browse the repository at this point in the history
  • Loading branch information
mikoczy authored and birkof committed Feb 7, 2022
1 parent 7e4c926 commit dbf136e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Mobilpay/Payment/Request/Notify.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class Notify
public $validationCode = null;
public $installments = null;
public $rrn = null;
public $paymentCode = null;

/**
*
Expand Down Expand Up @@ -191,6 +192,10 @@ public function loadFromXml(\DOMElement $elem)
if ($elems->length == 1) {
$this->installments = $elems->item(0)->nodeValue;
}
$elems = $elem->getElementsByTagName('payment_code');
if ($elems->length == 1) {
$this->paymentCode = $elems->item(0)->nodeValue;
}
$elems = $elem->getElementsByTagName('discounts');
if ($elems->length == 1) {
$doaElems = $elems->item(0)->getElementsByTagName('discount');
Expand Down

0 comments on commit dbf136e

Please sign in to comment.