-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcreate.php
33 lines (28 loc) · 924 Bytes
/
create.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
<?php
use BambooPayment\Exception\ExceptionInterface;
require __DIR__ . '/../../vendor/autoload.php';
require_once __DIR__ . '/../init.php';
try {
$customer = $bambooPaymentClient->customers->create(
[
'Email' => '[email protected]',
'FirstName' => 'PrimerNombre',
'LastName' => 'PrimerApellido',
'DocNumber' => 12345672,
'DocumentTypeId' => 2,
'PhoneNumber' => '24022330',
'BillingAddress' => [
'AddressType' => 1,
'Country' => 'UY',
'State' => 'Montevideo',
'City' => 'MONTEVIDEO',
'AddressDetail' => '10000'
]
]
);
echo '<pre>';
print_r($customer->toArray());
echo '</pre>';
} catch (ExceptionInterface $e) {
var_dump($e->getMessage());
}