From baef23c345e928a2677a540520311c4061198f3b Mon Sep 17 00:00:00 2001 From: Jay Patel Date: Thu, 22 Sep 2016 13:16:36 -0500 Subject: [PATCH] Fixed Invoice Update sample --- sample/invoice/UpdateInvoice.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sample/invoice/UpdateInvoice.php b/sample/invoice/UpdateInvoice.php index 020e1ea..9ca19a0 100644 --- a/sample/invoice/UpdateInvoice.php +++ b/sample/invoice/UpdateInvoice.php @@ -17,11 +17,8 @@ $invoice->setInvoiceDate("2014-12-16 PST"); // ### NOTE: These are the work-around added to the // sample, to get past the bug in PayPal APIs. -// There is already an internal ticket #PPTIPS-1932 created for it. $invoice->setDiscount(null); -$billingInfo = $invoice->getBillingInfo()[0]; -$billingInfo->setAddress(null); -$invoice->getPaymentTerm()->setDueDate(null); +$invoice->getItems()[1]->setDiscount(null); try { // ### Update Invoice