簡體   English   中英

如何使用條帶SDK成功付款時向客戶發送自動電子郵件?

[英]How to send auto email to customer on successful payment using stripe SDK?

我正在使用下面的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 metadata = null,bool capture = true,字符串statementDescriptor = null,字符串receiptEmail = null,字符串destination = null,decimal? applicationFee = null,IDictionary shipping = null)

相反,我只能看到

public StripeObject CreateCharge(十進制數量,字符串貨幣,ICreditCard卡,字符串描述= null);

我想在“string receiptEmail = null”中發送值,但是在將軟件包升級到1.12.0后仍然無法獲取。

有些人可以通過使用相同的NuGet包來幫助我如何發送“receiptEmail”,這樣條帶會在成功付款后向用戶發送收據

您正在使用一個非常過時的非官方版本的stripe-dotnet。 這是由Stripe實際維護的官方軟件包: https//github.com/stripe/stripe-dotnet

使用最新的官方版本時,您可以在Charge請求中添加receipt_email參數。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM