#Zoë - Subscriptions
1 messages · Page 1 of 1 (latest)
Thanks! There's nothing too crazy there, just copied it from the tutorial I listed. Maybe a summary would be:
I'm getting pi_ from the API response correctly, but when I pass that to the JavaScript library, it's treating it as a si_
The actual error I'm getting is
No such setupintent: 'pi_XXXX'
from
POST https://api.stripe.com/v1/setup_intents/pi_XXXX/confirm
Okay yeah, Payment Intents only work for Payments, when you are charging funds immediately
You need to use .confirmPayment on the client side for that
If, instead, you want to save the payment information for later you would want to create a Setup Intent on the server side
So – I think I know why – it's because I want both 😄
I want to create a subscription for now, but I also want to be able to charge the card later
Our customers can buy extras later alongside their subscription
👋 Hopping in since @winter tinsel has to head out - looks like your question got answered, but if you need anything else let me know!
Yeah I think I'm good, I'm pretty sure I can use the payment method for all future transactions after this as it was setup for a subscription? Thanks!
Yup!
Amazing thanks so much! Have a lovely weekend