#paul_paypal-ece
1 messages ¡ Page 1 of 1 (latest)
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.
- paulc7053_unexpected, 1 hour ago, 50 messages
đ 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.
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>
);
};`
Hello, looking in to this. Is this test or live mode?
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)
Gotcha. For live mode, I think you need to enable PayPal for recurring payments to be able to save it https://dashboard.stripe.com/settings/payment_methods
Looking in to what may be happening in live mode here
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.
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.
Hmm.. but then why doesnt it also show up when I change the mode to payment?
when would that be?
Hello
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
Right now you just can't support Paypal in that flow just yet
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)
We do have this guide for a more manual PayPal + subscriptions flow https://docs.stripe.com/billing/subscriptions/paypal
Ah, this seems to be good enough. If I understand it correctly, after skimming it - I need to create the PayPal button itself & then follow the docs for handling the session + serverside
You don't really need to make a Paypal button, you can use PaymentElement for example
but that would come with a predefined 'grid' UI + other payment methods, no?
Not if you force just Paypal as the payment method type