#kucinglaut

1 messages · Page 1 of 1 (latest)

ornate krakenBOT
deep basin
#

Unfortunately, Checkout Session doesn't support period on its line_items

#

The workaround is to create ad-hoc price using price_data and has its product name with the timestamp

true narwhal
deep basin
#

Thanks for sharing. description isn't shown in the invoice, so the timestamp should be appended to the name

true narwhal
#

I just reading it for a bit, if I were to use price_data, will it leads to creation of new Price object? We already have a object and we rely on that to fulfill orders,

deep basin
#

Yup! price_data will create an one-time price object

#

With existing price ID, I'm afraid there is no good way to add time duration with Checkout Session integration

#

I'd recommend using Invoice in this case

true narwhal
#

I see. I already implemented Invoice in my case, but would like to add credit card method as well. Will there be any update that supports this in future?

deep basin
#

Invoice should support card payment. Can you share an example Invoice (in_xxx) which you don't see card as a payment method?

true narwhal
#

in_1Ny0zWEJxjFj8XdgI6e3bHTl

deep basin
true narwhal
#

ah, okay will do that. Thank you!

deep basin
#

No problem! Happy to help 😄

true narwhal
#

sorry actually one more question. is it possible to manually generate invoice after checkout session is done? is it recommended?

deep basin
#

Creating an invoice manually through Stripe after completing checkout session is not supported

true narwhal
#

Ah okay, thanks again