#8FS Team

1 messages · Page 1 of 1 (latest)

narrow sigilBOT
half karma
#

Hi there

#

Metadata does not transfer down to a Charge from a Product.

#

What integration flow are you using exactly?

#

You likely want to be setting this metadata on a different object.

queen quarry
#

I need to be able to link a payment to product on Zapier but nothing we do, including webhooks is showing any product info on any of the purchases

half karma
#

Can you provide me one of your PaymentIntent IDs that I can look at?

queen quarry
#

Sure! pi_3NiJfwDHMTtOzdpq0sfWwv1R

half karma
#

Ah okay you use a Payment Link. So what you want to do is you want to set metadata on the Payment Link: https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-metadata. That will then copy the metadata down to the Checkout Session and you can receive it in the checkout_session.completed event

queen quarry
#

Hmm I just tried that I added this metadata and then did a test payment pi_3NiK8QDHMTtOzdpq0WBGy6M7 and the metadata is on Stripe payment but nothing in Zapier 😭

half karma
#

Ah well I'm not familiar with how Zapier pulls this metadata

#

So that is something you will need to reach out to Zapier about

queen quarry
#

Ok another option is Statement Descriptor because that always get pulled through to Zapier, but I have updated that on the product but on the payment it still shows as the old one still

#

Or is there a better to collect payment than a payment link?

half karma
#

That depends on what you are trying to do.

#

It is very possible that Zapier depends on the metadata being on the PaymentIntent itself

#

When you create Checkout Sessions directly (not using a Payment Link) you can set payment_intent_data.metadata to have the metadata passed down.

#

If you are using Payment Links then you will want to update the PaymentIntent yourself based on the metadata that is passed through via the Checkout Session