Update Invoicing Samples

This commit is contained in:
japatel
2014-11-17 21:20:29 -06:00
parent affd4dbd8f
commit 3fc0d34df3
15 changed files with 508 additions and 393 deletions

View File

@@ -4,10 +4,11 @@
// This sample code demonstrate how you can retrieve
// an invoice.
require __DIR__ . '/../bootstrap.php';
/** @var Invoice $invoice */
$invoice = require 'CreateInvoice.php';
use PayPal\Api\Invoice;
$invoiceId = "INV2-W4LC-6QS9-JZ62-VE4P";
$invoiceId = $invoice->getId();
// ### Retrieve Invoice
// Retrieve the invoice object by calling the
@@ -23,3 +24,5 @@ try {
}
ResultPrinter::printResult("Get Invoice", "Invoice", $invoice->getId(), $invoiceId, $invoice);
return $invoice;