#nacho-subscription-help

1 messages · Page 1 of 1 (latest)

somber hullBOT
dim cedar
#

nacho-subscription-help

rotund talon
#

Can I set metadata on the payment?

#

Like I want to know the user that the payment just occurred for. I understand stripe creates customer but how can I user that on my end

dim cedar
#

Let's take a step back. There's 20 ways to integrate Stripe and I don't really follow what's confusing you here. First how are you integrating? Like which exact product are you using? Checkout? Something else?

rotund talon
#

Checkout

dim cedar
rotund talon
#

Ok so when the payment reoccurs after a month will it still be the same checkout.session.completed

#

I wanted that before my issue is tracking the user on my end when the payment reoccurs

dim cedar
#

When a payment reoccurs you get the invoice.paid Event for example and that has the Subscription id sub_123 that you would have stored in your database with all the information you need to do fulfillment

rotund talon
#

Ok so the first time I make the payment and the subscription generates I store the Id so when it reoccurs I check invoice.paid and if it’s the same Id with the one I store then I can know with user it’s for ?

dim cedar
#

yes

rotund talon
#

Ok will test this out, thank you