#greenlane-otavio_webhooks
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/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.
- greenlane-otavio_webhooks, 5 days ago, 81 messages
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
the payment_intent.suceeded fixture https://github.com/stripe/stripe-cli/blob/master/pkg/fixtures/triggers/payment_intent.succeeded.json doesn't create a customer
and you're trying to add the metadata to the customer
hum, I got it.
Could you provide the proper way, please?
do you need to store the metadata on the payment_intent or on the customer?
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
you haven't answered my question
on which object do you want to store the metadata?
At the point that I showed to you.
Does it work?
that doesn't answer my question
I am fine with payment_intent
ok
stripe trigger payment_intent.succeeded --add payment_intent:"metadata[foo]"=bar
sure
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?
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
Yes, I got this point.
Thanks!