My Stripe button isn't working. Here is the code:
import StripeCheckout from 'react-stripe-checkout';
export default function SignUpOne({ ... }) {
...
const onToken = (token) => {
console.log("onToken fired: ", token);
handlePost(token);
}
return(
...
<StripeCheckout
label='Start Your Free Trial'
// image='https://static.thenounproject.com/png/1259474-200.png'
name='Native Notify Sign Up'
description="It's free for 7 days. Then it's $29 / Month. Cancel anytime."
panelLabel="Sign Up"
currency='USD'
locale='auto'
stripeKey='pk_test_my-token'
token={onToken}
>
<Button
title="Sign Up"
color={"#06bd43"}
/>
</StripeCheckout>
)
}
Nothing is happening when I click the button. There should be a pop-up that appears on the screen.
What am I doing wrong?