#wik-recon

1 messages · Page 1 of 1 (latest)

plain echo
#

hi there

#

so to be clear, is the PaymentIntent actually being created by a Subscription?

#

or like, how do you integrate and create this PaymentIntent, what guides are you using? the answers depend on the exact way you're doing this

tacit gale
#

Hm, a good and difficult question

#

I'm 99% sure we never create PaymentIntent anywhere in our code, instead we create a Stripe User in Stripe and then send information to create a subscription for the dedicated user and Stripe does all the magic

plain echo
#

do you have an example PaymentIntent pi_xxx from your account?

tacit gale
#

Can I give you one that I generated in test mode?

plain echo
#

sure

tacit gale
#

pi_3L0jN5JA8pMPzFjl1ciJkzGl

plain echo
#

thanks, will look in a bit, it's really busy today unfortunately

tacit gale
#

Sure!

plain echo
#

ok sure, so you integrate using Subscriptions only so that's what creates the PaymentIntents

#

what I would do then is look at the invoice field of the PaymentIntent and from that object, the lines will tell you what that invoice was for and you can work with that(or look another level back to the invoice.subscription field for more info) to get anything you need

#

Also, are the payment intents' descriptions set by Stripe or can we change the default values e.g. subscription updated => your awesome plan purchased? Example is silly on purpose
the descriptions come from the Product object you use when creating the subscription