src/Entity/Card.php
private function parseFromXml($simpleXml)
    {
        if (isset($simpleXml->{'card-token'}->{'masked-account-number'})) {
            $this->maskedPan = $simpleXml->{'card-token'}->{'masked-account-number'};
        }
        if (isset($simpleXml->{'card-token'}->{'token-id'})) {
            $this->token = $simpleXml->{'card-token'}->{'token-id'};
        }
    }
private function parseFromXml($simpleXml)
    {
        if (isset($simpleXml->{'card-token'}->{'masked-account-number'})) {
            $this->maskedPan = $simpleXml->{'card-token'}->{'masked-account-number'};
        }
        if (isset($simpleXml->{'card-token'}->{'token-id'})) {
            $this->token = $simpleXml->{'card-token'}->{'token-id'};
        }
    }
private function parseFromXml ( $ simpleXml ) { if ( isset ( $ simpleXml -> { 'card-token' } -> { 'masked-account-number' } ) ) { $ this -> maskedPan = $ simpleXml -> { 'card-token' } -> { 'masked-account-number' } ; } if ( isset ( $ simpleXml -> { 'card-token' } -> { 'token-id' } ) ) { $ this -> token = $ simpleXml -> { 'card-token' } -> { 'token-id' } ; } }
Parse card from response xml
@param SimpleXMLElement $simpleXml
@since 3.2.0
Parse card from response xml