-
Notifications
You must be signed in to change notification settings - Fork 0
/
shopier.php
32 lines (30 loc) · 900 Bytes
/
shopier.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
session_start();
$isim = $_POST["isim"];
$mail = $_POST["mail"];
$tel = $_POST["tel"];
$_SESSION['tutar'] = $tutar = $_POST["tutar"];
$adres = $_POST["avatar"];
$_SESSION['eskibakiye'] = $_POST["eskibakiye"];
$sipno = rand();
$urun = $_POST["hizmet"];
include 'shopierAPI.php';
$shopier = new Shopier('ApiKEY giriniz', 'SECRETKEy giriniz');
$shopier->setBuyer([
'id' => $sipno,
'paket' => $urun,
'first_name' => $isim, 'last_name' => $isim, 'email' => $mail, 'phone' => $tel]);
$shopier->setOrderBilling([
'billing_address' => $adres, //Kullanıcının adresi
'billing_city' => 'İstanbul',
'billing_country' => 'Türkiye',
'billing_postcode' => '34000',
]);
$shopier->setOrderShipping([
'shipping_address' => $adres,
'shipping_city' => 'İstanbul',
'shipping_country' => 'Türkiye',
'shipping_postcode' => '34000',
]);
die($shopier->run($sipno, $tutar, 'shopierNotify.php'));
?>