コード例 #1
0
 public PaypalProfileInfo GetProfileInfo(string profileId)
 {
     PaypalProfileInfo info = null;
     if (!String.IsNullOrEmpty(profileId))
     {
         PaypalExpressCheckout paypal = new PaypalExpressCheckout();
         info = paypal.GetProfileInfo(profileId);
     }
     return info;
 }
コード例 #2
0
ファイル: Modify.aspx.cs プロジェクト: beachead/gooey-cms-v2
        protected void BtnDelete_Click(Object sender, EventArgs e)
        {
            String guid = Request.QueryString["g"];
            CmsSubscription subscription = SubscriptionManager.GetSubscription(guid);

            String profileId = subscription.PaypalProfileId;
            SubscriptionManager.CancelSubscription(subscription);

            PaypalExpressCheckout paypal = new PaypalExpressCheckout();
            PaypalProfileInfo info = paypal.GetProfileInfo(profileId);

            if (info != null)
                this.LblProfileStatus.Text = info.Status;
            else
                this.LblProfileStatus.Text = "DELETED";

            this.EditPanel.Enabled = false;
            this.LblStatus.Text = "This subscription has been successfully deleted.";
        }