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 c9705e6 + 985c582 commit 0f4a8a2Copy full SHA for 0f4a8a2
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