#Suzz

1 messages · Page 1 of 1 (latest)

sly pierBOT
zenith harbor
formal hedge
#

i want to convert the stripe endpoints like checkout-session etc could access only by authenticated user

#

[Authorized]

#

like this

#

right now this is not working, while i call the checkout from my client app. i'm getting a blank page and the control not redirect to the api method inside the controller

#

without authorisation it is possible to go to the checkout page built by stripe. with authorisation not possible

formal hedge
#

can you please help me to resolve this?

zenith harbor
#

I'm still trying to understand your problem

#

Are you saying that the checkout page is blank when your customer opens it?

formal hedge
#

in C# we can create anonymous and authorized apis right?

#

the checkout api is working as anonymous api, if i give the authorize attribute. the api is not calling. and showing a blank page in the client app

zenith harbor
#

I'm not familiar with C# and I can only help with questions specific to Stripe APIs and products.

formal hedge
#

the api is working with anonymous api, but if we try to authorize it the api is not calling

#

any c# dev can help me

#

could you please connect to any c# dev ?

zenith harbor
formal hedge
#

yes i already used this

#

and i all other apis are working under [authorize] attribute. but not the stripe apis

zenith harbor
#

Are you trying to set [authorize] attribute directly on Stripe APIs?

formal hedge
#

yes

#

so that the api only be accessible from an authorized environment

zenith harbor
#

I don't think you can do that I'm afraid. You can only set [authorize] attribute on the API endpoints that you own.

formal hedge
#

why any specific reason? could you please explain a bit about it?

zenith harbor
#

I don't think you can set an attribute to any 3rd-party API endpoints, not just Stripe APIs.