forked from yay-digital/easybill-php
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.php
More file actions
Latest commit
22 lines (16 loc) · 635 Bytes
/
Copy pathexample.php
File metadata and controls
22 lines (16 loc) · 635 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
require'vendor/autoload.php';
$easybill = newYayDigital\Easybill\Easybill('8awkgm85qqdrpihm5ul02kcxjx8o5t99ccccwkvb0rozgfd86a4ofaqw5uimdcsg');
// var_dump($easybill->documents()->all(['type' => 'INVOICE', 'is_draft' => 0, 'is_archive' => 0, 'number' => '16-21001-001']));
// Vorhandene Zahlungen auflisten
// var_dump($easybill->documentPayments()->all());
// Zahlung registrieren
$x = $easybill->documentPayments()->create([
'amount' => '1200',
'document_id' => '85049690',
'notice' => 'Das ist ein Test.',
'type' => 'Überweisung',
'payment_at' => date('Y-m-d'),
'paid' => true
]);
var_dump($x);