Answers.Body: <p>My attempt at summarising Borislav's / John Gold's answer (above) for easier reading here:</p>
  
  <p>If you're trying to import recurring contributions into Civi from a previous membership program / CRM, you <em>may</em> be able to write something that goes into paypal and changes the IPN data it gives civi, so Civi understands it. But it will be a pain.</p>
  
  <p>Normally Civi gives PayPal Standard a string of data when you set up a recuring contribution, which it expects to give back; if the recurring contribution was set up in a legacy system, PayPal won't give the same string back, and therefore without changes, Civi won't understand it.</p>
  
  <p>You could alternatively. manually upload recurring subscription data in a csv to Civi, so it's there to look through in Civi, but it won't have IPNs and won't continue to link to Paypal. Then as each person's card expired, they would have them restart the payment through Civi.</p>
  
  <p>John Gold is unsure if the "Submit Credit Card Contribution" button will work with PayPal standard either.</p>
  
  <p><strong><em>To me,</em></strong>- and we are looking at having to do this with my organisation - having to ask every member to set up their card again sounds like a right pain - and we are quite worried that we will lose a significant amount of members in the process, as people may well not set up their subscriptions again.</p>
  
  <p>If anyone else has updates / more information about this / possible solutions to the original question, I would be very grateful. Thanks</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-14T15:33:04.977Z
Answers.LastActivityDate: 2016-06-14T15:33:04.977Z
Answers.UserDisplayName: Nick
Answers.Body: <p>Fuzion's <a href="https://github.com/eileenmcnaughton/nz.co.fuzion.csvimport.git" rel="nofollow noreferrer">Import API CSV extension</a> has more fields than Import Contributions, and most importantly I think for the situation I am looking at, these include Recur Contribution ID.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-01T15:43:29.733Z
Answers.Text: Exactly - I use this CSV import to populate the recurring series when we transplant iATS recurring series from another system to CiviCRM; Of course that's easier - no IPNs - the token is still valid - it's just called from CiviCRM now
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-25T23:03:08.777Z
Answers.Text: @KarinG-SemperIT I just used it and your comment was the KEY
Answers.UserDisplayName: Zachary
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-01T07:18:43.010Z
Answers.LastActivityDate: 2017-03-01T07:18:43.010Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>Here is some relevant information I got from JonGold on this matter in a private chat in IRC. Posting the conversation in its entirety.</p>
  
  <p><code>
  [21:16] &lt;borislav&gt; hi
  [21:16] &lt;JonGold&gt; hi
  [21:17] &lt;borislav&gt; is this by any chance your answer here? http://stackoverflow.com/a/31733507/2762014
  [21:18] &lt;JonGold&gt; yup
  [21:18] &lt;borislav&gt; cool
  [21:18] &lt;borislav&gt; how did you import the recurring contributions into your civi database?
  [21:19] &lt;JonGold&gt; I used the command line CSV API import tool
  [21:19] &lt;borislav&gt; ah!
  [21:20] &lt;borislav&gt; could have thought of that myself, haha
  [21:20] &lt;borislav&gt; so you first imported the contacts and then the recurring contributions?
  [21:20] &lt;JonGold&gt; I'm looking at the CSV now.  Here are my headers:  "trxn_id","installments","frequency_unit","amount","invoice_id","start_date"    ,"create_date",contact_id,"frequency_interval"
  [21:21] &lt;JonGold&gt; Yes - I do a lot of migrations to Civi.  I first import the first name/last name/external identifier.  That way I can map external IDs to CiviCRM contact IDs.
  [21:21] &lt;JonGold&gt; Though I realize that we've confused two different issues here.
  [21:22] &lt;JonGold&gt; The IPN issue didn't involve me importing anything.  I had a Civi client who switched from Drupal to Wordpress.  So the database didn't change, nothing was imported.  I just needed IPNs to show up at a Wordpress-based URL.
  [21:22] &lt;JonGold&gt; But I've also imported plenty of recurring donations using the command line API CSV tool!
  [21:24] &lt;borislav&gt; right, in that case you already had the recurring contribs in the civi database so you just needed to redirect the IPN. in my case I need to import them to the database
  [21:24] &lt;JonGold&gt; What payment processor are you using?
  [21:24] &lt;borislav&gt; Paypal Standard
  [21:25] &lt;JonGold&gt; Hmm.  I'm not sure how successful you're going to be, but I can give you some tips.
  [21:25] &lt;borislav&gt; if you want to, answer my question here: http://civicrm.stackexchange.com/questions/7146/what-are-my-options-for-importing-recurring-contributions
  [21:26] &lt;borislav&gt; or I can compile an answer with your tips and post it
  [21:26] &lt;borislav&gt; whichever you prefer :)
  [21:26] &lt;JonGold&gt; When you create a recurring donation in CiviCRM using PayPal Standard, Civi gives PayPal a string of data that it expects to get back.  It includes the contact ID, recurring contribution ID, etc.
  [21:27] &lt;JonGold&gt; So when PayPal sends its IPN ping, Civi is expecting to get that data back in a particular format.
  [21:27] &lt;JonGold&gt; If it's getting the IPN data pinged to it and that contribution was created in a different CRM, the data won't be there.
  [21:28] &lt;JonGold&gt; In theory, you can go into each IPN subscription in PayPal and change the data.  I've done it manually.  You can also possibly write a script.  It's a huge pain.
  [21:28] &lt;JonGold&gt; You can compile these answers - I don't think I need the Stack Exchange points :)
  [21:29] &lt;JonGold&gt; My last client in your situation agreed that the option they'd take is to manually upload a list of recurring donations from a CSV (I forget whether it was compiled manually or exported from a legacy system)
  [21:29] &lt;JonGold&gt; The recurring contribution records were still present in Civi so they could, e.g., search for recurring donors, but there were no IPNs, just the manually imported recurring donations.
  [21:30] &lt;JonGold&gt; As each person's credit card expired, they would have that person restart the recurring payment through Civi.  This may work differently with PayPal standard though.
  [21:31] &lt;JonGold&gt; Also, to respond to your not seeing the "Submit Credit Card Contribution" button - I'm not sure that works with Paypal Standard, I'm afraid.  Not 100% sure though
  [21:39] &lt;borislav&gt; I had no idea that the paypal IPN data depends on what Civi sent to Paypal in the first place. this makes things much more complicated. for me it may not be worth it to do all of this. with not too many subscribers, it might make more sense to ask them to register for a donation again, this time with Civi's donation form
  [21:40] &lt;borislav&gt; you have saved me a lot of time with this info, thank you
  [21:40] &lt;JonGold&gt; no problem!
  </code></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-21T20:48:50.880Z
