#imexoodeex
1 messages · Page 1 of 1 (latest)
Those look like 2 different errors
one is a post and 1 is a get
When you expand that post in the browser console above, what's the message say?
oh yes sorry
Ah yeah so looks like we're not getting your api key when you attempt to make the request
hm
That's the one from the browser console?
that's from postman
that's when I expand in the browser https://cdn.ismcserver.online/chrome_GMRKSezL26.png
Ok. You'll need to log the response to see a helpful error message then
But this looks like 3 different requests you've shared with me each with a different issue
how do I log that response
console.log
But for this one the issue is you made a GET instead of a POST:
Mask it
Payment intent id's are fine to share but I wouldn't share the client secret
Oh that's not the response to the 400 call
I mean I logged the stripe.confirmCardPayment
You could also check the network tab of your dev tools to see the request response
hm
pi_3N6aX9GjWsCINZfn0JkdSqFb
Yeah so the subscription was automatically charged with the default payment method on the customer
If you don't want that behavior, you'll need to pass default_incomplete
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
See: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#create-subscription
okey, it's working, tyvm, but it doesn't redirect me when I pass the return_url - can I redirect the user by myself, by passing params by myself?
Yeah if you have an elements integration, you'd need to handle that yourself
To confirm, are you doing this? https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#complete-payment
I'm doing stripe.confirmCardPayment since I'm using only card payment, but I'll handle navigation by myself, thanks again ❤️
Ah I see