#Muttakin Islam Hasib

1 messages · Page 1 of 1 (latest)

jolly prawnBOT
frosty kindle
#

checkout session

#

webhooks

crude mist
#

When you programmatically create a Transfer after your platform takes a charge, you don't use Application Fees. You would instead leave some amount in your platform's balance and only transfer the amount you want to the Connect account

frosty kindle
#

example:
the checkout session will for $105

and i will transfer only $100 that's it ?

crude mist
#

Exactly

frosty kindle
#

one more thing, i can't access the metadata from "checkout.session.completed" webhook

crude mist
#

It looks like you're setting metadata on the Payment Intent, so you would need to get the Checkout Session ID from the checkout.session.completed webhook event data and make a separate Retrieve Checkout Session API call to get that data.

Are you already doing that?

frosty kindle
#

no

crude mist
#

Okay, so you'll need to implement the above recommendation in order to be able to expand the payment_intent_data hash on the Checkout Session object after you retrieve it.

https://stripe.com/docs/expand

Learn how to reduce the number of requests you make to the Stripe API by expanding objects in responses.