コード例 #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 }));
        }
コード例 #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"
            });
        }