#sdk.wtf

1 messages ยท Page 1 of 1 (latest)

long ravineBOT
restive oak
#

hello! do you have an exmaple PaymentIntent id for me to take a look at?

coral musk
#

hi Alex, thanks for getting back. Yes , in my test data. for example:
pi_3OhR9YByDvj7QBox1LoAdcCe

restive oak
#

so that the metadata is passed on the PaymentIntent instead

coral musk
#

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 ?

restive oak
#

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

#

you're not passing in payment_intent_data.metadata

coral musk
#

should it not be at the root ? the metadata?

restive oak
#

you can set it at both places

#

if you set it at the root alone, it won't show on the PaymentIntent

#

you can try it out

coral musk
#

ohhh ok - i had not seen it shall be encapsulated in the payment_intent_data first

#

amazing let me try that. thanks for helping so quickly

#

๐Ÿ™Œ ๐Ÿ™Œ ๐Ÿ™Œ