forked from LiveCarta/PayPal-PHP-SDK
Unit Tests and Functional Tests for Invoicing
- Updated Unit Tests for PPModels used by Invoicing - Updated Functional Tests - Updated Samples for quick changes.
This commit is contained in:
@@ -30,7 +30,7 @@ try {
|
||||
// (See bootstrap.php for more on `ApiContext`)
|
||||
$recordStatus = $invoice->recordPayment($record, $apiContext);
|
||||
} catch (Exception $ex) {
|
||||
ResultPrinter::printError("Payment for Invoice", "Invoice", null, $recordStatus, $ex);
|
||||
ResultPrinter::printError("Payment for Invoice", "Invoice", null, null, $ex);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ try {
|
||||
// (See bootstrap.php for more on `ApiContext`)
|
||||
$refundStatus = $invoice->recordRefund($refund, $apiContext);
|
||||
} catch (Exception $ex) {
|
||||
ResultPrinter::printError("Refund for Invoice", "Invoice", null, $refundStatus, $ex);
|
||||
ResultPrinter::printError("Refund for Invoice", "Invoice", null, null, $ex);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user