我正在使用 redirect_flow 方法通过 API 成功创建客户和订阅,但是:
- 据我所知,使用此过程没有付款/设置
- 如果我不添加开始日期,则表示 DD 在下一个可用日期开始,而不是在 DD 设置时开始(即下一年作为年度 DD)。
我在 API 中找不到成功设置此流程所需的实际流程。这是我发送/设置的订阅:
jData = ""
jData = jData & "{"
jData = jData & " ""subscriptions"": {"
jData = jData & " ""amount"": 25.00,"
jData = jData & " ""currency"": ""GBP"","
jData = jData & " ""name"": ""Yearly Subscription"","
jData = jData & " ""start_date"": ""2021-01-27"","
jData = jData & " ""interval"": 1,"
jData = jData & " ""interval_unit"": ""yearly"","
jData = jData & " ""month"": ""january"","
jData = jData & " ""day_of_month"": 20,"
jData = jData & " ""metadata"": {"
jData = jData & " ""account_id"": ""acc1234"""
jData = jData & " },"
jData = jData & " ""links"": {"
jData = jData & " ""mandate"": ""theirmadateid"""
jData = jData & " }"
jData = jData & " }"
jData = jData & "}"
我希望开始日期是第一笔付款。我是否需要在此过程中设置第一笔付款,然后 DD 将在 2022 年进行下一笔付款?
所以过程是:
- 设置客户
- 为 DD 设置第一笔付款
- 设置DD
或者
- 设置客户
- 设置DD
- 为该 DD 设置第一笔付款
这些是 GoCardless 控制面板中关于订阅的 JSON 详细信息:
{ "id": "AD12345", "created_at": "2021-01-20T09:48:01.443Z", “金额”:2500, “货币”:“英镑”, “状态”:“活动”, "name": "订阅 25.00 GBP - 每年一次通过直接借记", “开始日期”:“2021-01-27”, “结束日期”:空, “间隔”:1, "interval_unit": "每年", “day_of_month”:20, “月”:“一月”, “计数”:空, “元数据”:{ “account_id”:“1234” }, “付款参考”:空, “即将到来的付款”:[ { "charge_date": "2022-01-20", “金额”:2500 }, { "charge_date": "2023-01-20", “金额”:2500 }, { "charge_date": "2024-01-22", “金额”:2500 }, { "charge_date": "2025-01-20", “金额”:2500 }, { "charge_date": "2026-01-20", “金额”:2500 }, { "charge_date": "2027-01-20", “金额”:2500 }, { "charge_date": "2028-01-20", “金额”:2500 }, { "charge_date": "2029-01-22", “金额”:2500 }, { "charge_date": "2030-01-21", “金额”:2500 }, { "charge_date": "2031-01-20", “金额”:2500 } ], “app_fee”:空, “链接”:{ “授权”:“MD00001” }, “重试如果可能”:假, “earliest_charge_date_after_resume”:空, “app_name”:空, “amount_can_be_updated”:是的, “外汇”:{ “fx_currency”:空, “fx_amount”:空, “exchange_rate”:空, “estimated_exchange_rate”:空 } }
如您所见,它直到 2022 年才开始付款。
任何帮助表示赞赏?