コード例 #1
0
 /**
  * Check that the extended data contains the needed values
  * before approving and depositing the transation
  *
  * @param ExtendedDataInterface $data
  * @throws BlockedException
  */
 protected function checkExtendedDataBeforeApproveAndDeposit(ExtendedDataInterface $data)
 {
     if (!$data->has('confirmations') || !$data->has('value') || !$data->has('input_address') || !$data->has('destination_address') || !$data->has('transaction_hash')) {
         throw new BlockedException("Awaiting extended data from Blockchain.info.");
     }
 }
コード例 #2
0
 protected function getCancelUrl(ExtendedDataInterface $data)
 {
     if ($data->has('cancel_url')) {
         return $data->get('cancel_url');
     } else {
         if (0 !== strlen($this->cancelUrl)) {
             return $this->cancelUrl;
         }
     }
     throw new \RuntimeException('You must configure a cancel url.');
 }
コード例 #3
0
 /**
  * Check that the extended data contains the needed values
  * before approving and depositing the transation
  *
  * @param ExtendedDataInterface $data
  * @throws BlockedException
  */
 protected function checkExtendedDataBeforeApproveAndDeposit(ExtendedDataInterface $data)
 {
     if (!$data->has('sStatus') || !$data->has('sId') || !$data->has('fAmount')) {
         throw new BlockedException("Awaiting extended data from EgoPay");
     }
 }
 /**
  * Check that the extended data contains the needed values
  * before approving and depositing the transation
  *
  * @param ExtendedDataInterface $data
  * @throws BlockedException
  */
 protected function checkExtendedDataBeforeApproveAndDeposit(ExtendedDataInterface $data)
 {
     if (!$data->has('Batch') || !$data->has('Amount') || !$data->has('Currency') || !$data->has('Type')) {
         throw new BlockedException("Awaiting extended data from PerfectMoney");
     }
 }
コード例 #5
0
 protected function getNotifyUrl(ExtendedDataInterface $data)
 {
     if ($data->has('notify_url')) {
         return $data->get('notify_url');
     } else {
         if (0 !== strlen($this->notifyUrl)) {
             return $this->notifyUrl;
         }
     }
 }
コード例 #6
0
 /**
  * Check that the extended data contains the needed values
  * before approving and depositing the transation
  *
  * @param ExtendedDataInterface $data
  * @throws BlockedException
  */
 protected function checkExtendedDataBeforeApproveAndDeposit(ExtendedDataInterface $data)
 {
     if (!$data->has('ok_txn_status') || !$data->has('ok_txn_id') || !$data->has('ok_txn_gross') || !$data->has('ok_txn_currency')) {
         throw new BlockedException("Awaiting extended data from OkPay");
     }
 }
コード例 #7
0
 /**
  * Check that the extended data contains the needed values
  * before approving and depositing the transation
  *
  * @param ExtendedDataInterface $data
  * @throws BlockedException
  */
 protected function checkExtendedDataBeforeApproveAndDeposit(ExtendedDataInterface $data)
 {
     if (!$data->has('m_status') || !$data->has('m_operation_id') || !$data->has('m_amount') || !$data->has('m_curr')) {
         throw new BlockedException("Awaiting extended data from Payeer");
     }
 }
コード例 #8
0
 /**
  * @param \JMS\Payment\CoreBundle\Model\ExtendedDataInterface $data
  *
  * @return string
  * @throws \RuntimeException
  */
 protected function getReturnUrl(ExtendedDataInterface $data)
 {
     if ($data->has('return_url')) {
         $url = $data->get('return_url');
         if (!empty($url)) {
             return $url;
         }
     }
     if (0 !== strlen($this->returnUrl)) {
         return $this->returnUrl;
     }
     throw new \RuntimeException('You must configure a return url.');
 }