setSubject("Past due") ->setNote("Canceling invoice") ->setSendToMerchant(true) ->setSendToPayer(true); $cancelStatus = $invoice->cancel($notify, $apiContext); } catch (PayPal\Exception\PPConnectionException $ex) { echo "Exception: " . $ex->getMessage() . PHP_EOL; var_dump($ex->getData()); exit(1); } ?> Cancel Invoice
Cancel Invoice:
Back