计费计划的多次付款定义
Multiple Payments definition for Billing Plan
我正在做一个需要重复配置文件的应用程序。但他们的商业模式包括 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."
这让我觉得不可能在同一个计划中定义多个定期付款。
有没有办法让我做类似的事情?
遗憾的是,似乎无法使用 paypal 平台:
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.
我正在做一个需要重复配置文件的应用程序。但他们的商业模式包括 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."
这让我觉得不可能在同一个计划中定义多个定期付款。
有没有办法让我做类似的事情?
遗憾的是,似乎无法使用 paypal 平台:
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.