title: Stripe: How to migrate from Charge API to PaymentIntent API in php
body: <p>I have used stripe in my one of the projects. I am taking card details from the user and the following code is for payment.</p>
  
  <pre><code>\Stripe\Stripe::setApiKey('KEY');
  
  $token = \Stripe\Token::create([
          "card" =&gt; [
          "number"    =&gt; $paymentModel['number'],
          "exp_month" =&gt; $paymentModel['expire_month'],
          "exp_year"  =&gt; $paymentModel['expire_year'],
          "cvc"       =&gt; $paymentModel['card_cvc'],
          "name"      =&gt; $userName
        ]]);
  
   $customer   = \Stripe\Customer::create([
      'email'  =&gt; $email,
      'source' =&gt; $token['id'],
      ]);
  
  $charge   = \Stripe\Charge::create([
     'amount'      =&gt; $chargeableAmount,
     'currency'    =&gt; 'usd',
     'description' =&gt; "Purchase User",
     'customer'    =&gt; $customerId,
  ]);
  </code></pre>
  
  <p>I got a notification for "Update your integration now for SCA". So I found that I should use PaymentIntent for card payments. I am really confused about these things. The document is confusing and it says so many things so I cannot understand what change I should do to migrate. There is no proper document which describe steps to migrate from Charge API to Payment Intent API. </p>
  
  <p>Can anyone guide me?</p>