#jordash_api

1 messages ยท Page 1 of 1 (latest)

fading tideBOT
#

๐Ÿ‘‹ 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/1225199443381588055

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

gusty thicketBOT
golden gazelle
#

I need to create the payment intent from an invoice (instead of creating the payment intent directly) because I want to use Stripes Automatic Tax Calculation (since all of our tax reports rely on that)

#

I didn't see anyway when creating a payment intent to add line items or enable automatic tax (like you can with an invoice)

#

And on the flip side I couldn't find anyway to add a card_present payment option when creating an invoice

blissful oasis
#

Current we don't allow you to accept card_present payment methods for an Invoice

golden gazelle
#

The problem with using the Stripe Tax API directly is I didn't see anyway to add it to the tax area of the Stripe invoice

#

Also I didn't see anyway to add detailed line items with the payment intents api (our accountants need detailed line items instead of just an amount)

blissful oasis
#

You wouldn't use it with Invoices - I'm suggesting you use it with Payment Intents directly and not create an Invoice (since invoices don't support card_present).

golden gazelle
#

Ok with payment intents directly, how would I add line items to that? So that the receipt shows a breakdown of what customer purchased?

blissful oasis
#

You could write into support (https://support.stripe.com/contact) and see what beta solutions they have for this - or you'd have to manage the line items and build your own receipts on your end

golden gazelle
#

hmm, ok yeah if it was possible to have a card_present transaction on invoices would solve this completely

#

Is there anyway to attach a payment intent to an invoice? Like maybe create the payment intent with a card present option and then attach it to an invoice for the line item detail?

blissful oasis
#

Right now there's no way - closest you could get is to mark the Invoice as paid out of band when the other intent is fully paid

golden gazelle
#

Ok I see, but then there would be 2 seperate payment records?

#

One for the payment intent and one for the invoice?

blissful oasis
#

correct

golden gazelle
#

Hmm, that might throw off the reporting too much

blissful oasis
#

Yeah it'd be a tough one to work around

golden gazelle
#

I think I found a workaround with setup intents and then charging the invoice from the setup intent. One problem I'm having is the test card I purchased from stripe seems to be showing up as Expired, is there any way to fix that? It's a physical test stripe card

blissful oasis
#

I don't think there's a clean way to fix that - right now it's a known issue unfortunately ๐Ÿ˜ฆ

golden gazelle
#

Oh dang so physical test cards will always show up as expired when used in conjuction with Setup Intents?

fading tideBOT
blissful oasis
#

Yeah right now it's a known bug with the physical test cards

golden gazelle
#

Ok, so because of that I'm trying to use a simulated reader like this:

const discoverResult = await this.terminal.discoverReaders({simulated: true, location: 'tml_FaJNdgAcd32Jri'});

which creates a reader with id: SIMULATOR

But when I try to process a setup intent with this:

let reader = await stripe.terminal.readers.processSetupIntent(reader_id, {customer_consent_collected: true, setup_intent: setupIntent.id}, {stripeAccount: process.env.connected_account});

I get this error:

Invalid param: id, found: SIMULATOR

Is there another step I need to do to add the simulator as a reader to the location?

untold forge
#

๐Ÿ‘‹ stepping in for my teammate. Give me a few minutes to catch up.