#ionu_code
1 messages ¡ Page 1 of 1 (latest)
đ 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.
- ionu_unexpected, 6 hours ago, 57 messages
- ionu_code, 10 hours ago, 26 messages
Hi, is this beacuse you're collecting these details already on your end?
I'm only asking as you can hide the billing details fields, https://docs.stripe.com/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails. However, different payment methods require different level of billing details and you will need to pass that when you make the confirmation request down the line, https://docs.stripe.com/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details
Sure!
I added to the options :
fields: {
billingDetails: 'never' ,
},
but I still get those https://io1.kartradev.com/checkout/b9d102467a265d12e94f12ff071b353c
stripe al pp types no aff/shipping/vat
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
Can you share your Elements creation code?
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');
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
oh, understood. Thank you!
Of course re-name it so it does not error out