Skip to content

Commit

Permalink
payment plan parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
nidjo17 committed Jun 10, 2019
1 parent 07a90c0 commit 2e8e544
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ public function setIntCurrency(string $value)
return $this->setParameter('IntCurrency', $value);
}

public function setPaymentPlan(string $value)
{
return $this->setParameter('PaymentPlan', $value);
}

public function purchase(array $parameters = array())
{
return $this->createRequest(PurchaseRequest::class, $parameters);
Expand Down
4 changes: 4 additions & 0 deletions src/Message/AbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ public function setIntCurrency(string $value)
return $this->setParameter('IntCurrency', $value);
}

public function getPaymentPlan()
{
return $this->getParameter('PaymentPlan');
}

public function sendData($data)
{
Expand Down
1 change: 1 addition & 0 deletions src/Message/PurchaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function getData()
$data['IntAmount'] = $this->getIntAmount();
$data['IntCurrency'] = $this->getIntCurrency();
$data['Lang'] = $this->getLang();
$data['PaymentPlan'] = $this->getPaymentPlan();
return $data;
}

Expand Down

0 comments on commit 2e8e544

Please sign in to comment.