#Khalid Al-Awady
1 messages · Page 1 of 1 (latest)
Taking a look now
thank you, if you like I could show the setup intent I have server side along with the confirm setup request on the client side
Hello! I'm taking over and catching up...
So you've built this and you're using the 000111111116 account number, but it's not failing as expected?
Thank you for taking a look
Yes, what is currently happening is that when entering the 000111111116 account number it is succesfully added to the account but any future payment is denied
I would just like to know if it's possible to automatically reject the account number client-side
for example I have the following which with credit cards and using the PaymentElement it automatically fails for bad cards:
const { error, setupIntent } = await stripe.confirmSetup({
elements,
confirmParams: {
return_url: 'https://appx.whenidev.net/billing/',
payment_method_data: {
billing_details: {
address: stripeCustomer.billing_details.address,
email: stripeCustomer.billingEmail(),
name: stripeCustomer.billingName(),
phone: stripeCustomer.billing_details.phone,
},
},
},
redirect: 'if_required',
});
So you're not using a Checkout Session? I'm trying to understand why you linked to the Checkout docs for this.
My mistake, I looked through the docs for anything regarding ACH and I skipped over the fact it was for a Checkout Session
sorry for the wait. Setup Intent ID => seti_1MwU1oKjI0M1O6BO9Rm66i0o
no, I don't want to use checkout
Looking, hang on...
You set verification_method to automatic when you created that Setup Intent, but I think you want to set that to instant, right?
yeah, so far I've been playing with it. No success on automatic , instant or microdeposits
Can you provide a Setup Intent ID with that set to instant for me to examine?
Looking...
Ah, okay, so that test number is intended to simulate the account not existing during the payment process only, not during the setup/verification process. I don't think we have a test account number specifically for that scenario, but you can use the "Invalid Payment Accounts" option in the Payment Element to test this.
Ah, that makes sense. Then I'll pass that information along. Thank you again for the support!