title: How to Set end date for paypal Recurring Payments With Direct Payment?
body: <p>I am using Recurring Payments With Direct Payment( <a href="https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&amp;content_ID=developer/e_howto_api_WPRecurringPayments#id08669F0705Z" rel="nofollow">https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&amp;content_ID=developer/e_howto_api_WPRecurringPayments#id08669F0705Z</a> )</p>
  
  <p>I set parameter as below and WORKING FINE,</p>
  
  <pre><code>$firstName = urlencode('MyName');//urlencode('customer_first_name');
  $lastName = urlencode('MySurname');//urlencode('customer_last_name');
  $creditCardType = urlencode('VISA');//urlencode('customer_credit_card_type');
  $creditCardNumber = urlencode('455743552XXXXXXXX');//urlencode('customer_credit_card_number');
  $expDateMonth = '07';//'cc_expiration_month';
  $expDateYear = urlencode('2017');//urlencode('cc_expiration_year');
  $padDateMonth = urlencode(str_pad($expDateMonth, 2, '0', STR_PAD_LEFT));
  $amount =  urlencode('5');// urlencode('example_payment_amuont');
  $startDate = urlencode("2012-07-17T0:0:0");
  $endDate = urlencode("2012-07-21T0:0:0");
  
  $billingPeriod = urlencode("Day");              // or "Day", "Week", "SemiMonth", "Year"
  $billingFreq = urlencode("1");                      // combination of this and billingPeriod must be at most a year
  $currencyID = urlencode("USD"); 
  
  $nvpStr = "&amp;CREDITCARDTYPE=$creditCardType".
            "&amp;ACCT=$creditCardNumber".
            "&amp;EXPDATE=$padDateMonth$expDateYear".
            "&amp;FIRSTNAME=MyFirstName".
            "&amp;LASTNAME=MyLastName".
            "&amp;PROFILESTARTDATE=$startDate".
            "&amp;PROFILEENDDATE=$endDate".     // **not working**
            "&amp;BILLINGPERIOD=$billingPeriod".
            "&amp;BILLINGFREQUENCY=$billingFreq".
            "&amp;AMT=$amount&amp;DESC=Test Recurring Payment";
  
  $httpParsedResponseAr = PPHttpPost('CreateRecurringPaymentsProfile', $nvpStr);
  </code></pre>
  
  <p>Now my issue is end date not set, so please reply if anybody had idea.
  <strong><em>I want parameter for setting end date.</em></strong></p>
  
  <p>Thankx,
  Kiran Sharma.</p>