Skip to content

Commit

Permalink
Moved VOIDED to the declined transactions case list
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed May 4, 2023
1 parent 739816d commit 7f0bf39
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Messages/BraintreePaymentResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,14 @@ private function resolveStatus()
case BraintreeTransactionStatus::FAILED:
case BraintreeTransactionStatus::GATEWAY_REJECTED:
case BraintreeTransactionStatus::PROCESSOR_DECLINED:
case BraintreeTransactionStatus::VOIDED:
$this->status = PaymentStatusProxy::DECLINED();
$this->wasSuccessful = false;
break;
case BraintreeTransactionStatus::SETTLED:
$this->status = PaymentStatusProxy::PAID();
$this->wasSuccessful = true;
break;
case BraintreeTransactionStatus::VOIDED:
$this->status = PaymentStatusProxy::DECLINED();
$this->wasSuccessful = false;
break;
default:
$this->status = PaymentStatusProxy::DECLINED();
$this->wasSuccessful = false;
Expand Down

0 comments on commit 7f0bf39

Please sign in to comment.