Example #1
0
 /**
  * @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;
 }
Example #2
0
 /**
  * @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');
 }
Example #5
0
 /**
  * @inheritdoc
  */
 public function canHandlePaymentResponse(Response $response)
 {
     $isSwedbank = 'HP' == $response->getParam('VK_SND_ID', false);
     return $isSwedbank && parent::canHandlePaymentResponse($response);
 }
Example #6
0
 /**
  * @inheritdoc
  */
 public function canHandlePaymentResponse(Response $response)
 {
     return 'afb' == $response->getParam('action', false);
     // go figure
 }
Example #7
0
 /**
  * @inheritdoc
  */
 public function canHandlePaymentResponse(Response $response)
 {
     /** @noinspection SpellCheckingInspection */
     return $response->hasParam('SOLOPMT_RETURN_MAC');
 }
Example #8
0
 /**
  * @inheritdoc
  */
 public function canHandlePaymentResponse(Response $response)
 {
     $isDanske = 'SAMPOPANK' == $response->getParam('VK_SND_ID', false);
     return $isDanske && parent::canHandlePaymentResponse($response);
 }