#Fabien-bancontact-pm-js
1 messages · Page 1 of 1 (latest)
Hi, currently we are using https://github.com/ectoflow/vue-stripe-elements
It seems to me that it is the new Payment Element
Hmm, yeah that's not an official Stripe library. Just seems like a Vue wrapper around Stripe.js
Have you tried passing the bancontact parameter when using Stripe.js? https://stripe.com/docs/api/payment_methods/create#create_payment_method-bancontact
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
(Not sure if that'll work – realise it's not documented)
Yes, I did try to import the official stripe js library and use stripe.createPaymentMethod(type=bancontact) but it did not work. The stripe-js doc does not list bancontact as an option either. https://stripe.com/docs/js/payment_methods/create_payment_method
I watched that video https://www.youtube.com/watch?v=srGuWN807Mg
Which shows that he is using his own backend server to create the bancontact paymentMethod and not the stripe-js library.
Ah, got it. The Stripe.js reference isn't really clear about that
Have you seen the new Payment Element? https://stripe.com/docs/payments/payment-element
It has support for Bancontact (and various other local, payment methods) https://stripe.com/docs/payments/payment-methods/integration-options#payment-method-product-support
This is our recommended integration path now
I ran into that page but I was not sure if it applied to our usecase. Following your guidance, I am going to look into this.
The only little issue is that I assume that we would have to migrate our current card paymentMethod integration to the new element as well. It might be worth it anyway.
There'd be some upfront migration yes, but overall there'd be less code for you to maintain
There's a migration guide here: https://stripe.com/docs/payments/payment-element/migration
In that new workflow, do you know if we will be able to create the Payment Methods from our front end for Bancontact and Cards ?
Yep, the Payment Element will handle the creation of the Payment Method objects during confirmation of the associated Payment Intent