#toxiCity
1 messages · Page 1 of 1 (latest)
SetupIntents will have a customer property with that ID if they are associated with a Customer
let me check
{
"id": "seti_1NIAQjH3FYPq447eRB1Z0EJ1",
"object": "setup_intent",
"automatic_payment_methods": null,
"cancellation_reason": null,
"client_secret": "seti_1NIAQjH3FYPq447eRB1Z0EJ1_secret_O4J22hw9keJNd4zd1cvBJEDfR4i5eft",
"created": 1686575109,
"description": null,
"last_setup_error": null,
"livemode": true,
"next_action": null,
"payment_method": "pm_1NIAREH3FYPq447e8pG4LZAv",
"payment_method_types": [
"card"
],
"status": "succeeded",
"usage": "off_session"
}
it doesnt have a customer value
hello?
Hello, the server is pretty busy. Answering as quickly as I can but itcan take a bit
Is that the intent that you got back client-side? I see customer: "cus_O4J2r5wKpkVGa7", on that intent. When you retrieve the customer server-side, it should always show that customer ID. When you get the intent client-side, you only get a partial version of the intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
How were you able to get the customer Id
the link that you sent requires the customer ID as parameter to retrieve the customer data
Where did you get the json that you sent me? What function call returned it?
If you retrieve the setup intent server-side it should show that customer ID https://stripe.com/docs/api/setup_intents/retrieve#retrieve_setup_intent-client_secret
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.