예제 #1
0
<?php

/**
 * Payment form
 *
 * @link http://help.unitpay.ru/article/31-creating-payment-from-payment-form
 */
require_once './orderInfo.php';
require_once '../UnitPay.php';
$unitPay = new UnitPay($secretKey);
$redirectUrl = $unitPay->form($publicId, $orderSum, $orderId, $orderDesc, $orderCurrency);
header("Location: " . $redirectUrl);