#afenster

1 messages ยท Page 1 of 1 (latest)

errant salmonBOT
random scroll
#

Pulling in your additional context as that changes the answer:

Especially the calls made using Stripe.js. I'm using the latest versions of stripe-js and react-stripe-js. But the responses I get from Stripe are version 2016 respnnses.

deep stream
#

Thank you. If I want to pass specify the latest version of Stripe.js in the options, what value do I provide? The documentation just says I pass in a string. Is the version just '2022-08-01' ?

random scroll
#

Correct, there is no way to pass in a value like latest, you must explicitly tell us which API version that you would like to use by providing it as a string. Yes 2022-08-01 is an example of how to represent our current latest version.

deep stream
#

Thank you. Your team has been very helpful.

#

Still not entirely clear. I'm looking at your sample application for Stripe Payment Element. It has this line:

import {
PaymentElement,
useStripe,
useElements
} from "@stripe/react-stripe-js";

const stripe = useStripe();
const elements = useElements();

stripe.retrievePaymentIntent(clientSecret)

Where do I specify the version? useStripe() takes no parameters. I tried substitututing Stripe()

random scroll
#

I'm not sure off-hand how to do that via useStripe, looking to see what I can find.