public function testGetStatusByPayuplOrderIdSuccess()
 {
     $payuplOrderId = 'ABC';
     $status = 'PENDING';
     $resultTableRow = ['additional_information' => serialize([\Magento\Sales\Model\Order\Payment\Transaction::RAW_DETAILS => ['status' => $status]])];
     $this->internalTestGetAdditionalDataByPayuplOrderId($payuplOrderId, $resultTableRow);
     $this->assertEquals($status, $this->model->getStatusByPayuplOrderId($payuplOrderId));
 }
Beispiel #2
0
 /**
  * @inheritDoc
  */
 public function canProcessNotification($payuplOrderId)
 {
     return !in_array($this->transactionResource->getStatusByPayuplOrderId($payuplOrderId), [self::STATUS_COMPLETED, self::STATUS_CANCELLED]);
 }