#rooter

1 messages ยท Page 1 of 1 (latest)

prisma sonnetBOT
lofty walrus
#

Hello ๐Ÿ‘‹
SetupIntent object should have a ClientSecret once created. Can you try printing out the response to see what you're seeing?

quasi schooner
#

yes, I looked through it in the debugger. I don't see a secret. You would think it would be the same as a PaymentIntent, but it is not.

lofty walrus
#

Is your API request to Stripe successful?

quasi schooner
#

this is all there is:

#

I can show you what the payment intent looks like if you give me a min

#

Oh wait... I think I see it. There is just a line of code missing in the documentation. I'll give it a test.

lofty walrus
#

๐Ÿ‘

quasi schooner
#

okay, I see it. The docs just say
service.Create(options); and it ends there. The data isn't added to the service, it returns a new object. It needs to read:
var setupIntent = service.Create(options);
return setupIntent.ClientSecret;

#

thanks

#

All the code versions are missing that info. It just skips to the controller part without telling you where to find the secret