public ActionResult Reactivate(string id) { var apiContext = PayPalApiHelperService.GetApiContext(); Agreement.ReActivate(apiContext, id, new AgreementStateDescriptor() { note = "Reactivated" }); return(RedirectToAction("Details", new { id = id })); }
public static void ReactivateBillingAgreement(string agreementId) { var apiContext = PayPalConfiguration.GetAPIContext(); var agreement = new Agreement() { id = agreementId }; agreement.ReActivate(apiContext, new AgreementStateDescriptor() { note = "Reactivating the agreement" }); }