AuthorizeNet / sample-code-php

This repository contains working code samples which demonstrate php integration with the Authorize.Net API
MIT License
175 stars 197 forks source link

What is the use case for this line of code? #160

Open jewpaltz opened 4 years ago

jewpaltz commented 4 years ago

https://github.com/AuthorizeNet/sample-code-php/blob/b66cc4033af0730a58827dfe5808549e3e19e42e/PaymentTransactions/charge-credit-card.php#L105

  1. If the API returned OK. Why would getTransactionResponse()->getMessages() be null?
  2. Would that indicate that "Transaction Failed" as the code suggests?
  3. $tresponse is possibly (Possibly definitely) null. Why are you calling a method on it?