#Shivam Kumar
1 messages · Page 1 of 1 (latest)
i am using this code
var stripe = Stripe('{{ env('STRIPE_PUBLISHABLE_KEY') }}');
@php
$stripe = new \Stripe\StripeClient(env('STRIPE_SECRET_KEY'));
$paymentIntent = $stripe->setupIntents->create(
[
'customer' => 'cus_N8y2pVLDwruGL5',
'payment_method_types' => ['us_bank_account'],
'payment_method_options' => [
'us_bank_account' => [
'financial_connections' => ['permissions' => ['payment_method', 'balances']],
],
],
]
);
@endphp
var elements = stripe.elements({
clientSecret : '{{ $paymentIntent->client_secret }}'
});
var paymentElement = elements.create("payment");
paymentElement.mount("#payment-element");
Hi there, is this the question of how to use ACH debit payment method?
yes
OK. Do you encounter any problem in your integration?
no but how i add bank after stripe popup
@php
$stripe = new \Stripe\StripeClient(env('STRIPE_SECRET_KEY'));
$paymentIntent = $stripe->setupIntents->create(
[
'customer' => 'cus_N8y2pVLDwruGL5',
'payment_method_types' => ['us_bank_account'],
'payment_method_options' => [
'us_bank_account' => [
'financial_connections' => ['permissions' => ['payment_method', 'balances']],
],
],
]
);
@endphp
what i use in this code
OK, the actual bank list will display in live mode, not test mode.
actully i see this functionality in different site, i want to use this in my , but i can't figure how to trigger this stripe popup with only get started button ? can you help me?
Can you elaborate more? which stripe popup are you talking about? and what is the get started button?
this what i am implemented on my site, but i need all those banks on Get Started button on stripe window that is show on my first image.
I have difficulty in understanding you, is there an UI design diagram that you can share with me?
ok wait i will tell you
i want this stripe window, when i click on agree button i want US Banks
i want banks like this but i getting
I still don't really you. What do you mean by i want US Banks like this ?
but i getting this type
Ok. As I explained earlier, the actual bank list is displayed in live mode, but you are currently running your integration in test mode
okkkk
i want when user click on get started then i want show stripe connect bank pop-up then add bank
how i achieve
my code is :
var stripe = Stripe('{{ env('STRIPE_PUBLISHABLE_KEY') }}');
@php
$stripe = new \Stripe\StripeClient(env('STRIPE_SECRET_KEY'));
$paymentIntent = $stripe->setupIntents->create(
[
'customer' => 'cus_N8y2pVLDwruGL5',
'payment_method_types' => ['us_bank_account'],
'payment_method_options' => [
'us_bank_account' => [
'financial_connections' => ['permissions' => ['payment_method', 'balances']],
],
],
]
);
@endphp
var elements = stripe.elements({
clientSecret : '{{ $paymentIntent->client_secret }}'
});
var paymentElement = elements.create("payment");
paymentElement.mount("#payment-element");
you cannot achieve that (i.e. showing a list of banks) in test mode
ok but i don't understand how to open stripe connect pop on get started button
i read docs but don't understand.
after using live key i am getting this result. please anyone help me
i want this type result how i achieve this
I think I know what you want to achieve
You are currently using PaymentElement which embed the bank list in its UI. But you want to show the bank list in a dialog instead.
yes when user click on agree then i want show add bank dialog.
You should use stripe.collectBankAccountForPayment() in your frontend application. You can refer to this doc for the full integration https://stripe.com/docs/payments/ach-debit/accept-a-payment?platform=web&ui=API