Beispiel #1
0
echo URL::route('ff-bank-em-shop');
?>
">E-shop</a></li>
			<li><a class="top-link" href="<?php 
echo URL::route('ff-bank-em-payments');
?>
">Payments</a></li>
			<?php 
if (Config::get('ff-bank-em::ff.login.enabled')) {
    if (Config::get('ff-bank-em::user_id') > 0) {
        ?>
					<li><a class="top-link" href="/logout"><i class="fa fa-sign-out"></i> Logout</a></li><?php 
    } else {
        ?>
					<li><a class="top-link" href="<?php 
        echo Views::link2Sign();
        ?>
"><i class="fa fa-sign-in"></i> Sign-in</a>
					</li><?php 
    }
}
?>
		</ul>
	</div>

</div>

<?php 
echo $content;
require __DIR__ . '/js.php';
?>
Beispiel #2
0
			<?php 
Views::label('cvc', 'CVV/CVC2 code');
Views::text('cvc', '', array('size' => 3, 'style' => 'width: 50px; display: inline; margin-left: 10px;'));
?>
		</div>

		<?php 
foreach ($paymentParams as $key => $value) {
    switch ($key) {
        case 'pan':
        case 'cvc':
        case 'year':
        case 'month':
            break;
        default:
            Views::hidden($key, $value);
            break;
    }
}
?>

		<div class="form-group">
			<?php 
echo Form::submit('Оплатить', array('class' => 'submit-hide'));
?>
		</div>

		<?php 
echo Form::close();
?>
Beispiel #3
0
?>

				<div class="col-md-4">

					<?php 
$count = 0;
foreach ($endpointParams as $key => $value) {
    if ($count++ == ceil(count($endpointParams) / 2)) {
        echo '</div>';
        echo '<div class="col-md-4">';
    }
    ?>
						<div class="form-group">
							<?php 
    Views::label($key);
    Views::text($key, $value);
    ?>
						</div>
					<?php 
}
?>

				</div>

				<?php 
echo Form::close();
?>

				<div class="form-group">
					<button class="btn btn-sm post-endpoint">Перейти к оплате</button>
				</div>
 /**
  *
  * Check authorization code
  *
  * @param integer $paymentId
  * @param string  $url
  *
  * @return \Illuminate\Http\RedirectResponse|null
  */
 private function payAuthProcessHint($paymentId, $url)
 {
     $hint = Input::get('hint');
     // check hint static success value
     if (!empty($hint)) {
         if ($hint === '12345') {
             $url = Views::url($url, array('result' => Crypt::encrypt($paymentId . ';OK')));
         } else {
             $url = Views::url($url, array('result' => Crypt::encrypt($paymentId . ';KO')));
         }
         return Redirect::to($url);
     }
     return null;
 }
Beispiel #5
0
Views::label('term');
Views::text('term', $terminal->id, array('size' => 10, 'style' => 'width: 100px; display: inline; margin-left: 10px;'));
?>
					</div>

					<div class="form-group">
						<?php 
Views::label('secret');
Views::text('secret', $terminal->secret);
?>
					</div>

					<div class="form-group">
						<?php 
Views::label('back');
Views::text('back', URL::route('ff-bank-em-shop'));
?>
					</div>

				</div>

				<div class="col-md-8">
					<button class="btn btn-sm post-sale">выполнить запрос</button>
					<div style="padding: 5px 0;">
						<pre class="post-sale" style="font-size: .8em;"></pre>
					</div>
				</div>


			</div>
		</div>