forked from LiveCarta/PayPal-PHP-SDK
Merge pull request #657 from paypal/invoicing-update
Fixed Invoice Update sample
This commit is contained in:
@@ -17,11 +17,8 @@ $invoice->setInvoiceDate("2014-12-16 PST");
|
|||||||
|
|
||||||
// ### NOTE: These are the work-around added to the
|
// ### NOTE: These are the work-around added to the
|
||||||
// sample, to get past the bug in PayPal APIs.
|
// sample, to get past the bug in PayPal APIs.
|
||||||
// There is already an internal ticket #PPTIPS-1932 created for it.
|
|
||||||
$invoice->setDiscount(null);
|
$invoice->setDiscount(null);
|
||||||
$billingInfo = $invoice->getBillingInfo()[0];
|
$invoice->getItems()[1]->setDiscount(null);
|
||||||
$billingInfo->setAddress(null);
|
|
||||||
$invoice->getPaymentTerm()->setDueDate(null);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// ### Update Invoice
|
// ### Update Invoice
|
||||||
|
|||||||
Reference in New Issue
Block a user