#NotMe

1 messages · Page 1 of 1 (latest)

restive tinselBOT
analog crest
#

If you want to use something other than Checkout, then you'll need to create your own custom form for accepting input and creating an amount on the fly. This would occur before a Price object is created.

broken yoke
#

great I was able to acheive that now 1 more thing can I also change this name variable to be custom every time? Like i will know what name to put in here before I create checkout so like we configured price can we also configure string to show a specific name here?

analog crest
#

That's the description in Checkout right?

broken yoke
#

yes

analog crest
#

You could just do string interpolation when the Checkout Session object is created, no? The description (I believe) defaults to the Product name and description if you don't supply anything, so that's an option too

broken yoke
#

okay so I dont keep any product description and while I create checkout object I can do something to set description?

analog crest
#

Where are you setting the description currently?

broken yoke
#

here and then I am using product id in the code

#

like this

analog crest
#

Ah, apologies. I thought it showed the description, but it only shows the name (just repro'd to confirm)

restive tinselBOT
analog crest
#

Let me try one other thing real quick. I could've sworn it defaulted to the Product description

obtuse violet
broken yoke
#

hmm @obtuse violet that means for every checkout there will be separate product created right?

obtuse violet
#

Yeah, that's the tradeoff you would have to make - you get more flexibility ver that product name but you'd end up with a lot of one-time products because a new one is being created each time

broken yoke
#

Got it thanks I will check these and get back to you