#Zoë - Subscriptions

1 messages · Page 1 of 1 (latest)

winter tinsel
#

HI 👋
That's a lot of code and it's kinda busy. Give me a sec

icy bluff
#

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

winter tinsel
#

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

icy bluff
#

AHHHHH noooooo I thought I checked that

#

I can see it now, thank you!

winter tinsel
#

If, instead, you want to save the payment information for later you would want to create a Setup Intent on the server side

icy bluff
#

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

maiden crypt
#

👋 Hopping in since @winter tinsel has to head out - looks like your question got answered, but if you need anything else let me know!

icy bluff
#

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!

maiden crypt
#

Yup!

icy bluff
#

Amazing thanks so much! Have a lovely weekend