paypal payflow pro取消定期付款

时间:2014-06-21 15:30:33

标签: paypal

  

我使用Payflow专业版使用以下代码进行定期付款,如   根据我的知识,此代码返回profileid。

     

我是否需要将此配置文件ID存储在数据库中以便用户可以   将来取消订阅。

     

请回复您的有用评论。

     

----------------------------------------------- ------------------------------------------ PayPalRequest =" TRXTYPE = R"                       +"& TENDER = C" // C - 信用卡                       +"& ACTION = A"                       +"& OPTIONALTRX = A"                       +"& TERM = 0" // 0 - 从不停止                       +"& COMMENT1 =广告包订阅(重复)"                       +"& PROFILENAME =" + viewModel.PackageName +" - " +用户ID                       +"& USER =" + AppProperties.PayPalFlowUser                       +"& VENDOR =" + AppProperties.PayPalFlowVendor                       +"& PARTNER =" + AppProperties.PayPalFlowPartner                       +"& PWD =" + AppProperties.PayPalFlowPassword                       +"& AMT =" + viewModel.PayAmount                       +"& CURRENCY =" + AppProperties.CurrencyId                       +"& ACCT =" + viewModel.CardNumber //卡号                       +"& 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);

1 个答案:

答案 0 :(得分:0)

是的,我会将配置文件ID与订单/客户信息一起存储在您的数据库中,以便您以后可以随时查找有关它的详细信息或相应地更新状态。

以下API可用于使用其ID管理配置文件。