#Vane - spinner

1 messages · Page 1 of 1 (latest)

manic hinge
#

Hello. Looking

#

Where are you seeing that spinner exactly?

viscid hornet
#

on codepen, just pasted the css, html and js

#

for the spinner only that is

manic hinge
#

Got it. For that example, I'm not sure exactly what it's supposed to look like but that does look a bit off

#

I can ask the team about it

#

I probably won't get an answer in time to get back to you though

viscid hornet
#

Uh its fine

#

I'll create my own spinner

#

I do have another question though

#
const stripe = Stripe('pk');
async function init(){
    const { clientSecret } = await fetch("scripts/payments.php", {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify(bucksAmt),
}).then((r) => r.json());

right now im posting only bucksAmt which is a number, how can I post more variables

manic hinge
#

What endpoint are you POSTing to?

#

Is that your own server?

viscid hornet
#

yup

manic hinge
#

Oh that's not a stripe question but a JS question. We can't help much with that here as we only provide support with the Stripe API, but check here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify

The JSON.stringify() method converts a JavaScript object
or value to a JSON string, optionally replacing values if a replacer function is
specified or optionally including only the specified properties if a replacer array is
specified.

viscid hornet
#

thanks