#sylvie-vds_code
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/1224718530272825405
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
code in my php file:
if ($custemail != "") {
$checkout_session = \Stripe\Checkout\Session::create([
'customer_email' => $custemail,
'client_reference_id' => $custname,
'metadata' => [
'ARTICLES' => $reference // Ajoutez les métadonnées supplémentaires ici
],
'locale' => $lang,
'line_items' => [
[
'price' => $price->id,
'quantity' => 1
],
],
'payment_method_types' => $payments,
'phone_number_collection' => ['enabled' => true],
'mode' => 'payment',
'success_url' => PW_STRIPE_IPN_URL . "?oid=" . $orderid,
'cancel_url' => $stripe_cancel_url,
]);
You currently are setting metadata on the checkout session object
Where do you need it set exactly?
I don't know exactly.
I would like it to appear in the .csv created by stripe in the "ARTICLES(metadata)" tab
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
So is that exporting the payment intents? Sorry we just help with api questions in here and aren't that familiar with dashboard things
eIt exports all the payments and allows me to sort them.
no prob. Thanks