#divyatiwari-elements-billing-details
1 messages ยท Page 1 of 1 (latest)
{
"id": "ch_3N9BWKHU1yruTVu******",
"object": "charge",
"amount": 500,
"amount_captured": 500,
"amount_refunded": 0,
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_3N9BWKHU1yruTVu80gn2KQ9a",
"billing_details": {
"address": {
"city": null,
"country": "US",
"line1": null,
"line2": null,
"postal_code": "77584",
"state": null
},
"email": null,
"name": null,
"phone": null
},
"calculated_statement_descriptor": "TEST",
"captured": true,
"created": 1684434375,
"currency": "usd",
"customer": "cus_Nv1ZqhZsa1***",
"description": "Starter Pass",
"destination": null,
"dispute": null,
"disputed": false,
"failure_balance_transaction": null,
"failure_code": null,
"failure_message": null,
"fraud_details": {},
"invoice": null,
"livemode": true,
"metadata": {
"price": "price_1K9bHkHU1yruTVu8h******"
},
"on_behalf_of": null,
"order": null,
"outcome": {
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_3N9BWKHU1yruTVu80sAfkfE7",
"payment_method": ""
....
},
I don't see the phone number or email on the internal object as well.
you mean on the subscription object?
On the Charge
We recently switched from Stripe Checkout to using Stripe JS.. is there anything which I should look into specifically?
and my guess is we are getting this since then
You will need to collect the billing details yourself.
Yeah, we are doing that on billing page.
So, can't we use stripe.charges.search api anymore?
we are updating some details on hubspot on the basis of data we are getting from stripe.charges.search api on daily basis.. so what api should we use to get all charges created between a specific date?
I see you are sending some billing data when you're confirming the PaymentIntent, but not email/phone number: https://dashboard.stripe.com/test/logs/req_OHnHilJBzGgqck
So Stripe never receives it.
Why you can't use the search?
Hi there ๐ jumping in as my teammate needs to step away soon. Sounds like you recently migrated from Stripe Checkout to Stripe Elements, and are now not seeing all the fields you're collecting reflected on the associated Charge object. If you're collecting some of those details in your own fields, then you'll need to be sure to pass them to the request you make to confirm the Payment Intent. You can do so via the confirm_params.payment_method_data.billing_details parameter:
https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-confirmParams-payment_method_data-billing_details
divyatiwari-elements-billing-details
Why you can't use the search?
I am performing search only via tripe.charges.search
Thank you for your quick response @stark ore ! After sending the email info in payment intent, i am getting the email ids from charges object
Awesome! Glad to hear that did what you were looking for.