#Wasabi-metadata
1 messages · Page 1 of 1 (latest)
Hi @tepid quest stripe payment element with Klarna and Billing
Gotcha! In that case you want to set the metadata on the PaymentIntent object.
Awesome, thank you @tepid quest
Is there any nuance whether when (create or update PI) we should pass the order id via PI object?
You likely want to pass it on/before creation of the Charge (when you confirm the PaymentIntent). This will ensure that same metadata is carried down to the Charge (if you are using the metadata on the Charge for any reason).
But mostly it doesn't really matter.
Got it. What happens if metadata isn't passed before charge? Can we pass metadata of order Id post the charge for tracking?
Yes you can update metadata at any time.
I would recommend just relying on the metadata on the PaymentIntent and ignoring the metadata on the Charge
That way you don't have to worry about it at all.
@tepid quest what are some ways we can pull the report of the metadata on the paymentintent object?
essentially, we will need to include our customer Order # on each invoice
You can use the Reports API to pull your PaymentIntents and metadata, you can use Sigma, or you can just retrieve PaymentIntents via the API and ingest the data yourself.
Do you know how we might be able to display the order id on a customer invoice?
Are you using our invoices? Or creating your own?
for both cases
Stripe invoicing allows you to put custom fields: https://stripe.com/docs/api/invoices/create#create_invoice-custom_fields
With your own, you would display it how you want as you are building your own invoice.