public string StoreDirectDebit() { using (BlackbaudSecurePayments svc = Common.GetSecurePaymentsProxy()) { StoreDirectDebitAccountInfoRequest req = new StoreDirectDebitAccountInfoRequest(); Common.SetBBPayPaymentServiceClientInfoHeader(req); req.AccountHolder = "Scott Carnley"; req.AccountToken = this.AccountToken; req.Token = this.Token; req.CallbackURI = Common.CALL_BACK_URI; req.Description = "First test of store direct debit account information."; req.DonorIP = "24.24.24.24"; //req.MerchantAccountId = Common.MERCHANT_ACCOUNT_ID; StoreDirectDebitAccountInfoReply r = svc.StoreDirectDebitAccountInfo(req); if (r.Success) { return r.ProcessURI; } else { return r.Message; } } }
public void Submit() { using (PaymentService ps = Common.GetPaymentServiceProxy()) { StoreDirectDebitAccountInfoRequest req = new StoreDirectDebitAccountInfoRequest(); Common.SetPSClientInfoHeader(req); req.AccountToken = this.AccountToken.ToString(); req.AccountHolder = "Fredrico Rosco Pico"; req.AccountNumber = "123456789"; req.RoutingNumber = "053207766"; req.AccountType = AccountTypeCode.Checking; StoreDirectDebitAccountInfoReply r = ps.StoreDirectDebitAccountInfo(req); } }