我在 Sanbox 模式下使用 Paypal REST API (Java) 来测试我的定期付款设置。
商业规则:
1- 新订阅后,我想立即向客户收取 3 个月的费用而不退款。
2- 3个月后,每月定期账单将自动无限期申请,直到用户取消
计划定义:
对于规则(1),我做了:
{ "name": "Trial",
"type": "TRIAL",
"frequency_interval": "3",
"frequency": "Month",
"cycles": "1",
"amount": {
"currency": "CAD",
"value": "900"
}
对于规则 (2):
{ "name": "Regular",
"type": "REGULAR",
"frequency_interval": "1",
"frequency": "Month",
"cycles": "0",
"amount": {
"currency": "CAD",
"value": "300"
}
协议:
agreement.setStartDate(//3months from today);
问题:
- 对我的业务规则使用“试用”是否正确?(今天立即充电)或者我应该使用“初始”代替吗?
- 如何使“试用”费用不可退还?
谢谢