#linups_api

1 messages ยท Page 1 of 1 (latest)

wicked sequoiaBOT
#

๐Ÿ‘‹ 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.

wild coral
#

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?

plain grove
#

yes. but in worst case scenarios we pick up from statement descriptor

wild coral
#

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/

plain grove
#

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 ๐Ÿ™‚

wild coral
#

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

plain grove
#

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

wild coral
#

For payment mode, the statement descriptor can be set at:

plain grove
#

let me check.

#

perfect. thanks for the help. i was looking straigt for statement descriptor and did not found in documentation.