We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whenever I click on the button that triggers and opens the pop up where the credit card details are entered, I get this CORS error:
I don't know if it's specific to Stripe, but I get seem to find a workaround.
This is my implementation of the code:
const handleToken = async () => { const response = await axios({ method: 'post', url: 'https://cors-anywhere.herokuapp.com/https://accessmexico.herokuapp.com/charge', headers: { 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Credentials': 'true' } }); const { status } = response.data; console.log('Response:', response.data); if (status === 'success') { toast('Success!', { type: 'success' }); } else { toast('Something went wrong', { type: 'error' }); } };
<StripeCheckout token={() => handleToken()} stripeKey="pk_test_[key]" amount={parseInt(cleanMonto) * 100} name="Reservacion Access" locale="auto" currency="MXN" label="Reservar" />
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Whenever I click on the button that triggers and opens the pop up where the credit card details are entered, I get this CORS error:
I don't know if it's specific to Stripe, but I get seem to find a workaround.
This is my implementation of the code:
The text was updated successfully, but these errors were encountered: