#sagnik_docs

1 messages ¡ Page 1 of 1 (latest)

wary drumBOT
#

👋 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/1352382478123532321

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

quartz veldt
#

Hi there

heavy schooner
#

hey

quartz veldt
#

Could you share the request id from a failing request? that will look like req_abc123

heavy schooner
#

sure give me a sec

heavy schooner
#

I am running the rust server, it is taking some time

heavy schooner
#

hey please check this
req_z2pbsncY8rx5lT

#

@quartz veldt

quartz veldt
#

and furthermore, us_bank_account is a different type of payment method than customer_balance

heavy schooner
#

I am trying to integrate ach bank tranfer

#

it was implemented previously with sources api

quartz veldt
heavy schooner
#

but it is deprecated now

#

curl https://api.stripe.com/v1/checkout/sessions
-u "sk_test_51Msk2GAGHc77EJXXYMnZXLlpOw4OkJ0FznK2mve5LxBuE8AGXDv3IEzPzfb49kBZ904VVHyHShXLZWxlX0hPGJSp00yHmtSbwS:"
-d customer={{CUSTOMER_ID}}
-d "line_items[0][price_data][currency]"=usd
-d "line_items[0][price_data][product_data][name]"=T-shirt
-d "line_items[0][price_data][unit_amount]"=2000
-d "line_items[0][quantity]"=1
-d mode=payment
-d "payment_method_types[0]"=card
-d "payment_method_types[1]"=customer_balance
-d "payment_method_options[customer_balance][funding_type]"=bank_transfer
-d "payment_method_options[customer_balance][bank_transfer][type]"=us_bank_transfer
--data-urlencode success_url="https://example.com/success"
--data-urlencode cancel_url="https://example.com/failure"

I am already sending this in request

quartz veldt
#

that's a different pattern than the request you shared previously, using Stripe-hosted Checkout

#

What is going wrong with that request?

heavy schooner
#

I am getting that error right

#

you can see in the request id

quartz veldt
#

req_z2pbsncY8rx5lT is a call to POST /v1/payment_intents

#

the curl request you just sent over is to /v1/checkout/sessions

heavy schooner
#

This curl is from your bank transfer doc that you have sent

quartz veldt
#

Yes, but that doc can be configured many different ways depending on what you click on

#

With or without Stripe Invoices, and then further on down the page you can choose if you want to use hosted Checkout, Elements, or a direct API integration

heavy schooner
#

which api endpoint should I use checkout/sessions or /payment_intents ?? in the migrate from sources api doc it is mentioned that go with payment intents

quartz veldt
heavy schooner
#

sure, I'll follow the doc. can I reopen this chat tomorrow? as it is very late night in India

#

If I face any doubt

quartz veldt
#

Of course

#

My colleagues will have a record of this conversation when you return - just open a new thread.