Skip to content

Commit

Permalink
PPL-170 , Delete Invoice version 2 api added.
Browse files Browse the repository at this point in the history
  • Loading branch information
tejasmht committed Jun 28, 2019
1 parent bfaef20 commit 809a028
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions samples/rest/invoice_v2/DeleteInvoice.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

use angelleye\PayPal\rest\invoice\InvoiceAPIv2;

// Include required library files.
require_once('../../../autoload.php');
require_once('../../../includes/config.php');

$configArray = array(
'Sandbox' => $sandbox,
'ClientID' => $rest_client_id,
'ClientSecret' => $rest_client_secret,
'LogResults' => $log_results,
'LogPath' => $log_path,
'LogLevel' => $log_level
);
$PayPal = new InvoiceAPIv2($configArray);

$InvoiceID = 'INV2-YZZF-D7VN-P2YM-9ZH2'; // Required. The ID of the invoice for which to show details.

$returnArray = $PayPal->DeleteInvoice($InvoiceID);
echo "<pre>";
print_r($returnArray);

0 comments on commit 809a028

Please sign in to comment.