Answers.LastActivityDate: 2015-10-21T20:48:50.880Z
Answers.UserDisplayName: Borislav Zlatanov
Answers.Body: <p>Are those recurring plans in CiviCRM? If not then you <em>might</em> need to use something like <a href="https://wiki.civicrm.org/confluence/display/CRM/CiviBanking" rel="nofollow">Civi Banking</a> to do the work for you. If they are then I think the options your talking about should become available.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-20T16:06:45.617Z
Answers.LastActivityDate: 2016-06-14T19:24:56.560Z
Answers.LastEditDate: 2016-06-14T19:24:56.560Z
Answers.UserDisplayName: Parvez Saleh
Body: <p>Our organization is currently transitioning into CiviCRM. We have some existing recurring contributions (with Paypal Standard) that are ongoing and we would like to import them into Civi. Why do we want to import them? Well, here is my current understanding of the situation:</p>
  
  <p>When the monthly contribution amount is charged from the donor's card by Paypal, an IPN with the payment data is sent to our server. Civi processes the IPN and tries to relate it to an existing recurring contribution. If it finds the related recurring contribution, it creates a new single contribution record for the payment made. If it doesn't find a related recurring contribution, it gives an error.</p>
  
  <p>So this is why we need to import (or somehow recreate) the recurring contributions. What are our options for that? I saw <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Staff+entry+of+recurring+contributions" rel="nofollow">this wiki page</a>, however in the Contributions tab inside a contact I can't find a "Submit Credit Card Contribution" button.</p>
  
