【问题标题】:Invoice Id return with null after change using Stripe使用 Stripe 更改后发票 ID 返回 null
【发布时间】:2019-05-24 20:00:17
【问题描述】:

在我向特定订阅客户收取发票 ID 为空的条带对象返回后,您知道我该如何解决吗? 或者如何为特定付款创建发票? 我知道如何使用 API 创建发票,但我没有找到使用 API 为一次性付款创建发票的方法。 如果条带不支持为此类型创建发票,为什么它们在收费后返回发票 ID,包括收费对象。 这是我要收费的代码:

       var myCharge = new ChargeCreateOptions();
        myCharge.Amount = (Int32)(amount * 100);
        myCharge.Currency = "usd";
        myCharge.ReceiptEmail = "email@domain.com";
        myCharge.Description = "Upgrade client";
        myCharge.CustomerId = customer.SubscripedClientId;
        myCharge.Capture = true;
        var chargeService = new ChargeService(stripesecretkey);
        Charge stripeCharge = chargeService.Create(myCharge);

收费完成后,stripecharge 对象包括具有空值的发票 ID

【问题讨论】:

    标签: c# asp.net-mvc stripe-payments


    【解决方案1】:

    要为一次性付款创建发票,您需要先通过 apicreate line items,然后再通过create the invoice。发票将收集所有未清行项目并将其附加到自身。

    【讨论】:

    • 是的,我们可以创建发票并从客户那里收取,但是我关于如何为特定费用创建发票的问题,,,,,,因为我收费后发现发票号码为空
    • 您可以支付发票以将费用与发票相关联。 stripe.com/docs/api#pay_invoice
    猜你喜欢
    • 1970-01-01
    • 2015-11-27
    • 2018-11-05
    • 1970-01-01
    • 2015-12-28
    • 2018-07-26
    • 1970-01-01
    • 2019-03-29
    • 2019-10-26
    相关资源
    最近更新 更多