#gustavonicot-webhooks

1 messages · Page 1 of 1 (latest)

sage kindle
stray musk
#

Hi Alex

sage kindle
#

hello @stray musk! To clarify, are you saying that the event was not generated or your webhook endpoint did not receive the event?

stray musk
#

I am posting payments through Payment intents and the transactions move fine but the web hooks are never triggered

sage kindle
#

can you provide an example PaymentIntent id for me to take a closer look? it'd look like pi_123

stray musk
#

so the event was never recorded by the webhook

#

sure

#

did you see anything in your end

sage kindle
#

gimme a second, i'm a bit tied up with something else right now

stray musk
#

sorry and thanks!

sage kindle
#

@stray musk what event are you expecting to receive from this PaymentIntent?

stray musk
#

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

sage kindle
#

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

stray musk
#

?

sage kindle
#

argh, sorry about that, can you paste your PaymentIntent id again?

#

please don't include the secret

stray musk
#

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

sage kindle
#

@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

stray musk
#

let me try right away

#

that is fine. so when I checked that it will only monitor the connected account?

sage kindle
#

yep that's right, if you select that checkbox, it will monitor for events only on the connected account

stray musk
#

by the way I have my account set as connected. not sure if that is relevant

sage kindle
#

where did you set this at?

stray musk
#

I mean we will be processing payment in behalf of others

sage kindle
#

using the on_behalf_of parameter doesn't affect where the webhook events are generated

stray musk
#

can I send you a screenshoot with accounts IDs?

sage kindle
#

the payments are still created on the platform account

stray musk
#

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

sage kindle
#

how are you collecting payment? Using the Payment Element or Checkout?

stray musk
#

flutter sdk

#

asking our dev right now

sage kindle
#

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

stray musk
#

I think is checkout an with payment sheet

#

does that makes sense to you

#

so it is payment sheet

sage kindle
#

to clarify, we're still talking about flutter right?

stray musk
#

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

#

?

sage kindle
#

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

stray musk
#

ok perfect that was actually my question. I didn't know if payment_method_types card was enough

sage kindle
#

great!

stray musk
#

Thanks!

#

have a great night/day