We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7e7c88b + 0f4a8a2 commit b1388b9Copy full SHA for b1388b9
src/Messages/NotificationValuesTrait.php
@@ -168,8 +168,8 @@ public function getApprovalCode()
168
*/
169
public function isSuccessful()
170
{
171
- return $this->getTransactionState() === static::TRANSACTION_STATE_BILLED
172
- || $this->getOperationStatus() === static::OPERATION_STATUS_OK;
+ return $this->getOperation() === 'CONFIRMATION' && $this->getTransactionState() === static::TRANSACTION_STATE_BILLED
+ || $this->getReturnCode() === 'PROFILE_USED' && $this->getOperationStatus() === static::OPERATION_STATUS_OK;
173
}
174
175
/**
0 commit comments