#vinkesh_code

1 messages ¡ Page 1 of 1 (latest)

atomic brookBOT
#

👋 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.

gray rock
#

Could you please share more details ?

#

What SDK are you using exactly ? What error you are facing? is it compilation or runtime error?

white python
#

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);

}

gray rock
#

You should use EventTypes.

white python
#

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

gray rock
#

Could you please provide more details on this too? what guide are you following can you share a link ?

white python
gray rock
white python
#

I don't remember exact endpoint

#

its just refrence

gray rock
white python
#

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
});

gray rock
white python
#

sorry my bad

gray rock
white python
#

okay thanks

gray rock
#

Np! Happy to help!