#sylvie-vds_code

1 messages · Page 1 of 1 (latest)

scarlet ospreyBOT
#

👋 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.

sacred coralBOT
silk imp
#

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,
        
        
    ]);
odd kite
#

You currently are setting metadata on the checkout session object

#

Where do you need it set exactly?

silk imp
#

I don't know exactly.
I would like it to appear in the .csv created by stripe in the "ARTICLES(metadata)" tab

odd kite
#

What csv?

#

Where are you getting it from

silk imp
odd kite
#

So is that exporting the payment intents? Sorry we just help with api questions in here and aren't that familiar with dashboard things

silk imp
#

eIt exports all the payments and allows me to sort them.