如何使用Stripe SDK在成功付款后向客户发送自动电子邮件?

时间:2019-05-22 05:20:52

标签: stripe-payments

我正在使用下面的nuget软件包为客户分条付款。 https://github.com/nberardi/stripe-dotnet

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

公共StripeObject CreateCharge(小数金额,字符串货币,字符串customerId,             字符串cardId = null,字符串说明= null,IDictionary元数据= null,             bool capture = true,字符串statementDescriptor = null,字符串receiveEmail = null,             字符串目标=空,十进制? applicationFee = null,             IDictionary shipping = null)

相反,我只能看到

StripeObject公用CreateCharge(小数,字符串货币,ICreditCard卡,字符串说明= null);

我想在“字符串receiveEmail = null”中发送值,但即使将软件包升级到1.12.0后也无法获取它。

可以通过使用相同的NuGet软件包来帮助我吗,如何发送“ receiptEmail”,这样Stripe会在成功付款后向用户发送收据

1 个答案:

答案 0 :(得分:0)

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

使用最新的正式版本时,您可以在“收费”请求中添加一个receipt_email参数。

相关问题