#tyson

1 messages · Page 1 of 1 (latest)

solemn coralBOT
rare shell
#

Hi there

elfin arrow
#

I have so stricly speaking subscritpion is created on a checkout session mode subscription?

rare shell
#

If you use Stripe Checkout then yep

elfin arrow
#

ok sweet when i am passing the product id its telling me i need a reccuuring price but there is one: req_w55aA0xYeYAEAo?t=1689182015",

rare shell
#

The Product ID should look like prod_xxxxx

#

Looks like you are passing a different string

elfin arrow
#

I have custom ones

rare shell
#

Ah

elfin arrow
#

that reffances the product in my database as well

rare shell
solemn coralBOT
elfin arrow
#

like this it didint work, line_items[0][price_data-recurring]",

#

req_D4MyKRHje2yUSc?t=1689182295"

#

Thanks for your help on this stripe support is the best

#

got it !

#

line_items[0][price_data][recurring][interval]

#

wait i dont thats the invertal

leaden wren
#

hopping in here since bismarck has to head out soon

elfin arrow
#

hi karbi, Not seeing the param in postman

#

Is it somthing like line_items[0][price_data.recurring][product]

#

line_items[0][price_data][product] is returing this error

leaden wren
#

Did you look at the APi reference that bismarck sent you? product is NOT nested within the recurring - it's something you'd set separately

#

So you'd want to set line_items[0][price_data][recurring] and line_items[0][price_data][product]

elfin arrow
#

so i need to pass the price will that subscribe the user to that product?

leaden wren
#

You're passing in a bunch of parameters nested under price_data that will create a price for that checkout session'

elfin arrow
#

cool i have it working, its saying 42424242 is wrong for fake card in test

leaden wren
#

Are you sure you're making your request in test mode?

#

Can you share the Checkout Session ID?

elfin arrow
#

sessions is working i am jsut trying the test payment

leaden wren