#FasterThanFlash-ach

1 messages ยท Page 1 of 1 (latest)

lean wren
last rune
#

How do we provide our customers ability to pay via bank account in canada?

lean wren
last rune
#

I'll update the code to use payment intent api

lean wren
#

Yep, exactly!

last rune
#

Does it works the same way as with credit card?

lean wren
#

What do you mean?

last rune
#

For credit cards, we need to first generate payment method token and then pass that to payment intent API to make the transaction.

For Bank Accounts, We were first creating token, link token with customer api and then use the charge api to make the transaction.

lean wren
#

For credit cards, we need to first generate payment method token and then pass that to payment intent API to make the transaction.
Well, that's generally a little different to what we recommend

last rune
#

Let me check

last rune
lean wren
#

Generally you'd create the PI, then capture payment details and confirm with Stripe.js

last rune
#

We are not using js library to charge

cursive current
#

Hi! I'm taking over ynnoj.

#

Can you summarize your question while I catch up?

last rune
#

Hello @cursive current .

#

We were using Charge API to process ACH payments.

@lean wren told me that Payment Intent API now supports ACH transactions.

#

I'm trying to find the best possible way to charge

cursive current
#

If you are using PaymentIntents, then we recommend doing this:

  • Create the PaymentIntent on the backend
  • Retrieve the PaymentIntent client secret and send it to the frontend
  • Use the PaymentElement on the frontend with the client secret to collect the payment information
  • Then confirm the PaymentIntent on the frontend
    Note that it's the same for cards and ACH transactions.
last rune
#

We are not using stripe js

#

A batch job will be charging people automatically as well. So there are multiple scenarios that's why we decided to go with custom implementation instead of using stripe js

#

For Cards we are doing it like this -

Create Customer token, Create payment payment method and then create payment intent.
Is there any other way to use stripe without using stripe js?

#

@cursive current Apologies for the late response.

buoyant crag
#

Taking over for soma here as they had to step out. Give me a moment to catch up

last rune
#

@buoyant crag Sure. ๐Ÿ™‚

buoyant crag
#

Ok. How are you collecting their payment info?

last rune
#

We have a screen to capture the payment details, customers can reuse the same payment method and schedule payments as well. All of that is configured

buoyant crag
#

Got it. Ok one moment

last rune
#

We have implemented "setup_future_usage=off_session" for the same.

buoyant crag
#

If you aren't charging the customer while they're on-session, you can do separate auth and capture

#

Confirm the payment intent on-session but don't capture until later

#

Other option is to just start with a SetupIntent and to set up future payments. That way you can just create PaymentIntents with that PM when you want

#

But your current flow should suffice I believe

last rune
#

Sure

#

let me recheck everything

last rune
#

@buoyant crag Same steps would work for ACH as well?

night lion
#

codename_duchess had to step out. Catching up here quickly...

#

Yes, that flow will be the same with an ACH PaymentMethod

last rune
#

hey @night lion Thanks. ๐Ÿ™‚

#

ACSS?

night lion
#

As in how to do a hold with an ACSS PaymentMethod? That would also be the same process after the setup

last rune
#

So what's the difference?

#

We are not using setupIntent

night lion
last rune
#

I need steps to take acss payment. Like for ACH, we create payment method and then payment intent. How do we process acss? The same way?

night lion
#

It will be pretty similar. One difference from other methods is that ACSS will go to pending for a significant amount of time instead of just going to suceeded but otherwise creating the PI and collecting the details on your page will be pretty similar. Is the guide that I just linked to what you are looking for?

last rune
#

That makes sense

#

I'm still not sure how would still figure out whether its acss or ach ?

night lion
#

As in whether to try to confirm those details as ACSS or ACH?

#

I think for our pages like checkout, we allow the user to chose ACSS or ACH and then input their details

last rune
#

but we are not using the stripe js

#

this is a custom built system

night lion
#

Still looking at this, just got a bit busy with other threads. Checking in to what we do for this now...

last rune
#

Yes please. My shift is over 1 hour ago. I need to leave now.
If you find an answer, please post it here and I'll check monday morning./

#

Have a great weekend!!

night lion
#

Yeah, we just let customers choose which they want to set up

#

We do not try to automatically determine it. The user should know which one they need to set up with

last rune
#

Okay got it.

#

Hey thanks @night lion for your time.

#

Really appreciated !!

night lion
#

If course, always happy to help!