#lucynoodles20 - payment_method event

1 messages · Page 1 of 1 (latest)

harsh bridge
#

Hi there. One moment

weak garden
#

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?

harsh bridge
#

Yeah correct

#

The newer API/way of doing things is PaymentIntents and PaymentMethods

#

vs. the older way (Charges and Sources)

weak garden
#

I see, okay thanks

weak garden
#

@harsh bridge what event is sent out, if any, when a bank account is added to a customer under the charges/sources APIs?

harsh bridge
#

Just curious. What api call are you using to attach to the customer?

weak garden
#

We use Stripe::Customer.create_source and pass in a customer ID

harsh bridge
#

Ah yep

#

Then above event

#

I recommend testing out these scenarios in test mode to see what events get generated

weak garden
#

Cool yeah, thanks. I've done a little testing too and we'll definitely do more, but I appreciate your explanations

harsh bridge
#

No problem!