Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/admin/payu-form.php |
<?php
/**
* OpenPayU Examples
*
* @copyright Copyright (c) 2011-2016 PayU
* @license http://opensource.org/licenses/LGPL-3.0 Open Software License (LGPL 3.0)
* http://www.payu.com
* http://developers.payu.com
*/
require_once realpath(dirname(__FILE__)) . '/../payu/lib/openpayu.php';
require_once realpath(dirname(__FILE__)) . '/../payu/examples/config.php';
$order = array();
$order['notifyUrl'] = 'http://www.etykietyweselne.pl'.dirname($_SERVER['REQUEST_URI']).'/OrderNotify.php';
$order['continueUrl'] = 'http://www.etykietyweselne.pl'.dirname($_SERVER['REQUEST_URI']).'/../../layout/success.php';
$order['customerIp'] = '127.0.0.1';
$order['merchantPosId'] = OpenPayU_Configuration::getMerchantPosId();
$order['description'] = 'New order';
$order['currencyCode'] = 'PLN';
$order['totalAmount'] = $_GET['cena'];
$order['extOrderId'] = uniqid('', true);
$order['products'][1]['name'] = $_GET['produkt'];
$order['products'][1]['unitPrice'] = $_GET['cena'];
$order['products'][1]['quantity'] = 1;
$order['buyer']['email'] = $_GET['email'];
$order['buyer']['phone'] = $_GET['phone'];
$order['buyer']['firstName'] = $_GET['firstName'];
$order['buyer']['lastName'] = $_GET['lastName'];
$rsp = OpenPayU_Order::hostedOrderForm($order);
?>
<!doctype html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Generated Order Form - OpenPayU v2</title>
<link rel="stylesheet" href="../../layout/css/bootstrap.min.css">
<link rel="stylesheet" href="../../layout/css/style.css">
<style type="text/css">
#payu-payment-form button[type=submit]{
border: 0px;
height: 50px;
width: 290px;
background: url('http://static.payu.com/pl/standard/partners/buttons/payu_account_button_long_03.png') no-repeat;
cursor: pointer;
}
</style>
</head>
</head>
<body>
<div class="container">
<div class="page-header">
<h1>Opłacanie zamówienia: <?php echo $_GET['firstName'].' '.$_GET['lastName']?></h1>
</div>
<div id="message"></div>
<div id="unregisteredCardData">
<?php echo $rsp; ?>
</div>
</div>
</html>