Multiple Payments definition for Billing Plan

989 views Asked by At

I'm doing an application that requires recurring profile. But their business model consist on 1 trial period and 2 regular periods, one for a couple of days and other for monthly infinite.

{  
   "name":"Regular Membership Billing Plan",
   "description":"This plan is for regular membership\r\n7 days trial\r\nBilling 23 days after trial\r\ninfinite montly",
   "type":"INFINITE",
   "payment_definitions":[  
      {  
         "name":"7 days trial regular product",
         "type":"TRIAL",
         "frequency":"WEEK",
         "frequency_interval":"1",
         "cycles":"1",
         "amount":{  
            "value":"2",
            "currency":"USD"
         }
      },
      {  
         "name":"23 days after trial regular product",
         "type":"REGULAR",
         "frequency":"DAY",
         "frequency_interval":"23",
         "cycles":"1",
         "amount":{  
            "value":"5",
            "currency":"USD"
         }
      },
      {  
         "name":"Monthly regular product",
         "type":"REGULAR",
         "frequency":"MONTH",
         "frequency_interval":"1",
         "cycles":"0",
         "amount":{  
            "value":"7.99",
            "currency":"USD"
         }
      }
   ]
}

I'm getting this error from the response:

"Payment definitions are invalid. Valid parameters are REGULAR or combination of TRIAL and REGULAR." 

which makes me think that is not possible to have multiple regular payments definition on the same plan.

Is there a way for me to do something similar?

1

There are 1 answers

0
manumotate On BEST ANSWER

Sadly, it seems like is not possible with the paypal platform:

The current release of the Recurring Payments API has the following limitations:

  • A profile can have at most one optional trial period and a single regular payment period.
  • The profile start date may not be earlier than the profile creation date.

Paypal Recurring Billing