#lucadaniele_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1370312357779341355
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Should be available in the customer_details hash in the response: https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-customer_details
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I don't have this field, do I need to add "customer_details" to expand field?
This is the JSON returend
{
id: 'pi_3RMmA4Awzm5X0LZR2bKodRkT',
object: 'payment_intent',
amount: 1000,
amount_capturable: 0,
amount_details: { tip: {} },
amount_received: 1000,
application: 'ca_NBCv7n8bEc1Hn7jdqPms6P7ODv5gaaww',
application_fee_amount: null,
automatic_payment_methods: null,
canceled_at: null,
cancellation_reason: null,
capture_method: 'automatic',
client_secret: 'pi_3RMmA4Awzm5X0LZR2bKodRkT_secret_KqCwU1d4l9CWz8smR51gl1uH5',
confirmation_method: 'automatic',
created: 1746778804,
currency: 'eur',
customer: null,
description: null,
invoice: null,
last_payment_error: null,
latest_charge: 'ch_3RMmA4Awzm5X0LZR2UCbVUTS',
livemode: false,
metadata: {},
next_action: null,
on_behalf_of: null,
payment_method: 'pm_1RMmA4Awzm5X0LZRXVWXPimo',
payment_method_configuration_details: null,
payment_method_options: {
card: {
installments: null,
mandate_options: null,
network: null,
request_three_d_secure: 'automatic'
}
},
payment_method_types: [ 'card' ],
processing: null,
receipt_email: null,
review: null,
setup_future_usage: null,
shipping: null,
source: null,
statement_descriptor: null,
statement_descriptor_suffix: null,
status: 'succeeded',
transfer_data: null,
transfer_group: null
}
It's on the Checkout Session object (cs_xxx), not the Payment Intent
Yeah sorry it was the expand option that was returning only the payment intent. One question, how to enable phone input in the checkout page? There's an option when creating the checkout via API or on the Stripe dashboard?