#force_checkout-banktransfers
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1255191882355441765
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
@cunning robin can you provide a bit more details? Are you actively trying to pay with bank transfers on Checkout? What does your code look like for initializing the Session?
Yes, I am activly trying to pay with bank transfer
I am using this test acc number: PT50000201231234567890154 from https://docs.stripe.com/testing?payment-method=sepa-direct-debit#non-card-payments
You're misunderstanding something I think. What you are talking about is SEPA Debit which is a Bank Debit. Your end customer gives you their IBAN and you debit it.
It's completely different from customer_balance also called Bank Transfers
Thanks for the screenshots. I can't reproduce on my account so trying to figure out what's different between yours and mine
and for Bank transfer same error
force_checkout-banktransfers
I also thought it could be related to the Stripe API version
Trying to set the JS version using the apiVersion option seems to have no effect
https://docs.stripe.com/js/initializing#init_stripe_js-options-apiVersion
No that should be unrelated
If it helps, an example of creating a checkout session: req_cemEGW43PIH5jg
All good I got the info, just trying to figure out what's different on your account versus my request. Will take some time but I'll update you once I figure out what's happening
most likely also unrelated, but I disabled Link as a payment method, about 2 hours ago
and the embedded UX still presents me with Link
related to the API version also if it helps we're still on 2020-03-02 and hoping to upgrade after we finish this checkout integration ๐
sounds good
Can you try a simpler version of your code for a few minutes? I'm trying to narrow down what's causing this and you are passing a lot of options to Checkout.
I'm hoping you can do a way simpler example just to test where you create a brand new Customer object and then on Checkout you remove most of the options like payment_intent_data, tax_id_collection, customer_update and all that. Just pass what's required return_url, mode, ui_mode, line_items
Yep I can
thanks a lot
Let me know when you want to try it out
Oh I just need you to try and see if you get the same error
Removed allow_promotion_codes ,tax_id_collection, shipping_address_collection, customer_update, consent_collection custom_text[terms_of_service_acceptance][message] , payment_intent_data[description] and invoice_creation[enabled]
Still getting the same error
Let me do another request to provide you with the session id, and failed request id
a sec
thanks
session id: cs_test_a178LqLAzBjRWafCTIY18uNbjtXqqz0jrCw9LH49OOFdDWKSG2JdoeKaGC
and the failed request id: req_e23wPysO79wEg1
Can you create a Checkout Session but do not load it. Just create it and share the id with me
There's something weird where on creation you get payment_method_types: ['card'] only and later get bank transfers enabled
Sure a sec
You just want a new checkout session id without loading the session in the web app right?e
yes
cs_test_a1CnkttmNKG9M1aYXY3RPAJlgwPriZntjtku914qvD01RQmIfH85KuW1dX_secret_fidwbEhqYWAnPydgaGdgYWFgYScpJ2lkfGpwcVF8dWAnPyd2bGtiaWBabHFgaCcpJ3dgYWx3YGZxSmtGamh1aWBxbGprJz8nZGlyZHx2JyknZ2RmbmJ3anBrYUZqaWp3Jz8nJmNjY2NjYyd4JSUl
full secret
ah I think it's because of multi-currency prices
the id should be cs_test_a1CnkttmNKG9M1aYXY3RPAJlgwPriZntjtku914qvD01RQmIfH85KuW1dX
btw like I said, the error is not present, if I do not provide a customer
I can try it out with a new Price with a single currency
want me to?
yeah try with just one currency and it will work. I can reproduce now!
I can reproduce now!
The first, major step into bug fixing ๐
ok, created a new price with a single price in Euros testing now
Basically you create the Checkout Session and it assumes USD at first (default currency on the Price) so it defaults to card only. Afterwards, you load it, you're likely from Europe so it switches to EUR as the currency and re-calculates all the payment methods to support so it enables SEPA Debit and Bank Transfers as expected.
And we must have a bug here where we don't set the right "default" values for payment_method_options and it's crashing because of it
gonna do a full test with all the parameters and a single currency price ok?
Yep seems to have worked
Yep both seem to work with SEPA Debit and Bank Transfers now
with a single currency price
Afterwards, you load it, you're likely from Europe so it switches to EUR as the currency and re-calculates all the payment methods to support so it enables SEPA Debit and Bank Transfers as expected.
Yep, indeed at start I had a USD only price
To be able to see the SEPA and Bank Transfers as options I created a new one, with 2 currencies USD and EUR
I can work out meanwhile with a single price to test, however when we reach our launch we should be allowed to have a price with multiple currencies
as SEPA debit is only allowed in Eur ๐
Will you file the issue?
And how can I keep track on the progress on it?
I'd recommend writing in to support https://support.stripe.com/contact and they can follow up with you on next steps. But yes I've been able to reproduce and I'm flagging to the product team. Might not be an easy fix though so best to follow up with support
Thanks will do, and will provide a link to this thread ๐