/** * @param Response $response * @return OrderInterface */ public function bankReturn(Response $response) { $this->status = $response->isSuccessful() ? 'paid' : 'error'; $this->save(); // log bank return $log = new Payment(['user_id' => $this->user_id, 'order_id' => $this->id, 'bank_code' => $response->getAdapter()->adapterTag, 'amount' => $this->due_amount, 'status' => $this->status, 'data_dump' => $response->__toString(), 'created' => new Expression('NOW()')]); $log->save(); return $this; }
/** * @inheritdoc */ public function canHandlePaymentResponse(Response $response) { $isLhv = 'LHV' == $response->getParam('VK_SND_ID', false); return $isLhv && parent::canHandlePaymentResponse($response); }
/** * @inheritdoc */ public function canHandlePaymentResponse(Response $response) { /** @noinspection SpellCheckingInspection */ $isKrediidipank = 'KREP' == $response->getParam('VK_SND_ID', false); return $isKrediidipank && parent::canHandlePaymentResponse($response); }
/** * @inheritdoc */ public function canHandlePaymentResponse(Response $response) { return $response->hasParam('VK_SERVICE'); }
/** * @inheritdoc */ public function canHandlePaymentResponse(Response $response) { $isSwedbank = 'HP' == $response->getParam('VK_SND_ID', false); return $isSwedbank && parent::canHandlePaymentResponse($response); }
/** * @inheritdoc */ public function canHandlePaymentResponse(Response $response) { return 'afb' == $response->getParam('action', false); // go figure }
/** * @inheritdoc */ public function canHandlePaymentResponse(Response $response) { /** @noinspection SpellCheckingInspection */ return $response->hasParam('SOLOPMT_RETURN_MAC'); }
/** * @inheritdoc */ public function canHandlePaymentResponse(Response $response) { $isDanske = 'SAMPOPANK' == $response->getParam('VK_SND_ID', false); return $isDanske && parent::canHandlePaymentResponse($response); }