#OneBase
1 messages · Page 1 of 1 (latest)
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
Yeah I can't figure it out from the docs either. It's hidden somewhere.
could you elaborate more on your concern as to why this is collected / handled client side?
which payment method are you looking at?
Standard Payment Intent
I was concerned because I forgot this was handled securely on stripe's end.
do you mean credit card payment?
by payment method i mean cards, ACH direct debit, iDEAL, etc
Ah yes credit card
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"
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
that's odd, can you share the PaymentIntent id? it'd look like pi_123, let me take a quick look
Hm, not sure where to find that. Sorry new to all this.
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
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? 😁
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.
yep, i am with Stripe
and yes, looking at your code, it does look correct. Referencing https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#web-submit-payment
feel free to reach out if you're still running into issues implmenting, always happy to help!
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!
aaah, great to hear that you managed to figure it out!