AuthorizeNet / sample-code-php

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

error on foreach if no unsettled transactions #39

Closed CTerrell closed 7 years ago

CTerrell commented 8 years ago

php sample code errors out if no unsettled transactions. if statement prior to foreach should read:

if (($response->getTransactions() != null) && ($response->getMessages()->getResultCode() == "Ok"))

ashtru commented 8 years ago

@CTerrell Thanks for pointing this out. We will make this update.

adavidw commented 7 years ago

Since there hasn't been an update, I'm going to close this issue. If you have more information to provide related to this issue, feel free to reopen it.