#divyatiwari-elements-billing-details

1 messages ยท Page 1 of 1 (latest)

thorn smeltBOT
stark ore
#

Hi! Let me help you with this.

#

Could you please share an example Charge?

static drum
#

{
"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": ""
....

},
stark ore
#

Could you please share the full ID

#

ch_xxx

static drum
#

ch_3NSRj2HU1yruTVu81TTLpyYD

#

let me know if you need any other info?

stark ore
#

I don't see the phone number or email on the internal object as well.

static drum
#

you mean on the subscription object?

stark ore
#

On the Charge

static drum
#

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

stark ore
#

You will need to collect the billing details yourself.

static drum
#

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?

stark ore
#

So Stripe never receives it.

stark ore
paper cairn
#

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

static drum
#

Why you can't use the search?

I am performing search only via tripe.charges.search

static drum
#

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

paper cairn
#

Awesome! Glad to hear that did what you were looking for.