Answers.Body: <p>Depending on your configuration, you can do this with <a href="https://civicrm.org/extensions/civirules" rel="nofollow noreferrer">CiviRules</a>.</p>
  
  <p>Your trigger will be <em>Contribution is added</em>, and your action will be <em>Set subtype for contact</em>.</p>
  
  <p>The question is the "condition".  If Stripe is your only payment processor, then you're golden!  The condition should be <em>Contribution is (not) paid by</em>, and set credit card/debit card as the values.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-04T16:59:08.873Z
Answers.Text: Terrific, thanks got it working first go - how often does that happen? The trigger was 'Contribution is added' and the action was 'Set subtype for contact'.  It didn't need a condition & worked without one.  Thanks!
Answers.UserDisplayName: Andy Clark
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-04T18:46:20.877Z
Answers.Text: @AndyClark - glad I could help!  Please check the checkbox that indicates that this answer solved your problem?  Besides that - you may want to reconsider having no condition.  No condition means *all* contributions, whether by Stripe or manually entered, will trigger this rule.  Maybe that's your intent, but it seemed from your question that you wanted to limit this to online contributions.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-04T20:44:01.013Z
Answers.Text: Thanks - I added a field comparison condition so that if the contact subtype is empty then it sets it.  Which suits us but may not suit all cases.  Thanks again.
Answers.UserDisplayName: Andy Clark
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-12-03T19:32:28.943Z
Answers.LastActivityDate: 2017-12-03T19:32:28.943Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>We implemented the Stripe extension for online payments and are delighted with it. Using a standard contribution page (not a webform) new contacts are created as the basic contact type of 'Individual'. But... we have sub-typed contact types and would like the contact type created here to be a contact sub-type of 'Individual contact'.  This doesn't appear possible using the UI but maybe I missed something.    I don't want to use a webform because recurring contributions don't work with Stripe but they do with the standard contribution page. Any ideas on how to select a contact sub-type ?</p>
  
Tags: <drupal><4.7><stripe>
Title: How can Stripe extension create contact sub-type?
ThreadText: # How can Stripe extension create contact sub-type?
  
  (Asked by: username_0 on 2017-12-02)
  
  We implemented the Stripe extension for online payments and are delighted with it. Using a standard contribution page (not a webform) new contacts are created as the basic contact type of 'Individual'. But... we have sub-typed contact types and would like the contact type created here to be a contact sub-type of 'Individual contact'. This doesn't appear possible using the UI but maybe I missed something. I don't want to use a webform because recurring contributions don't work with Stripe but they do with the standard contribution page. Any ideas on how to select a contact sub-type ?
  
  **Tags:** drupal, 4.7, stripe
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-12-03. Score: 1 | Accepted answer
  
  Depending on your configuration, you can do this with [CiviRules](https://civicrm.org/extensions/civirules).
  
  Your trigger will be *Contribution is added*, and your action will be *Set subtype for contact*.
  
  The question is the "condition". If Stripe is your only payment processor, then you're golden! The condition should be *Contribution is (not) paid by*, and set credit card/debit card as the values.
  
  > **Comments:**
  > **username_0**: Terrific, thanks got it working first go - how often does that happen? The trigger was 'Contribution is added' and the action was 'Set subtype for contact'.  It didn't need a condition & worked without one.  Thanks!  
  > **username_1**: @AndyClark - glad I could help!  Please check the checkbox that indicates that this answer solved your problem?  Besides that - you may want to reconsider having no condition.  No condition means *all* contributions, whether by Stripe or manually entered, will trigger this rule.  Maybe that's your intent, but it seemed from your question that you wanted to limit this to online contributions.  
  > **username_0**: Thanks - I added a field comparison condition so that if the contact subtype is empty then it sets it.  Which suits us but may not suit all cases.  Thanks again.  
  
  ---
  
  