#linups_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/1416112620737527998
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- linups_api, 2 days ago, 56 messages
- linups_api, 2 days ago, 21 messages
- linups_api, 3 days ago, 5 messages
Statement descriptor is for the descriptor on the customer's bank statement. It's not meant to identify the product.
Is your goal about identifying the product that the customer purchased in a Checkout Session?
yes. but in worst case scenarios we pick up from statement descriptor
Once you receive the Checkout Session events checkout.session.* event, your system can make an additional Checkout Session retrieval call to expand the line_items field. line_items field is not included in the Checkout Session by default. You'd have to expand it in a separate retrieval request: https://docs.stripe.com/api/expanding_objects
After expanding the line_items field, you should be able to find the product information here/
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
we want to launch product in the next 10 minutes. and we dont have time to update webhook parser.
is there a way to pass descriptor?
*statement descriptor.
next week, we will udpate it properly ๐
What mode is your Checkout Session? payment, subscription or setup?
Different mode will set the statement descriptor at different fields. Providing the mode will allow me to share the correct field to be set
payment
$checkout_session = $this->stripe->checkout->sessions->create([
'ui_mode' => 'embedded',
'line_items' => [$itemArray],
'mode' => 'payment',
'customer_creation' => 'always',
'currency' => 'usd',
'return_url' => $returnUrl,
'automatic_tax' => [
'enabled' => false,
],
'payment_intent_data' => [
'setup_future_usage' => 'off_session',
// Optional extras:
//'description' => 'item_description',
//'metadata' => ['order_id' => 'ORD-10025'],
],
'phone_number_collection' => ['enabled' => true],
'metadata' => [
'productName' => 'EmotionalEatingMiniCourse'
]
]);
i need somehow find it in type=charge.succeded webhook
For payment mode, the statement descriptor can be set at:
payment_intent_data.statement_descriptorfor non-card payment method: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-statement_descriptorpayment_intent_data.statement_descriptor_suffixfor card payment method: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-statement_descriptor_suffix
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.