I’m using the latest flutter sdk 1.7.10 and have been able to successfully load the credit card entry form using
await InAppPayments.startCardEntryFlow( // ✅ Dismiss the keyboard before opening Square’s UI
collectPostalCode:
true, // ✅ Collect postal code for better fraud prevention
onCardNonceRequestSuccess: _onCardEntryCardNonceRequestSuccess,
onCardEntryCancel: _onCancelCardEntryFlow,
);
However when I click Save and error returns
“Something went wrong. Please contact the developer of this application and provide them with this error code: unexpected”
I have setup the proper application ID using my sandbox and also the location ID provided. I sent a debug trace and there is nothing I could see since it is using an embedded framework.
There seems to be several people over a few years complaining about this issue and often without a reply.
This happens with a valid credit card every single time. All certificates have been loaded and this happens with or without loading Apple Pay and without buyer verification. Is this a known issue or what can I do to fix? I have already browsed all recommendations and am about to move onto a competitor platform because this seems to be very brittle.
Downgrading or upgrading has made no difference. This occurs on real devices both through xcode debugger and on testflight.
There are no API logs in the dashboard as I’m trying to get the nonce directly. When I log before the call it works but I never get a log on success. When I cancel the form I do receive a log. So this is an internal bug with the creditcard entry form that I am unable to resolve.