-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodule.php
29 lines (24 loc) · 908 Bytes
/
module.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
<?PHP
//Lets try to use Royal Mail
//include soap class
include_once 'soap.php';
//lets make a request
$request = new royalmaillabelRequest();
$array = array (
'api_service_type' => "D",
'order_tracking_id' => "",
'api_service_code' => "SD1",
'api_service_format' => "",
'api_service_enhancements' => "",
'shipping_name' => $shipping['name_line'], "Felipe",
'shipping_company' => "splash", //$shipping['organisation_name'],
'shipping_address1' => $shipping['thoroughfare'], //"23, St johns road",
'shipping_address2' => $shipping['thoroughfare'], //"",
'shipping_town' => $shipping['premise'], //"london",
'shipping_postcode' => $shipping['postal_code'], //"NW11 0PE",
'order_tracking_boxes' => "0",
'order_tracking_weight' => "1500",
);
//getting a response
$response = $request->CreateShippiment($array);
var_dump($response);