#HKrievs
1 messages · Page 1 of 1 (latest)
Hello, unfortunately I don't think you can set metadata directly on the PaymentMethod from a Checkout Session. Metadata is not automatically copied between related objects like that
We do have a param that you can set to put the metadata on the SetupIntent https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-setup_intent_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But you will still need to make an API call to copy the metadata to the PaymentMethod in the webhook event you get back I believe