【问题标题】:How to send auto email to customer on successful payment using stripe SDK?如何使用 Stripe SDK 向客户发送成功付款的自动电子邮件?
【发布时间】:2019-10-08 12:36:44
【问题描述】:

我正在使用下面的 nuget 包为我们的客户通过条带付款。 https://github.com/nberardi/stripe-dotnet

我们正在通过使用“CreateCharge”方式收款。付款成功。 我想在成功付款后通过电子邮件向用户发送收据。我将 nuget 包升级到 1.12.0,但无法看到下面给出的参数,这些参数位于 nuget 库“https://github.com/nberardi/stripe-dotnet”中

public StripeObject CreateCharge(十进制金额,字符串货币,字符串customerId, 字符串 cardId = null,字符串描述 = null,IDictionary 元数据 = null, bool capture = true,字符串 statementDescriptor = null,字符串receiptEmail = null, 字符串目的地=空,十进制?申请费=空, IDictionary shipping = null)

相反,我只能看到

public StripeObject CreateCharge(十进制金额, 字符串货币, ICreditCard 卡, 字符串描述 = null);

我想在“字符串receiptEmail = null”中发送值,但即使在将包升级到1.12.0 后也没有得到它。

有人可以通过使用相同的 NuGet 包来帮助我吗?我如何发送“receiptEmail”以便条纹会在成功付款时向用户发送收据

【问题讨论】:

    标签: stripe-payments


    【解决方案1】:

    您使用的是非常过时且非官方的 stripe-dotnet 版本。这是由 Stripe 实际维护的官方包:https://github.com/stripe/stripe-dotnet

    使用最新的官方版本时,您将能够在您的 Charge 请求中添加 receipt_email 参数。

    【讨论】:

      猜你喜欢
      • 2014-02-14
      • 2011-08-06
      • 2022-01-22
      • 2018-03-27
      • 2015-03-01
      • 1970-01-01
      • 2012-10-10
      • 1970-01-01
      • 2021-07-11
      相关资源
      最近更新 更多