#ubi
1 messages · Page 1 of 1 (latest)
function StripeElements(props: any) {
return (
<Elements
stripe={stripePromise}
options={{
mode: 'setup',
captureMethod: 'manual',
appearance: {
variables: {
colorPrimaryText: primary[500],
colorPrimary: primary[500],
},
},
paymentMethodCreation: 'manual',
}}
>
{props.children}
</Elements>
);
}
Hello there
that is what I have thus far, but it is not working, not sure what config I should be doing here
@light hill 
JS Error
The Elements Provider should wrap your checkout form which would contain Payment Element for instance
Ah you can't use mode: setup with capture_method: manual
Those things are not compatible as you aren't actually creating a payment here at all in mode: setup
actually, I added currency with that exact setup and it works 
the currency seems to be required
Ah yes currency indeed is required
Missed that
But yeah the capture_method won't do anything here since doesn't really make sense
But guess we don't actually error on that
the TypeScript typesepc needs some love
Yeah this stuff is relatively new. I'll take a look at that later and file some feedback
I tried to look for the source code to contriubte, but I cant find it
It is all within https://github.com/stripe/stripe-js