Skip to content

Commit c7d9a71

Browse files
committed
XOL-2788 Address code review comment
1 parent f9f1397 commit c7d9a71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Message/CIMRefundRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function send()
5151
$parameters = $this->getParameters();
5252

5353
if (!$response->isSuccessful() && $this->voidIfRefundFails &&
54-
intval($response->getResponseReasonCode()) === CIMResponse::ERROR_RESPONSE_CODE_CANNOT_ISSUE_CREDIT) {
54+
$response->getResponseReasonCode() === CIMResponse::ERROR_RESPONSE_CODE_CANNOT_ISSUE_CREDIT) {
5555
// An attempt to a refund a transaction that was not settled. We can just void the entire transaction
5656
$voidRequest = new CIMVoidRequest($this->httpClient, $this->httpRequest);
5757
$voidRequest->initialize($parameters);

src/Message/CIMResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class CIMResponse extends CIMAbstractResponse
1010
/**
1111
* For Error codes: @see https://developer.authorize.net/api/reference/responseCodes.html
1212
*/
13-
const ERROR_RESPONSE_CODE_CANNOT_ISSUE_CREDIT = 54;
13+
const ERROR_RESPONSE_CODE_CANNOT_ISSUE_CREDIT = '54';
1414

1515
protected $xmlRootElement = 'createCustomerProfileTransactionResponse';
1616

0 commit comments

Comments
 (0)