title: Whats wrong with this SetExpressCheckout request for recurring payments?
body: <p>OK, PayPal's docs and examples are pain awful so I hope someone else could help me figure this out. I'm doing a PayPal SetExpressCheckout request using their NVP API. It seems that my code produces one-time payment and not a subscription (which I figured out when receiving IPNs in the single-payment format, not subscription format, also on the sandbox buyer/seller panel in paypal there is nothing that says that the payments in the history are recurring), so I want to know what am I doing wrong. Those are the key => value pairs that I use, of course I implode and send them to PayPal in the right manner - as I said it works but not the way I want it.</p>
  
  <pre><code>array
    'METHOD' =&gt; string 'SetExpressCheckout' (length=18)
    'PAYMENTREQUEST_0_AMT' =&gt; string '3.99' (length=4)
    'PAYMENTREQUEST_0_CURRENCYCODE' =&gt; string 'USD' (length=3)
    'PAYMENTREQUEST_0_PAYMENTACTION' =&gt; string 'Sale' (length=4)
    'PAYMENTREQUEST_0_INVNUM' =&gt; int 93
    'PAYMENTREQUEST_0_CUSTOM' =&gt; string '394mtrf1h5lfdeehvgrferk1n1' (length=26)
    'LOCALECODE' =&gt; string 'EN' (length=2)
    'NOSHIPPING' =&gt; int 1
    'REQCONFIRMSHIPPING' =&gt; int 0
    'RETURNURL' =&gt; string 'http://MYDOMAINXXXX.COM/payPal/return' (length=44)
    'CANCELURL' =&gt; string 'http://MYDOMAINXXXX.COM/upgrade' (length=38)
    'ALLOWNOTE' =&gt; int 0
    'LANDINGPAGE' =&gt; string 'Billing' (length=7)
    'EMAIL' =&gt; string 'dimitar@instinctiv.com' (length=22)
    'BILLINGPERIOD' =&gt; string 'Month' (length=5)
    'BILLINGFREQUENCY' =&gt; int 1
    'PROFILESTARTDATE' =&gt; string '2011-07-26' (length=10)
    'L_BILLINGTYPE0' =&gt; string 'RecurringPayments' (length=17)
    'L_BILLINGAGREEMENTDESCRIPTION0' =&gt; string 'Basic Subscription - 25GB' (length=34)
    'VERSION' =&gt; string '63.0' (length=4)
    'USER' =&gt; string 'pro_1307543338_biz_api1.gmail.com' (length=33)
    'PWD' =&gt; string 'XXXXXXXXX' (length=10)
    'SIGNATURE' =&gt; string 'AdTGraIKTCQ-O2lYSLlGJVfeJ1FWAKhC6Y8qZZxqGGkKkccrGxO45emb' (length=56)
  </code></pre>
  
  <p>I suspect the problem might be PAYMENTREQUEST_0_AMT and the other PAYMENTREQUEST_N_XXX keys, as in the PayPal docs I see that "PAYMENTREQUEST_N_AMT" "SHOULD BE" set to 0 for recurring payments, but also in the docs they say that "AMT is used to point out the amount to be billed on each billing cycle and is deprecated, to use PAYMENTREQUEST_N_AMT instead"!?</p>
  
  <p>Any help is appreciated. If you need more specific info I will provide everything, just add a comment.</p>