/** * 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."); } }
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.'); }
/** * 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"); } }
protected function getNotifyUrl(ExtendedDataInterface $data) { if ($data->has('notify_url')) { return $data->get('notify_url'); } else { if (0 !== strlen($this->notifyUrl)) { return $this->notifyUrl; } } }
/** * 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"); } }
/** * 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"); } }
/** * @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.'); }