#Scott-applicationfee
1 messages · Page 1 of 1 (latest)
I am trying to set the application fee according to the payment method But i'm not sure how to access the Payment method to check the card origin when it the payment is processing?
In that case the solution is to place a hold on the card https://stripe.com/docs/payments/capture-later
And then when you capture the funds you can update the application_fee https://stripe.com/docs/api/payment_intents/capture
Hey, sorry for the silence in this thread. Soma had to step away and I took a bit to catch up
No problem
You can listen for the payment_intent.amount_capturable_updated to see when you have held funds with a PaymentIntent https://stripe.com/docs/api/events/types#event_types-payment_intent.amount_capturable_updated
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
And then you can update the application fee and confirm the payment intent from there
Thank you for being understanding
Cool, I tried this webhook (without a functional hook in place) but nothing in the webhook console was triggered when I created the payment intent and paid for it
Can you send me the ID of the payment intent that you just used?
I can see it in events
pi_3Kr07iBHoAmxvHT41P45GW0p
But the webhooks section within developer, I don't see the webhook being triggered?
Apologies for the silence, the server got very busy. I see that this event got created for that action https://dashboard-admin.stripe.com/test/events/evt_3Kr07iBHoAmxvHT41ad9z1ag
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
And I see that you have one webhook endpoint set up on your account, but it is not set up for that event
Were you looking for that event on that endpoint or are you using the CLI to test these?