#mayadelasriveras
1 messages · Page 1 of 1 (latest)
Hi there 👋 how can we help?
when I run on my localhost it returns call error in a json
Can you provide more details? Where does the error appear? What is the actual error message? What are you trying to do?
i / Fetches a payment intent and captures the client secret
async function initialize() {
const { clientSecret } = await fetch("stripe.php", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ items }),
}).then((r) => r.json());
you there
Uncaught (in promise) SyntaxError: Unexpected end of JSON input
at stripe.js:22:20
at async initialize (stripe.js:18:28)
i need integrated
element payment
hello
Which line is throwing the error?
this file .js the front is error
body: JSON.stringify({ items }), this line
there
i no can display form
only pay button
I believe you need to specify a key-value pair here, similar to:
body: JSON.stringify({ someKey: items })
please i need what key
i need example
i not can display form complete
there is
what is the problem no can display form the fron end