#paulc7053_api
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/1288473530387795980
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello
hi there!
are you following this documentation? https://docs.stripe.com/elements/express-checkout-element
yes
here's the entire component
`const Express = ({
isExpressCheckoutLoading,
setIsExpressCheckoutLoading,
country,
language,
currency,
price,
...props
}) => {
const stripe = useStripe();
const elements = useElements();
const router = useRouter();
const [errorMessage, setErrorMessage] = useState(null);
const onReady = ({ availablePaymentMethods }) => {
if (!availablePaymentMethods) {
setIsExpressCheckoutLoading(true)
} else {
setIsExpressCheckoutLoading(false);
};
};
const onClick = ({ resolve }) => {
const options = {
emailRequired: true,
};
resolve(options);
};`
is everything working? the only issue is that you don't see the Link button?
can you share a screenshot, or better a link to reproduce the issue?
give me a few minutes
Hi there, I'm taking over..
Give me a few to take a look
if you set link to always , do you see it show up?
I have.. I don't see link either..
yeah.. is not there
but I don;t know why
also, these are the passed options
const options = { mode: 'subscription', amount: 0, currency: currency, appearance: { variables: { borderRadius: '36px', fontSizeBase: '16px', } }, setupFutureUsage: "off_session", };
I know paypal ECE doesnt work with subscription mode, but link should
Can you try passing paymentMethodTypes parameter? https://docs.stripe.com/elements/express-checkout-element/accept-a-payment#additional-options
It should be an array of string values, like ['card','link']
yes, 1 sec
yes it seems to work now
how is this different than the expressCheckoutOptions
with paymentMethodTypes you're explicitly specifying the payment methods that'd be supported.
expressCheckoutOptions allows you to control visibility if payment method type is already supported
so expressCheckoutOptions allows you to select a sub-array of the already specified options within options?
You could think of it as more of a client-side conditional.
Coming back to the issue here though.. I think link doesn't work with automatic payment methods for this combination of subscription mode + defer intent yet. When you don't pass paymentMethodTypes explicitly, it tries to load the activated payment methods from the Stripe account automatically
so you're saying it shows up but wont work?
I don't unfortunately.. You can always check with our support team via
https://support.stripe.com/?contact=true