#lucynoodles20 - payment_method event
1 messages · Page 1 of 1 (latest)
Hi there. One moment
That's only fired if you're using PaymentMethods: https://stripe.com/docs/api/payment_methods
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Okay, so it should be fired even if you're using the Charges API?
I did a test where I added two bank accounts to a customer in Test Mode, one with "Add a US bank account (Charges)" and one with "Add a US bank account (PaymentIntents)". I only saw a webhook for the second one. Also the first one had an ID of ba_... instead of pm_.... Does that mean it's not a payment method?
Yeah correct
The newer API/way of doing things is PaymentIntents and PaymentMethods
vs. the older way (Charges and Sources)
I see, okay thanks
@harsh bridge what event is sent out, if any, when a bank account is added to a customer under the charges/sources APIs?
Just curious. What api call are you using to attach to the customer?
But yeah I believe https://stripe.com/docs/api/events/types#event_types-customer.source.created would be generated
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
We use Stripe::Customer.create_source and pass in a customer ID
Ah yep
Then above event
I recommend testing out these scenarios in test mode to see what events get generated
Cool yeah, thanks. I've done a little testing too and we'll definitely do more, but I appreciate your explanations
No problem!