#igmoweb-payment intent

1 messages · Page 1 of 1 (latest)

teal owl
#

Hi, it would be really hard to answer you without knowing what your use case is. I would prefer if you tell me what are you trying to achieve instead and I'll try to give you the best way of implementing this

#

Are you trying to fulfill your orders?

#

It basically looks like you're trying to deal with the aftermath of a payment, am I right?

solemn crane
#

Unfortunately, webhooks are not an option in this case. What we are trying is to access the products related to a subscription update (that would be the subscription product object). All we have is the payment ID, that's all and we'd like to get the list of products by calling the API if possible. We do that for other type of payments but we can't for a subscription update payment

teal owl
#

you're trying to go through old data?

solemn crane
#

How old do you mean?

#

Not that I know. Is there a time limit to access the products linked to a payment?

teal owl
#

no I mean it's not a real time processing

#

you're going back in your history

solemn crane
#

Ah, in that case yes, I need old data

teal owl
#

ok

#

so I agree the webhooks wouldn't be an option here

#

just give me a minute to figure out the best way you can get to your products from a subscription

solemn crane
#

Given any payment ID, I need to call Stripe API and bring the product (subscription) object that a user paid in a monthly/yearly subscription

teal owl
#

You mean a payment intent pi_xxx?

solemn crane
#

Yes

teal owl
#

ok one second

solemn crane
#

Thanks a lot

teal owl
#

so basically what you described above might be the only way to get to the price/product

solemn crane
#

expanding the invoice attribute?

teal owl
#

yes

#

from there you can get the lines which will give you access to the price/product

solemn crane
#

all right, thanks!