#ron waffle - payment intent metadata

1 messages · Page 1 of 1 (latest)

cosmic spruce
#

Hey there

#

I think this is expected. You're setting metadata for the payment intent objects, not the Checkout session itself, so I would not expect any metadata on the session events.

split rock
#

Can you set metadata for the checkout session instead?

cosmic spruce
#

You'd instead find in on the payment intent events like payment_intent.succeeded or on the payment intent object referenced in the checkout session if you were to retrieve it directly

#

sure you can! just set metadata=... in the checkout creation request instead of payment_intent_data[metadata]=...

split rock
#

Thanks pal I'll try that now

cosmic spruce
#

NP!

split rock
#

that works thanks for the help

cosmic spruce
#

NP!

#

Glad that helped 🙂

split rock
#

I assume I can set both too?

#

payment intent metadata and checkout session

#

so I can see the metadata in both I mean

cosmic spruce
#

Yep, sure can

split rock
#

perfect thanks

#

I also have another question sorry.

cosmic spruce
#

Go ahead, no problem

split rock
#

I am using stripe connect and my customers are standard accounts. I can obviously set the application fee from my server in normal circumstances

#

but they can login to stripe and request direct charges can't they? and as such will this avoid the platform fee?

cosmic spruce
#

Yes (sorry about the delay) -- if your account holder have full stripe accounts, they can initiate payments themselves from their dashboard, and your platform is not involved.