#gustavonicot-webhooks
1 messages · Page 1 of 1 (latest)
Hi Alex
hello @stray musk! To clarify, are you saying that the event was not generated or your webhook endpoint did not receive the event?
I am posting payments through Payment intents and the transactions move fine but the web hooks are never triggered
can you provide an example PaymentIntent id for me to take a closer look? it'd look like pi_123
so the event was never recorded by the webhook
sure
did you see anything in your end
gimme a second, i'm a bit tied up with something else right now
sorry and thanks!
@stray musk what event are you expecting to receive from this PaymentIntent?
I have set 7 events. all from the payment intent and not receiving any
as I have mentioned. it is the first time and I wasn't sure but wanted to capture all the changes to ensure I am not missing anything
for context, these are the events which you're currently listening for :
charge.refunded
charge.succeeded
customer.subscription.created
customer.subscription.updated
invoice.payment_failed
invoice.payment_succeeded
argh, sorry about that, can you paste your PaymentIntent id again?
please don't include the secret
sorry. didnt even noticed was at the and of the Id
by the way the account is supposed to be on test mode
sorry alex. are you seing something in your end?
pi_3JypiIE05DrzsTpY0lbF5gga
@stray musk so what happened here is that you've setup your webhook to listen for connected account events
if you look at the Endpoint type in your screenshot, it mentions Connect
the PaymentIntent you've listed is for a destination charge, which means that the payment occurs on the platform
what you would need to do here is to create a new webhook endpoint, without selecting this checkbox
unfortunately, you cannot edit an existing webhook endpoint
let me try right away
that is fine. so when I checked that it will only monitor the connected account?
yep that's right, if you select that checkbox, it will monitor for events only on the connected account
by the way I have my account set as connected. not sure if that is relevant
where did you set this at?
I mean we will be processing payment in behalf of others
using the on_behalf_of parameter doesn't affect where the webhook events are generated
can I send you a screenshoot with accounts IDs?
the payments are still created on the platform account
ok
I got the data. Thanks so much!!!
I have another question related to apple pay
what information should I add to the Payment intent to allow apple pay. I have the account setup already
I am working in nodejs
how are you collecting payment? Using the Payment Element or Checkout?
i'm actually not very familiar with flutter because this is a third party library, there would probably be some online tutorials or guides since i assume that this would be a very common ask
I think is checkout an with payment sheet
does that makes sense to you
so it is payment sheet
to clarify, we're still talking about flutter right?
yes
but the method is used like that
in any case the payment intent happens at the server with nodejs
and that is where I assumed it happens
?
This is really more of a frontend (i.e. flutter) question, with regards to the PaymentIntent - it will only need to ensure that it has payment_method_types=['card'] as an option
ok perfect that was actually my question. I didn't know if payment_method_types card was enough
great!