title: Laravel: Integrate Braintree with Cashier
body: <p>Just curious,</p>
  
  <p>Does someone has successfully integrated Braintree using <a href="https://laravel.com/docs/5.2/billing" rel="nofollow"><code>laravel/cashier-braintree</code></a> ?</p>
  
  <p>I'm stuck at the beginning with:<br />
  <code>$user-&gt;newSubscription('main', 'monthly')-&gt;create($creditCardToken);</code></p>
  
  <p>Following the documentation, I guess to need something like that:
  <code>
      $data = [
          'firstName' =&gt; $request-&gt;first_name,
          'lastName' =&gt; $request-&gt;last_name,
      ];
      $creditCardToken = Auth::id(); 
      $planId = [Plan Id defined in Braintree]
      $user-&gt;newSubscription('main', $planId)-&gt;create($creditCardToken, $data);
  </code></p>
  
  <p>In the <a href="https://developers.braintreepayments.com/reference/request/customer/create/php#credit_card.number" rel="nofollow">offical documentation</a> I dont have to specify any credit card info, it's deprecated. </p>
  
  <p><code>
      "Unable to create Braintree customer: Unknown payment_method_nonce.\n
      Expiration date is required.\n
      Credit card number is required.\n
      Credit card must include number, payment_method_nonce, or venmo_sdk_payment_method_code."
  </code></p>
  
  <p>Whoops! So let's add this anyway: 
  <code>
      $data = [
          'firstName' =&gt; $request-&gt;first_name,
          'lastName' =&gt; $request-&gt;last_name,
          'creditCard' =&gt; [
              'number' =&gt; $request-&gt;number,
              'expirationMonth' =&gt; $request-&gt;month,
              'expirationYear' =&gt; $request-&gt;year,
              'cvv' =&gt; $request-&gt;cvv,
              'billingAddress' =&gt; [
                  'firstName' =&gt; 'Jen',
                  'lastName' =&gt; 'Smith',
                  'company' =&gt; 'Braintree',
                  'streetAddress' =&gt; '123 Address',
                  'locality' =&gt; 'City',
                  'region' =&gt; 'State',
                  'postalCode' =&gt; '12345',
              ],
          ],
      ];
  </code></p>
  
  <p>And now, all I get is :<br />
  <code>"Unable to create Braintree customer: Unknown payment_method_nonce."</code></p>
  
  <p>There is some usefull informations in the official <a href="https://developers.braintreepayments.com/reference/request/customer/create/php" rel="nofollow">Braintree_Customer::create()</a>. And, in fact, you can easily implement Braintree without <i>cachier</i> like in <a href="https://github.com/braintree/braintree_php_guide/blob/master/3_recurring_billing/subscription.php" rel="nofollow">braintree_php_guide</a>.</p>
  
  <p>So what ? Do I have to drop <i>Cachier</i> ?</p>