#igmoweb-payment intent
1 messages · Page 1 of 1 (latest)
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?
If that's the case I would really encourage you to read the following docs:
https://stripe.com/docs/webhooks
https://stripe.com/docs/payments/checkout/fulfill-orders
https://stripe.com/docs/billing/subscriptions/webhooks
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
you're trying to go through old data?
How old do you mean?
Not that I know. Is there a time limit to access the products linked to a payment?
Ah, in that case yes, I need old data
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
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
You mean a payment intent pi_xxx?
Yes
ok one second
Thanks a lot
so basically what you described above might be the only way to get to the price/product
expanding the invoice attribute?
all right, thanks!