Skip to content

Commit

Permalink
Added payment method in CompletePurchase
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Dec 18, 2015
1 parent 8dc2fcc commit d183b37
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Message/CompletePurchaseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ public function getTime()
return strtotime($this->data['ik_inv_prc'] . ' Europe/Moscow');
}

/**
* @return string the payment method inside a gateway (Visa, WebMoney, etc)
*/
public function getPayer()
{
return $this->data['ik_pw_via'];
}

/**
* The state of the payment.
* Possible results:
Expand Down
8 changes: 8 additions & 0 deletions src/Message/OldCompletePurchaseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ public function getCurrency()
return null;
}

/**
* @inheritdoc
*/
public function getPayer()
{
return $this->data['ik_paysystem_alias'];
}

/**
* The time of request processing
*
Expand Down

0 comments on commit d183b37

Please sign in to comment.