#jessp1736

1 messages · Page 1 of 1 (latest)

calm orioleBOT
elfin finch
#

stripe trigger payment_method.attached --add payment_method:customer=cus_OAYWucHLP5ea3S

#

when debugging the event object the customer on the PaymentMethod is 'cus_ObPjQcXMtj4kGc'

versed halo
#

Hello! Yeah, I don't think that will work as-is.

elfin finch
#

dang

versed halo
#

It would likely be easier to write code to actually do this. Why are you trying to trigger this Event?

elfin finch
#

Testing the webhook

versed halo
#

Yeah, the underlying fixture for this Event in the the Stripe CLI doesn't allow you to specify a Customer, it always creates a new one.

#

You would need to either write your own custom fixture or perform the attach manually.

elfin finch
#

can I set the metadata on that customer by passing in dot notion on it?

#

I doubt it since it's created new like you just said.

versed halo
#

Not using the CLI, no.