Monday, 15 June 2015

paypal payflow pro cancelling recurring billings -



paypal payflow pro cancelling recurring billings -

i using payflow pro recurring payment using below code, per knowledge code homecoming profileid.

do need store profile id in database user can cancel subscription in future.

please reply useful comments .

----------------------------------------------------------------------------------------- paypalrequest = "trxtype=r" + "&tender=c" //c - credit card + "&action=a" + "&optionaltrx=a" + "&term=0" //0 - recuring never stops + "&comment1=advertisement bundle 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);

yes, store profile id in database along order/customer info can lookup details in future or update status accordingly.

the next api's used manage profiles using id.

managerecurringpaymentsprofilestatus updaterecurringpaymentsprofile transactionsearch

paypal

No comments:

Post a Comment