#porton-finalize

1 messages · Page 1 of 1 (latest)

viral tangle
#

Hi 👋 this looks like a beta feature, so I'm too familiar with this.

Looking at that error though, it looks like it would be thrown by the Stripe JS library. Did you initialize Stripe JS as shown near the beginning of Step 4? (including the beta and apiVersion params)

pastel forge
#

I did:

const [stripePromise, setStripePromise] = useState(null as Promise<Stripe | null> | null);
...
const stripePromise_: Promise<Stripe | null> = loadStripe(stripePubkey, {
                  betas: ['server_side_confirmation_beta_1'],
                  apiVersion: '2020-08-27;server_side_confirmation_beta=v1',
                });
...
setStripePromise(stripePromise_);
...
<Elements stripe={stripePromise} options={options}>
#

The error is deeper: grep updatePaymentIntent doesn't find it in Stripe Node libraries!

viral tangle
#

That seems to be a client-side function, so it wouldn't be in our Node library (server-side) but rather the Stripe JS library.