#mas-usequeuecom_unexpected

1 messages ¡ Page 1 of 1 (latest)

burnt groveBOT
#

👋 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/1245380592120631381

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

polar sedge
#
session = Stripe::Checkout::Session.create({
            ui_mode: 'embedded',
            line_items: extracted_data,
            custom_fields: [
              {
                key: 'company',
                label: {
                  type: 'custom',
                  custom: 'Company name',
                },
                type: 'text',
              },
            ],
            mode: mode,
            discounts: [{ coupon: coupon }],
            customer: customer,
            automatic_tax: @organization.stripe_account.automatic_tax.present? ? {enabled: true} : nil,
            tax_id_collection: {enabled: @organization.stripe_account.tax_collection.present?},
            billing_address_collection: @organization.stripe_account.billing_address_collection ? 'required' : 'auto',
            subscription_data: {
              application_fee_percent: application_fee, 
              trial_end: trial_end_date_seconds
            },
            return_url: "#{params[:domain]}/stripe/checkout_successful?session_id={CHECKOUT_SESSION_ID}&organization_id=#{@organization.token}&service_id=#{params[:service_id]}&service_price=#{params[:chosenPrice]["id"]}&project_service_checkout_id=#{params[:project_service_checkout_id]}&coupon=#{coupon}&referral_code=#{params[:referralCode]}"
          })
past sentinel
#

Thank you, and can you send the ID of the Checkout Session that you saw this on? (cs_live_123...)

polar sedge
#

Subscription: sub_1PL1YID45caEkHk991bNcffr

#

Ya, i can make a new checkout session_id and give you that if you want?

past sentinel
#

I think that ID should be fine for now but thank you

polar sedge
#

"cs_live_a1sdjB7RMCJJucBtsjtfrigvNJGEY6d4Cex7PHrC85URHgxKJlzHsihA2Q_secret_fid2cGd2ZndsdXFsamtQa2x0cGBrYHZ2QGtkZ2lgYSc%2FY2RpdmApJ3BsSGphYCc%2FJ2BoZ2BhYWBhJyknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpscWBoJyknd2BhbHdgZnFKa0ZqaHVpYHFsamsnPydkaXJkfHYnKSdnZGZuYndqcGthRmppancnPycmN2A2PDdjJ3gl"

#

^the VAT gets added once you add the address. Which in my case is USA, but usa doesn't require vat afaik.

past sentinel
#

It looks like you have things set up properly API-wise. Unfortunately I don't have much insight in to how our tax engine decides on exactly which tax rates apply and I'm not sure how VAT works in that jurisdiction. If you talk to our support team they should be able to help you out here. https://support.stripe.com/?contact=true

polar sedge
#

okay i'll reach out then, thanks.