#pitcherojbh

1 messages ยท Page 1 of 1 (latest)

plain flareBOT
coral pine
#

Hi ๐Ÿ‘‹ that is expected behavior. Metadata is not automatically copied from one object to other objects. You will need to manually make requests to copy that data if that is something that is required. Otherwise you'll need to have a path to get from the object you're investigating to the related object with the metadata you want to see.

What type of object are you looking at as the "payment"?

carmine forge
#

It is a subscription payemtn, we need to specify in the meta data the fees we charge for our Express accounts

#

How can I specify these in a subscription?

#

What type of object are you looking at as the "payment"? <-- what do you mean by this sorry,

coral pine
coral pine
#

If you're looking at the Invoice, you may already be able to find the Subscription's metadata via subscription_details.metadata:
https://stripe.com/docs/api/invoices/object#invoice_object-subscription_details
but if you're looking at a different object type, you'll need to retrieve additional items to find the associated metadata.

carmine forge
#

Ah ok, so I am using CreateSubscriptionRequest I can see the meta data and the application fee on the subscription. This application fee is just showing as text on the meta data fields.

But I can not see this application fee or the meta data on the invocie that is raised

coral pine
#

What do you see in the subscription_details.metadata field on the Invoice?

carmine forge
#

let me check

#

The meta data is empty

coral pine
#

Can you share the ID of an Invoice you're looking at?

carmine forge
#

yes it is in_0NyDjkNRNK7sFw4mg36WzqkS

#

payment id is pi_2NyDjkNRNK7sFw4m1EycUJxg

#

The subscription is sub_0NyDjkNRNK7sFw4mJwJUQd1m

plain flareBOT
coral pine
#

How are you checking the subscription_details.metadata field on the Invoice object? It looks like that is populated with the metadata from the Subscription object.

carmine forge
#

From the dashboard, ah is it visible form the API?

coral pine
#

Yeah. We aren't too familiar with the dashboard in this forum, we primarily focus on working with the API.

carmine forge
#

How can I see the Pitchero Application Fee that we add form the meta data

#

if you check this payment, pi_2NxtP9NRNK7sFw4m1atYumMM you should see what I mena

#

*mean

#

I will check the API responses now

#

We use this value to tell Stripe how much to charge the customer

coral pine
#

That metadata won't be on the Payment Intent. It will be on the Subscription where you originally put it, and on the Invoices created by that Subscription in their subscription_details.metadata hash.

carmine forge
#

Ok so providing it is on there still, the fees will be correct?

coral pine
#

I don't know what you mean by that, would you mind trying to clarify? metadata does not impact the fees that are charged. I don't understand whether you're currenlty expecting metadata to adjust fee amounts, or if you're passing fee details through metadata so you can charge those later at a different part of your flow.

carmine forge
#

One second, I am just dpuble checking the meta data is not just a referance

#

It must just be a referance. I will doble check the API responses. Thank you