#force_checkout-banktransfers

1 messages ยท Page 1 of 1 (latest)

clever drumBOT
#

๐Ÿ‘‹ 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.

humble lichen
#

@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?

cunning robin
#

Yes, I am activly trying to pay with bank transfer

humble lichen
#

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

cunning robin
#

You're correct, but well I get the same error on both methods ๐Ÿ˜„

humble lichen
#

Thanks for the screenshots. I can't reproduce on my account so trying to figure out what's different between yours and mine

cunning robin
#

and for Bank transfer same error

humble lichen
#

force_checkout-banktransfers

cunning robin
humble lichen
#

No that should be unrelated

cunning robin
#

If it helps, an example of creating a checkout session: req_cemEGW43PIH5jg

humble lichen
#

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

cunning robin
#

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 ๐Ÿ˜…

humble lichen
#

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

cunning robin
#

Yep I can

humble lichen
#

thanks a lot

cunning robin
#

Let me know when you want to try it out

humble lichen
#

Oh I just need you to try and see if you get the same error

cunning robin
#

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

humble lichen
#

thanks

cunning robin
#

session id: cs_test_a178LqLAzBjRWafCTIY18uNbjtXqqz0jrCw9LH49OOFdDWKSG2JdoeKaGC
and the failed request id: req_e23wPysO79wEg1

humble lichen
#

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

cunning robin
#

Sure a sec

#

You just want a new checkout session id without loading the session in the web app right?e

humble lichen
#

yes

cunning robin
#

cs_test_a1CnkttmNKG9M1aYXY3RPAJlgwPriZntjtku914qvD01RQmIfH85KuW1dX_secret_fidwbEhqYWAnPydgaGdgYWFgYScpJ2lkfGpwcVF8dWAnPyd2bGtiaWBabHFgaCcpJ3dgYWx3YGZxSmtGamh1aWBxbGprJz8nZGlyZHx2JyknZ2RmbmJ3anBrYUZqaWp3Jz8nJmNjY2NjYyd4JSUl

full secret

humble lichen
#

ah I think it's because of multi-currency prices

cunning robin
#

the id should be cs_test_a1CnkttmNKG9M1aYXY3RPAJlgwPriZntjtku914qvD01RQmIfH85KuW1dX

#

btw like I said, the error is not present, if I do not provide a customer

cunning robin
#

want me to?

humble lichen
#

yeah try with just one currency and it will work. I can reproduce now!

cunning robin
#

I can reproduce now!
The first, major step into bug fixing ๐Ÿ˜„

#

ok, created a new price with a single price in Euros testing now

humble lichen
#

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

cunning robin
#

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?

humble lichen
#

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

cunning robin
#

Thanks will do, and will provide a link to this thread ๐Ÿ™‡