#matty_dotnet-beta-versions

1 messages ยท Page 1 of 1 (latest)

scarlet aspenBOT
simple mapleBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

scarlet aspenBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1243618427042791445

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

raven fiber
#

Hi ๐Ÿ‘‹

If I understand your question correct, you are looking for how to pass the required header to the Stripe .NET SDK to enable you to use the custom checkout beta.

Is that correct?

safe heron
#

Yes, correct. ๐Ÿ™‚

#

I am using the .NET SDK.

raven fiber
#

Okay these beta headers are generally passed in the Stripe Version header.

#

However, .NET uses a pinned API version (like all our static-typed SDKs)

#

For those static-typed SDKs, we generally use beta versions of our SDKs that pin to those Stripe Version headers.

#

You can also use the AddBetaVersion function in the StripeConfiguration like so

StripeConfiguration.AddBetaVersion("custom_checkout_beta", "v1");
safe heron
#

This doesn't appear to be available via the non-beta SDK... which is tough because we don't want to upgrade our entire system to a beta SDK. Unless I am missing something.

raven fiber
#

The .ApiVersion is the read-only property that you can set with the AddBetaVersion function.

safe heron
#

My apologies. The AddBetaVersion is not available to the SDK (recent) that we are using it appears.

raven fiber
#

Unfortunately those are the two options for using beta features with a static typed SDK that I am aware of.

safe heron
#

Should that method be available for me?

#

I am using the 44.9.0 version of the SDK if that helps.

raven fiber
#

Hmmm...that is the latest version

#

I think that would require using the beta version of the Stripe.net pacakge

safe heron
#

OK. Bummer. I guess we won't be able to test this out then without a full upgrade. I appreciate the help. Have a great day.

raven fiber
#

Happy to shed what ๐Ÿ’ก I can ๐Ÿ™‚

It might be worth building a really basic Checkout integration separate from your real-world integration just to validate the behavior.

safe heron
#

I agree. We may go that route. ๐Ÿ™‚ Thanks again.