#anthonyl5602

1 messages · Page 1 of 1 (latest)

void groveBOT
stark plume
#

I can't find how to do it, in charges or payment_intents there is no subscription identifier..

silver willow
#

Can you explain with an example please?

#

What do you mean by associate? Is the payment not being collected as part of a subscription invoice already?

stark plume
#

I have received payments from people for subscriptions and I would like to be able to associate the payments with a particular subscription.
For example, I have subscription “A” which is 50€/month, subscription “B” which is 40€/month. I received 5 payments of 50€ and 3 payments of 40€, I wish I could say, the 5 payments of 50€ are for subscription "A" and the 3 payments of 40€ for subscription "B"

silver willow
#

I think you might be asking about setting metadata on the payment, ie record your own information related to your system?

#

Becuase if you're using Stripe BIlling and our subscriptions, those payments would already be tied to specific subscriptions via the invoices

stark plume
#

Tells you that basic payment is linked to an invoice and the invoice to the subscription? If a payment is not linked to an invoice it is not possible to link it to a subscription on is agree?

silver willow
#

COrrect, but you can set metadata

#

Are you using stripe subscriptions?

stark plume
#

yes I use stripe subscriptions, but the application is not mine, it's a client 🙂 thank you for your help!

silver willow
#

I'm not sure what you mean by associate then

#

The subscription generates invoices, invoices have payment intents. The payments intents are already associated with a specific subscription via the invoice, so I'm not sure what you are trying to do.

stark plume
#

I'll do it differently, thanks anyway! I have another question, it's for the Expanding Responses, I would like to have the name of the product for which the person paid (via the API) but I can't pass the expand argument on postman, could you help me please?

silver willow
#

I can't pass the expand argument on postman
You should be able to, why can't you?

#

expand[]='some.path.here'

stark plume
#

ah nice thanks !

silver willow
#

That data doesn't exist on a payment intent

#

If you want the invoice products, i'd suggest retrieving the invoice, since the expansion is limited to 4 layers