Esempio n. 1
0
        public ActionResult Reactivate(string id)
        {
            var apiContext = PayPalApiHelperService.GetApiContext();

            Agreement.ReActivate(apiContext, id, new AgreementStateDescriptor()
            {
                note = "Reactivated"
            });

            return(RedirectToAction("Details", new { id = id }));
        }
Esempio n. 2
0
        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"
            });
        }