#mattb_unexpected
1 messages · Page 1 of 1 (latest)
👋 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.
does the wisepad 3 have a limit on the amount that can be processed? I can process payments for less than £1000 without issue
Hi 👋
Can you share the API request ID for the payment intent creation that failed?
It will start with req_
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_sKVW1KWVVUFtao
Great, thank. you
the paymentintent is created without issue, it's when the collectPaymentMethod is called that the error occurs
Okay that is successful. So are you saying that when you attempt to collect payment method details is when this error shows up?
Jinx
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
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
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
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
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"))))
}
Can you reproduce this error?
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
yes I can replicate by putting a payment of >=£1000
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?
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?
What method are you using to collect payment? Chip + PIN?
i set the paymentmethodstype to card_present
the card reader doesn't ask for chip and pin or to insert the card
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?
either chip + pin or contactless
but the card reader doesn't prompt, I just get the error
We don't document any amount limitations (although some countries do have laws around the size of card_present transactions)
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.