#rooter
1 messages ยท Page 1 of 1 (latest)
Hello ๐
SetupIntent object should have a ClientSecret once created. Can you try printing out the response to see what you're seeing?
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.
Is your API request to Stripe successful?
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.
๐
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