#mrobjectoriented_api

1 messages ยท Page 1 of 1 (latest)

fringe zenithBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1250384524995592214

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

lyric carbon
#
    async generatePaymentLink(price_id, quantity) {
        if (!price_id || !quantity) {
            throw new Error('price_id and quantity are required')
        }
        return await this.stripe.paymentLinks.create({
            line_items: [
                {
                    price: price_id,
                    quantity: quantity,
                },
            ],
        })
    }

this is what I am returning rn from this method

low kraken
#

๐Ÿ‘‹ happy to help

#

you can't set an expiration

#

whenever you want

past scarabBOT
latent dagger