I have set up a website that uses the PayPal Payflow API to process payment transactions using a live Payments Pro account that has the Recurring Payment service. It works by first requesting a secure token and then committing the transaction. I have this working using both Hosted Pages (layout c) and Transparent Redirect. I'm using the Payflow_dotNet dll which uses the payflowpro.paypal.com URL.
Now I was told (and discovered) that Recurring payments can't be set up using Secure token so I'm doing this in 2 steps
- Create an authorization transaction
- Convert the transaction to a Recurring Payment Profile
So I have step 1 working. But I have problems with step 2. Step 2 SAYS that it worked but when I go to PayPal - Profile - My Selling Tools - My Automatic Payments there is nothing there, and the authorization transaction is still listed (as pending) in my History. Sample code:
PayflowNETAPI PayflowNETAPI = new PayflowNETAPI();
string secureTokenID = PayflowUtility.RequestId;
string response = PayflowNETAPI.SubmitTransaction(nvpstring, secureTokenID);
Where nvpstring is
PARTNER[6]=PayPal&VENDOR[13]=myvendor&USER[6]=Robert&PWD[8]=mypassword&
TRXTYPE=R&ACTION=A&TENDER=C&INVNUM=243&PROFILEREFERENCE=243&PROFILENAME[38]=Mark Groseth--243--Science Center Fund&
START=09182014&TERM=0&PAYPERIOD=MONT&AMT[4]=1.07&ORIGID=ESJPC2894AFC
where the ORIGID is the PNREF that was returned when creating the authorization transaction. This even gives me a resulting RPREF and ProfileID like RP0000000005. So where did it go? why didn't it work?