diff --git a/samples/transaction/qrPayment.php b/samples/transaction/qrPayment.php index 606f7827..cff82a95 100644 --- a/samples/transaction/qrPayment.php +++ b/samples/transaction/qrPayment.php @@ -8,12 +8,11 @@ 'scanData' => '123456789123456789', 'amount' => 0.01, 'description' => 'QR payment test', - 'consumerIp' => '10.0.0.5', // Use the ip of your POS here 'currency' => 'EUR' )); } catch (\Paynl\Error\Error $e) { - die ($e->getMessage()); + die ('Error: '.$e->getMessage()); } echo "isPaid: " . ($result->isPaid() ? 'TRUE' : 'FALSE') . "\n"; diff --git a/src/Api/Transaction/QRPayment.php b/src/Api/Transaction/QRPayment.php index 5274af50..5e926d62 100644 --- a/src/Api/Transaction/QRPayment.php +++ b/src/Api/Transaction/QRPayment.php @@ -23,10 +23,7 @@ class QRPayment extends Transaction * @var string Description for the transaction. Max length of the description is 128 characters. */ private $_description; - /** - * @var string The IP of the consumer. - */ - private $_consumerIp; + /** * @var string The currency of the transaction. If omitted, EUR is used. A list with available currency names and id's can be obtained at: API_Currency_v2::getAll() */ @@ -86,22 +83,6 @@ public function setAmount($amount) $this->_amount = (int)$amount; } - /** - * @return string|null - */ - public function getConsumerIp() - { - return $this->_consumerIp; - } - - /** - * @param string $consumerIp - */ - public function setConsumerIp($consumerIp) - { - $this->_consumerIp = $consumerIp; - } - /** * @return string|null */ @@ -142,13 +123,10 @@ protected function getData() if (empty($this->getScanData())) throw new Required('scanData'); if (empty($this->getAmount())) throw new Required('amount'); if (empty($this->getDescription())) throw new Required('description'); - if (empty($this->getConsumerIp())) throw new Required('consumerIp'); $this->data['scanData'] = $this->getScanData(); $this->data['amount'] = $this->getAmount(); $this->data['description'] = $this->getDescription(); - $this->data['consumerIp'] = $this->getConsumerIp(); - if($this->getCurrency() != null){ $this->data['currency'] = $this->getCurrency(); } diff --git a/src/Transaction.php b/src/Transaction.php index eee8e73e..e674767d 100644 --- a/src/Transaction.php +++ b/src/Transaction.php @@ -468,9 +468,6 @@ public static function QRPayment($options = array()) if (isset($options['description'])) { $api->setDescription($options['description']); } - if (isset($options['consumerIp'])) { - $api->setConsumerIp($options['consumerIp']); - } if (isset($options['currency'])) { $api->setCurrency($options['currency']); }