#Wasabi-metadata

1 messages · Page 1 of 1 (latest)

tepid quest
#

HI there! What integration are you using?

visual marsh
#

Hi @tepid quest stripe payment element with Klarna and Billing

tepid quest
#

Gotcha! In that case you want to set the metadata on the PaymentIntent object.

visual marsh
#

Awesome, thank you @tepid quest

#

Is there any nuance whether when (create or update PI) we should pass the order id via PI object?

tepid quest
#

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.

visual marsh
#

Got it. What happens if metadata isn't passed before charge? Can we pass metadata of order Id post the charge for tracking?

tepid quest
#

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.

visual marsh
#

@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

tepid quest
#

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.

visual marsh
#

Do you know how we might be able to display the order id on a customer invoice?

tepid quest
#

Are you using our invoices? Or creating your own?

visual marsh
#

for both cases

tepid quest
#

With your own, you would display it how you want as you are building your own invoice.

visual marsh
#

Got it

#

For custom build, we would just pull the PaymentIntent metadata into the invoice to display the order id?