#paulc7053_api

1 messages ¡ Page 1 of 1 (latest)

timber remnantBOT
#

👋 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/1233382435530604604

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

hard ruinBOT
ripe depot
#

Hi, let me help you with this.

#

Could you provide a bit more context?

pine copper
#

Hello!

#

Sure

#

I want to display Apple Pay/GPay and Paypal express checkout buttons, in a react app

#

All besides Paypal do show up

#

I do know there is a requirement that you have to apply to be able to show the Paypal button too

#

And I have been accepted, but the button still doesnt show up

ripe depot
#

Do you have a URL where I can reproduce the issue?

pine copper
#

1 second please

#

How I pass the options:

#

<ExpressCheckoutElement onClick={onClick} onReady={onReady} onConfirm={onConfirm} options={expressCheckoutOptions} /> { errorMessage && <ErrorMessage message={errorMessage} /> } </motion.div>

#

and const expressCheckoutOptions = { layout: { overflow: "never" }, buttonHeight: 50, paymentMethodOrder: ["google_pay", "apple_pay", "paypal"] };

pine copper
#

Sorry

#

yes, please try again

ripe depot
#

Thanks. Looking...

pine copper
#

Thanks!

echo horizon
#

hi! I'm taking over this thread.

pine copper
#

Hello

echo horizon
#

give me a few minutes to catchup.

pine copper
#

alright

echo horizon
#

Create a PayPal Sandbox account to test your integration.

pine copper
#

All but the last

#

I thought it should show up regardless

#

The sandbox account would be needed iv I want to complete the test payment

#

My problem is that it just doesnt show up

echo horizon
#

hum actually not sure if it's required, let me double check

#

The sandbox account would be needed iv I want to complete the test payment
My problem is that it just doesnt show up
yes I think you are right

pine copper
#

sure

echo horizon
#

which country are you in? the documentation mention this:

Amazon Pay and Paypal are only displayed if they are available in the selected business country.

pine copper
#

Romania/Netherlands

echo horizon
pine copper
#

I should be okay

echo horizon
pine copper
#

acct_1NlxwiJ4ILijjURS

echo horizon
#

looking into this

#

I just noticied in the code you shared you didn't set a currency or price in the options?

pine copper
#

No, I do

#

but that's just the smallest abstraction

#

I set it in the Provider I think

echo horizon
#

can you share your full code you are using currently?

#

note that if I remove the amount/currency from my own test code, then paypal disappears.

pine copper
#

`const options = {
mode: 'subscription',
amount: totalPrice * 100,
currency,
appearance: {
variables: {
borderRadius: '36px',
}
},
setupFutureUsage: "off_session",
};

return (
    <Elements stripe={stripePromise} options={options}>
        <ElementsConsumer>
            {({ stripe }) => {
                if (!stripe) {
                    return <Spinner />;
                };
                return (
                    <>
                        <ExpressCheckout {...props}/></>`
echo horizon
#

oh, this is for a Subscription?

pine copper
#

yes

echo horizon
pine copper
#

I think I have done that too

echo horizon
#

then I don't know. I recommend asking Stripe support, they will have more time to investigate the issue: https://support.stripe.com/contact
make sure to include all relevant information (full code, reproduction link, etc.)

pine copper
#

how can I check iv it's enabled?

echo horizon
pine copper
#

Okay, Im talking to them

#

Thanks!