#altairsama69

1 messages · Page 1 of 1 (latest)

sweet atlasBOT
drowsy cipher
#

Hello

stiff dagger
#

hey

drowsy cipher
#

You can listen for payment_intent.payment_failed Events if you want via your Webhook handler. But mostly when a payment fails you would just not see anything -- we will display the error in the Checkout UI.

stiff dagger
#

its a little different than normal bank transfer since bank transfer wants a payment intent specifically

#

will it still fire the payment intent failed event

#

if the intent is created implicitly?

drowsy cipher
#

If they attempt to complete the payment and it fails then yes the Event will fire

#

So if they hit the "Pay" button

#

Then yes

#

Hmm actually sorry.

#

You are specifically asking about network issues?

stiff dagger
#

and if in the middle any authentication errors come up with the bank account, nothing for that?

stiff dagger
#

basically anything that'll stop checkout.session.completed event from firing

drowsy cipher
#

Hmm okay then yeah no not really.

#

You don't really have insight from your end into what happens on the Checkout Session page unless the customer attempts a payment itself and it is declined/fails.

#

That said, this won't really happen with ACH

#

Since it is an async payment method

#

It will go into processing before it would fail

stiff dagger
#

yeah so issue is

drowsy cipher
#

So that would happen later after the customer left the page

stiff dagger
#

we want to generate a new checkout link for them

#

or have an ops team member guide them for the payment

#

and for that we need to know whether they encountered an error

#

also the expires_at flag asks about Epoch seconds

#

do I just need to convert my desired interval into seconds?

#

and do we have an option to have the expiry to be lower than 30mins?

#

and one last thing, will stripe not fire a payment intent created event if we just create a checkout session

#

without first creating the payment method?

#

*intent

drowsy cipher
#

also the expires_at flag asks about Epoch seconds
do I just need to convert my desired interval into seconds?
All of our timestamps require UNIX/Epoch so yes you will need to calculate the correct time into the future and submit that in UNIX

#

do I just need to convert my desired interval into seconds?
and do we have an option to have the expiry to be lower than 30mins?
No that's not possible

#

and one last thing, will stripe not fire a payment intent created event if we just create a checkout session
without first creating the payment method?
No this won't create a PaymentIntent unless they actually attempt payment

stiff dagger
drowsy cipher
#

So unless they hit the "buy" button

stiff dagger
#

unless they click on pay

#

we wont get a payment intent evebnt?

drowsy cipher
#

Correct

stiff dagger
#

and then it'll follow the whole life cycle proces starting from payment intent created? so it'll be better if we explicitly create the payment intent for better tracking?
because it doesnt make sense we get a payment intent event after they have paid through checkout

drowsy cipher
#

The idea with Stripe Checkout is that it is simple and you let Stripe basically take care of everything. All you need to pay attention to is if you get a checkout.session.succeeded Event and then handle fulfillment.

#

What you are describing is a more complex and custom checkout flow.

#

This is not something you would really use Stripe Checkout for if you want the level of control you are talking about.

#

In that case you would build your own flow using something like Payment Element

stiff dagger
#

gotcha, we just wanted to avoid frontend integration for now, we will do an Element integration soon, but in this case creating a payment intent and then passing it to a checkout session will be better right?

#

for better tracking of the lifecycle of that payment

drowsy cipher
#

You can't do that

#

Checkout Sessions create PaymentIntents.

#

You can't create one up front and use it with a Checkout Session

#

That's not how the integration works

stiff dagger
#

ah gotcha thanks

#

this thing wont be possible with checkout then?

#

because in this flow, we need to explicitly create a payment intent

drowsy cipher
#

Yes bank transfers are supported with Checkout

stiff dagger
#

according to docs

drowsy cipher
#

They are the customer_balance payment method type

stiff dagger
#

ah got it, then we just need to specify the payment method

#

like in stripe?

#

*ach debit

drowsy cipher
stiff dagger
#

gotcha thanks for the help!