#wagamumma_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1344982285065130026
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- wagamumma_best-practices, 20 hours ago, 15 messages
- wagamumma_code, 22 hours ago, 89 messages
๐ happy to help
what do you want to turn off exactly?
ok
when you click on the 3 dots next to Link in the dashboard link you provided
you can choose to turn off Link for the Express Checkout Element
ah i see ok , weird you'd think turning it off would just disable all of those but thanks that helps a lot
does it take a while to update as even removing it there it's still showing on the page
would you mind sharing the page where you're seeing Link?
I'm not sure how you're integrating? are you using Connect?
its using element and express element
in chrome/edge its showing the link button still
taking a look please give me a couple of minutes
ok thanks
hi! I'm taking over this thread.
hi
your goal is to disable Link from the Express Checkout Element?
yes, i've tried turning it off totally in dashboard and unticking it in the supported integrations but it's still there
that's odd. but note that you can disable Link with code: https://docs.stripe.com/js/elements_object/create_express_checkout_element#express_checkout_element_create-options-paymentMethods
@warped ginkgo since you're using the deferred intent creation flow you need to pass PMTs
If you collect payments before creating an intent, then list payment methods in the paymentMethodTypes attribute on your Elements provider options.
const options = {
mode: 'payment',
amount: 1099,
currency: 'gbp',
// Customizable by using the Appearance API.
appearance: {/.../},
paymentMethodTypes:["apple_pay","google_pay","paypal"],
paymentMethodOrder: ["apple_pay","google_pay","paypal"],
};
I'm not sure what I'm doing wrong as there are no examples but adding paymentMethodTypes just makes it not load at all and error?
paymentMethods: { link: "never" } for the Express Checkout Element.
actually I think there's an easier way to do that which respects your dashboard configuration by passing
paymentMethodConfiguration : "pmc_1QhthEIDAO7vvncvil00v1pA"
i've tried both and neither remove it ๐ฆ
const options = {
mode: 'payment',
amount: 1099,
currency: 'gbp',
// Customizable by using the Appearance API.
appearance: {/.../},
paymentMethodConfiguration : "pmc_1QhthEIDAO7vvncvil00v1pA",
paymentMethodOrder: ["apple_pay","google_pay","paypal"],
};
// Set up Stripe.js and Elements to use in checkout form.
const elements = stripe.elements(options);
// Create and mount the Express Checkout Element
const expressCheckoutElement = elements.create('expressCheckout',elements);
expressCheckoutElement.mount('#express-checkout-element');
paymentMethods: { link: "never" }, on this one i've tried link like that and "link":"never" incase it needed quotes but neither fixed it
in all honesty if the paymentMethodOrder bit worked it'd be fine if i could have link last so it's hidden and not the first option, but the paymentMethodOrder doesn';t seem to work in this, it works fine in the main element checkout though
you need to set paymentMethods: { link: "never" } when calling elements.create('expressCheckout', ...)
like:
const options = {
paymentMethods: { link: "never" }
// other things
};
elements.create('expressCheckout', options);
is this not doing the same thing already?
const options = {
mode: 'payment',
amount: 1099,
currency: 'gbp',
// Customizable by using the Appearance API.
appearance: {/.../},
paymentMethodConfiguration : "pmc_1QhthEIDAO7vvncvil00v1pA",
paymentMethodOrder: ["apple_pay","google_pay","paypal"],
};
// Set up Stripe.js and Elements to use in checkout form.
const elements = stripe.elements(options);
i'll try it that way instead though
not at all