#pankaj-metadata
1 messages · Page 1 of 1 (latest)
hi! not sure I follow the question really.
to update with based on meta order
what does that mean?
I am placing order from a webstore so id get generated in strip not from my website
So I dont have where clause for update
cus_LhPRq1qmXgSmk0
For more clarification I want pass order number in strip description but order number get generated after complete the payment process
So I need one more API call to update order number in strip
Stripe, not Strip.
I'm still completely lost on your question, I'm really sorry. I don't understand you.
ok. you shared code that does that, though.
like the code you shared in the main channel seems like it would do what you want.
I just taken an example
hmm
I mean, like it's just
'cus_xxxx',
['metadata' => ['description' => 'whatever you want']]
);
for example. Where are you stuck?
then what are you trying to update the description on?
Stripe
Again, I'm sorry, but I have no idea what you're asking, the language barrier is really difficult.
This the order
where descrption is Order Id:
I want to update it with #order-number
$stripe->charges->update(
'ch_3L00kc2svt92FOo90MIm4Uzy', // intent.charges.data[0].id
['metadata' => ['description' => 'whatever you want']]
);
maybe?
$stripe = new \Stripe\StripeClient(
'sk_test_5BnGdnyXCjwGzvKpKUAEGbkS'
);
$stripe->paymentIntents->update(
'pi_1Dr1jX2eZvKYlo2C6r0iT7PO',
['metadata' => ['order_id' => '6735']]
);
Is this work?
you can try it in test mode and see. But yes
yes
So how i can retrieve that Id in my website?
I need to retrieve this ID every time a order is placed
you'd use webhooks.