$agreement = Agreement::get($suspendedAgreement->getId(), $apiContext);
} catch (Exception $ex) {
ResultPrinter::printResult("Reactivate the Agreement", "Agreement", $agreement->getId(), $suspendedAgreement, $ex);
exit(1);
}
ResultPrinter::printResult("Reactivate the Agreement", "Agreement", $agreement->getId(), $suspendedAgreement, $agreement);
return $agreement;
Reactivate an agreement
This sample code demonstrate how you can reactivate a billing agreement, as documented here at: https://developer.paypal.com/webapps/developer/docs/api/#suspend-an-agreement API used: /v1/payments/billing-agreements//suspend