#kiranovatheofficial
1 messages ยท Page 1 of 1 (latest)
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.
- kiranovatheofficial, 1 day ago, 34 messages
$productsForStripe[] = [
'price_data' => [
'currency' => 'eur',
'unit_amount' => $order->getCarrierPrice(),
'product_data' => [
'name' => $order->getCarrierName()
]
],
'quantity' => 1,
];
$checkout_session = Session::create([
'line_items' => $productsForStripe,
'mode' => 'payment',
'payment_intent_data' => [ 'capture_method' => 'manual'],
'success_url' => $YOUR_DOMAIN . '/commande/valide/{CHECKOUT_SESSION_ID}',
'cancel_url' => $YOUR_DOMAIN . '/commande/echec/{CHECKOUT_SESSION_ID}',
]);
I'm trying to find a way to add a little description to a single product...
Hi ๐ okay, so you're using product_data, does product_data.description do what you're hoping?
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-product_data-description
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.