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

Allow payment method terms to be hidden or customizable #3680

Open
kaushikasomaiya opened this issue Dec 26, 2024 · 2 comments
Open

Allow payment method terms to be hidden or customizable #3680

kaushikasomaiya opened this issue Dec 26, 2024 · 2 comments

Comments

@kaushikasomaiya
Copy link
Contributor

9178567-zen

By providing your card information, you allow "name of business" to charge your card for future payments in accordance with their terms.

Merchants might want to display the terms their own way. I am not too sure but it seems it might be possible to control the visibility of the terms by adjusting the terms object values if it is not possible to allow text customization. This way merchants can customize and display their terms by other ways. (for instance hooking custom text below the checkout button)

@ara303
Copy link

ara303 commented Jan 10, 2025

Just adding my 👍 to this.

It's nitpicky but terms text is awkwardly worded. It says "in accordance with their terms," but so far as the customer's concerned shouldn't it be "our" terms? It refers to the store by name but then as if it's an external entity. I don't think Stripe provides a way to modify the wording but removing the text is possible.

In theory this should be as simple as attaching card = 'never' to terms, but I looked exhaustively and couldn't find any convenient way to amend that object.

I also tried to work backwards using what is exposed as part of the Elements Appearance API but that seems to be strictly for working with style, couldn't change this through that.

Could a filter be added so we can amend the options, please?

@kaushikasomaiya
Copy link
Contributor Author

So I think one solution could be adding a custom parameter to force disable the terms in

which can be modified through the filter wc_stripe_upe_params

and add some logic here to accommodate that

function shouldIncludeTerms() {

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

No branches or pull requests

2 participants