Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New fields for the SEPA payment method #3475

Open
agenceKanvas opened this issue Sep 26, 2024 · 2 comments
Open

New fields for the SEPA payment method #3475

agenceKanvas opened this issue Sep 26, 2024 · 2 comments

Comments

@agenceKanvas
Copy link

Hi !

With the new version of the plugin and payment method, there are new fields that have appeared when the customer select the SEPA method.
The fields are for the address, as you can see here :
Capture d’écran 2024-09-26 à 10 33 59
The lines appear one after another.
I don't see a way to disable them. The customer already set an address in the billing field, I don't really get why he should add another one.
Is there a way to disable it ? Or at least add an option ?
Or could you tell me why they are here ?

Thanks a lot !

(last version of woocommerce, last version of wordpress, last version of stripe gateway :) )

@james-allan
Copy link
Contributor

Hi @agenceKanvas for filing this issue.

These fields are shown by Stripe itself. Just for a brief explanation, depending on the payment method, Stripe require certain information to create payment method information. For some payment methods it could just be a country (like Cards), others like SEPA require a full address.

Can you confirm if you're seeing this on the checkout page? I have taken a look on my own site and the fields on the checkout only include the IBAN but I can see these fields on the My Account → Payment methods → Add payment page.

@james-allan
Copy link
Contributor

Just for some additional dev information, these fields are shown by Stripe payment elements. We tell Stripe what information the checkout is going to collect via the code here. When we create the payment elements, we tell Stripe which fields they will need to be collect via the code here. ie if the checkout has a billing country field, tell Stripe not to collect a billing country (never vs auto).

The reason these fields are shown on the My Account → Payment methods → Add payment like I mentioned is because we don't tell Stripe what fields will be collected (see this logic) and so they display them.

I started working on a fix here: branch fix/3475-dont-collect-address-via-elements. More time needs to be spent working out what source of billing fields should be used in each context. eg on the Add payment method page do we use whether the customer has a billing address, or still whether the checkout will collect it? On the pay for order page, I think it makes sense to use the order's billing information etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants