#gorleg

1 messages ยท Page 1 of 1 (latest)

feral nymphBOT
#

Hello! We'll be with you shortly. 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.

  • gorleg, 4 days ago, 22 messages
ebon vapor
covert roost
#

Do you know if there's a way to do this using the react-stripe-js package? I've tried setting it in the options param for the <Elements> component, but it errors out saying no overload contains onBehalfOf

#

(similar issue when trying to update the elements, a la elements.update({ onBehalfOf: proId }))

ebon vapor
#

Hm, not sure offhand, let me see if I can find that.

#

I'm pretty sure you'll want to set it in your options variable, that is being passed into this line:
<Elements stripe={stripePromise} options={options}>

Just making sure I'm understanding, is it our provided type support that looks like it's leading to the error about onBehalfOf not being supported?

#

If so, can you confirm what version of react-stripe-js and stripe-js you're using in your project?

covert roost
#

sure one sec

#
"@stripe/react-stripe-js": "^2.1.0",
"@stripe/stripe-js": "^1.54.0",
feral nymphBOT
ebon vapor
covert roost
#

ah gotcha, that makes a ton of sense