#Carlos-hello
1 messages · Page 1 of 1 (latest)
Hi Soma, I wondered if Stripe API allows create a "Source" no email in the options object, I would like to do by customerID
I'm not sure I understand. What do you mean by "create a Source no email in the options object"
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
this method in Stripe API
I have to provide an email, however My system has customer no email
Got it! Then a few things:
First, the source API is quite old, you should be using PaymentMethod instead. We have a guide explaining how to do the transition: https://stripe.com/docs/payments/payment-methods/transitioning
Second, if you have to use source, then the owner property is required for some type of sources. What type of source are you using?
Yes, I know the new thing Stripe API, however we can't migrate it yet.
the type = SourceType.AchCreditTransfer,
thank you for your advice, however we cannot moved to PaymentIntent in our app yet 🙂
Got it! Then for type: "ach_credit_transfer", you need to provide an email in the source object
Soma, thank you! I have a last question for you.
I was trying to understand what is the benefit of the "Source" for ACH Payments, it could help us to save a verified ACH bank account?
What do you mean by "the benefit of the Source for ACH Payments"?
Ideally you should use a PaymentMethod to accept payments with Stripe, but if you can't then you need to use a source.
okay, I can attach a bank account token to a customer, and use the customerId to make a charge... in that point I think, I don't need the source, do I?
Hi there 👋 jumping in as soma needed to step away. Attaching the bank token to a customer creates a source out of it. If you try to just use the token for a payment then it will be only available one time, but attaching it to a customer and turning it into a source allows you to reuse it.
Not sure if you've seen it but we have a guide that walks through the process of setting up an ACH payment flow:
https://stripe.com/docs/ach
@stark needle Thank you for that answer, however I would like to clarify something.
If I added a bank account token a customer, it will create the source? and then I can use the customerId to create the charge?
Yup, that document shows that exact flow along with code snippets.