From 584847723f8816100687dbf5c80a45525f15e66e Mon Sep 17 00:00:00 2001 From: Dan Wang Date: Thu, 16 May 2019 21:18:14 -0400 Subject: [PATCH] Add OffSession parameter to PaymentIntent (#1617) --- .../Services/PaymentIntents/PaymentIntentConfirmOptions.cs | 3 +++ .../Services/PaymentIntents/PaymentIntentCreateOptions.cs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs index 02ba9cd010..1686b27787 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs @@ -19,6 +19,9 @@ public class PaymentIntentConfirmOptions : BaseOptions [JsonProperty("invoice_charge_reason")] public string InvoiceChargeReason { get; set; } + [JsonProperty("off_session")] + public string OffSession { get; set; } + [JsonProperty("payment_method")] public string PaymentMethodId { get; set; } diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs index ee27576a81..420a912bb7 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs @@ -14,6 +14,9 @@ public class PaymentIntentCreateOptions : PaymentIntentSharedOptions [JsonProperty("confirmation_method")] public string ConfirmationMethod { get; set; } + [JsonProperty("off_session")] + public string OffSession { get; set; } + [JsonProperty("return_url")] public string ReturnUrl { get; set; }