#greenlane-otavio_webhooks

1 messages ยท Page 1 of 1 (latest)

spiral quarryBOT
#

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

๐Ÿ“ 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.

fickle storm
#

๐Ÿ‘‹ happy to help

mortal cosmos
#

Hey Tarzan how is going?

#

I do have this link and I also know that I can put values

#

but it is not clear how to include metadta using command line

#

Do you know if this way will work?
stripe trigger event --override customer:"metadata[foo]"=bar

#

stripe trigger payment_intent.succeeded --override customer:"metadata[foo]"=bar

#

This event: evt_3Q2rTa1njmFqhzph1DD5HG2K
Has not metadata

fickle storm
#

and you're trying to add the metadata to the customer

mortal cosmos
#

hum, I got it.
Could you provide the proper way, please?

fickle storm
#

do you need to store the metadata on the payment_intent or on the customer?

mortal cosmos
#

given this return:

{ "object": { "id": "pi_3Q2rTa1njmFqhzph1nAjhOOu", "object": "payment_intent", "amount": 2000, "amount_capturable": 0, "amount_details": { "tip": {} }, "amount_received": 2000, "application": null, "application_fee_amount": null, "automatic_payment_methods": null, "canceled_at": null, "cancellation_reason": null, "capture_method": "automatic_async", "client_secret": "pi_3Q2rTa1njmFqhzph1nAjhOOu_secret_PFlhK5J7ysMLEYLa1vYk3oMF7", "confirmation_method": "automatic", "created": 1727256338, "currency": "usd", "customer": null, "description": "(created by Stripe CLI)", "invoice": null, "last_payment_error": null, "latest_charge": "ch_3Q2rTa1njmFqhzph1bDzahFc", "livemode": false, "metadata": {}, -- I WANT TO set this value here "next_action": null, "on_behalf_of": null, "payment_method": "pm_1Q2rTa1njmFqhzphiKmojRri", "payment_method_configuration_details": null, "payment_method_options": { "card": { "installments": null, "mandate_options": null, "network": null, "request_three_d_secure": "automatic" } }, "payment_method_types": [ "card" ], "processing": null, "receipt_email": null, "review": null, "setup_future_usage": null, "shipping": { "address": { "city": "San Francisco", "country": "US", "line1": "510 Townsend St", "line2": null, "postal_code": "94103", "state": "CA" }, "carrier": null, "name": "Jenny Rosen", "phone": null, "tracking_number": null }, "source": null, "statement_descriptor": null, "statement_descriptor_suffix": null, "status": "succeeded", "transfer_data": null, "transfer_group": null }, "previous_attributes": null }

#

at the payment_intent

fickle storm
#

you haven't answered my question

#

on which object do you want to store the metadata?

mortal cosmos
#

At the point that I showed to you.
Does it work?

fickle storm
#

that doesn't answer my question

mortal cosmos
#

I am fine with payment_intent

fickle storm
#

ok

#

stripe trigger payment_intent.succeeded --add payment_intent:"metadata[foo]"=bar

mortal cosmos
#

let me try, thanks

#

it is working, thanks

#

Another question,

fickle storm
#

sure

mortal cosmos
#

Given this event: evt_3Q2rtn1njmFqhzph0QsSNxgO

the: "payment_method": "pm_1Q2rtm1njmFqhzphMrvXbHbk"

this is the payment_method id, am I right?
Thus, I can find the card information using this ID, am I right?

fickle storm
#

yes that's correct

#

but not all information would be available

#

like you won't be able to see the card number for example

#

only its last4 digits

mortal cosmos
#

Yes, I got this point.
Thanks!