-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d25a699
commit 4b84da4
Showing
11 changed files
with
27 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# GET Invoice Example : # | ||
``` | ||
cd src/ | ||
php examples/get_invoice_example.php 57ba6f57cf952cff10ebc073 | ||
``` | ||
|
||
|
@@ -10,6 +11,7 @@ php examples/get_invoice_example.php [invoice_id] | |
# Create Invoice Example : # | ||
|
||
``` | ||
cd src/ | ||
php examples/create_invoice_example.php "CUSTOM_ID_0" 30000 "[email protected]" "this is a description" | ||
``` | ||
|
||
|
@@ -19,27 +21,31 @@ php examples/create_invoice_example.php [external_id] [amount] [payer_email] [de | |
|
||
# Create Disbursement Example : # | ||
``` | ||
cd src/ | ||
php examples/create_disbursement_example.php "CUSTOM_ID_1" 30000 "BCA" "Rizky" "1234567890" | ||
``` | ||
|
||
# GET Disbursement Example : # | ||
``` | ||
cd src/ | ||
php examples/get_disbursement_example.php "57ba93175ef9e7077bcb969e" | ||
``` | ||
|
||
# Create Callback Virtual Account Example : # | ||
``` | ||
cd src/ | ||
php examples/create_callback_virtual_account_example.php "CUSTOM_ID_2" "BCA" "Rizky" | ||
``` | ||
|
||
# GET Balance Example : # | ||
``` | ||
cd src/ | ||
php examples/get_balance_example.php | ||
``` | ||
|
||
# Post Invoice Status Callback Example : # | ||
``` | ||
1. Run: cd examples | ||
1. Run: cd src/examples | ||
2. Run: php -S localhost:8006 post_invoice_status_callback_server_example.php | ||
3. When invoice is paid, xendit will hit localhost:8006/paid_invoice_from_xendit with POST method: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...eate_callback_virtual_account_example.php → ...eate_callback_virtual_account_example.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
examples/create_disbursement_example.php → src/examples/create_disbursement_example.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
examples/create_invoice_example.php → src/examples/create_invoice_example.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
examples/get_balance_example.php → src/examples/get_balance_example.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
examples/get_disbursement_example.php → src/examples/get_disbursement_example.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
examples/get_invoice_example.php → src/examples/get_invoice_example.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.