Tags: <import><recurring-contributions>
Title: What are my options for importing recurring contributions?
ThreadText: # What are my options for importing recurring contributions?
  
  (Asked by: username_0 on 2015-10-20)
  
  Our organization is currently transitioning into CiviCRM. We have some existing recurring contributions (with Paypal Standard) that are ongoing and we would like to import them into Civi. Why do we want to import them? Well, here is my current understanding of the situation:
  
  When the monthly contribution amount is charged from the donor's card by Paypal, an IPN with the payment data is sent to our server. Civi processes the IPN and tries to relate it to an existing recurring contribution. If it finds the related recurring contribution, it creates a new single contribution record for the payment made. If it doesn't find a related recurring contribution, it gives an error.
  
  So this is why we need to import (or somehow recreate) the recurring contributions. What are our options for that? I saw [this wiki page](http://wiki.civicrm.org/confluence/display/CRMDOC/Staff+entry+of+recurring+contributions), however in the Contributions tab inside a contact I can't find a "Submit Credit Card Contribution" button.
  
  **Tags:** import, recurring-contributions
  
  
  ---
  
  ## 4 answers
  
  ### Answer by username_1 on 2016-06-14. Score: 2
  
  My attempt at summarising Borislav's / John Gold's answer (above) for easier reading here:
  
  If you're trying to import recurring contributions into Civi from a previous membership program / CRM, you *may* be able to write something that goes into paypal and changes the IPN data it gives civi, so Civi understands it. But it will be a pain.
  
  Normally Civi gives PayPal Standard a string of data when you set up a recuring contribution, which it expects to give back; if the recurring contribution was set up in a legacy system, PayPal won't give the same string back, and therefore without changes, Civi won't understand it.
  
  You could alternatively. manually upload recurring subscription data in a csv to Civi, so it's there to look through in Civi, but it won't have IPNs and won't continue to link to Paypal. Then as each person's card expired, they would have them restart the payment through Civi.
  
  John Gold is unsure if the "Submit Credit Card Contribution" button will work with PayPal standard either.
  
  ***To me,***- and we are looking at having to do this with my organisation - having to ask every member to set up their card again sounds like a right pain - and we are quite worried that we will lose a significant amount of members in the process, as people may well not set up their subscriptions again.
  
  If anyone else has updates / more information about this / possible solutions to the original question, I would be very grateful. Thanks
  
  
  ---
  
  ### Answer by username_2 on 2017-03-01. Score: 2
  
  Fuzion's [Import API CSV extension](https://github.com/eileenmcnaughton/nz.co.fuzion.csvimport.git) has more fields than Import Contributions, and most importantly I think for the situation I am looking at, these include Recur Contribution ID.
  
  > **Comments:**
  > **username_3**: Exactly - I use this CSV import to populate the recurring series when we transplant iATS recurring series from another system to CiviCRM; Of course that's easier - no IPNs - the token is still valid - it's just called from CiviCRM now  
  > **username_4**: @KarinG-SemperIT I just used it and your comment was the KEY  
  
  ---
  
  ### Answer by username_0 on 2015-10-21. Score: 2
  
  Here is some relevant information I got from JonGold on this matter in a private chat in IRC. Posting the conversation in its entirety.
  
  `[21:16]  hi
  [21:16]  hi
  [21:17]  is this by any chance your answer here? http://stackoverflow.com/a/31733507/2762014
  [21:18]  yup
  [21:18]  cool
  [21:18]  how did you import the recurring contributions into your civi database?
  [21:19]  I used the command line CSV API import tool
  [21:19]  ah!
  [21:20]  could have thought of that myself, haha
  [21:20]  so you first imported the contacts and then the recurring contributions?
  [21:20]  I'm looking at the CSV now. Here are my headers: "trxn_id","installments","frequency_unit","amount","invoice_id","start_date" ,"create_date",contact_id,"frequency_interval"
  [21:21]  Yes - I do a lot of migrations to Civi. I first import the first name/last name/external identifier. That way I can map external IDs to CiviCRM contact IDs.
  [21:21]  Though I realize that we've confused two different issues here.
  [21:22]  The IPN issue didn't involve me importing anything. I had a Civi client who switched from Drupal to Wordpress. So the database didn't change, nothing was imported. I just needed IPNs to show up at a Wordpress-based URL.
  [21:22]  But I've also imported plenty of recurring donations using the command line API CSV tool!
  [21:24]  right, in that case you already had the recurring contribs in the civi database so you just needed to redirect the IPN. in my case I need to import them to the database
  [21:24]  What payment processor are you using?
  [21:24]  Paypal Standard
  [21:25]  Hmm. I'm not sure how successful you're going to be, but I can give you some tips.
  [21:25]  if you want to, answer my question here: http://civicrm.stackexchange.com/questions/7146/what-are-my-options-for-importing-recurring-contributions
  [21:26]  or I can compile an answer with your tips and post it
  [21:26]  whichever you prefer :)
  [21:26]  When you create a recurring donation in CiviCRM using PayPal Standard, Civi gives PayPal a string of data that it expects to get back. It includes the contact ID, recurring contribution ID, etc.
  [21:27]  So when PayPal sends its IPN ping, Civi is expecting to get that data back in a particular format.
  [21:27]  If it's getting the IPN data pinged to it and that contribution was created in a different CRM, the data won't be there.
  [21:28]  In theory, you can go into each IPN subscription in PayPal and change the data. I've done it manually. You can also possibly write a script. It's a huge pain.
  [21:28]  You can compile these answers - I don't think I need the Stack Exchange points :)
  [21:29]  My last client in your situation agreed that the option they'd take is to manually upload a list of recurring donations from a CSV (I forget whether it was compiled manually or exported from a legacy system)
  [21:29]  The recurring contribution records were still present in Civi so they could, e.g., search for recurring donors, but there were no IPNs, just the manually imported recurring donations.
  [21:30]  As each person's credit card expired, they would have that person restart the recurring payment through Civi. This may work differently with PayPal standard though.
  [21:31]  Also, to respond to your not seeing the "Submit Credit Card Contribution" button - I'm not sure that works with Paypal Standard, I'm afraid. Not 100% sure though
  [21:39]  I had no idea that the paypal IPN data depends on what Civi sent to Paypal in the first place. this makes things much more complicated. for me it may not be worth it to do all of this. with not too many subscribers, it might make more sense to ask them to register for a donation again, this time with Civi's donation form
  [21:40]  you have saved me a lot of time with this info, thank you
  [21:40]  no problem!`
  
  
  ---
  
  ### Answer by username_5 on 2015-10-20. Score: 1
  
  Are those recurring plans in CiviCRM? If not then you *might* need to use something like [Civi Banking](https://wiki.civicrm.org/confluence/display/CRM/CiviBanking) to do the work for you. If they are then I think the options your talking about should become available.
  
  
  ---
  
  