Zverik / every_door

A dedicated app for collecting thousands of POI for OpenStreetMap
https://every-door.app
ISC License
418 stars 35 forks source link

Broken Default payment cards option #530

Closed kudlav closed 1 year ago

kudlav commented 1 year ago

Hi, I would like to set the default payment cards options, but this settings has no effect.

  1. Set the Default payment cards to cards; contactless
  2. Go to poi (https://www.openstreetmap.org/node/365585365)
  3. Select accepted next to the card icon
  4. Completely different payment tags are added (see the screenshot) Screenshot_20230123-222813

SM-A405FN Android 11 App 3.0.0 via F-Droid

Zverik commented 1 year ago

I've investigated this, and the logic is more complex. The setting is called default payment values, that is, which are used in case there is no other data. If shops around have payment options for cards set, these values are used instead. So in your case, at least a third of shops had these five tags set. Probably some other mapper used that for the default :)

kudlav commented 1 year ago

What?! This is dangerous and unpredictable behaviour. I have contactless Visa. When I visit a shop and I am able to pay by that, then I want to set my preconfigured tags. You can't add tags from another shop. Just because someone else was able to pay contactless in different shop, it doesn't mean it's possible in the shop next to it.

mnalis commented 1 year ago

I agree, it absolutely should not be done behind mappers back. I've probably mismapped many shops around here because I was not expecting such trickery (e.g. while Visa/Visa Electron/Mastercard are universally accepted here, only some shops accept American Express and/or Diners - so if the tags added silently depending on nearby shops, the payment tags will be added randomly!)

I'll probably now have to find all payment tags I've added with EveryDoor and replace them withpayment:cards=yes :cry:

Can we please reopen this issue?

mnalis commented 1 year ago

What I'd suggest is one of those which avoid that issue of "unexpected and unnoticed mismapping" which is a big deal (from the least preferred at the top, to the most preferred at the bottom):

Zverik commented 1 year ago

Yeah, I agree the current way is not ideal. I've created #584 to rework this in the future (idk when exactly). Thanks for suggestions! I'm looking into removing the setting, and adding a button to specify payment methods in the form itself. But in that case I don't yet know what to save, or maybe to set the defaults uniform for everybody with an option to edit for individual objects.