#OneBase

1 messages · Page 1 of 1 (latest)

sonic notch
#

heya @graceful bluff! There are some payment methods that have certain required fields with regards to billing details - i can't remember them off the top of my head right now though

graceful bluff
#

Yeah I can't figure it out from the docs either. It's hidden somewhere.

sonic notch
#

could you elaborate more on your concern as to why this is collected / handled client side?

#

which payment method are you looking at?

graceful bluff
#

Standard Payment Intent

#

I was concerned because I forgot this was handled securely on stripe's end.

sonic notch
#

do you mean credit card payment?

#

by payment method i mean cards, ACH direct debit, iDEAL, etc

graceful bluff
#

Ah yes credit card

sonic notch
#

alright, so for CC payment, the billings detail are not mandatory BUT i'd recommend that you collect billing address (and postal/zip code), name and email still

#

because Stripe uses these details for fraud detection, and the more details you provide, the better we can determine whether a payment is "high risk"

graceful bluff
#

ok sounds good. That's odd because I removed the billing_details objects from the payment confirm and it stopped the credit card payment from working

sonic notch
#

that's odd, can you share the PaymentIntent id? it'd look like pi_123, let me take a quick look

graceful bluff
#

Hm, not sure where to find that. Sorry new to all this.

sonic notch
#

on your Dashboard, you should be able to navigate to the Payments page

#

are you able to find the corresponding payment that failed?

#

it's possible that the PaymentIntent failed during creation too

graceful bluff
#

its not showing up there

#

so it's not being created

sonic notch
#

i'm not too sure where in the process it failed for you

#

well, in any case, since it works when you add it back in, i guess...we'd go with that for now? 😁

graceful bluff
#

stripe.confirmCardPayment(clientSecret, {
payment_method: {
card: card,
billing_details: {

      }
    }
#

This is the way to initiate it right?

#

really strange yeah, when I take the billing out and submit the form it kinda just reloads the web page.

#

When I put it in it actually submits it. Either way, seems better to have all this extra info anyway.

#

I assume you're actually from stripe.

sonic notch
#

yep, i am with Stripe

#

feel free to reach out if you're still running into issues implmenting, always happy to help!

graceful bluff
#

thanks my guy!

#

Hey actually, don't submit that for any sort of replication. Turns out I can't create a payment intent inside a try/catch statement server side or it fails.

#

Had nothing to do with billing. Cheers!

sonic notch
#

aaah, great to hear that you managed to figure it out!