#Benoît

1 messages · Page 1 of 1 (latest)

solid ivyBOT
karmic veldt
#

There is though it may take another API call. Checking in to this and will get back to you

modest pond
#

Thnk you !

karmic veldt
modest pond
#

I saw it but i don't try it, as i wanted to avoid to make an API call to retrieve the Product ID

#

I just have the Plan ID i want to add as a subscription item

#

by using price_data , this price will never really be created, will he ?

karmic veldt
#

If you have a plan ID you can put that anywhere that is expecting a Price ID and it should work

#

Prices are backwards compatible with Plans

#

price_data will create a temporary Price object

modest pond
#

I will try price_data , i think it's the solution. It just make me call the API to get the Product ID of my Plan

karmic veldt
#

Yeah that sounds like the best solution. You can also cache the Price->Product relations on your side to avoid API calls

modest pond
#

Yes indeed

#

Thank you very much for your help

karmic veldt
#

Of course, glad I could help!