diff --git a/src/Message/CreateCustomerRequest.php b/src/Message/CreateCustomerRequest.php index e7ce20e1..13d7953e 100644 --- a/src/Message/CreateCustomerRequest.php +++ b/src/Message/CreateCustomerRequest.php @@ -104,6 +104,16 @@ public function setEmail($value) return $this->setParameter('email', $value); } + public function getSource() + { + return $this->getParameter('source'); + } + + public function setSource($value) + { + $this->setParameter('source', $value); + } + public function getData() { $data = array(); @@ -111,7 +121,7 @@ public function getData() if ($this->getToken()) { $data['card'] = $this->getToken(); - + if ($this->getEmail()) { $data['email'] = $this->getEmail(); } @@ -126,6 +136,10 @@ public function getData() $data['metadata'] = $this->getMetadata(); } + if ($this->getSource()) { + $data['source'] = $this->getSource(); + } + return $data; }