#nihilist_bank-transfers
1 messages Β· Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- nihilist_best-practices, 5 days ago, 5 messages
π 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/1239504352222384159
π Have more to share? Add more details, code, screenshots, videos, etc. below.
π happy to help
would you mind elaborating please?
are you referring to this https://docs.stripe.com/payments/bank-transfers/accept-a-payment?payment-ui=direct-api&invoices=without#web-complete-bank-transfer ?
yes but i want to separate the process of create and confirm a payment intent
but i'm not sure how to get funding instruction after creating a payment intent
unless it's confirmed you can't
so can i confirm with customer_balance as payment method on the server and get funding instruction?
or not
after i create the payment intent
yes that's what's explained here https://docs.stripe.com/payments/bank-transfers/accept-a-payment?payment-ui=direct-api&invoices=without#web-create-and-confirm-payment-intent
yes but it use the params confirm:true in create function. I don't want to set that option to true because i want to separate between 2 process create and confirm a payment intent. So is there a way to get funding instruction of payment intent after it's created with confirm:false
no
ok tks for your help
you can pass confirm on the server side as a separate step, but until you confirm you can't get the transfer information
ok so can i confirm a payment intent with customer_balance as an option using confirm api after payment intent is created?
yes
you call the /confirm API
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
what params should i use. I used confirm('customer_id',payment_method:{customer_balance:{}}) it doesn work
you shouldn't pass payment_method and it's not customer_id you should pass the PaymentIntent ID
pi_xxxx
ah sr i put confirm('payment_intent_id',payment_method:{customer_balance:{}}) it doesn work
Can you share the ID (req_xxx) of the API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
I suspect you will want confirmation_method: 'manual' if you want to re-confirm server-side after getting the funding instructions. I'd assume that works: https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirmation_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
nihilist_bank-transfers
Stripe::PaymentIntent.confirm('pi_3PFw7hA7e6a8DElJ14U3El37',payment_method:{customer_balance:{}})
The issue is mostly with your creation request: https://dashboard.stripe.com/test/logs/req_NqSnvuAvBfYHGp
Compare and contrast here: https://docs.stripe.com/payments/bank-transfers/accept-a-payment?payment-ui=direct-api&invoices=without#web-create-and-confirm-payment-intent
- Remove
setup_future_usageβ it's not supported: https://docs.stripe.com/payments/payment-methods/integration-options#additional-api-bank-transfers - You need to pass
payment_method_data[type]: 'customer_balance
oh sorry i think i sent you the wrong request, the correct one is here where i set payment_method_data type of customer_balance and only setup_future_usage for card payment type
Stripe::PaymentIntent.confirm('pi_3PFwHZA7e6a8DElJ00NdWp9H',payment_method:{customer_balance:{}})
FYI my function use to create payment intent is as below
Stripe::PaymentIntent.create(amount: 89000, currency: 'usd', customer: 'cus_Q4GIcPn9ufBbjA', payment_method_types:['card', 'customer_balance'], payment_method_options: { customer_balance: { funding_type: 'bank_transfer', bank_transfer: {type: 'us_bank_transfer'}, }, card: { setup_future_usage:'off_session' } } )
Did you try what I recommended? It works for me, I get a next_action hash on creation with the banking details
As described in the docs:
f the customer balance isnβt high enough to cover the request amount, the PaymentIntent shows a requires_action status. The response has a next_action field containing a type value of display_bank_transfer_instructions. The next_action[display_bank_transfer_instructions] hash contains information to display to your customer so that they can complete the bank transfer.
Stripe::PaymentIntent.confirm('pi_3PFwHZA7e6a8DElJ00NdWp9H',payment_method:{customer_balance:{}},confirmation_method:'manual') this doesn't work as well
You need to add confirm: true and confirmation_method: 'manual' on creation
Not confirmation
since my test user has a default valid stripe credit card the payment just automatically succeeded instead of giving me display_bank_transfer_instructions
Then omit card from payment_method_types
but i want my user to have 2 payment options (bank transfer and credit card) π is it possible to support both