#Shivam Kumar

1 messages · Page 1 of 1 (latest)

short ingotBOT
late dagger
#

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");

wintry atlas
#

Hi there, is this the question of how to use ACH debit payment method?

late dagger
#

yes

wintry atlas
#

OK. Do you encounter any problem in your integration?

late dagger
#

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

wintry atlas
#

OK, the actual bank list will display in live mode, not test mode.

late dagger
#

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?

wintry atlas
#

Can you elaborate more? which stripe popup are you talking about? and what is the get started button?

late dagger
#

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.

wintry atlas
#

I have difficulty in understanding you, is there an UI design diagram that you can share with me?

late dagger
#

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

wintry atlas
#

I still don't really you. What do you mean by i want US Banks like this ?

late dagger
#

but i getting this type

wintry atlas
#

Ok. As I explained earlier, the actual bank list is displayed in live mode, but you are currently running your integration in test mode

late dagger
#

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");

placid osprey
#

you cannot achieve that (i.e. showing a list of banks) in test mode

late dagger
#

what i pass payment element

#

my code is right .

late dagger
#

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

wintry atlas
#

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.

late dagger
#

yes when user click on agree then i want show add bank dialog.

wintry atlas