#tellmewhy - ad hoc subscription price

1 messages · Page 1 of 1 (latest)

potent stone
#

Hello, what trouble are you running in to?

acoustic matrix
#

okay i've tried the following flow: create customer (without payment method attached) -> create subscription with customer attached and custom price data -> create session with price id from subscription

#

i want to pass the session to the frontend to get a checkout page for the user to pay

#

but i run into the following error

#

so id like to know if my steps are off and help in the right direction

potent stone
#

Do you have the request ID (req_123) from when you got that error?

acoustic matrix
#

req_cI0M8lCFM6c64w

potent stone
#

Thank you

#

That allows you to create a subscription without immediately trying to make payment

acoustic matrix
#

okay i did do that as well

#

but then i ran into something else

#

one sec

#

okay so when i did have payment_behavior set and tried to create a session but then get this error

#

i pass the subscription price id to my session generator function but it seems like because it isn't active, i can't make a session to pay for it

potent stone
#

Can you send me the request ID for that as well? It sounds like it is the last request + customer ID but it may still be helpful

acoustic matrix
#

yeah sorry i forgot

#

req_nyUV9ZlC2zbQQ0

potent stone
#

No worries, thank you for the ID

acoustic matrix
#

but how am i supposed to use the ad-hoc price then? whats the best way to get it paid for?

potent stone
#

Checkout also supports creating ad hoc prices with price_data

acoustic matrix
#

hmm i see~~ yeah i saw that but it just didnt hit me that i could just do that one session step. let me try that real quick. thanks