#thefyrewire-orders
1 messages · Page 1 of 1 (latest)
hi! as far as I know it should work if you're using the latest version of stripe-node, support for the new API was added in 9.0.0 which is a major version change(https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#900---2022-05-09) It should include the TS bindings I think
Duh, I should've checked the versions first. I was on 8.207 😂 Thanks for the quick response!
Sorry, me again! Server is all good, but in React it seems processOrder doesn't exist. I that checked both @stripe/react-stripe-js and @stripe/stripe-js were up to date
"@stripe/react-stripe-js": "^1.8.0",
"@stripe/stripe-js": "^1.29.0",
Are you passing the apiVersion & betas parameters when initialising loadStripe?
const stripePromise = loadStripe('pk_test_xxx', {
betas: ['process_order_beta_1'],
apiVersion: '2020-08-27; orders_beta=v3'
});
I am yes, though this seems to be a missing type definition
Looking at the repo, we don't appear to have added the types yet: https://github.com/stripe/stripe-js/tree/master/types/stripe-js
I'd recommend opening an issue there
Just looked through existing branches to see if anyone had added it already but doesn't seem like it. Guess I'll open an issue, thanks!
Sure, np!