#m3taphysics

1 messages ยท Page 1 of 1 (latest)

formal mesaBOT
onyx edge
#

The checkout.session.completed event payloads shouldn't differ depending on integration flow. Can you share some evt_xxx IDs where you believe there's differences?

clear remnant
#

Thats what I assumed too, evt_1LvHNSAg0uf2129HbyqZugOG

this was testing with the stripe cli, on localhost

onyx edge
#

What am I comparing it to? This looks normal to me (there's no line_item field)

clear remnant
#

Let me find one

#

evt_1Ltpm2DTjW7907RAZ8W5MW32

#

This is from our live integration, that uses stripe checkout. Notice the metadata field

onyx edge
#

Nor can you pass the metadata parameter via pricing table to the underlying Checkout Session

clear remnant
#

Hmm, but on the stripe dashboard each product has a key-value list of metadata items?

#

example:

prod_JDbc8orMnNU9JU

onyx edge
#

Is the desire to have access to the line_items data on the checkout.session.completed event?

clear remnant
#

Oh, sorry

onyx edge
#

What is it you're trying to do that the webhook 'differences' prevent?

clear remnant
#

You are totally correct, on checkout creation we assign the metadata, but we retrieve that from the product itself

#

Sorry for wasting your time

#

I guess we have no control over the session itself with embedded stripe tables?

clear remnant
#

Two things are desired:

  1. Create the stripe checkout process with our existing stripe customer ID's (we can get around this though..)

  2. Retrieve product and quantity information. I guess this can be done using the subscription ID? I guess this is what you refer to as line_items

onyx edge
#

Create the stripe checkout process with our existing stripe customer ID's (we can get around this though..)
Not possible right now with the pricing table, if that's what you mean.

Retrieve product and quantity information. I guess this can be done using the subscription ID? I guess this is what you refer to as line_items
Yes! Instead of setting metadata on the Checkout Session that reflects your product data you can get this from the Checkout Session object:

clear remnant
#

Awesome thanks for this, great help.

So one final question - currently I generate an associated stripe customer ID on account creation. If the embedded tables never receive this how is the association made on stripes side between the customer and the new subscription?

Becuase this would imply there are unassociated subscriptions created for a user and it wouldn't be easy to track with the metrics in stripe?

onyx edge
#

If the embedded tables never receive this how is the association made on stripes side between the customer and the new subscription?
It isn't, the pricing table session would just create a new Customer object

clear remnant
#

Ok that is what I assumed, urgh. Ill go back to the team and tell them the news

#

Is this planned?

onyx edge
#

It's something that's top of mind of us yes, but there's nothing to share right now

clear remnant
#

No problem at all, at least now I know ๐Ÿ™‚

#

thanks you've been a massive help

onyx edge
#

of course, np!