#mahraamir

1 messages · Page 1 of 1 (latest)

slate tartanBOT
thorn coyote
#

hi! not sure I follow, can you explain in more detail/examples?

elder wren
#

well sure

#

we have paymemt page where we have different payment methods based on customer selected payment methods, like if they are using Card with stripe gateway and they can have ACH with some other gateway and so on

#

so our requirement is if customer has stripe gateway and wants to use ACH then we should offer him Stripe Financial Connection while for other integratations we are offering Plaid

#

so if our customer has Stripe gateway and wants to take payments from his customer via ACH then if their customer click on ACH Debit we should open Stripe Financial connection element

thorn coyote
elder wren
#

well I am using almost this thing

#

see if I click on ACH Debit I am showing SF options in test mode

thorn coyote
#

SF?

elder wren
#

Stripe Financial 🙂

thorn coyote
#

it's not called that, but ok.

#

and "this thing" == the PaymentElement component, right?

elder wren
#

yes

#

but problem is i am loading this all on click event

thorn coyote
#

Not sure I follow what the problem is.

#

if you want to integrate ACH and Financial Connections without the PaymentElement, you can

#

that's what the guide linked above does; the UI would just be a button the customer clicks and then you call stripe.collectBankAccountForPayment , which will present the UI for ACH modally.

elder wren
#

because I am loading all js for the elment on click event

#

the event.PreventDefault() function acatually not disabling the existing form

#

instead calling element confirmPayment, my other form is submitted.

thorn coyote
#

ok. Well that seems like a very specific question about existing code so not sure I can answer without for example seeing the code and a page that replicates the problem that we can test with.

elder wren
#

function loadStripeFinancialConnection(){
$('.preloaderRR').show();
var data = "function=setupPaymentIntent&"+$("#paymentform").serialize();
$.ajax({ url: "/ajaxFunctions.php",
context: document.body,
type:"POST",
data:data,
dataType: "json",
success: function(sfc_json){
loadStripeFinancialElement(sfc_json);
document.getElementById('paymentform').disabled = true;
$('#sfc_element').show();
$('.preloaderRR').hide();
}
});//end ajax*/
}

shadow hamlet
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

#

I re-read the whole thread multiple times and I don't understand what you're trying to do, sorry. What's the problem with just using Stripe Payment Element and PaymentIntents?

elder wren
#

Sorry vanya I will contact you again, I am called for some live issues in the system.