public function augmentResponse()
    {
        if (!$this->isSuccessful()) {
            return;
        }

        /** @var CreditCard $card */
        $card = $this->request->getCard();

        if ($card) {
            $ccString = $card->getNumber() . $card->getExpiryMonth() . $card->getExpiryYear();

            $this->data['hash'] = md5($ccString);
            $this->data['brand'] = $card->getBrand();
            $this->data['expiryYear'] = $card->getExpiryYear();
            $this->data['expiryMonth'] = $card->getExpiryMonth();
        }
    }
public function augmentResponse()
    {
        if (!$this->isSuccessful()) {
            return;
        }

        /** @var CreditCard $card */
        $card = $this->request->getCard();

        if ($card) {
            $ccString = $card->getNumber() . $card->getExpiryMonth() . $card->getExpiryYear();

            $this->data['hash'] = md5($ccString);
            $this->data['brand'] = $card->getBrand();
            $this->data['expiryYear'] = $card->getExpiryYear();
            $this->data['expiryMonth'] = $card->getExpiryMonth();
        }
    }
public function augmentResponse ( ) { if ( ! $ this -> isSuccessful ( ) ) { return ; } /** @var CreditCard $card */ $ card = $ this -> request -> getCard ( ) ; if ( $ card ) { $ ccString = $ card -> getNumber ( ) . $ card -> getExpiryMonth ( ) . $ card -> getExpiryYear ( ) ; $ this -> data [ 'hash' ] = md5 ( $ ccString ) ; $ this -> data [ 'brand' ] = $ card -> getBrand ( ) ; $ this -> data [ 'expiryYear' ] = $ card -> getExpiryYear ( ) ; $ this -> data [ 'expiryMonth' ] = $ card -> getExpiryMonth ( ) ; } }
Authorize net does not provide fingerprint and brand of the card hence we build the parameters from the
requested card data
Authorize net does not provide fingerprint and brand of the card hence we build the parameters from the requested card data