#colink
1 messages · Page 1 of 1 (latest)
Hi there
Hmm can you clarify a bit here.
When do you initiate this "integrity check" exactly?
And are you using our hosted Checkout? Or you are using Elements?
Lastly, which webhook are you listening for and what do you mean by "throw an error processing the webhook"? I think there may be confusion here because your response to any webhook has no effect on your data. That just is telling Stripe that you received the webhook and don't keep sending it (or disabled your webhook if you never respond).
We're using hosted checkout.
We initiate the integrity check after receiving the webhook.
Which webhook?
checkout.session.completed
Okay at that point the payment has already been completed (or is processing if the customer is using an async payment method). So your only option at that point is to refund if you don't want to sell to that customer.
So really you want to move your integrity check earlier in your flow, and not redirect your customer to Checkout at all if they fail this check
That's not possible.
But I'll see about implementing a refund if the integrity check fails.
Yeah that would be the only way to handle this after the session
The other thing you could look into would be using manual capture
That actually might suit you well
You can do that with Checkout as well
Assuming you are taking one-time payments, you would set capture_method: manual here: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-capture_method