//public string[] ApproveCC(string goodcc) //{ // CreditCardLogic target = new CreditCardLogic(); // BaseResponse actual = target.ChargeCard(memberid, updatedsalutation, updatedfirstname, updatedmiddleinitial, updatedlastname, updatedsuffix, // updatedprofessionaltitle, updatedemail, updatedoptin, updatedbusinessname, updatedaddress1, updatedaddress2, updatedaddress3, // updatedcity, updatedstate, updatedpostalcode, updatedcountry, // updatedphone, updatedfax, updatedaltcity, // goodcc, short.Parse(ccexpmonth), short.Parse(ccexpyear), amountpaid, // ccname, ccaddress, cccity, // ccstate, ccpostalcode, pubcode, updatedusername, updatedpwd, false); // if (actual != null && actual.TypedResponse != null && actual.TypedResponse.Success) // { // string[] returnData = new string[]{ // ((CreditCardServiceResponse)actual.TypedResponse).VerifoneRoutingId, // ((CreditCardServiceResponse)actual.TypedResponse).AuthorizationCode // }; // return returnData; // } // return null; //} public string CreateSubscription(string fname, string lname, string add1, string verifoneroutingid) { SubscriptionLogic target = new SubscriptionLogic(); BaseResponse actual = target.CreateSubscription(subscriptionlength, amountpaid, verifoneroutingid, pubcode, keycode, null, updatedsalutation, fname, updatedmiddleinitial, lname, updatedsuffix, updatedprofessionaltitle, updatedemail, updatedoptin, updatedbusinessname, updatedaddress1, updatedaddress2, updatedaddress3, updatedcity, updatedstate, updatedpostalcode, updatedcountry, updatedphone, updatedfax, updatedaltcity, false, null, null, null, null, null, null, null, null, false, null, null, null, null, null, null, null, null, null, null, null); /* giftflag, renewinggiftmemberid, giftsalutation, giftfirstname, giftmiddleinitial, giftlastname, giftsuffix, giftprofessionaltitle, giftemail, giftoptin, giftbusinessname, giftaddress1, giftaddress2, giftaddress3, giftcity, giftstate, giftpostalcode, giftcountry, giftphone, giftfax, giftaltcity */ if (actual != null && actual.TypedResponse != null && actual.TypedResponse.Success) { return ((SubscriptionServiceResponse)actual.TypedResponse).MemberId; } return null; }
public BaseResponse RedeemReferral(string encreferralid, string firstname, string lastname, string emailaddress, string countrycode, string address1, string address2, string city, string region, string postal, bool optin, string username, string encpassword) { BaseResponse baseResponse = new BaseResponse(); try { int referralid = int.Parse(Cryptography.DecryptData(encreferralid)); string password = Cryptography.DecryptData(encpassword); baseResponse = new SubscriptionLogic().RedeemReferralSubscription(referralid, firstname, lastname, emailaddress, countrycode, address1, address2, city, region, postal, optin, username, password); } catch (Exception ex) { EventLogger.LogError("MembershipService.RedeemReferral", string.Format("Message: {0} \r\nStackTrace: {1}", ex.Message, ex.StackTrace)); } return baseResponse; }