我正在做一个需要重复配置文件的应用程序。但他们的商业模式包括1个试用期和2个常规期,一个是几天,另一个是每月无限期。
{
"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"
}
}
]
}
我从回复中收到此错误:
"Payment definitions are invalid. Valid parameters are REGULAR or combination of TRIAL and REGULAR."
这让我觉得在同一个计划中不可能有多个常规付款定义。
我有办法做类似的事吗?
答案 0 :(得分:6)
可悲的是,使用paypal平台似乎无法实现:
Recurring Payments API的当前版本具有以下内容 限制:
- 个人资料最多只能有一个可选试用期和一个常规付款期。
- 个人资料的开始日期可能不早于个人资料的创建日期。