#wagamumma_best-practices

1 messages ยท Page 1 of 1 (latest)

hollow flumeBOT
#

๐Ÿ‘‹ 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.

magic iris
#

๐Ÿ‘‹ happy to help

warped ginkgo
#

i turned off "link" in the dashboard but it still shows in the express part?

magic iris
#

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

warped ginkgo
#

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

magic iris
#

would you mind sharing the page where you're seeing Link?

#

I'm not sure how you're integrating? are you using Connect?

warped ginkgo
#

its using element and express element

#

in chrome/edge its showing the link button still

magic iris
#

taking a look please give me a couple of minutes

warped ginkgo
#

ok thanks

hollow flumeBOT
graceful forum
#

hi! I'm taking over this thread.

warped ginkgo
#

hi

graceful forum
#

your goal is to disable Link from the Express Checkout Element?

warped ginkgo
#

yes, i've tried turning it off totally in dashboard and unticking it in the supported integrations but it's still there

graceful forum
magic iris
#

@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.

warped ginkgo
#

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?

graceful forum
#

paymentMethods: { link: "never" } for the Express Checkout Element.

magic iris
#

actually I think there's an easier way to do that which respects your dashboard configuration by passing
paymentMethodConfiguration : "pmc_1QhthEIDAO7vvncvil00v1pA"

hollow flumeBOT
warped ginkgo
#

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

graceful forum
#

you need to set paymentMethods: { link: "never" } when calling elements.create('expressCheckout', ...)

#

like:

const options = { 
  paymentMethods: { link: "never" }
  // other things
};

elements.create('expressCheckout', options);
warped ginkgo
#

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

graceful forum
#

not at all

warped ginkgo
#

ah ok

#

ok that's fixed it great thanks!