#vinkesh_code
1 messages ¡ Page 1 of 1 (latest)
đ 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/1331977497214062664
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Could you please share more details ?
What SDK are you using exactly ? What error you are facing? is it compilation or runtime error?
47.2 stripe .net
Not able find events class there
code is something like this
if (stripeEvent.Type == Events.CustomerSubscriptionUpdated)
{
var session = stripeEvent.Data.Object as Stripe.Subscription;
// Update Subsription
userSubscriptionDetailDto = await updateSubscription(session);
}
You should use EventTypes.
It's a breaking change in the SDK
https://github.com/stripe/stripe-dotnet/blob/master/CHANGELOG.md#ď¸-other-breaking-changes-in-the-sdk
thanks
we are reader as well for payments But not able to find this
var readerProcessSetupIntentOptions = new ReaderProcessSetupIntentOptions
{
SetupIntent = setupIntent.Id,
//Not sure if we need to collect the consent from the customer.As its in not in v47 from v41.
//CustomerConsentCollected = request.CustomerConsentCollected
};
"CustomerConsentCollected = request.CustomerConsentCollected" earlier its mandotory
Could you please provide more details on this too? what guide are you following can you share a link ?
this is older code that i need to upgrade can u please suggest me a guide
https://docs.stripe.com/terminal/quickstart
I don't see a reference ReaderProcessSetupIntentOptions in the quickstart you've shared.
What you want to achieve from this code snipets ?
process payment intent
It will be something like this
var reader = await readerService.ProcessSetupIntentAsync(
id: request.ReaderId,
options: readerProcessSetupIntentOptions,
requestOptions: requestOptions);
//If card was swiped, no exception & we were able to get the reader object back.
if (reader != null)
return Ok(new { Success = true, setupIntent });
else //If card was swiped, no exception & reader response was null.
return Ok(new {
Success = false,
ExceptionMessage = "Unable to process setup intent with Id: " + setupIntent.Id,
setupIntent
});
Here you are using a SetupIntent and not a PaymentIntent...
Have you had a chance to follow the official terminal guide?
https://docs.stripe.com/terminal/payments/collect-card-payment
sorry my bad
And this one is using SetupIntent:
https://docs.stripe.com/terminal/features/saving-cards/save-cards-directly
okay thanks
Np! Happy to help!