#denjaland-elements
1 messages ยท Page 1 of 1 (latest)
why do you require it a second time when calling confirmPayment()
we need the cardholder/payment method name, which might not be the same as the customer-level name
So it seems I really need to provide the redundant data in the confirmPayment() on the js SDK?
I would say yes
okay, but it might not be the same. Not sure why you don't fall back to what you have on the customer - if the payment fails because of a validation by the acquirer, you can still ask for it then, no?
payment elements don't even prefill the data from the customer for the created intent ๐ฆ
the name is not validated by the issuer
exactly - so why do you need it?
collecting the name is just so there's more context and information to help in the case of a dispute or detect fraud
it's an opinionated default that it's a useful thing to collect
I feel like I'm getting more overhead from the payment elements like this to be honest
at least the elements should prefill data from the account, no?
now the user has to enter the data
or I as a developer need to do something additional to prefill what you already have ๐
there are a lot of things that "should" work that we might not have implemented yet!
but yeah as far as I know you can't prefill anything into the PaymentElement
๐ฆ
you can disable fields instead and pass the information directly, that's about it
For me, even though the intent is definitely good, the payment elemens seem to be a step back functionality wise - it feels as if it was released too early. But again: like the direction you're potentially moving to
to be clear, it's our default because it's a drop in solution to quickly take payments across a variety of methods but there are many use cases where it might not suit, and you can switch to using the lower level split elements in a more custom form instead, you don't have to use it
I know that...
well it's not a step back, since nothing was really removed
I agree with that, but you just have quite some missed opportunities...
you have exactly the same functionality you always had, but now there's additionally this options
I mean I completely agree with you
saved payment methods on the customer account are not presented to the user checking out for instance
look at the other thread Valentin-element for instance
aha - will have al ook into that one as well
everything is under development so will get better over time!