#mattb_unexpected

1 messages · Page 1 of 1 (latest)

lucid sableBOT
#

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

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

cobalt fractal
#

does the wisepad 3 have a limit on the amount that can be processed? I can process payments for less than £1000 without issue

snow mirage
cobalt fractal
#

req_sKVW1KWVVUFtao

snow mirage
#

Great, thank. you

cobalt fractal
#

the paymentintent is created without issue, it's when the collectPaymentMethod is called that the error occurs

snow mirage
#

Okay that is successful. So are you saying that when you attempt to collect payment method details is when this error shows up?

#

Jinx

cobalt fractal
#

correct 🙂

#

sorry in my original post I copied in the wrong code

#

Terminal.shared.confirmPaymentIntent(paymentIntent) { confirmResult, confirmError in
if let error = confirmError {
print("confirmPaymentIntent failed: (error)")
self.eventLog.append("confirmPaymentIntent failed")
self.paymentEvents.append(MyCustomView(view: AnyView(Text("confirmPaymentIntent failed"))))

#

the error is occuring on the confirmPaymentIntent

snow mirage
#

Okay and when was the most recent attempt?

#

And can you provide the serial number for this reader? I'm trying to see if we have any logs of this failure

cobalt fractal
#

the last payment for more than £1000 was on the 9th May,

#

the reader id is tmr_FSR99gOcObu5Jt

#

if I view transactions for the reader, I do not see any of the canceled pi's. That would suggest to me that the reader is not being connected to correctly by the app code

snow mirage
#

I can see the user-initiated cancellations for payment method collection in the logs but I don't see an error associated with collecting payment methods on May 9th

cobalt fractal
#

the cancellation is called when the Terminal.shared.collectPaymentMethod fails

#

the full code block where the issue is arising is:

#

Terminal.shared.collectPaymentMethod(paymentIntent) { collectResult, collectError in
if let error = collectError {
print("collectPaymentMethod failed: (error)")
self.eventLog.append("collectPaymentMethod failed")
self.paymentEvents.append(MyCustomView(view: AnyView(Text("collectPaymentMethod failed"))))
self.paymentMethodCancelable = nil

                    //cancel the current paymentintent as the payment method collection has failed or been canceled
                    Terminal.shared.cancelPaymentIntent(paymentIntent) { canceledPaymentIntent, cancelError in
                        if let error = cancelError {
                            print("cancel intent failed \(error)")
                        } else if let intent = canceledPaymentIntent {
                            print("cancel intent successful")
                        }
                        
                        print("paymentintent cancelled \(canceledPaymentIntent?.stripeId)")
                        self.eventLog.append("payment Intent cancelled")
                        self.paymentEvents.append(MyCustomView(view: AnyView(Text("payment Intent cancelled"))))
                    }
snow mirage
#

Can you reproduce this error?

cobalt fractal
#

so we pass the created paymentintent to the collectPaymentMethod function. If the amount is less than £1000 it works fine, if it is equal to or more than £1,000 it fails with a code 5000 error

cobalt fractal
snow mirage
#

Did you just repro? Should I look for new actions from this reader?

#

Also, if you have the ability, can you remove any error handling and just let the reader fail loudly?

cobalt fractal
#

I am not on site to be able to do a test
the reader does not do anything when calling the collectPaymentMethod function

#

it doesn't even turn on the backlight

#

it stays with just the Stripe logo on an unlit screen

#

is there a limit on the amount allowed to be processed by the wisepad 3 readers?

snow mirage
#

What method are you using to collect payment? Chip + PIN?

cobalt fractal
#

i set the paymentmethodstype to card_present

#

the card reader doesn't ask for chip and pin or to insert the card

snow mirage
#

That's not what I mean, sorry. card_present is a payment method type for all terminal readers.

#

How are customers providing their card details?

cobalt fractal
#

either chip + pin or contactless

#

but the card reader doesn't prompt, I just get the error

snow mirage
#

We don't document any amount limitations (although some countries do have laws around the size of card_present transactions)

snow mirage
#

Okay I was able to see that the UK has a Cardholder Verification Method (CVM) limit of 1000. Above this amount, the customer should use their chip + a PIN to authenticate the purchase.