#sagnik_docs
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/1352382478123532321
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there
hey
Could you share the request id from a failing request? that will look like req_abc123
sure give me a sec
I am running the rust server, it is taking some time
payment_method_data is for passing payment method details directly to the Stripe API: https://docs.stripe.com/api/payment_intents/create?lang=java#create_payment_intent-payment_method_data
and furthermore, us_bank_account is a different type of payment method than customer_balance
I am trying to integrate ach bank tranfer
it was implemented previously with sources api
If what you want to do is build an integration that accepts the new version of bank transfer, I would recommend starting here:
https://docs.stripe.com/payments/bank-transfers/accept-a-payment
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
that's a different pattern than the request you shared previously, using Stripe-hosted Checkout
What is going wrong with that request?
req_z2pbsncY8rx5lT is a call to POST /v1/payment_intents
the curl request you just sent over is to /v1/checkout/sessions
This curl is from your bank transfer doc that you have sent
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
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
If you don't need Stripe Invoicing and you don't need the frontend components (Payment Element), then this is likely what you want:
https://docs.stripe.com/payments/bank-transfers/accept-a-payment?payment-ui=direct-api