#Kekox123-PaymentIntent
1 messages ยท Page 1 of 1 (latest)
Hi, taking a look here, please give me a few minutes
Test and live should mirror the same, looking further
payment_intent.created => evt_3LXuX1KNEK8dUItS17mnoXKN
payment_intent.succeeded => evt_3LXuX1KNEK8dUItS1p3R8fXV
Ok, it looks like you're working with a legacy product. To see this expected behavior you'd want to use this: https://stripe.com/docs/invoicing/ach-debit?dashboard-or-api=api
If you have a legacy integration via ba_123 then that bank account object needs to be the default_payment_method for it to work
Hmmm I see
Yes we use plaid for verifiying bank accounts and then set them as payment method
for credit cards we use the Stripe sdk and setup intents.
So for adding bank accounts as payment methods
We can use the first link you shared with me
I haven't read at it hehe, but. Does Stripe provides a SDK (lets say react Stripe) for adding these kind of payment methods as well as there is one for adding cards?
It should be but let me confirm real quick awith someone who knows way more about React/ SDK
I have another question. So, the invoice that lanched the events I shared above is this: in_1LXuUKKNEK8dUItSyuS9kzS7
If you check the customer for the invoice is this: cus_LSsKYDwYzQsXcQ
I can see that the added bank account as payment method is default
payment method id: ba_1LW2uMKNEK8dUItSPLKSohyf
According to what you said above, the payment method is marked as default. Shouldn't the event have been launched?
Sorry if I misunderstood something hehe
Hello! Taking over and catching up...
Yep, we have a React library here: https://github.com/stripe/react-stripe-js
That Customer has the ba_ object set as their default_source, which is legacy. In order for it to work for the new event you need to set it as their invoice_settings.default_payment_method instead.
Got it! So we're setting source property instead of invoice_settings.default_payment_method property for bank accounts, that totally makes sense.
so the source property also shows the default badge on the payment method right? but that's legacy we should set that property if we want other things to work.
Bumping the SDK question. We already implemented adding cards as payment methods using the react sdk. My question is, for doing what appears here: https://stripe.com/docs/invoicing/ach-debit?dashboard-or-api=api
The react SDK also provides, components for selecting banks entering routing numbers and that stuff?
I mean, the reason we use Plaid for this is because we thought Stripe didn't have a tool to do it.
Stripe does have the ability to do this now, although it's somewhat new. The Plaid/Stripe integration is now legacy.
This makes me so happy. I'll push so hard to get rid of Plaid (I don't like it haha)
Sounds good! ๐
Thank you so much for the help. Do you have docs for implementing the bank ACH payment method collection? I can't find any related code here https://stripe.com/docs/invoicing/ach-debit?dashboard-or-api=api ๐
Do you specifically want this for Invoices?
Our general ACH guide is here: https://stripe.com/docs/payments/ach-debit
And there are guides for accepting a payment: https://stripe.com/docs/payments/ach-debit/accept-a-payment
And saving bank details for future payments: https://stripe.com/docs/payments/ach-debit/set-up-payment