diff --git a/src/Gateway.php b/src/Gateway.php index 7844c03..2900df1 100644 --- a/src/Gateway.php +++ b/src/Gateway.php @@ -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); diff --git a/src/Message/AbstractRequest.php b/src/Message/AbstractRequest.php index 5699481..cfae3fe 100644 --- a/src/Message/AbstractRequest.php +++ b/src/Message/AbstractRequest.php @@ -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) { diff --git a/src/Message/PurchaseRequest.php b/src/Message/PurchaseRequest.php index 2c07a58..25a3008 100644 --- a/src/Message/PurchaseRequest.php +++ b/src/Message/PurchaseRequest.php @@ -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; }