Can you provide some more context for that image you linked to? Is that some admin screen dropdown?
What is Metroik?
The plugin stores customer’s payment methods in the WooCommerce payment tokens table and payment token meta table which are made for that purpose. Beyond that, the plugin doesn’t store payment methods or their metadata in any other location.
Metorik is an Analytics plugin as I mentioned in the first message.
That information is being pulled in from their analytics plugin and seems like perhaps it’s being stored in a table it shouldn’t be and attached to the order which is being pulled through and thus displaying as items to filter through. There are hundreds of saved ‘last four digits of such and such card’ items.
There are hundreds of saved ‘last four digits of such and such card’ items.
Then most likely your analytics plugin is pulling those from the
_payment_method_title metadata value of the order. That’s a standard WooCommerce field used to store the display name of the payment method used to pay for the order.
Yes I believe that is correct since that is the name of the filter. I can confer with them further about this, however as I mentioned — prior to using your plugin those fields were never saved or populated in that table, so that is why I’m bringing it up.
I’m the founder of Metorik. Just to chime in, as suspected, we sync the ‘payment method title’ for each WooCommerce order. This data is likely in that field. Generally we do not recommend payment gateway plugins store any identifying details in this field and only see the last 4 digits stored like this with a handful of payment plugins. It should likely just be ‘Stripe Credit Card’, ‘Stripe’, or ‘Stripe (Amex)’ if you want the card brand.
Generally we do not recommend payment gateway plugins store any identifying details in this field and only see the last 4 digits stored like this with a handful of payment plugins.
It’s very common for the last 4 digits of the card number to be displayed so the customer can reference which payment method they actually used to pay for an order. Using a generic payment method title like “Stripe Credit Card” etc is a recipe for chargebacks and customer confusion.
There is no security concern with showing the last 4 of the payment method and Stripe provides that information for this exact purpose.