#BRData

1 messages ยท Page 1 of 1 (latest)

minor nymphBOT
green mulch
zealous dock
#

Hmm that might explain some things then

#

Because I am getting this error when attempting to add in the automaticpaymentmethods

green mulch
#

What error exactly?

zealous dock
green mulch
zealous dock
#

.NET 4.5

#

Stripe Version 29.4.0

green mulch
#

Ah I meant to say what version of stripe-dotnet are you running

#

thanks

#

You'll need to upgrade the stripe-dotnet SDK

zealous dock
#

I cant because that requires a .NETFramework v 4.6.1

#

Thank you for clearing that up, on the frontend where would I put billingDetails.email = 'never'

#

Does that go inside of this: const paymentElementOptions = {
layout: "tabs",
};

green mulch
#

You'd pass it in options parameter when you create the PaymentElement

#

yup

zealous dock
#

Whats weird is I am getting this:

#

But the payment intents are still going through

#

Also after this change: its still asking for email

green mulch
#

Ah I think you can ignore those errors, r.stripe.com is used for reporting.
We might have changed something recently
It shouldn't affect the functionality of your app

#

Also after this change: its still asking for email
You'd need to set billingDetails.email to never

#

Ah there's a fields parent property too

zealous dock
#

ugh

#

Thank you!

#

Its still asking for email for some reason

green mulch
#

What payment method are you selecting?

zealous dock
#

Card

green mulch
#

Huh interesting indeed. Can you share the example PaymentIntent ID?

zealous dock
#

pi_3N0QNVIKfa0587UL0EW2tqBV

green mulch
#

try setting

    billingDetails: "never" // auto | never 
  }```
zealous dock
#

That took away zip code and country

#

Email is still there

green mulch
#

Ah LOL
Let me see, must be missing something tiny

#

Can you share your complete code that you have for elements?

zealous dock
green mulch
#

The page you're working with, is it hosted?
Can I see it myself?

zealous dock
#

No local ๐Ÿ˜ฆ

#

Do you want to see the entire frontend file?

green mulch
#

Ah I see. All good. Let me check with a colleague about this

zealous dock
#

Thank you!

green mulch
#

Can you share the entire code for the page?

zealous dock
#

Ofcourse

green mulch
#

I wonder if you have a separate input that collects email

zealous dock
#

Honestly just take al ook at that the checkout.html page

#

that is exactly what my page is

#

and I have a <script> with checkout.js

#

at the bottom of the page

#

I hvaent changed anything

green mulch
#

Ah I think the email field is coming from link authentication element

        <!--Stripe.js injects the Link Authentication Element-->
      </div>```
#

You can take that out

zealous dock
#

that was it!

#

Thank you so much!

green mulch
#

NP! ๐Ÿ™‚ Glad we figured it out

zealous dock
green mulch
#

you can remove the billingDetails: never

zealous dock
#

I would rather them not put in their zip or country

green mulch
#

Some fields are required for the Payment to succeed unfortunately. The reason we allow disabling collection for those is if you're collecting them yourself

#

If so, you can pass them in with confirm call

#

but if you're not, then you'd need to set billingDetails to auto

zealous dock
#

Awesome thank you for the help!