#hammer_api

1 messages ¡ Page 1 of 1 (latest)

torpid lichenBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1476750253024608266

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

fast basalt
#
      line_items: [{
        price_data: {
          currency: 'pln',
          product_data: { name: `Sub ${tier.name}`, description: tier.description },
          unit_amount: stripeAmount,
          recurring: { interval: 'month', interval_count: 1 },
          tax_behavior: 'inclusive',
        },
        quantity: 1,
      }],
      mode: 'subscription',
      success_url: `${BASE_URL}/api/subscription/end?session_id={CHECKOUT_SESSION_ID}&control=${control}`,
      cancel_url: `${BASE_URL}/api/subscription/cancel?session_id={CHECKOUT_SESSION_ID}&control=${control}`,
      customer_email: email,
      metadata: commonMetadata,
      subscription_data: { metadata: commonMetadata },
      locale: 'pl',
    }, process.env.STRIPE_ACCOUNT_ID ? { stripeAccount: process.env.STRIPE_ACCOUNT_ID } : undefined);```
midnight juniper
#

Hey! Could you share the created Subscription Object's ID with me (sub_xxx)?