#nihilist_bank-transfers

1 messages Β· Page 1 of 1 (latest)

frosty carbonBOT
hallow haloBOT
#

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.

frosty carbonBOT
#

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

olive rampart
#

πŸ‘‹ happy to help

#

would you mind elaborating please?

lavish snow
#

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

olive rampart
#

unless it's confirmed you can't

lavish snow
#

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

olive rampart
lavish snow
#

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

olive rampart
#

no

lavish snow
#

ok tks for your help

olive rampart
#

you can pass confirm on the server side as a separate step, but until you confirm you can't get the transfer information

lavish snow
#

ok so can i confirm a payment intent with customer_balance as an option using confirm api after payment intent is created?

olive rampart
#

yes

#

you call the /confirm API

lavish snow
#

what params should i use. I used confirm('customer_id',payment_method:{customer_balance:{}}) it doesn work

olive rampart
#

you shouldn't pass payment_method and it's not customer_id you should pass the PaymentIntent ID

#

pi_xxxx

frosty carbonBOT
lavish snow
#

ah sr i put confirm('payment_intent_id',payment_method:{customer_balance:{}}) it doesn work

analog depot
frosty carbonBOT
#

nihilist_bank-transfers

lavish snow
#

Stripe::PaymentIntent.confirm('pi_3PFw7hA7e6a8DElJ14U3El37',payment_method:{customer_balance:{}})

analog depot
#

Use the Payment Intents API to accept bank transfer payments.

lavish snow
#

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' } } )

analog depot
#

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.

lavish snow
#

Stripe::PaymentIntent.confirm('pi_3PFwHZA7e6a8DElJ00NdWp9H',payment_method:{customer_balance:{}},confirmation_method:'manual') this doesn't work as well

analog depot
#

You need to add confirm: true and confirmation_method: 'manual' on creation

#

Not confirmation

hallow haloBOT
lavish snow
#

since my test user has a default valid stripe credit card the payment just automatically succeeded instead of giving me display_bank_transfer_instructions

analog depot
#

Then omit card from payment_method_types

lavish snow
#

but i want my user to have 2 payment options (bank transfer and credit card) πŸ˜… is it possible to support both