#kennethpogi323
1 messages · Page 1 of 1 (latest)
That's just your publishable key, right? Publishable keys are meant to be publicly accessible - that's why we limit what kinds of requests they're actually able to do
my secret key also
heres the code i use
document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
});
const {error, paymentIntent} = await stripe.confirmCardPayment(
'<?= $paymentIntent->client_secret; ?>', {
payment_method: {
card: cardElement,
},
},
);
if(error) {
addMessage(error.message);