#michael_19345

1 messages · Page 1 of 1 (latest)

humble lanceBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

sudden ledge
#

You need to know on the front-end?

#

Or server-side?

upbeat canopy
#

front end

sudden ledge
#

Just curious what the goal is

upbeat canopy
#

building mixpanel tracking and we want to know the type of ECE

#

{
"id": "pi_3OXQKoDY3BzcP9iq1phGYcFp",
"object": "payment_intent",
"allowed_source_types": [
"card"
],
"amount": 1262,
"amount_details": {
"tip": {}
},
"automatic_payment_methods": {
"allow_redirects": "always",
"enabled": true
},
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "automatic",
"client_secret": "pi_3OXQKoDY3BzcP9iq1phGYcFp_secret_AFVbRBZU42L6h5DLUfDTl1QdU",
"confirmation_method": "automatic",
"created": 1704987502,
"currency": "usd",
"description": null,
"last_payment_error": null,
"livemode": false,
"next_action": null,
"next_source_action": null,
"payment_method": "pm_1OXQKpDY3BzcP9iqwtPRtrCt",
"payment_method_configuration_details": {
"id": "pmc_1KMbtqDY3BzcP9iqbaCqMFjU",
"parent": null
},
"payment_method_types": [
"card"
],
"processing": null,
"receipt_email": null,
"setup_future_usage": null,
"shipping": null,
"source": null,
"status": "succeeded"
}

#

i dont see it here in the paymentIntent response

sudden ledge
upbeat canopy
#

so it doesnt come back after confirmPayment right?

#

i need another call to retrieve it

sudden ledge
#

Yeah

upbeat canopy
#

should that call be just after const resp = await this.stripe.confirmPayment(confirmOptions);?

#

what is the api call i need?

#

this? const paymentMethod = await stripe.paymentMethods.retrieve(
'pm_1MqLiJLkdIwHu7ixUEgbFdYF'
);

sudden ledge
#

Yeah but you need to do that on the backend

#

And pass result to frontend

upbeat canopy
#

got it

#

thanks

#

pity that didnt come back with the paymentintent success resp