Braintree\Transaction::__toString PHP Method

__toString() public method

returns a string representation of the transaction
public __toString ( ) : string
return string
    public function __toString()
    {
        // array of attributes to print
        $display = ['id', 'type', 'amount', 'status', 'createdAt', 'creditCardDetails', 'customerDetails'];
        $displayAttributes = [];
        foreach ($display as $attrib) {
            $displayAttributes[$attrib] = $this->{$attrib};
        }
        return __CLASS__ . '[' . Util::attributesToString($displayAttributes) . ']';
    }