-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice.php
53 lines (44 loc) · 1.26 KB
/
service.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
$currentLoc = dirname(__FILE__);
define('APPPATH', "$currentLoc/../");
require(APPPATH . 'common/helpers/networkHelper.php');
function placeOrder($delivery_id, $customer_id) {
$postData = array(
'delivery_id' => $delivery_id,
'merchant_id' => '2211',
'customer_id' => $customer_id,
'time_created' => Date('Y-m-d H:i:s'),
);
$url = '<obvilion_url>/placeOrder';
NetworkHelper::postit($url, $postData);
}
function trackOrder($delivery_id, $customer_id) {
$postData = array(
'delivery_id' => $delivery_id,
'merchant_id' => '2211',
'customer_id' => $customer_id,
'time_created' => Date('Y-m-d H:i:s'),
);
$url = '<obvilion_url>/placeOrder';
NetworkHelper::postit($url, $postData);
}
function cancelOrder($delivery_id, $customer_id) {
$postData = array(
'delivery_id' => $delivery_id,
'merchant_id' => '2211',
'customer_id' => $customer_id,
'time_created' => Date('Y-m-d H:i:s'),
);
$url = '<obvilion_url>/placeOrder';
NetworkHelper::postit($url, $postData);
}
function updateOrder($delivery_id, $customer_id) {
$postData = array(
'delivery_id' => $delivery_id,
'merchant_id' => '2211',
'customer_id' => $customer_id,
'time_created' => Date('Y-m-d H:i:s'),
);
$url = '<obvilion_url>/placeOrder';
NetworkHelper::postit($url, $postData);
}