#moustache_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1240334861051625532
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! Hm, nothing is jumping out at me as being wrong, give me some time to investigate...
thank you
Just wanted to let you know we're still investigating.
We think it might be related to the Customer you used, which has a credit balance, but we're not certain yet. It seems like this request should have worked.
ok, I will remove the credit and try it again
If you could try again that would be great. There was also a pending Invoice Item on this Customer that may have been involved, but that's been Invoiced since this request was made.
Can you try in test mode with a new Customer? We're still trying to reproduce on our end and haven't had any luck yet, but a test mode request on your end would help us narrow things down.
No worries!
Thank you, looking...
Does it make any difference if you create a new Customer and use that? Or use no Customer?
I haven't tried without a customer, our form will always have a customer to reference. I will try with a new customer...
req_7RregbO0nu5YvD
Can you give it another try, but omit payment_method_options?
same... req_jTFZVy17WObNew
ok, I removed payment_method_types and it went through!
they were set to: payment_method_types = ["us_bank_account", "card"]
Interesting. We've been trying to reproduce on our end with variations on all of this and haven't been able to get the same behavior you're seeing. These requests should have all succeeded. We're continuing to investigate.
Thank you. Standing by.
Would it be possible for you to create a couple of test Payment Intents directly? For both tests set amount to 0 and currency to usd. For one of them also set payment_method_types to card and us_bank_account.
We're expecting both attempts to fail, but we're interested in exactly how they fail.
on it...
stripe.error.InvalidRequestError: Request req_6fMQLTsuKh4y0L: No such PaymentMethod: 'us_bank_account'
oh, I see.
stripe.error.InvalidRequestError: Request req_GP3O8OpUMX7eJh: The amount must be greater than or equal to the minimum charge amount allowed for your account and the currency set (https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). If you want to save a Payment Method for future use without an immediate payment, use a Setup Intent instead: https://docs.stripe.com/payments/setup-intents
Ah, so for that request can you remove payment_method and instead set payment_method_types to an array containing both card and us_bank_account?
yes, that was the last one: req_GP3O8OpUMX7eJh
Ah, okay, for the other one can you omit both payment_method and payment_method_types?
Only specify amount and currency.
Thanks! Looking...
We've finally been able to reproduce on our end and are narrowing in on the issue.
Hey @dapper ibex you still around?
always
lol ๐
So the issue seems to be the order of the payment_method_types array. Can you try swapping card to being the first in the array?
This is clearly a bug on our side (it shouldn't matter)
But I think this should unblock you for now
for the checkoutsession or the payment intent?
Checkout Session
on it...
confirmed. I tried it both ways. If bank account is listed first, it fails
req_jC2ZJWs6AVu1LR
It does work with card listed first, correct?
correct
Yep okay
We will get that fixed up
Sorry about the confusion here
But at least this should unblock you for now
thanks, very helpful