#kilian_unexpected

1 messages ¡ Page 1 of 1 (latest)

past ridgeBOT
#

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

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

last socket
#

Hello, what Stripe surface to you take payments with? Checkout? Elements? Invoices? etc.

agile moth
#

PaymentElement from @stripe/react-stripe-js

#

We are using SetupIntents as well (mode: setup)

last socket
#

Gotcha, and are you creating the Payment Element first or the SetupIntent first?

#

Can you send me either your code for SetupIntent creation or your code for initiating the Payment Element, whichever comes first in your process?

agile moth
#

Payment Element gets created first, its submit function then reates the SetupIntent

#
<Elements
      stripe={stripePromise}
      options={{
        mode: 'setup',
        currency: 'eur',
        locale: 'de',
        appearance: {
          theme: 'flat',
          rules: {
            '.Input': {
              backgroundColor: '#fff',
              border: '0.5px solid #e0e0e0',
              boxShadow: '0px 0px 29px rgba(0, 0, 0, 0.05)',
              borderRadius: '50vh',
              lineHeight: '60px',
              padding: '0 15px',
              fontSize: '18px',
            },
          },
        },
      }}>
      <CheckoutForm />
    </Elements>
last socket
agile moth
#

Correct (German but Aktiv => Active)

last socket
#

Can you send me the ID of a SetupIntent that you created? (si_1234)

#

I am not immediately sure what this could be but I have an idea of how to look in to it

agile moth
#

There is no SI yet, it gets created when the user confirms the PaymentElement.
Since the Element never shows PayPal, that can't happen

last socket
#

Right, that was more of a way that I could get to your account logs from just before it. If you can send me your account ID I can take a look that way (acct_1234)

agile moth
#

acct_1LuCsZCtMhNtiuzX Should be the correct one

last socket
#

Thank you

#

Ah, it looks like PayPal doesn't support setup_future_usage=off_session which is implied by setup mode here.

#

If you expand that paypal setting in your dashboard, do you see a recurring payments setting that you can turn on? I think it may only be visible in live mode

agile moth
#

It is set to off. Should it be activated for off_session?

last socket
#

Yes

#

If you turn that on, it should start showing up in setup mode for you

agile moth
#

Okay, it is now Pending Confirmation. I assume that is on PayPal's Settings page?

last socket
agile moth
#

PayPal always showed up in Test Mode, the PayPal Test Mode settings page didn't even want an account

last socket
#

Whoops right. I am honestly not sure if there is a way to speed this up in prod for you. If you reach out to our support team they may be able to help you or at least confirm that it should activate after some wait time https://support.stripe.com/?contact=true