#yandos666

1 messages · Page 1 of 1 (latest)

plain islandBOT
muted tangle
#

Hi there!

#

Yes that looks correct.

#

Does this work?

lethal tendon
#

no, let me give you the whole code to see if anything else is triggering it:

async function initialize() { elements = stripe.elements({clientSecret: '{{$secret}}'}); const paymentElementOptions = { layout: "tabs", billingDetails: { address: {'country':'never'} }, terms: { applePay: "never", card: "never", googlePay: "never", }, }; const paymentElement = elements.create("payment", paymentElementOptions); paymentElement.mount("#payment-element"); paymentElement.on('ready', function(event) { document.querySelector("#submit").classList.remove("invisible"); }); }

muted tangle
#

What doesn't work? Is there an error message? Can you share it?

lethal tendon
#

ergh idiot, i had console errors and didn't realise

#

Unrecognized elements.create('payment') parameter: billingDetails is not a recognized parameter. This may cause issues with your integration in the future.

#

maybe needs to be a child of fields?

muted tangle
#

You forgot the fields property

lethal tendon
#

Awesome, thanks for rubber ducking it @muted tangle !