无法立即在沙盒中向无门禁客户收费

时间:2019-01-25 09:47:12

标签: c# .net gocardless

问题在于,我无法立即在沙盒帐户中向无门禁客户收取费用。通过.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的任何信息。有人解决吗?

0 个答案:

没有答案