Closed atrauzzi closed 7 months ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale, would love to see it addressed!
I'll try contributing to this when I have time. I am looking to close some react js issues or my skills might go stale :-D Whom do I talk to about contributing?
Hey @atrauzzi -- apologies for not replying sooner, having missed the initial challenge for the Afterpay & Payment Element feedback at the end.
While you cannot currently hide the name
field of the address element, you can hide the name
field of the Payment Element. You can do this using the fields
option (ref):
fields: {
billingDetails: {
name: 'never',
}
},
Note the remark that when doing this, you'll need to provide the values from the hidden fields with confirmPayment
within billing_details
(ref), and you'll encounter an error if this is not provided.
As for the higher level feedback, thanks for sharing that! We're currently looking at ways to make the Payment Element and Address Element more flexible for different use cases and integration preferences.
I guess it's just the hassle of having to manage all that wiring then based on the type of payment selected. It would make more sense if the element could just re-design itself according to the bare minimum needs of the payment method selected?
In mode=billing
I'd agree, and have filed feedback internally to address that. The Shipping address name though isn't necessary the same name as the name for the payment.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Bad bot, not stale.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@brendanm-stripe Can we disable this bot?
Er...
What happened?
This is the default form that Stripe presents for Afterpay. Unfortunately, I can't create a payment intent server-side using the captured payment method without address information.
I would like to capture the address information prior to submitting the payment method to my server, but now when I try to make use of the Stripe Address element, I end up getting the "name" field twice!
As a sidenote: In general, the DX for the Afterpay element feels a bit disjointed, are we sure it can't be improved some? Perhaps just have the regular Stripe payment element incorporate these required fields instead of requiring me to splice it in? Would make for a much simpler experience, similar to Klarna.
Environment
No response
Reproduction
No response