问题是我无法立即在沙盒帐户中向无卡客户收费。一旦我通过 .net sdk 创建付款,它会在 6 天后自动设置收费日。下面我如何为客户创建新的无卡支付:
var createResponse = await _goCardlessClient.Payments.CreateAsync(new PaymentCreateRequest()
{
Amount = 10,
Currency = PaymentCreateRequest.PaymentCurrency.GBP,
Links = new PaymentCreateRequest.PaymentLinks()
{
Mandate = "mandateId goes here",
},
Metadata = new Dictionary<string, string>()
{
{ metadata goes here }
},
IdempotencyKey = Guid.NewGuid().ToString()
});
当我尝试通过以下方式明确设置收费日期时:
var createResponse = await _goCardlessClient.Payments.CreateAsync(new PaymentCreateRequest()
{
Amount = 10,
Currency = PaymentCreateRequest.PaymentCurrency.GBP,
ChargeDate = DateTime.UtcNow.ToString("yyyy-MM-dd"),
Links = new PaymentCreateRequest.PaymentLinks()
{
Mandate = "mandateId goes here",
},
Metadata = new Dictionary<string, string>()
{
{ metadata goes here }
},
IdempotencyKey = Guid.NewGuid().ToString()
});
我得到一个例外说:
charge_date 必须在授权的 next_possible_customer_charge_date 或之后
在官方文档中,我找不到任何有关如何为沙盒明确设置 next_possible_customer_charge_data 的信息。有人整理吗?