diff --git a/src/Api/Payment.php b/src/Api/Payment.php index d9b791f..77d3303 100644 --- a/src/Api/Payment.php +++ b/src/Api/Payment.php @@ -218,6 +218,9 @@ public function initiatePayment( case 'timeStamp': $request->getTransaction()->setTimeStamp($value); break; + case 'scope': + $request->getTransaction()->setScope($value); + break; } } // Pass request object along with all data required by InitiatePayment diff --git a/src/Model/Payment/ResponseGetPaymentDetails.php b/src/Model/Payment/ResponseGetPaymentDetails.php index 937d463..222233f 100644 --- a/src/Model/Payment/ResponseGetPaymentDetails.php +++ b/src/Model/Payment/ResponseGetPaymentDetails.php @@ -42,6 +42,12 @@ class ResponseGetPaymentDetails */ protected $userDetails; + /** + * @var string + * @Serializer\Type("string") + */ + protected $sub; + /** * Gets orderId value. * @@ -87,4 +93,12 @@ public function getUserDetails() { return $this->userDetails; } + + /** + * @return string + */ + public function getSub() + { + return $this->sub; + } } diff --git a/src/Model/Payment/Transaction.php b/src/Model/Payment/Transaction.php index 3720dff..1669b27 100644 --- a/src/Model/Payment/Transaction.php +++ b/src/Model/Payment/Transaction.php @@ -42,6 +42,12 @@ class Transaction */ protected $timeStamp; + /** + * @var string + * @Serializer\Type("string") + */ + protected $scope; + /** * Gets amount value. * @@ -156,4 +162,27 @@ public function setTransactionText($transactionText) $this->transactionText = $transactionText; return $this; } + + /** + * Gets scope value. + * + * @return string + */ + public function getScope() + { + return $this->scope; + } + + /** + * Sets scope variable. + * + * @param string $scope + * + * @return $this + */ + public function setScope($scope) + { + $this->scope = $scope; + return $this; + } }