#lucynoodles20
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Can you clarify what specific integration path you are using here? Is this with Financial Accounts? And do you have some example request IDs?
Hi, I'm not sure what you mean about integration paths or financial accounts? Some examples: ba_0MBgD2PxnTIUcyZyShMAhbu7 for cus_Ik8nAZPIvikvYF and
ba_0MBSX5PxnTIUcyZyZAQ6JBA6 for cus_FoL433d55vsXbX. The events log shows customer.source.created being sent out but not payment_method.attached. We were thinking of using payment_method.attached to add the payment methods to our records.
Oh well that is because ba_0MBgD2PxnTIUcyZyShMAhbu7 was created used the /v1/tokens endpoint
so it doesn't get created as a Payment Method
Which requires using the /v1/payment_methods endpoint:
https://stripe.com/docs/api/payment_methods/create
I see, that makes sense. So if we're using /v1/tokens we could listen for customer.source.created, while if we're using /v1/payment_methods we can listen for payment_method.attached?
Yup
Cool, thank you
Happy to help ๐
One more question. It looks like for Cards, if we POST to /v1/customers/<id>/sources, both of those webhook events will be sent. Is that correct?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sorry the dashboard links aren't useful for me (it's not my dashboard). Do you have an event ID for me?
evt_0MBijfPxnTIUcyZyo9unN9G8 and evt_0MBijfPxnTIUcyZySY0w9x9q
Great, thanks
๐ stepping in as Snufkin had to step away
Yep that's correct
Both will fire when attaching a Card via that endpoint
Okay, I'm a little confused why this isn't happening for bank accounts. We are using the same endpoint, eg req_LPVRBeSmajHe3f, but we only get customer.source.created, not payment_method.attached. Snufkin said that we are using /v1/tokens, but I don't see that in the logs for cus_Ik8nAZPIvikvYF.
Yep because Bank Accounts here (ba_xxxx) are legacy objects and not PaymentMethods. We have a newer version of ACH with does use PaymentMethods and would trigger the event if attached. See https://stripe.com/docs/payments/ach-debit/accept-a-payment for our newer ACH implmentation.