public function setTransactionReference($value)
    {
        $reference = json_decode($value, true);

        if (json_last_error() === 0) {
            if (isset($reference['VendorTxCode'])) {
                $this->setRelatedTransactionId($reference['VendorTxCode']);
            }

            if (isset($reference['VPSTxId'])) {
                $this->setVpsTxId($reference['VPSTxId']);
            }

            if (isset($reference['SecurityKey'])) {
                $this->setSecurityKey($reference['SecurityKey']);
            }

            if (isset($reference['TxAuthNo'])) {
                $this->setTxAuthNo($reference['TxAuthNo']);
            }
        }

        return parent::setTransactionReference($value);
    }
public function setTransactionReference($value)
    {
        $reference = json_decode($value, true);

        if (json_last_error() === 0) {
            if (isset($reference['VendorTxCode'])) {
                $this->setRelatedTransactionId($reference['VendorTxCode']);
            }

            if (isset($reference['VPSTxId'])) {
                $this->setVpsTxId($reference['VPSTxId']);
            }

            if (isset($reference['SecurityKey'])) {
                $this->setSecurityKey($reference['SecurityKey']);
            }

            if (isset($reference['TxAuthNo'])) {
                $this->setTxAuthNo($reference['TxAuthNo']);
            }
        }

        return parent::setTransactionReference($value);
    }
public function setTransactionReference ( $ value ) { $ reference = json_decode ( $ value , true ) ; if ( json_last_error ( ) === 0 ) { if ( isset ( $ reference [ 'VendorTxCode' ] ) ) { $ this -> setRelatedTransactionId ( $ reference [ 'VendorTxCode' ] ) ; } if ( isset ( $ reference [ 'VPSTxId' ] ) ) { $ this -> setVpsTxId ( $ reference [ 'VPSTxId' ] ) ; } if ( isset ( $ reference [ 'SecurityKey' ] ) ) { $ this -> setSecurityKey ( $ reference [ 'SecurityKey' ] ) ; } if ( isset ( $ reference [ 'TxAuthNo' ] ) ) { $ this -> setTxAuthNo ( $ reference [ 'TxAuthNo' ] ) ; } } return parent :: setTransactionReference ( $ value ) ; }
A JSON transactionReference passed in is split into its
component parts.

@param string $value original transactionReference in JSON format.
A JSON transactionReference passed in is split into its component parts .