#sdk.wtf
1 messages ยท Page 1 of 1 (latest)
hello! do you have an exmaple PaymentIntent id for me to take a look at?
hi Alex, thanks for getting back. Yes , in my test data. for example:
pi_3OhR9YByDvj7QBox1LoAdcCe
ah okay, so you'll want to pass the metadata here instead : https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-payment_intent_data-metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
so that the metadata is passed on the PaymentIntent instead
hmm i yes this is how i create the payment link
and the response of that call has the metadata
so far what i can see now by looking at traces of the payment is that when the " request to confirm a checkout session completed" happens i can see there a ref to both the payment intent and the payment link. So i could make the link here. is there a webhook for this event ?
ha yes there is. maybe i have to use it ?
ummm sorry, lets take a couple of steps back
as far as i can see, when you created the Payment Link, i don't see you passing the metadata in the right place
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
you're not passing in payment_intent_data.metadata
should it not be at the root ? the metadata?