/** * Returns new instance of Reucurring payments type of billing agreement * Same as calling: * $billing = BillingAgreement::getRequest('...'); * $billing->setBillingType('RecurringPayements'); * * @param string $description Description of goods or * services associated with the billing agreement, which is required * for each recurring payment billing agreement. PayPal recommends * that the description contain a brief summary of the billing * agreement terms and conditions. For example, customer will be * billed at "9.99 per month for 2 years". Character length and * limitations: 127 single-byte alphanumeric bytes. * @return BillingAgreement */ public static function getRecurringPaymentsRequest($description) { $billing = new self(); $billing->collection = new Collection(self::$allowedValues, null); $billing->collection->setValue('BILLINGAGREEMENTDESCRIPTION', $description); $billing->setBillingType('RecurringPayments'); return $billing; }