#paul_paypal-ece

1 messages ¡ Page 1 of 1 (latest)

spice lionBOT
hollow domeBOT
#

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.

spice lionBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1254837999355826176

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

thorny jungle
#

Here's the relevant code

#

`export function StripeInlineExpressCheckout({
...props
}) {
const options = {
mode: 'subscription',
amount: Math.round((totalPrice * 100) * 100) / 100,
currency,
appearance: {
variables: {
borderRadius: '36px',
}
},
setupFutureUsage: "off_session",
};

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

};`

mild bronze
#

Hello, looking in to this. Is this test or live mode?

thorny jungle
#

Hello!

#

Both

#

And testing on https

#

const ExpressCheckout= () => (.... skipping a lot) <ExpressCheckoutElement onClick={onClick} onReady={onReady} onConfirm={onConfirm} options={expressCheckoutOptions} />

#

Also, both Apple Pay and Google Pay work as expected (I have been approved to accept subscriptions trough Paypal)

mild bronze
#

Looking in to what may be happening in live mode here

thorny jungle
#

Yes, and I checked with your support colleagues. Everything seems to be alright

mild bronze
#

Gotcha, thank you for checking. I am not immediately sure what might be happening here. I will check with my colleagues and get back to you.

thorny jungle
#

Thanks!

#

Any updates?

mild bronze
#

My apologies for dropping off of this. It looks like the ECE does not support PayPal subscriptions at the moment though it is on the roadmap. I don't have any ETA on that unfortunately.

#

When that functionality does release, you shouldn't need to change your code as far as I can see, so if this flow works on your page with Apple/Google Pay, it should start working with PayPal once we support it.

thorny jungle
#

Hmm.. but then why doesnt it also show up when I change the mode to payment?

spice lionBOT
thorny jungle
#

Hello

round pier
#

paul_paypal-ece

#

Hey @thorny jungle! Unfortunately we don't have a good timeline to share. I'd recommend reaching out to our support team and they can keep you updated

thorny jungle
#

Hey!

#

Instead of hoping it gets released, what should I do?

round pier
#

Right now you just can't support Paypal in that flow just yet

thorny jungle
#

Is there any API that supports PayPal that is not out of the box ? i.e. not Checkout (because I want to customize the checkout experience with marketing material)

mild bronze
thorny jungle
round pier
#

You don't really need to make a Paypal button, you can use PaymentElement for example

thorny jungle
#

but that would come with a predefined 'grid' UI + other payment methods, no?

round pier
#

Not if you force just Paypal as the payment method type

thorny jungle
#

Ah, ifits just one method it displays the button

#

Okay, I'll try both methods right now!

#

Thanks a lot @mild bronze @round pier !