From 699d6b86f1e74e2542095e30bd926d483c3f31be Mon Sep 17 00:00:00 2001 From: siddick Date: Fri, 28 Mar 2014 22:41:23 +0530 Subject: [PATCH] Return true for null response --- lib/PayPal/Api/CreditCard.php | 2 +- lib/PayPal/Api/Invoice.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/PayPal/Api/CreditCard.php b/lib/PayPal/Api/CreditCard.php index 87cfb09..0994e47 100644 --- a/lib/PayPal/Api/CreditCard.php +++ b/lib/PayPal/Api/CreditCard.php @@ -469,7 +469,7 @@ class CreditCard extends PPModel implements IResource { } $call = new PPRestCall($apiContext); $json = $call->execute(array('PayPal\Rest\RestHandler'), "/v1/vault/credit-card/{$this->getId()}", "DELETE", $payLoad); - return; + return true; } /* diff --git a/lib/PayPal/Api/Invoice.php b/lib/PayPal/Api/Invoice.php index 90df2a7..8b83f62 100644 --- a/lib/PayPal/Api/Invoice.php +++ b/lib/PayPal/Api/Invoice.php @@ -789,7 +789,7 @@ class Invoice extends PPModel implements IResource { } $call = new PPRestCall($apiContext); $json = $call->execute(array('PayPal\Rest\RestHandler'), "/v1/invoicing/invoices/{$this->getId()}/send", "POST", $payLoad); - return; + return true; } /* @@ -812,7 +812,7 @@ class Invoice extends PPModel implements IResource { } $call = new PPRestCall($apiContext); $json = $call->execute(array('PayPal\Rest\RestHandler'), "/v1/invoicing/invoices/{$this->getId()}/remind", "POST", $payLoad); - return; + return true; } /* @@ -835,7 +835,7 @@ class Invoice extends PPModel implements IResource { } $call = new PPRestCall($apiContext); $json = $call->execute(array('PayPal\Rest\RestHandler'), "/v1/invoicing/invoices/{$this->getId()}/cancel", "POST", $payLoad); - return; + return true; } /* @@ -858,7 +858,7 @@ class Invoice extends PPModel implements IResource { } $call = new PPRestCall($apiContext); $json = $call->execute(array('PayPal\Rest\RestHandler'), "/v1/invoicing/invoices/{$this->getId()}/record-payment", "POST", $payLoad); - return; + return true; } /* @@ -881,7 +881,7 @@ class Invoice extends PPModel implements IResource { } $call = new PPRestCall($apiContext); $json = $call->execute(array('PayPal\Rest\RestHandler'), "/v1/invoicing/invoices/{$this->getId()}/record-refund", "POST", $payLoad); - return; + return true; } /* @@ -960,6 +960,6 @@ class Invoice extends PPModel implements IResource { } $call = new PPRestCall($apiContext); $json = $call->execute(array('PayPal\Rest\RestHandler'), "/v1/invoicing/invoices/{$this->getId()}", "DELETE", $payLoad); - return; + return true; } }