#ionu_code

1 messages ¡ Page 1 of 1 (latest)

gloomy sageBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1328802878936322120

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

violet parrot
raven lotus
#

Hi, is this beacuse you're collecting these details already on your end?

violet parrot
#

yes

#

hi

raven lotus
violet parrot
#

ok, great. I think that is what I am looking for, i will give it a try

#

thanks

raven lotus
#

Sure!

violet parrot
#

options = {
mode: 'payment',
amount: 10000,
currency: 'eur',

            appearance: {
                theme: 'flat',
            },
            fields: {
                billingDetails: 'never' ,
            },
            capture_method: 'automatic', // Set to 'automatic' for immediate capture / this needs to come from the backend (free trial will be manual)
        };

it looks like this now. I am missing something

raven lotus
#

Can you share your Elements creation code?

violet parrot
#

let options;
options = {
mode: 'payment',
amount: 10000,
currency: 'eur',

            appearance: {
                theme: 'flat',
            },
            fields: {
                billingDetails: 'never' ,
            },

           
            capture_method: 'automatic', // Set to 'automatic' for immediate capture / this needs to come from the backend (free trial will be manual)
        };
   

    this.elements = this.stripe.elements(options);
    this.elements.create('payment').mount('.js_stripe_payment_cc_div');
raven lotus
#

I think the options you've coded are not the same. If you look at the document I shared, you'd see:

elements.create('payment',options)

#

So the following code should be options after payment:

fields: {
billingDetails: 'never' ,
},

#

Not part of the first options you shared

violet parrot
#

oh, understood. Thank you!

raven lotus
#

Of course re-name it so it does not error out

violet parrot
#

works! Now it makes sense, I missed it

#

thank you!