title: Creating Recurring Payments with Reference Transaction
body: <p>I am having trouble with german users because I cannot use recurring payments. My scenario is to be able to set up a system where the users can be billed monthly or yearly depending on my needs. I contacted PayPal and they said I can do this using Reference Transaction.
  I started implementing but so many question arised. My calls are like this:</p>
  
  <p>Note: # fields are disabled but I played with them.
  1. Call to get token to create billing agreement</p>
  
  <pre><code>            'PAYMENTREQUEST_0_AMT': "0",
              'PAYMENTREQUEST_0_CURRENCYCODE': "USD",
              'PAYMENTREQUEST_0_DESC': "Daily_Subsription",
              'L_BILLINGAGREEMENTDESCRIPTION0': "Daily_Subsription",
              'L_BILLINGTYPE0': "MerchantInitiatedBilling",
              'CANCELURL': "http://192.168.100.10/paypal_express/",
              'RETURNURL': "http://192.168.100.10/paypal_express/",
              #'PAYMENTREQUEST_0_PAYMENTACTION': 'Authorization',
              'CURRENCYCODE':'USD',
              'METHOD': "SetExpressCheckout",
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>    'ACK': 'Success',
      'TIMESTAMP': '2015-12-04T13:13:59Z',
      'TOKEN': 'EC-7LE96518YR0055319',
      'VERSION': '116.0',
      'BUILD': '18308778',
      'CORRELATIONID': '17681d6b20d48'
  </code></pre>
  
  <ol start="2">
  <li><p>Create the billing agreement.</p>
  
  <pre><code>    'METHOD': "CreateBillingAgreement",
      'TOKEN': my_token, # token from SetExpressCheckout
  </code></pre></li>
  </ol>
  
  <p>Result:</p>
  
  <pre><code>    'ACK': 'Success',
      'TIMESTAMP': '2015-12-04T13:14:19Z', 
      'VERSION': '116.0',
      'BUILD': '18308778',
      'BILLINGAGREEMENTID': 'B-7H2153525D722501M',
      'CORRELATIONID': 'cca3843b1b9b1'
  </code></pre>
  
  <ol start="3">
  <li><p>Create the recurring profile</p>
  
  <pre><code>    'TOKEN': my_token, # token from SetExpressCheckout
      'METHOD': 'CreateRecurringPaymentsProfile',
      'PROFILESTARTDATE': "2015-12-06T16:05:48Z",
      'BILLINGPERIOD': "Day",
      'BILLINGFREQUENCY': "1",
      'CURRENCYCODE':'USD',
      'AMT': "1.00",
      'PAYERID': PAYERID,
      #'INITAMT': "3.00",
      #'PAYMENTREQUEST_0_PAYMENTACTION': 'sale',
      'PAYMENTREQUEST_0_DESC': "Daily_Subsription",
      'DESC': "Daily_Subsription",
  </code></pre></li>
  </ol>
  
  <p>Result: </p>
  
  <pre><code>    'ACK': 'Success',
      'TIMESTAMP': '2015-12-04T13:14:21Z',
      'VERSION': '116.0',
      'BUILD': '000000',
      'PROFILEID': 'B-7H2153525D722501M',
      'CORRELATIONID': '8ecf29d5a1059'
  </code></pre>
  
  <p>Now it really makes me wonder what should happen and why is not working, because the profile ID is returned but no PROFILESTATUS or even TRANSACTIONID is returned.</p>
  
  <p>Waiting for input or a better flow explanation.</p>