title: Stripe API - Migrating cards to paymentMethods
body: <p>I'm migrating my API from <a href="https://stripe.com/docs/payments/payment-intents/migration#api-version" rel="nofollow noreferrer">charges API to Intent API</a></p>
  
  <p>Everything is working, but my users have saved cards in the system, which they can choose to pay with. 
  These cards are saved in the DB with a stripe card id <code>card_xxxx</code>. In Intents this is no longer valid, instead there is <code>pm_xxx</code> (payment_method_id). </p>
  
  <p>My question is how do I migrate my existing cards, and get a <code>payment_method_id</code> from a <code>card.id</code> in order to perform the intent call</p>
  
  <p>In the <a href="https://stripe.com/docs/payments/payment-intents/migration#saved-cards" rel="nofollow noreferrer">docs</a> they mention: </p>
  
  <blockquote>
    <p>When paying with a previously saved payment method, you must specify
    both the ID of the Customer and the ID of the previously saved Card,
    Source, or PaymentMethod. Previously, the default source on the
    customer is used if one was not provided. You must now explicitly pass
    in the desired payment method.</p>
  </blockquote>
  
  <p>Apparently you can make the same call to <code>stripe.paymentIntents.create({payment_method: id})</code> where <code>id</code> can be either <code>pm_xxx</code> or <code>card_xxx</code>.</p>
  
  <p>But will that work in the long run? Do I need to transfer all my <code>card_xxx</code> to <code>pm_xx</code> in order to be SCA compliant?</p>