#sotastica-zapier
1 messages · Page 1 of 1 (latest)
@pulsar blaze usually you would add metadata to e.g the PaymentIntent you create through the API for the payment (https://stripe.com/docs/api/metadata) and then that will be returned in the webhook event and you can use that to reconcile the payment to an order/product
I placed the metadata in the product, but I didn't get to see it on the response when proceeded a payment.
Maybe I should put the metadata somewhere else?
When you say Product do you mean an actual Product prod_xxx object?
yues
but yeah in general that's not part of the event for a successful payment, usually you receive the event and then make another API call to retrieve the associated product
because zappier doesn't allow me to modify the payment instance...
it really heavily depends how you integrate exactly(with PaymentIntents directly or Invoices or Checkout). Do you have an example evt_xxx event ID you're looking at?
I am using the checkout
payment link -> checkout -> user pays -> zappier automation begins
then what you'd want to do is make an API request to get the line items of the CheckoutSession when handling the checkout.session.completed event : https://stripe.com/docs/expand#includable-properties (pass expand:["line_items.data.price.product"] ) and then you can look at the Product and it's metadata (https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-line_items-data-price-product)
not sure how you do it with Zapier but that's how it's done
yes, I think I should use some other app like postman that allows a better customization