#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/1233382435530604604
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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
Do you have a URL where I can reproduce the issue?
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"] };
Can you make it public?
Thanks. Looking...
Thanks!
hi! I'm taking over this thread.
Hello
give me a few minutes to catchup.
alright
did you follow the prerequists for Paypal that are mentioned here? https://docs.stripe.com/elements/express-checkout-element/accept-a-payment?client=react#prerequisites
Create a PayPal Sandbox account to test your integration.
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
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
sure
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.
Romania/Netherlands
This is the list of supported countries: https://docs.stripe.com/payments/paypal
I should be okay
can you share your account ID (acct_xxx)? it's at the top of this page: https://dashboard.stripe.com/settings/account
acct_1NlxwiJ4ILijjURS
looking into this
I just noticied in the code you shared you didn't set a currency or price in the options?
No, I do
but that's just the smallest abstraction
I set it in the Provider I think
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.
`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}/></>`
oh, this is for a Subscription?
yes
https://docs.stripe.com/billing/subscriptions/paypal
To start accepting PayPal subscriptions on Stripe, you need to enable PayPal recurring payments from the Dashboard.
I think I have done that too
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.)
we are not very familiar with the dashboard here, I recommend asking this to Stripe support directly: https://support.stripe.com/contact