#mangell03_code

1 messages ¡ Page 1 of 1 (latest)

weary groveBOT
opaque quartzBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

weary groveBOT
#

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

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

blazing lily
#

The "what have you attempted" is the paymentIntent retruned by the reader which got cut off. I can provide it again. I have also tried to change the paymentIntents JSON:

const paymentIntent = await stripe.paymentIntents.create(
{
amount: adjustedAmount,
currency: 'usd',
payment_method_types: ['card_present'],
capture_method: 'manual',
// automatic_payment_methods: {
// enabled: true
// }
}

The uncommented works is the original code that always worked with the Simulator. I tried a few things to get it to work with the WisePos, but I can't figure out what the correct options are (see commented lines).

#

I should also add, the the current code does display the charge amount on the WisePos, and I can tap a test card, and it the shows "Approved" and returns to the home screen, however the dashboard shows the transaction as uncaptured.

lusty raft
#

Hello, if you retrieve the reader via the API, does it say the Terminal is online? And does the terminal itself say anything about being connected to your network?

blazing lily
#

Yes- it is online. Infact, when I call processPaymentIntent, the reader displays the correct charge amount, I can tap my test card, and it comes back with "approved" and then returns to the splash screen. I see the transaction in the dashboard, but it is "uncaptured". The next call to

reader = await stripe.testHelpers.terminal.readers.presentPaymentMethod(reader.id);

Never returns- it hange the script.

lusty raft
#

Can you send me the ID of a payment intent that you saw this behavior on?

blazing lily
#

yes...

#

pi_3Pb1u6EPuIFxKCqt18Xeo2i6

lusty raft
#

Thank you. So it looks like we are able to send and receive information from your terminal properly. And it looks like we finished that process payment intent call after about 1.2 seconds

blazing lily
#

It was fast.

lusty raft
#

I thought this was about that call hanging indefinitely?

blazing lily
#

This call hangs:

reader = await stripe.testHelpers.terminal.readers.presentPaymentMethod(reader.id);

#

right after

processResult = await stripe.terminal.readers.processPaymentIntent(reader.id,{payment_intent: intent.id});

lusty raft
#

Can you connect the device that is making that call to a different network and see if it still sees that behavior?

#

That call should use our normal API infrastructure, so it may make sense to double check that your firewall isn't blocking anything from any of our domains or IPs https://docs.stripe.com/ips

Ensure your integration is always communicating with Stripe.

blazing lily
#

The only thing I could try is my Mobile phone's hotspot. I would think that if processPaymentIntent works as expected, that would show that inbound/outbound connectivity is fine.

#

So you aren't seeing any errors in configuration? My thought was that I would have to in some way change the creation of the intent to accomidate physical vs. simulator. This is my current create:

const paymentIntent = await stripe.paymentIntents.create(
{
amount: adjustedAmount,
currency: 'usd',
payment_method_types: ['card_present'],
capture_method: 'manual',
// automatic_payment_methods: {
// enabled: true
// }
}

#

I tried the automatic_payment, but that wouldn't display the charge amount.

#

I need to step away for about 30 min. Would you mind looking in to the error status of the intent, and the proper create JSON?

Will this thread stay open?

lusty raft
#

I am not seeing any errors on my side. It sounds like the issue is contained to the device and network that you are making this call from

#

What do you mean by "proper create json" here?

#

That call looks fine to create intents that can be confirmed with a Terminal. That is not the part that is going wrong here