title: PayPal CreateRecurringPaymentProfile Error 11502 - Invalid Token
body: <p>I am setting up a Recurring Payment with PayPal's API.  First I send the following parameters to <code>SetExpressCheckout</code>:</p>
  
  <pre><code>Array
  (
      [METHOD] =&gt; SetExpressCheckout
      [USER] =&gt; XXX
      [PWD] =&gt; XXX
      [SIGNATURE] =&gt; XXX
      [VERSION] =&gt; 98.0
      [AMT] =&gt; 0
      [MAXAMT] =&gt; 99.00
      [RETURNURL] =&gt; http://google.com
      [CANCELURL] =&gt; http://google.com
      [L_BILLINGTYPE0] =&gt; RecurringPayments
      [L_BILLINGAGREEMENTDESCRIPTION0] =&gt; 99.00 per month till stopped
  )
  </code></pre>
  
  <p>This generates a response like the following:</p>
  
  <pre><code>Array
  (
      [TOKEN] =&gt; EC-90P39652RF345525U
      [TIMESTAMP] =&gt; 2013-02-08T17:09:24Z
      [ACK] =&gt; Success
      [VERSION] =&gt; 98.0
  )
  </code></pre>
  
  <p>Using the description and token from the created billing agreement, I send the following parameters to CreateRecurringPaymentsProfile:</p>
  
  <pre><code>Array
      (
      [METHOD] =&gt; CreateRecurringPaymentsProfile
      [USER] =&gt; XXX
      [PWD] =&gt; XXX
      [SIGNATURE] =&gt; XXX
      [TOKEN] =&gt; EC-90P39652RF345525U
      [PROFILESTARTDATE] =&gt; Feb 22 2013 17:09:24
      [DESC] =&gt; 99.00 per month till stopped
      [BILLINGPERIOD] =&gt; Month
      [BILLINGFREQUENCY] =&gt; 12
      [AMT] =&gt; 99.00
      [CURRENTCYCODE] =&gt; USD
      [CREDITCARDTYPE] =&gt; VISA
      [ACCT] =&gt; 1234123412341234
      [EXPDATE] =&gt; 012014
      [CVV2] =&gt; 123
      [EMAIL] =&gt; fake@example.com
      [STREET] =&gt; 123 Main St
      [CITY] =&gt; New York City
      [STATE] =&gt; NY
      [COUNTRYCODE] =&gt; US
      [ZIP] =&gt; 12345
  )
  </code></pre>
  
  <p>All looks well to me, but it fails:</p>
  
  <pre><code>Array
  (
      [TIMESTAMP] =&gt; 2013-02-08T17:09:24Z
      [ACK] =&gt; Failure
      [VERSION] =&gt; 98.0
      [L_ERRORCODE0] =&gt; 11502
      [L_SHORTMESSAGE0] =&gt; Invalid Token
      [L_LONGMESSAGE0] =&gt; The token is invalid
      [L_SEVERITYCODE0] =&gt; Error
  )
  </code></pre>
  
  <p>Any help is greatly appreciated!</p>