Defining Multiple Payments for an Invoicing Plan
I am making an application that requires a duplicate profile. But their business model consists of 1 trial period and 2 regular periods, one for a couple of days and the other for an endless monthly.
{
"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 am getting this error from the answer:
"Payment definitions are invalid. Valid parameters are REGULAR or combination of TRIAL and REGULAR."
which makes me think it's impossible to define multiple recurring payments in one plan.
Is there a way to do something like this?
+3
source to share
1 answer
Unfortunately, this is similar to the PayPal platform:
The current release of the recurring payments API has the following: Limitations:
- A profile can have a maximum of one optional trial period and one recurring payment period.
- The profile start date may not be earlier than the profile creation date.
+4
source to share