#paulc7053_api

1 messages ยท Page 1 of 1 (latest)

inland vectorBOT
#

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

final light
#

hello

sour compass
#

hi there!

final light
#

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);
};`
sour compass
#

is everything working? the only issue is that you don't see the Link button?

final light
#

Yes, everything works as expected, besides the Link button showing u

#

up*

sour compass
#

can you share a screenshot, or better a link to reproduce the issue?

final light
#

sorry

#

yes

#

2 minute splease

sour compass
#

give me a few minutes

final light
#

surer

#

sure*

inland vectorBOT
barren fulcrum
#

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?

final light
#

hello

#

no, it doesnt show up

#

have you looked at the link?

barren fulcrum
#

I have.. I don't see link either..

final light
#

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

barren fulcrum
final light
#

yes, 1 sec

#

yes it seems to work now

#

how is this different than the expressCheckoutOptions

barren fulcrum
#

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

final light
#

so expressCheckoutOptions allows you to select a sub-array of the already specified options within options?

barren fulcrum
#

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

final light
#

so you're saying it shows up but wont work?

barren fulcrum
#

It should work

#

I'm just saying it didn't show up prior due to above reason

final light
#

Ah alright

#

Also, do you maybe know when paypal will be supported ?

barren fulcrum
final light
#

Got it!

#

Thanks a lot!

#

One last question: the 'card' option will always include apple pay/ google pay as well, correct?

barren fulcrum
#

Correct

#

These wallets don't have a separate payment method type

final light
#

Got it

#

thanks a lot!