#xfechx

1 messages · Page 1 of 1 (latest)

blazing tuskBOT
#

Hello! We'll be with you shortly. 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.

cloud marsh
#

Hello again!
There's no way to copy the metadata over.
Also, can you share example events for both scenarios you mentioned so that I am on the same page?

brittle spindle
#

evt_1OjjeK2lgzywWyExkZPz6C2T

#

I need to be able to access charge's metadata if I am to listen to invoice.payment_succeded only, because I save which account to use there. The app works with multiple api accounts, and it is stored in metadata->API

cloud marsh
#

there's no way to copy the associated metadata over to the invoice object though.
You'd need to retrieve the invoice again and expand the charge object

I think we're going in circles about this since yesterday. You need to take a step back and re-evaluate.

blazing tuskBOT
brittle spindle
#

is there a way to check with an invoice object, if it was created from a checkout session?

#

talking about the type one_time invoice

#

OR can I fill metadata for invoice, when making the checkout session?

novel sedge
brittle spindle
#

when invoice_creation is enabled

novel sedge
brittle spindle
#

yes, checkout has the metadata setup, but i am talking about the invoice that gets creted from checkout session that gets paid

#

ok, this is what I need

#
#

invoice_creation.invoice_data.metadata

#

I need help writing it,

            [
            'invoice_creation' => ['enabled' => true],
            'billing_address_collection' => $zip_code_flag,```
#

where would I add it there?

#

so

'invoice_creation' => [
  'enabled' => true,
  'invoice_data => [
    'metadata' => ...
  ]
]```
#

something like that?

novel sedge
#

Yep that looks right

brittle spindle
#

OK that helped a LOT