Skip to content

Commit

Permalink
Merge pull request #203 from angelleye/PPL-166
Browse files Browse the repository at this point in the history
PPL-166
  • Loading branch information
Drew Angell authored Feb 2, 2020
2 parents cff6386 + 56718be commit c9113af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/rest/invoice/ListInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
$parameters = array(
'page' => '0', // A zero-relative index of the list of merchant invoices.
'page_size' => '4', // The number of invoices to list beginning with the specified page.
'total_count_required ' => 'true', // Indicates whether the total count appears in the response. Default is false.
'total_count_required' => 'true' // Indicates whether the total count appears in the response. Default is false.
);

$returnArray = $PayPal->ListInvoice($parameters);
Expand Down
2 changes: 1 addition & 1 deletion src/angelleye/PayPal/rest/invoice/InvoiceAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public function ListInvoice($params,$third_party=false,$refesh_token=''){
if($third_party === true && !empty($refesh_token)){
$apiContext->getCredential()->updateAccessToken($apiContext->getConfig(), $refesh_token);
}
$invoices = Invoice::getAll(array_filter($params), $this->_api_context);
$invoices = Invoice::getAll($params, $this->_api_context);
$returnArray['RESULT'] = 'Success';
$returnArray['INVOICES'] = $invoices->toArray();
return $returnArray;
Expand Down

0 comments on commit c9113af

Please sign in to comment.