I am using Payflow pro for recurring payment using the below code, as per my knowledge this code return profileid.
Do I need to store this profile id in a database so that user can cancel the subscription in the future.
please do reply with your useful comments .
----------------------------------------------------------------------------------------- PayPalRequest = "TRXTYPE=R" + "&TENDER=C" //C - Credit card + "&ACTION=A" + "&OPTIONALTRX=A" + "&TERM=0" //0 - recuring never stops + "&COMMENT1=Advertisement package subscription (Recurring)" + "&PROFILENAME=" + viewModel.PackageName + "-" + UserID + "&USER=" + AppProperties.PayPalFlowUser + "&VENDOR=" + AppProperties.PayPalFlowVendor + "&PARTNER=" + AppProperties.PayPalFlowPartner + "&PWD=" + AppProperties.PayPalFlowPassword + "&AMT=" + viewModel.PayAmount + "&CURRENCY=" + AppProperties.CurrencyId + "&ACCT=" + viewModel.CardNumber //card number + "&EXPDATE=" + viewModel.ExpirationMonth + viewModel.ExpirationYear.Substring(2, 2) + "&START=" + DateTime.Now.Date.ToString(AppConstants.ddMMyyyy) + "&PAYPERIOD=" + GetPayFlowPeriodVariables(viewModel);
PayflowNETAPI PayflowNETAPI = new PayflowNETAPI();
string PayPalResponse = PayflowNETAPI.SubmitTransaction(PayPalRequest,PayflowUtility.RequestId);
0
votes