forked from LiveCarta/PayPal-PHP-SDK
Fixing Invoice Phone Attribute
- Also updated the Update Invoice Sample
This commit is contained in:
@@ -87,7 +87,11 @@ class PPModel
|
||||
public function __set($key, $value)
|
||||
{
|
||||
ModelAccessorValidator::validate($this, $this->convertToCamelCase($key));
|
||||
$this->_propMap[$key] = $value;
|
||||
if ($value == null) {
|
||||
$this->__unset($key);
|
||||
} else {
|
||||
$this->_propMap[$key] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user